Skip to content

Commit 9dcde67

Browse files
authored
fix: funding proposal script (#4814)
Signed-off-by: Reinis Martinsons <[email protected]>
1 parent 2333faa commit 9dcde67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/scripts/src/admin-proposals/funding/0_Propose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// yarn hardhat run ./src/admin-proposals/funding/0_Propose.ts --network <network>
1010

1111
import { strict as assert } from "assert";
12-
import { BigNumber, Signer } from "ethers";
12+
import { BigNumber, Signer, utils as ethersUtils } from "ethers";
1313
import hre from "hardhat";
1414
import { getGckmsSigner } from "@uma/common";
1515
import { getAddress, ERC20Ethers, ProposerV2Ethers, VotingTokenEthers } from "@uma/contracts-node";
@@ -77,7 +77,7 @@ async function getAndVerifyFundingAmount(
7777
// Get amount scaled by decimals.
7878
const token = await getContractInstance<ERC20Ethers>("ERC20", params.tokenAddress);
7979
const decimals = await token.decimals();
80-
const fundingAmount = BigNumber.from(params.amount).mul(BigNumber.from(10).pow(decimals));
80+
const fundingAmount = ethersUtils.parseUnits(params.amount.toString(), decimals);
8181

8282
// Verify that GovernorV2 has sufficient balance.
8383
const governorV2Address = await getAddress("GovernorV2", 1);

0 commit comments

Comments
 (0)