Skip to content

Commit

Permalink
add back low <= high asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Jan 22, 2024
1 parent 4beaab9 commit dd28e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/plugins/assets/curve/CurveStableCollateral.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ contract CurveStableCollateral is AppreciatingFiatCollateral, PoolTokens {
// {UoA/tok} = {UoA} / {tok}
low = aumLow.div(supply, FLOOR);
high = aumHigh.div(supply, CEIL);
assert(low <= high); // not obviously true just by inspection

return (low, high, 0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ contract CurveStableMetapoolCollateral is CurveStableCollateral {
// {UoA/tok} = {UoA} / {tok}
low = aumLow.div(supply, FLOOR);
high = aumHigh.div(supply, CEIL);
assert(low <= high); // not obviously true just by inspection

return (low, high, 0);
}
Expand Down

0 comments on commit dd28e02

Please sign in to comment.