Closed Keith-CY closed 2 years ago
current supply = token_in - token_out
current supply = totalSupply of ERC20 contract
rpc gw_get_balance
IERC20.balanceOf
There're no events emitted when a bridged token is minted or burned, jjy is trying to find out useful block logs about deposit and withdrawal. But deserializing transactions is still recommended.
Considering adding deposit
and withdrawal
events on block generation, an issue has been committed
For now, we are going to use the current strategy to update bridged token distribution.
listen to
Get logs from transactions{transfer} event
from the contract
Now tokens are updated by logs