Skip to content

Commit

Permalink
fix: foundry.toml swell rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
nlecoufl committed Dec 3, 2024
1 parent 31794f4 commit eb0c719
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ worldchain = "${WORLDCHAIN_NODE_URI}"
lisk = "${LISK_NODE_URI}"
etherlink = "${ETHERLINK_NODE_URI}"
arthera = "${ARTHERA_NODE_URI}"

swell = "${SWELL_NODE_URI}"
[etherscan]
localhost = { url = "http://localhost:4000", key = "${LOCALHOST_ETHERSCAN_API_KEY}" }
mainnet = { chainId = 1, key = "${MAINNET_ETHERSCAN_API_KEY}", url = "https://api.etherscan.io/api" }
Expand Down
14 changes: 12 additions & 2 deletions scripts/merklDeploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,19 @@ contract MainDeployScript is Script, JsonReader, TokensUtils, CreateXConstants {
// Set dispute amount to 100 tokens (18 decimals)
string memory symbol = MockToken(disputeToken).symbol();
uint8 decimals = MockToken(disputeToken).decimals();
console.log("Setting dispute amount to 100", symbol);
console.log("Token decimals:", decimals);
distributor.setDisputeAmount(100 * 10 ** decimals);
if (
keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked("EURA")) ||
keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked("USDC")) ||
keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked("USDT"))
) {
console.log("Setting dispute amount to 100", symbol);
distributor.setDisputeAmount(100 * 10 ** decimals);
}
if (keccak256(abi.encodePacked(symbol)) == keccak256(abi.encodePacked("WETH"))) {
console.log("Setting dispute amount to 0.03", symbol);
distributor.setDisputeAmount(3 * 10 ** (decimals - 2));
}
}

/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit eb0c719

Please sign in to comment.