guni-lev icon indicating copy to clipboard operation
guni-lev copied to clipboard

Is there an issue in _unwind final require statement ?

Open kassandraoftroy opened this issue 4 years ago • 1 comments

https://github.com/hexonaut/guni-lev/blob/master/src/GuniLev.sol#L393

wont otherToken.balanceOf(address(this)) in require statement always be 0 because you just transferred it to usr ? As far as I understand it should just be dust so it shouldn't matter much but I think you want to do that balance reading before the transfer.

kassandraoftroy avatar Dec 08 '21 17:12 kassandraoftroy

Yeah it should be the address of the user, but as you say it's either zero or dust.

hexonaut avatar Dec 09 '21 13:12 hexonaut