1

The fix is to refactor you code to make it smaller. You could reduce the code size by using Struct and libraries that act as external storage and help reduce the overall size of the contract. You can also encode your data to pass only one argument to the function, This will make your function smaller. In other words, your contract is to big.


1

1000148245 is a representation in wei. To display amount in UI, you can divide it using 1018. In ethers.js there is a method that helps you do that: import { ethers } from 'ethers'; ethers.utils.formatEther('1000148245'); // gives "0.000000001000148245"


Only top voted, non community-wiki answers of a minimum length are eligible