unimath.py token decimal use #51
Unanswered
Tiergarten
asked this question in
Milestone 1. First Swap
Replies: 1 comment 1 reply
-
I think the tokens are minted and do not correspond to the standard ETH and USDC, when we deploy those tokens we specify the number of decimals (which is the same in our deployment parameters). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When doing a Swap for USDC to ETH and a swap for ETH to USDC in the book (Milestone 1: First Swap and
unimath.py
) you use the samedecimals
multiplier for bothamount_in
calculations:Is this correct? I'd expect when sending in USDC it needs to me multiplied by the
decimals
from the USDC ERC-20 contract (I think this is 6 decimal places).Thanks,
Matt
Beta Was this translation helpful? Give feedback.
All reactions