Ethereum <> Polygon Bridge
Polygon Bounty 1 - What is the volume of ETH and a stable coin of your choice that's moved between the Polygon network and the Ethereum network across the bridge? How has that changed over time?
Thus tracking the events emitted by and functions called on these contracts, one could track the POS bridge activity between Ethereum and Polygon sidechain. However usually proxy contracts handle these transactions, so one must actually track these proxy addresses for proper and complete data.
RootChainManager
-0xD4888faB8bd39A663B63161F5eE1Eae31a25B653
ERC20Predicate
-0xC760DefB87E5194E62b282c2a76CBCe4766d7345
Depositing ERC20 -
- Approve
ERC20Predicate
contract to spend the tokens that have to be deposited. - Make
depositFor
call onRootChainManager
.
Withdrawing ERC20 -
- Burn tokens on matic chain.
- Call
exit
function onRootChainManager
to submit proof of burn transaction. This call can be made after checkpoint is submitted for the block containing burn transaction.
Depositing Ether -
- Make
depositEtherFor
call onRootChainManager
and send the required ether.
Withdrawing Ether -
- Burn tokens on matic chain.
- Call
exit
function onRootChainManager
to submit proof of burn transaction. This call can be made after checkpoint is submitted for the block containing burn transaction.
In order to retrieve the bridge activity data, we must understand the working behind the ETH-Polygon bridge.
In the below plot, the top half shows daily volume of USDT tranfers from Ethereum into Polygon sidechain, while the bottom half shows the daily volume of transfers from Polygon sidechain back to Ethereum
In the below plot, the top half shows daily volume of ETH tranfers from Ethereum into Polygon sidechain, while the bottom half shows the daily volume of transfers from Polygon sidechain back to Ethereum