0

I want to input the following values to this function

function rebase(uint256 epoch, int256 supplyDelta)
  • epoch (5 minutes later)
  • supplyDelta -0.000000000000001

I tried doing so in remix but got an error. How to resolve this issue?

errored: Error encoding arguments: Error: invalid BigNumber string (argument="value", value="-0.000000000000001", code=INVALID_ARGUMENT, version=bignumber/5.4.1)

1 Answer 1

1

Wierd, it seems to read your input as 1*10^-15, you sure you really typed -1*10^15? anyways if it still doesnt work after double checking i suggest inputting the full number with all the 0s written

10
  • 1
    I inputted -0.000000000000001 , made the correction in my code
    – mzaidi
    Oct 2, 2021 at 18:47
  • Im still facing this issue. Unresolved till now
    – mzaidi
    Oct 3, 2021 at 8:16
  • using -1000000000000000 directly doesnt work either?
    – Foxxxey
    Oct 3, 2021 at 10:38
  • That is a different number. I want to use "-0.000000000000001" specifically
    – mzaidi
    Oct 3, 2021 at 10:41
  • Oh, thats not what your question was at first lol. Well you cant. There's no decimals in solidity
    – Foxxxey
    Oct 3, 2021 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.