lindy-labs / opus_contracts

Opus Source Code
https://opus.money
Other
0 stars 0 forks source link

fix: pull redistributed yangs before withdrawal #530

Closed tserg closed 8 months ago

tserg commented 10 months ago

This PR fixes an issue whereby a valid withdrawal of collateral from a trove may revert if there is exceptionally redistributed yangs that have yet to be pulled into the trove.

milancermak commented 9 months ago

We probably want to close this one in favor of #532 but I think it's still a good idea to move the call to charge higher up in withdraw_helper.

tserg commented 8 months ago

Closed by #532.