Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Dynamic base liquidation percentage #539

Merged
merged 8 commits into from
Mar 24, 2020
Merged

Dynamic base liquidation percentage #539

merged 8 commits into from
Mar 24, 2020

Commits on Mar 23, 2020

  1. Remove AUCTION_BASE_PERCENTAGE constant

    This will be dynamic
    NicholasDotSol committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    da18fbd View commit details
    Browse the repository at this point in the history
  2. Implement getAuctionBasePercentage

    To replace the removed constant,
    getAuctionBasePercentage
    calculates the current base auction percentage
    such that given sorrect collateralization
    the base will be 100% of the backing value
    
    eg: collateralization:
    500 collateral percent-> 20% base auction duration
    150 collateral percent -> 66% base auction duration
    100 collateral percent -> 100%
    base auction duration
    
    Note: This breaks when we go under 100% collateralization
    NicholasDotSol committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    6f7c1f6 View commit details
    Browse the repository at this point in the history
  3. Expose getInitialCollateralizedPercent for testing

    NicholasDotSol committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    3b0233b View commit details
    Browse the repository at this point in the history
  4. test getAuctionBasePercentage

    NicholasDotSol committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    a91a1e3 View commit details
    Browse the repository at this point in the history
  5. Updates tests

    NicholasDotSol committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    1ed77a3 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Track initialCollateralizedPercent

    Using current system initialCollateralizedPercent
    does not correctly reflect the individual Deposit's
    initialCollateralizedPercent.
    
    Track initialCollateralizedPercent for each
    individual Deposit
    NicholasDotSol committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    5621289 View commit details
    Browse the repository at this point in the history
  2. Update Tests

    NicholasDotSol committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    b46d498 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ef9c4b View commit details
    Browse the repository at this point in the history