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

[WIP] Staking #12

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open

[WIP] Staking #12

wants to merge 54 commits into from

Conversation

borispovod
Copy link
Member

No description provided.

borispovod and others added 21 commits July 12, 2022 21:30
APT-235 Added mint, burn and lock_minting scripts to Liquid coin contract
Re-do lock minting functional
* 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
@@ -6,11 +6,13 @@ version = "0.2.3"
liquidswap = "0x43417434fd869edee76cca2a4d2301e528a1551b1d719b75c350c3c97d15b8b9"
dao_admin = "0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318"
emergency_admin = "0xb4d7b2466d211c1f4629e8340bb1a9e75e7f8fb38cc145c54c5c9f9d5017a318"
staking_pool = "0x42"
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants