Skip to content

VicXekro/trop_stake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tropium -- Stake contract and ICO contract

Stake Contract

this is the eosio smart contract that will be in charge of handling the staking. It contains four methods:

Staker methods:

  • regstaker : This method is in charge of registering staker
  • stake: Once a user has been registered as a staker, he can transfer an amount to the account holding this contract. This will trigger the "on_notify" attached to stake method that will handle the staking
  • unstake: cancel the staked amount, return the funds

admin methods:

  • banstaker: To ban a user and prevent him from staking in the future. If banned, the staked amount is not reimbursed
  • letinstaker: To reinstate a banned staker. After being reinstated, the user can re-register and participate in the staking operation

contract method:

  • regadmin: register a user as an admin. Only executable by the owner of this smart contract

ICO contract

Notice

Before deployment, change all TODO accordingly

Releases

No releases published

Packages

No packages published

Languages