diff --git a/simulations/vip-173/abi/CelerBridge.json b/simulations/vip-173/abi/CelerBridge.json deleted file mode 100644 index 82f0a0a68..000000000 --- a/simulations/vip-173/abi/CelerBridge.json +++ /dev/null @@ -1,607 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "uint256", "name": "period", "type": "uint256" }], - "name": "DelayPeriodUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "threshold", "type": "uint256" } - ], - "name": "DelayThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "bytes32", "name": "id", "type": "bytes32" }], - "name": "DelayedTransferAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "bytes32", "name": "id", "type": "bytes32" }, - { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "DelayedTransferExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "uint256", "name": "length", "type": "uint256" }], - "name": "EpochLengthUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "cap", "type": "uint256" } - ], - "name": "EpochVolumeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "GovernorAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "GovernorRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "uint64", "name": "seqnum", "type": "uint64" }, - { "indexed": false, "internalType": "address", "name": "provider", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "LiquidityAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "MaxSendUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "MinAddUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "MinSendUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, - { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "Paused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "PauserAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "PauserRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "bytes32", "name": "transferId", "type": "bytes32" }, - { "indexed": false, "internalType": "address", "name": "sender", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": false, "internalType": "uint64", "name": "srcChainId", "type": "uint64" }, - { "indexed": false, "internalType": "bytes32", "name": "srcTransferId", "type": "bytes32" } - ], - "name": "Relay", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "uint256", "name": "resetTime", "type": "uint256" }], - "name": "ResetNotification", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "bytes32", "name": "transferId", "type": "bytes32" }, - { "indexed": false, "internalType": "address", "name": "sender", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": false, "internalType": "uint64", "name": "dstChainId", "type": "uint64" }, - { "indexed": false, "internalType": "uint64", "name": "nonce", "type": "uint64" }, - { "indexed": false, "internalType": "uint32", "name": "maxSlippage", "type": "uint32" } - ], - "name": "Send", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "address[]", "name": "_signers", "type": "address[]" }, - { "indexed": false, "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" } - ], - "name": "SignersUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], - "name": "Unpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "internalType": "bytes32", "name": "withdrawId", "type": "bytes32" }, - { "indexed": false, "internalType": "uint64", "name": "seqnum", "type": "uint64" }, - { "indexed": false, "internalType": "address", "name": "receiver", "type": "address" }, - { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, - { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "indexed": false, "internalType": "bytes32", "name": "refid", "type": "bytes32" } - ], - "name": "WithdrawDone", - "type": "event" - }, - { - "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }], - "name": "addGovernor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_token", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "addLiquidity", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], - "name": "addNativeLiquidity", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], - "name": "addPauser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "addseq", - "outputs": [{ "internalType": "uint64", "name": "", "type": "uint64" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "delayPeriod", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "delayThresholds", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "delayedTransfers", - "outputs": [ - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "timestamp", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "epochLength", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "epochVolumeCaps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "epochVolumes", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "id", "type": "bytes32" }], - "name": "executeDelayedTransfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "governors", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "period", "type": "uint256" }], - "name": "increaseNoticePeriod", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], - "name": "isPauser", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "lastOpTimestamps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxSend", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "minAdd", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "minSend", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "minimalMaxSlippage", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nativeWrap", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "noticePeriod", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "notifyResetSigners", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [], - "name": "paused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "pausers", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "_relayRequest", "type": "bytes" }, - { "internalType": "bytes[]", "name": "_sigs", "type": "bytes[]" }, - { "internalType": "address[]", "name": "_signers", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" } - ], - "name": "relay", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }], - "name": "removeGovernor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], - "name": "removePauser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [], "name": "renounceGovernor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { "inputs": [], "name": "renouncePauser", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { "internalType": "address[]", "name": "_signers", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" } - ], - "name": "resetSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "resetTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_receiver", "type": "address" }, - { "internalType": "address", "name": "_token", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { "internalType": "uint64", "name": "_dstChainId", "type": "uint64" }, - { "internalType": "uint64", "name": "_nonce", "type": "uint64" }, - { "internalType": "uint32", "name": "_maxSlippage", "type": "uint32" } - ], - "name": "send", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_receiver", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { "internalType": "uint64", "name": "_dstChainId", "type": "uint64" }, - { "internalType": "uint64", "name": "_nonce", "type": "uint64" }, - { "internalType": "uint32", "name": "_maxSlippage", "type": "uint32" } - ], - "name": "sendNative", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_period", "type": "uint256" }], - "name": "setDelayPeriod", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_thresholds", "type": "uint256[]" } - ], - "name": "setDelayThresholds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "_length", "type": "uint256" }], - "name": "setEpochLength", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_caps", "type": "uint256[]" } - ], - "name": "setEpochVolumeCaps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "setMaxSend", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "setMinAdd", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "setMinSend", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint32", "name": "_minimalMaxSlippage", "type": "uint32" }], - "name": "setMinimalMaxSlippage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "_weth", "type": "address" }], - "name": "setWrap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "ssHash", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "transfers", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "triggerTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { "internalType": "uint256", "name": "_triggerTime", "type": "uint256" }, - { "internalType": "address[]", "name": "_newSigners", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_newPowers", "type": "uint256[]" }, - { "internalType": "bytes[]", "name": "_sigs", "type": "bytes[]" }, - { "internalType": "address[]", "name": "_curSigners", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_curPowers", "type": "uint256[]" } - ], - "name": "updateSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "_msg", "type": "bytes" }, - { "internalType": "bytes[]", "name": "_sigs", "type": "bytes[]" }, - { "internalType": "address[]", "name": "_signers", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" } - ], - "name": "verifySigs", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "_wdmsg", "type": "bytes" }, - { "internalType": "bytes[]", "name": "_sigs", "type": "bytes[]" }, - { "internalType": "address[]", "name": "_signers", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_powers", "type": "uint256[]" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "withdraws", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } -] diff --git a/simulations/vip-173/simulations.ts b/simulations/vip-173/simulations.ts index 22395b1d0..c2ebe2438 100644 --- a/simulations/vip-173/simulations.ts +++ b/simulations/vip-173/simulations.ts @@ -1,5 +1,4 @@ import { TransactionResponse } from "@ethersproject/providers"; -import { anyValue } from "@nomicfoundation/hardhat-chai-matchers/withArgs"; import { expect } from "chai"; import { BigNumber } from "ethers"; import { Contract } from "ethers"; @@ -9,50 +8,34 @@ import { ethers } from "hardhat"; import { expectEvents } from "../../src/utils"; import { forking, testVip } from "../../src/vip-framework"; import { - CELER_BRIDGE, - CODE4RENA_RECEIVER, - NORMAL_TIMELOCK, + COMMUNITY_WALLET, PECKSHIELD_RECEIVER, USDC, vip173, } from "../../vips/vip-173"; -import CELER_BRIDGE_ABI from "./abi/CelerBridge.json"; import IERC20_ABI from "./abi/IERC20UpgradableAbi.json"; import VTREASURY_ABI from "./abi/VTreasury.json"; -const AMOUNT_TO_BRIDGE = parseUnits("42000", 18); +const AMOUNT_TO_REFUND = parseUnits("42000", 18); const PECKSHIELD_AMOUNT = parseUnits("5000", 18); forking(31966000, () => { let usdc: Contract; let prevBalancePeckShield: BigNumber; - let prevBalanceBridge: BigNumber; + let prevBalanceCommunityWallet: BigNumber; before(async () => { usdc = await ethers.getContractAt(IERC20_ABI, USDC); prevBalancePeckShield = await usdc.balanceOf(PECKSHIELD_RECEIVER); - prevBalanceBridge = await usdc.balanceOf(CELER_BRIDGE); + prevBalanceCommunityWallet = await usdc.balanceOf(COMMUNITY_WALLET); }); testVip("VIP-173", vip173(), { proposer: "0xc444949e0054a23c44fc45789738bdf64aed2391", supporter: "0x55A9f5374Af30E3045FB491f1da3C2E8a74d168D", callbackAfterExecution: async (tx: TransactionResponse) => { - await expectEvents(tx, [VTREASURY_ABI, IERC20_ABI], ["WithdrawTreasuryBEP20", "Transfer"], [2, 3]); - const bridge = await ethers.getContractAt(CELER_BRIDGE_ABI, CELER_BRIDGE); - await expect(tx) - .to.emit(bridge, "Send") - .withArgs( - anyValue, - NORMAL_TIMELOCK, - CODE4RENA_RECEIVER, - USDC, - AMOUNT_TO_BRIDGE, - 1, - anyValue, - parseUnits("0.01", 6), - ); - }, + await expectEvents(tx, [VTREASURY_ABI, IERC20_ABI], ["WithdrawTreasuryBEP20", "Transfer"], [2, 2]); + } }); describe("Post-VIP behavior", async () => { @@ -62,10 +45,10 @@ forking(31966000, () => { expect(delta).equals(PECKSHIELD_AMOUNT); }); - it("should increase the balance of the bridge", async () => { - const currentBalance = await usdc.balanceOf(CELER_BRIDGE); - const delta = currentBalance.sub(prevBalanceBridge); - expect(delta).equals(AMOUNT_TO_BRIDGE); + it("should increase the balance of the community wallet", async () => { + const currentBalance = await usdc.balanceOf(COMMUNITY_WALLET); + const delta = currentBalance.sub(prevBalanceCommunityWallet); + expect(delta).equals(AMOUNT_TO_REFUND); }); }); }); diff --git a/vips/vip-173.ts b/vips/vip-173.ts index 5b201923a..a0eef4ce0 100644 --- a/vips/vip-173.ts +++ b/vips/vip-173.ts @@ -6,10 +6,9 @@ import { makeProposal } from "../src/utils"; export const TREASURY = "0xF322942f644A996A617BD29c16bd7d231d9F35E9"; export const NORMAL_TIMELOCK = "0x939bD8d64c0A9583A7Dcea9933f7b21697ab6396"; export const USDC = "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"; -export const CELER_BRIDGE = "0xdd90E5E87A2081Dcf0391920868eBc2FFB81a1aF"; export const PECKSHIELD_RECEIVER = "0x24ee02a67c64f66ca5bcf9352f6701b46dcedff1"; -export const CODE4RENA_RECEIVER = "0xC2bc2F890067C511215f9463a064221577a53E10"; +export const COMMUNITY_WALLET = "0xc444949e0054A23c44Fc45789738bdF64aed2391"; export const vip173 = () => { const meta = { @@ -52,29 +51,7 @@ Code4rena — Venus Prime { target: TREASURY, signature: "withdrawTreasuryBEP20(address,uint256,address)", - params: [USDC, parseUnits("42000", 18), NORMAL_TIMELOCK], - }, - { - target: USDC, - signature: "approve(address,uint256)", - params: [CELER_BRIDGE, parseUnits("42000", 18)], - }, - { - target: CELER_BRIDGE, - signature: "send(address,address,uint256,uint64,uint64,uint32)", - params: [ - CODE4RENA_RECEIVER, // _receiver - USDC, // _token - parseUnits("42000", 18), // _amount - 1, // _dstChainId - 1695390016, // _nonce - parseUnits("0.01", 6), // _maxSlippage - ], - }, - { - target: USDC, - signature: "approve(address,uint256)", - params: [CELER_BRIDGE, 0], + params: [USDC, parseUnits("42000", 18), COMMUNITY_WALLET], }, ], meta,