Skip to content

Commit

Permalink
check depositor matches
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuba committed Dec 22, 2023
1 parent c5f1831 commit c1a3474
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/contracts/tbtc/TbtcDepositor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ contract TbtcDepositor {
memory optimisticMintingRequest = tbtcVault
.optimisticMintingRequests(depositKey);

require(
bridgeDepositRequest.depositor == address(this),
"invalid depositor"
);

// tBTC amount calculation.
// - for optimistically minted deposits:
// amount = depositAmount - depositTreasuryFee - depositTxMaxFee - optimisticMintingFee
Expand Down

0 comments on commit c1a3474

Please sign in to comment.