Skip to content

Fix user message about contract minimum

Anton Panteleev requested to merge i-146/message-about-contract-minimum into master
  • Changed algo to check contract min/max.:
    • For min now we select Max(AH minimum, our MM minimum)
    • For max now we select Min( AH maximum, our MM maximum)
    • There is only one comparison for min and one for max now (before there were 4 comparisons, two for AH limits and two for ours)
  • Changed contract recalculation trigger when Confirm modal is opened (the previous implementation didn't handle all oraclePrice changes)
  • Removed tilda from the message. Now user will see the exact amount they can use.
  • If the Confirm modal is opened and the contract doesn't fit any condition on oracle price change, the modal will be closed to show an error for the user and to puss them to change amount.
Edited by Anton Panteleev

Merge request reports