Skip to content

Commit

Permalink
Re-set L2 supply after burning
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Jun 20, 2024
1 parent 700be14 commit ae73006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/tokenbridge/ethereum/gateway/L1USDCGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ contract L1USDCGateway is L1ArbitrumExtendedGateway {

/**
* @notice Burns the USDC tokens escrowed in the gateway.
* @dev Can be called by burner when deposits are paused.
* @dev Can be called by burner when deposits are paused and when
* L2 gateway has set the L2 supply. That's the amount that will be burned
* Function signature complies by Bridged USDC Standard.
*/
function burnLockedUSDC() external {
Expand All @@ -118,6 +119,7 @@ contract L1USDCGateway is L1ArbitrumExtendedGateway {
revert L1USDCGateway_L2SupplyNotSet();
}

l2GatewaySupply = 0;
IFiatToken(l1USDC).burn(_amountToBurn);
emit GatewayUsdcBurned(_amountToBurn);
}
Expand Down

0 comments on commit ae73006

Please sign in to comment.