You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CEther is one of those older contracts which return failure flag instead of reverting.
In CEtherGateway, the only contract in our system that explicitly interacts with it, this is reflected in mint, redeem and redeemUnderlying calls, but missed in transfer and transferFrom:
CEther
is one of those older contracts which return failure flag instead of reverting.In
CEtherGateway
, the only contract in our system that explicitly interacts with it, this is reflected inmint
,redeem
andredeemUnderlying
calls, but missed intransfer
andtransferFrom
:integrations-v3/contracts/helpers/compound/CompoundV2_CEtherGateway.sol
Line 52 in 4bd6e30
integrations-v3/contracts/helpers/compound/CompoundV2_CEtherGateway.sol
Line 61 in 4bd6e30
integrations-v3/contracts/helpers/compound/CompoundV2_CEtherGateway.sol
Line 79 in 4bd6e30
Thus, the contract should never be deployed in its current form. The fix would be to simply use
safeTransfer
andsafeTransferFrom
instead.Credit to @pessimistic-io for discovery.
The text was updated successfully, but these errors were encountered: