Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding USDT with 18 decimals gets 1:1 anchorPerMinted despite 6 decimals for IST #6337

Closed
dckc opened this issue Sep 27, 2022 · 0 comments · Fixed by #6348
Closed

adding USDT with 18 decimals gets 1:1 anchorPerMinted despite 6 decimals for IST #6337

dckc opened this issue Sep 27, 2022 · 0 comments · Fixed by #6348
Assignees
Labels
bug Something isn't working Inter-protocol Overarching Inter Protocol

Comments

@dckc
Copy link
Member

dckc commented Sep 27, 2022

In ollinet, I added a PSM for USDT with decimalPlaces: 18 using startPSM() as usual, not realizing that it sets anchorPerMinted 1:1 irrespective of decimalPlaces:

anchorPerMinted: makeRatio(100n, anchorBrand, 100n, stable),

I tried to trade 0.2 USDT for IST and the trade failed with Request would exceed mint limit, which puzzled me, because I set the mint limit to 123456_000_000n. The mint limit is in uist, which prompted me to realize that this trade was asking for a lot of IST (roughly 2e11 = 0.2 * 1e18/1e6).

cc @warner @rowgraus @turadg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inter-protocol Overarching Inter Protocol
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants