Skip to content

Commit 111190e

Browse files
committed
fixed formatting
1 parent 12bc86d commit 111190e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/ampleforth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const BigNumber = require('bignumber.js');
44
const AMPL_DECIMALS = 9;
55

66
const toAmplFloatingPt = (ample) =>
7-
ethers.utils.formatUnits(ample.toString(), AMPL_DECIMALS);
7+
ethers.utils.formatUnits(`${ample}`, AMPL_DECIMALS);
88

99
const toAmplFixedPt = (ample) =>
10-
ethers.utils.parseUnits(ample.toString(), AMPL_DECIMALS);
10+
ethers.utils.parseUnits(`${ample.toFixed(AMPL_DECIMALS)}`, AMPL_DECIMALS);
1111

1212
const INITIAL_SUPPLY = ethers.utils.parseUnits('50', 6 + AMPL_DECIMALS);
1313
const AMPL_ORACLE_DECIMALS = 18;

0 commit comments

Comments
 (0)