loanAmount: 10000000000,
ezera23 opened this issue · 2 comments
ezera23 commented
Is it normal to have 10 billions in my transaction debug as loanAmount and I set only 10000 as loan amount
ezera23 commented
I made another try by changing the const loanAmount to 1000 in config.ts and still have 10billion in the debug. let me know if its just some 0 added due to format number thanks
yuichiroaoki commented
That probably shows the numbers in wei not in unit.
You can format that number with ethers.js.
ref.
https://docs.ethers.io/v5/api/utils/display-logic/#utils-formatUnits