backstop-protocol / BCompound

20 stars 5 forks source link

While in partial liquidation, `mint` will fail because of `enterMarket` check. #114

Open yaronvel opened 3 years ago

yaronvel commented 3 years ago

The following is a workaround for user who wants to deposit while in partial liquidation: The example is for ZRX deposit. Two calls: 1) ZRX.approve 2) special function call on contract which will call: a) cZRX.mint b) cZRX.approve c) avatar1.collectCToken