Fraxferry
A slower, simpler, more secure method of bridging tokens.
Last updated
A slower, simpler, more secure method of bridging tokens.
Last updated
A 24-48hr token bridging solution designed and implemented by the Frax team.
Too many bridge hacks from bugs, team rugs, anon devs, etc.
Risks of infinite mints.
Some chains have slow bridges, especially on return trip back to Ethereum (e.g. Arbitrum, Optimism, etc).
Risk is capped by token amounts in bridge contracts. No risk of infinite mints.
Slower transactions give more time for bad batches to be caught and stopped, assuming they are not cancelled automatically by bots.
Crewmembers can pause contracts so any issues can be investigated.
Captain is tricked into proposing a batch with a false hash AND all crewmember bots are offline/censured/compromised AND no one disputes the proposal.
Reorgs on the source chain. Avoided, by only returning the transactions on the source chain that are at least one hour old.
Rollbacks of optimistic rollups. Avoided by running a node.
Operators do not have enough time to pause the chain after a fake proposal. Avoided by requiring a minimal amount of time between sending and executing the proposal.
Centralization
User sends tokens to the contract. This transaction is stored in the contract. embark()
, embarkWithRecipient()
, or embarkWithSignature()
.
Captain queries the source chain for transactions to ship.
Captain sends batch (start, end, hash) to start the trip. depart()
Wait at least 24 hrs.
Crewmembers check the batch and can dispute it if it is invalid. disputeBatch()
or do nothing
.
Non disputed batches can be executed by the first officer by providing the transactions as calldata. User receives their tokens on the other chain. disembark()
Hash of the transactions must be equal to the hash in the batch.
In case there was a fraudulent transaction (a hacker for example), the owner can cancel a single transaction, such that it will not be executed. jettison()
, jettisonGroup()
, removeBatches()
.
The owner can manually manage the tokens in the contract and must make sure it has enough funds.