Open ezera23 opened 2 years ago
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
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
Is it normal to have 10 billions in my transaction debug as loanAmount and I set only 10000 as loan amount