Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before only transfers from WETH to the contract were ignored. those correspond to unwraps/withdrawals. With this change, also transfers from the protocol to WETH are ignored. those correspond to wraps/deposits. The general idea is that all transfers between the protocol and WETH should correspond to wrapping and unwrapping. Such operations do change the ETH balance and WETH balance without incurring any slippage or change in value of the buffers.
- Loading branch information