Skip to content

Commit

Permalink
Merge pull request #12 from darwinia-network/echo/verify
Browse files Browse the repository at this point in the history
Verify
  • Loading branch information
hujw77 authored Jul 16, 2024
2 parents 045b5b5 + 0f63d9e commit acaf639
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 32 deletions.
32 changes: 1 addition & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
## Staker

Forked from
[https://github.com/Uniswap/liquidity-staker](https://github.com/Uniswap/liquidity-staker)

Staking pool for KTON.
# KtonDAO

## Addresses
| Contract | Canonical Cross-chain Deployment Address |
Expand All @@ -15,28 +10,3 @@ Staking pool for KTON.
| KtonDAO | 0x34D4519c574047c9D7F9E79b2bc718aef159129B |
| Timelock | 0xCA435c493Ee55AB27e8C8b1b1a89706c5a2761b5 |
| KtonDAOVault | 0x0DBFbb1Ab6e42F89661B4f98d5d0acdBE21d1ffC |

### API

#### `totalSupply()`
Return the total KTON token amount in the staking pool

#### `balanceOf(address account)`
Return the KTON token balance of `account`

#### `earned(address account)`
Return the earned RING amount of `account`

#### `stake(uint256 amount)`
Stake `amount` KTON token for receiving RING reward

#### `withdraw(uint256 amount)`
Withdraw `amount` KTON token

#### `getReward()`
Claim earned RING

#### `exit()`
Withdraw all staked KTON token and Claim earned RING to exit

### [Mathematical Proof](./doc/staker.pdf)
2 changes: 1 addition & 1 deletion src/governance/GovernanceKTON.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PermitUp
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20VotesUpgradeable.sol";
import "../staking/StakingRewards.sol";

contract GovernanceKton is ERC20Upgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, StakingRewards {
contract GovernanceKTON is ERC20Upgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, StakingRewards {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
Expand Down
1 change: 1 addition & 0 deletions verify/GovernanceKTON.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions verify/KtonDAO.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions verify/KtonDAOVault.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions verify/KtonTimelockController.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions verify/TransparentUpgradeableProxy.json

Large diffs are not rendered by default.

0 comments on commit acaf639

Please sign in to comment.