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

Commits on Jun 20, 2022

  1. add lamm coin

    mkurnikov committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    f549f6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70bc5fb View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Configuration menu
    Copy the full SHA
    b04b637 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Configuration menu
    Copy the full SHA
    21437e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a635c5e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Configuration menu
    Copy the full SHA
    6005830 View commit details
    Browse the repository at this point in the history
  2. distribution per periods done, yet need to cover with tests

    current tests works
    borispovod committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    9d8007b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. rewards distribution finally happens, yet there is bug with last peri…

    …od for stake, no rewards
    borispovod committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    6df40be View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. minter, vesting escrow

    borispovod committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    8881408 View commit details
    Browse the repository at this point in the history
  2. distribution finally

    borispovod committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    ed986d8 View commit details
    Browse the repository at this point in the history
  3. Unstake

    borispovod committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    226d093 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

  1. refactoring, tests

    borispovod committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    101efd8 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2022

  1. Configuration menu
    Copy the full SHA
    b637d6c View commit details
    Browse the repository at this point in the history
  2. sorted imports

    borispovod committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    40f6d73 View commit details
    Browse the repository at this point in the history
  3. stake test

    borispovod committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    5feeba7 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. test update

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    e11ca1c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    281f364 View commit details
    Browse the repository at this point in the history
  3. fix bug with update stake

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    b0193a7 View commit details
    Browse the repository at this point in the history
  4. stake tests

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    c9da4ce View commit details
    Browse the repository at this point in the history
  5. removed useless update

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    c501155 View commit details
    Browse the repository at this point in the history
  6. update with comments

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    d060963 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7afcbcc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0bd841f View commit details
    Browse the repository at this point in the history
  9. sort imports

    mkurnikov committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    4cfa401 View commit details
    Browse the repository at this point in the history
  10. extract locking test

    mkurnikov committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    16975cd View commit details
    Browse the repository at this point in the history
  11. add two more negative cases

    mkurnikov committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    f9baf99 View commit details
    Browse the repository at this point in the history
  12. changed name

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    215f4e9 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #22 from pontem-network/burn-cap

    Add `get_burn_cap` and `Liquid.move` tests
    borispovod authored Jul 12, 2022
    Configuration menu
    Copy the full SHA
    26e3648 View commit details
    Browse the repository at this point in the history
  14. Merge pull request #13 from pontem-network/distribution

    [WIP] Distribution
    borispovod authored Jul 12, 2022
    Configuration menu
    Copy the full SHA
    1c665d2 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    26f19bb View commit details
    Browse the repository at this point in the history
  16. fix circulating supply

    borispovod committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    ad8cb2a View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Configuration menu
    Copy the full SHA
    38e7726 View commit details
    Browse the repository at this point in the history
  2. some clarity improvements

    mkurnikov committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    eb3eedd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6bf8adf View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

  1. Merge pull request #23 from pontem-network/apt-235

    APT-235 Added mint, burn and lock_minting scripts to Liquid coin contract
    borispovod authored Jul 14, 2022
    Configuration menu
    Copy the full SHA
    d988544 View commit details
    Browse the repository at this point in the history
  2. clarify improvements

    mkurnikov committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    cab39f6 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2022

  1. Configuration menu
    Copy the full SHA
    a49ac9e View commit details
    Browse the repository at this point in the history
  2. Added tests

    sunmoon11100 committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    5f78ded View commit details
    Browse the repository at this point in the history
  3. Fixed business logic

    sunmoon11100 committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    f471bf0 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Fixed in get_mint_cap

    sunmoon11100 committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    5b45531 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2fe0a6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #26 from pontem-network/apt-236

    Re-do lock minting functional
    borispovod authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    3c5f24b View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. made it little pretty

    borispovod committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    9a76d3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e22803 View commit details
    Browse the repository at this point in the history
  3. make it pretty again

    borispovod committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    3ffb0ab View commit details
    Browse the repository at this point in the history
  4. Merge pull request #24 from pontem-network/some-renames

    some clarity improvements
    borispovod authored Jul 22, 2022
    Configuration menu
    Copy the full SHA
    8141da4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ced2d3d View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. merged

    borispovod committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    148f04b View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Tests for staking (#34)

    * 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]>
    3 people authored Aug 10, 2022
    Configuration menu
    Copy the full SHA
    24a3c84 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. Merge branch 'main' into staking

    # 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
    sunmoon11100 committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    e07b120 View commit details
    Browse the repository at this point in the history
  2. update to devnet 18-8-22

    sunmoon11100 committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    4f9ae0b View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2022

  1. Configuration menu
    Copy the full SHA
    d8b7ad3 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2022

  1. Update devnet 26-8-22

    sunmoon11100 committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    4a32157 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Configuration menu
    Copy the full SHA
    7349712 View commit details
    Browse the repository at this point in the history