Skip to content

Commit

Permalink
chore(protocol): lower L2-to-L1 bridge quota (#17020)
Browse files Browse the repository at this point in the history
Co-authored-by: dantaik <[email protected]>
  • Loading branch information
dantaik and dantaik authored May 8, 2024
1 parent fdb989d commit 6ee06f1
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/protocol/script/DeployL1QuotaManager.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract DeployL1QuotaManager is DeployCapability {
}

function run() external broadcast {
// Deploy the QuotaManager contract with a 15 minute quota period
// Deploy the QuotaManager contract on Ethereum
QuotaManager qm = QuotaManager(
deployProxy({
name: "quota_manager",
Expand All @@ -27,10 +27,20 @@ contract DeployL1QuotaManager is DeployCapability {
})
);

// L2-to-L1 Ether per 15 minutes: 500 Ether
qm.updateQuota(address(0), 250 ether);
// Config L2-to-L1 quota
uint104 value = 200_000; // USD
uint104 priceETH = 3100; // USD
uint104 priceTKO = 5; // USD

// L2-to-L1 TKO per 15 minutes: 100_000 (0.01% total supply)
qm.updateQuota(0x10dea67478c5F8C5E2D90e5E9B26dBe60c54d800, 100_000 ether);
// ETH
qm.updateQuota(address(0), value * 1 ether / priceETH);
// WETH
qm.updateQuota(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, value * 1 ether / priceETH);
// TKO
qm.updateQuota(0x10dea67478c5F8C5E2D90e5E9B26dBe60c54d800, value * 1e18 / priceTKO);
// USDT
qm.updateQuota(0xdAC17F958D2ee523a2206206994597C13D831ec7, value * 1e6);
// USDC
qm.updateQuota(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, value * 1e6);
}
}

0 comments on commit 6ee06f1

Please sign in to comment.