-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authorized reimbursements in the
L1BitcoinDepositor
contract (#804)
If someone front-runs the Relayer Bot to call the `initializeDeposit` function, the Relayer Bot's transaction will be reverted, wasting a substantial amount of gas since the validation of duplicate deposits is performed very late in the process, in the tBTC `Bridge` smart contract. This is cost-effective to the front-runner, as the refund mechanism attempts to make callers slightly net-positive. To mitigate the above, anyone is allowed to relay deposits but reimbursement only occurs for a closed set of relayers.
- Loading branch information
Showing
2 changed files
with
726 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.