hifi-finance / hifi

Monorepo implementing the Hifi fixed-rate, fixed-term lending protocol
https://app.hifi.finance
Other
105 stars 15 forks source link

[proxy-target] Check "hTokenOut" against "hTokenRequired" in "buyHTokenAndAddLiquidity" #54

Closed PaulRBerg closed 2 years ago

PaulRBerg commented 2 years ago

As explained in https://github.com/hifi-finance/hifi/commit/988b4b918ba2e6ee250b02454cf3feb143fcf0b6#diff-b28b1ed9821f38c64524ea13e19264bb0772f8376afffd5d8a1f8277621833eb, "hTokenOut" is strictly bigger than "hTokenRequired".