Skip to content

crypto-com/cro-staking

Repository files navigation

DeFi Swap | ERC 900 Contracts

Build Status

Inspired by Codex Protocol | ERC 900 Contracts

Background

For background on ERC-900 itself, view the issue in the EIP repo here: ethereum/EIPs#900

Contracts

  • ERC900.sol - ERC-900 interface
  • ERC900BasicStakeContract.sol and BasicStakingContract.sol- A basic implementation of the ERC-900 interface that allows staking of specified ERC20 token.

Code coverage

-------------------------------|----------|----------|----------|----------|----------------|
File                           |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-------------------------------|----------|----------|----------|----------|----------------|
 ERC900/                       |      100 |    83.33 |      100 |      100 |                |
  BasicStakingContract.sol     |      100 |      100 |      100 |      100 |                |
  ERC900.sol                   |      100 |      100 |      100 |      100 |                |
  ERC900BasicStakeContract.sol |      100 |    83.33 |      100 |      100 |                |
 library/                      |      100 |      100 |      100 |      100 |                |
  Debuggable.sol               |      100 |      100 |      100 |      100 |                |
-------------------------------|----------|----------|----------|----------|----------------|
All files                      |      100 |    83.33 |      100 |      100 |                |
-------------------------------|----------|----------|----------|----------|----------------|

Deploy contracts

  1. uncomment relevant network sessions in truffle-config.js
  2. Populate .env with INFURA_API_KEY and MNEMONIC
  • 3.1. if you are deploying from the start, run yarn deploy-on-ropsten ;
  • 3.2. or if you are only deploying delta, add files under our/cro-staking/migrations/* with next sequence number, and run ./node_modules/.bin/truffle migrate --network $network_name

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published