-
Notifications
You must be signed in to change notification settings - Fork 23
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
Staking rewards #534
Merged
Merged
Staking rewards #534
Changes from 37 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c6c290d
`IERC20Mintable`, not `IERC20`
feuGeneA 318c277
issue ERC20 staking rewards (native rewards TBD)
feuGeneA f45cce7
mint(addr,amount): respect _MAX_MINT
feuGeneA 57a519e
incorporate uptime in rewards
feuGeneA f26ecbe
increment validator rewards, not overwrite them
feuGeneA fd0aa94
Merge branch 'staking-contract' into staking-rewards
geoff-vball 6ba67b6
Fixup
geoff-vball 56304eb
Fix tests
geoff-vball 08d95b8
Fix rewards calculator
geoff-vball f2c13d5
Fixups
geoff-vball 267d92e
Fixups
geoff-vball dabde59
Fixups
geoff-vball d480b4c
Fixups
geoff-vball 2ecf2bf
lint
geoff-vball e29827c
Native staking rewards
feuGeneA 29259c5
Merge pull request #552 from ava-labs/gstuart/native-staking-rewards
geoff-vball 44d8097
Updates and fixes
geoff-vball 9019085
Remove unneccessary comment
geoff-vball 2109a68
Add comments
geoff-vball 69242fd
Merge branch 'validation-ends-first' into staking-rewards
geoff-vball 8d2969a
Update contracts/staking/PoSValidatorManager.sol
geoff-vball b465fba
Update contracts/staking/PoSValidatorManager.sol
geoff-vball c215b3c
Update contracts/staking/PoSValidatorManager.sol
geoff-vball d9ae361
fix comment
geoff-vball 9bbfde2
review fixes
geoff-vball 7d96776
Merge branch 'validation-ends-first' into staking-rewards
geoff-vball bda2341
Merge branch 'validation-ends-first' into staking-rewards
geoff-vball ebe122e
lint
geoff-vball 8a791c1
Merge branch 'staking-contract' into staking-rewards
geoff-vball 13e210b
Review fixes
geoff-vball 061c125
Review fixes
geoff-vball 19e28b3
Fix unit tests
geoff-vball d5e5e26
Function for withdrawing delegation fees
geoff-vball c9b1556
Hook up native minter precompile to PoS tests
geoff-vball bc7ddc7
wait for success in AddNativeMinterAdmin
iansuvak 9e80079
lint
iansuvak 015d92e
Review fixes
geoff-vball daad525
Check for owner when initializing validator completion
geoff-vball 3286116
Small fix
geoff-vball 6b1e9c0
Small fix
geoff-vball db44dab
Emit rewards and fees on delegator exit
geoff-vball 099bf13
add test
geoff-vball File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 23 additions & 2 deletions
25
abi-bindings/go/staking/ERC20TokenStakingManager/ERC20TokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
327 changes: 327 additions & 0 deletions
327
abi-bindings/go/staking/ExampleRewardCalculator/ExampleRewardCalculator.go
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 54 additions & 2 deletions
56
abi-bindings/go/staking/NativeTokenStakingManager/NativeTokenStakingManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
abi-bindings/go/staking/PoAValidatorManager/PoAValidatorManager.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thinking if this example ERC20 should only give access to mint to an ownable address. Even for an example seems like a pretty common check that would exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure what you mean