Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2.14 KB

README.md

File metadata and controls

61 lines (41 loc) · 2.14 KB

ezstake

Smart contract for customizable NFT staking using Atomicassets standard.

This contract is designed to work out-of-the-box, without the need to modify the source code.

All the main features are fully configurable by the contract owner.

Features

For the admin:

  • customizable configurations:
    • token contract and symbol
    • minimum claim period
    • unstaking period
    • hourly rate per template
    • per template control
  • freeze/unfreeze the contract functionalities
  • force reset/unstake user's assets

For the user:

  • register
  • stake/unstake the assets
  • claim the tokens

Testing

The contract is fully tested using proton's VeRT

  • To build the contract for testing blanc is required.
npm install # or yarn or pnpm
npm run build:dev # to compile the contract using blanc++
npm test

Deployment

  • To build & deploy the contract, both of the Antelope cdt and leap are required.
npm build:prod # to compile the contract using cdt-cpp

# deploy the contract
cleos -u <your_api_endpoint> set contract <account> $PWD contract/ezstake.wasm contract/ezstake.abi -p <account>@active

# dont forget to add eosio.code permission
cleos -u <your_api_endpoint> set account permission <account> active --add-code

Want more features ?

Hire me ;)

Discord Badge Telegram Badge Protonmail Badge Github Badge