https://github.com/shrimpliu/edenpool
edenpool contract
https://github.com/shrimpliu/edenpool
Last synced: 2 months ago
JSON representation
edenpool contract
- Host: GitHub
- URL: https://github.com/shrimpliu/edenpool
- Owner: shrimpliu
- Created: 2021-09-15T09:13:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T09:21:32.000Z (over 3 years ago)
- Last Synced: 2025-01-28T16:41:26.873Z (4 months ago)
- Language: C++
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# eden pool contract
## deploy the contract
### modify reward token and stake token
modify constants in file `edenpool.hpp`:
- `REWARD_TOKEN_SYMBOL`
- `REWARD_TOKEN_CONTRACT`
- `STAKE_TOKEN_SYMBOL`
- `STAKE_TOKEN_CONTRACT`### build
```shell
eosio-cpp edenpool.cpp -o edenpool.wasm
```### deploy
```shell
cleos set contract {{CONTRACT_ACCOUNT}} ./ edenpool.wasm edenpool.abi
```### add eosio.code permission
```shell
cleos set account permission edenpoolcont active --add-code
```### transfer reward token to the contract account
the reward for each period is 5% of the contract account's balance
## use
### how to stake
transfer the stake token to the contract
### how to unstake
push the action `unstake`
### how to claim reward
push the action `claim`