Submitted by shw
The sendToCosmos function of Gravity transfers _amount of _tokenContract from the sender using the function transferFrom. If the transferred token is a transfer-on-fee/deflationary token, the actually received amount could be less than _amount. However, since _amount is passed as a parameter of the SendToCosmosEvent event, the Cosmos side will think more tokens are locked on the Ethereum side.
Referenced code:
Consider getting the received amount by calculating the difference of token balance (using balanceOf) before and after the transferFrom.
jkilpatr (Althea) confirmed:
