Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Conversation

BrendanChou
Copy link

@BrendanChou BrendanChou commented Mar 6, 2019

Just the solidity changes of #153

  • Does not change any meaningful functionality on the base protocol
    • add getLiquidationSpreadForPair() function to Storage.sol which abstracts away some logic from the _getLiquidationPrices() function in OperationImpl.sol
    • Adds public getter function for getLiquidationSpreadForPair()
    • Remove add() function in Decimal.sol library, replace with onePlus() function which adds a decimal to a decimal of value 1.
  • bugfixes in Expiry
    • now respects the spread premiums on the two markets involved
    • now ensures that the repaid asset does not end up positive (rather than does not end up negative)

@BrendanChou BrendanChou mentioned this pull request Mar 6, 2019
Copy link
Member

@AntonioJuliano AntonioJuliano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • nit

AntonioJuliano
AntonioJuliano previously approved these changes Mar 6, 2019
@BrendanChou BrendanChou force-pushed the bc_liquidationspread branch from 63aac3c to 93a623c Compare March 6, 2019 00:45
@BrendanChou BrendanChou merged commit ec20d87 into master Mar 6, 2019
@BrendanChou BrendanChou deleted the bc_liquidationspread branch March 6, 2019 00:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants