Mismatched transferTip
condition between token minting and burning
There is a mismatched condition between token minting and burning. The receiveMessage
function has a stricter condition for minting tokens, as it fails when the transferTip
is 0
. On the other hand, the bridgeBack
function allows burning tokens even when the transferTip
is 0
.
The warp.green team provided the following response:
The difference is because
mojoToTokenRatio
is either 10^6 (Warped XCH) or 10^12 (any other Warped CAT), so transfer tip will be higher than 0. When bridging back, you are cutting decimals, so we wanted to enforce a minimum tip.