protocols icon indicating copy to clipboard operation
protocols copied to clipboard

A contract bug

Open chenlaoyao0523 opened this issue 2 years ago • 0 comments

protocols/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeDeposits.sol // Add the amount to the deposit request and reset the time the operator has to process it ExchangeData.Deposit memory _deposit = S.pendingDeposits[to][tokenID]; _deposit.timestamp = uint64(block.timestamp); _deposit.amount = _deposit.amount.add(_amount); S.pendingDeposits[to][tokenID] = _deposit; If Loopring acts evil, does not recharge the user, and recharges the user with a small amount every once in a while, the user's recharge will not be redeemable. This is a serious trust issue.

chenlaoyao0523 avatar Aug 16 '23 13:08 chenlaoyao0523