Skip to content

Commit cd0d1fa

Browse files
authored
fix: Redeploy Polygon Spokewith updated OftFeeCap (#1130)
* fix: Redeploy Polygon Spokewith updated OftFeeCap Fee Cap was incorrectly copied over from OP stack SpokePool deploy script * deploy spoke pool
1 parent be78de3 commit cd0d1fa

File tree

4 files changed

+41
-37
lines changed

4 files changed

+41
-37
lines changed

broadcast/011DeployPolygonSpokePool.s.sol/137/run-latest.json

Lines changed: 30 additions & 30 deletions
Large diffs are not rendered by default.

broadcast/deployed-addresses.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@
369369
"block_number": 73247089
370370
},
371371
"Polygon_SpokePool": {
372-
"address": "0xf5264e9198f70ea2e0b16337cb4718afadbf0a4e",
373-
"transaction_hash": "0x9409b476e65032b629ad607cd61f175c62172e329a1b78e8a8624de261a84d15",
374-
"block_number": 77216750
372+
"address": "0x8f7b21ff11006f0520b06074d36e39b6cd83cf29",
373+
"transaction_hash": "0x92801b64851c27c614e68b66dc26ab6831c1f2b95f3f805bd8646d1747105685",
374+
"block_number": 77338915
375375
}
376376
}
377377
},

broadcast/deployed-addresses.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ This file contains the latest deployed smart contract addresses from the broadca
460460

461461
#### Polygon_SpokePool
462462

463-
- **Polygon_SpokePool**: `0xf5264e9198f70ea2e0b16337cb4718afadbf0a4e`
464-
- Transaction Hash: `0x9409b476e65032b629ad607cd61f175c62172e329a1b78e8a8624de261a84d15`
465-
- Block Number: `77216750`
463+
- **Polygon_SpokePool**: `0x8f7b21ff11006f0520b06074d36e39b6cd83cf29`
464+
- Transaction Hash: `0x92801b64851c27c614e68b66dc26ab6831c1f2b95f3f805bd8646d1747105685`
465+
- Block Number: `77338915`
466466

467467
### Lens (Chain ID: 232)
468468

script/011DeployPolygonSpokePool.s.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ contract DeployPolygonSpokePool is Script, Test, DeploymentUtils {
2828
// Get L2 addresses for Polygon
2929
address cctpTokenMessenger = getL2Address(info.spokeChainId, "cctpV2TokenMessenger");
3030

31+
// Fee cap of 22K POL is roughly equivalent to $5K at current POL price of ~0.23
32+
uint256 oftFeeCap = 22000 ether;
33+
3134
vm.startBroadcast(deployerPrivateKey);
3235

3336
// Prepare constructor arguments for Polygon_SpokePool
@@ -38,7 +41,7 @@ contract DeployPolygonSpokePool is Script, Test, DeploymentUtils {
3841
getUSDCAddress(info.spokeChainId), // _usdc
3942
cctpTokenMessenger, // _cctpTokenMessenger
4043
getOftEid(info.hubChainId), // _oftDstEid
41-
1 ether // _oftFeeCap
44+
oftFeeCap // _oftFeeCap
4245
);
4346

4447
// Initialize deposit counter to very high number of deposits to avoid duplicate deposit ID's
@@ -78,6 +81,7 @@ contract DeployPolygonSpokePool is Script, Test, DeploymentUtils {
7881
console.log("QUOTE_TIME_BUFFER()", QUOTE_TIME_BUFFER());
7982
console.log("FILL_DEADLINE_BUFFER()", FILL_DEADLINE_BUFFER());
8083
console.log("OFT EID", getOftEid(info.hubChainId));
84+
console.log("OFT Fee Cap:", oftFeeCap);
8185

8286
vm.stopBroadcast();
8387
}

0 commit comments

Comments
 (0)