osmosis-labs / isotonic

Smart Contracts for the Lendex Protocol
MIT License
1 stars 0 forks source link

Market: `collateral_ratio` must be lower then `liquidation_price` from CA #55

Closed ueco-jb closed 2 years ago

ueco-jb commented 2 years ago

Setting collateral_ratio in market should fail, if trying to set equal or higher then liquidation_price from Credit Agency. Otherwise potential liquidation could decrease debt less then it decreases potential credit.