-
Notifications
You must be signed in to change notification settings - Fork 73
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
[WIP] Staking #12
Open
borispovod
wants to merge
54
commits into
main
Choose a base branch
from
staking
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[WIP] Staking #12
Conversation
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
current tests works
…od for stake, no rewards
Add `get_burn_cap` and `Liquid.move` tests
[WIP] Distribution
APT-235 Added mint, burn and lock_minting scripts to Liquid coin contract
Re-do lock minting functional
some clarity improvements
* Added claim test, but fails with errors * [WIP] Fixes and more tests (#35) * fixed fee scale for x_res,y_res in stable swap * more tests * more router tests * Modified fee calculation in get_coin_in_with_fees function * update test * Rounded up coin_in value * Rounded up coin_in value * more router tests, stable curve rollback * more tests, fixed get_amount_in for stable curve * Optimized curve function * liquidity pool new test * more tests * remove line * more tests * fix test Co-authored-by: Victor Han <[email protected]> * feat: add unit testing for add_liquidity fail cases and getter functions (#37) * feat: add unit testing for add_liquidity fail cases and getter functions * feat: add more tests * Added tests for staking * [WIP] Devnet update 04 08 22 (#38) * more router tests * merged with tests and hotfixes * why * update flashloan tests and router tests * small refactoring of account creation * Implemented unchecked swap function (#40) * Implemented unchecked swap function * added stable unchecked tests * Improved comments, optimized swap code Co-authored-by: borispovod <[email protected]> * removed curve mentions as we are using Solidly one formula for stables (#41) * Updated staking till the latest version of Aptos framework and Aptos CLI(0.2.3) * Restored original friend function of checkpoint in distribution.move * Added tests to distribution * Added tests to distribution * Modified test for initialize function. Changed iterable_table to table_with_length. Co-authored-by: Boris Povod <[email protected]> Co-authored-by: gaquarius <[email protected]>
# Conflicts: # Move.toml # sources/libs/math.move # sources/libs/stable_curve.move # sources/swap/liquidity_pool.move # tests/coin_helper_tests.move # tests/dao_storage_tests.move # tests/flashloan_tests.move # tests/liquidity_pool_tests.move # tests/router_tests.move # tests/scripts_tests.move
borispovod
commented
Aug 22, 2022
@@ -6,11 +6,13 @@ version = "0.2.3" | |||
liquidswap = "0x43417434fd869edee76cca2a4d2301e528a1551b1d719b75c350c3c97d15b8b9" | |||
dao_admin = "0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318" | |||
emergency_admin = "0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318" | |||
staking_pool = "0x42" |
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.
Replace it with 0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318
address, later we will replace it with real address. Otherwise it wouldn't depoy.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.