Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify #12

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading