-
Notifications
You must be signed in to change notification settings - Fork 24
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
fabricateMarketRedeemStable redeemed amount in aUST and not UST #14
Comments
It looks like within the anchor-earn/src/facade/terra-anchor-earn.ts Line 275 in cfddf82
But the docs indicate that the amount being passed into that function are denominated in the |
Hello there, thanks for your report. As far as I understood, you are using message fabricators not anchor-earn itself. But, using the anchor-earn
I think you are using message fabricators that withdraw |
Yes, we are using fabricators on purpose since we are generating the tx to be serialized and signed elsewhere. We require specifying the UST amount to be withdrawn vs. the aUST amount. The confusing part is that both |
If you use anchor-earn for only fabricators, I recommend using anchor-earn/src/facade/terra-anchor-earn.ts Line 275 in cfddf82
For the confusion, the currency related to fabricators is market currencies, which for now, we have only UST. |
My main question is: How would I specify that I want to withdraw anchor-earn/src/facade/terra-anchor-earn.ts Line 275 in cfddf82
|
yes exactly like that. My point was, |
Thanks for clarifying. My point was that the way the params are documented in the code and the inconsistency between deposit and redeem fabricators made that confusing :) |
Thanks for the report, We will reflect that on the document. May I close this issue? |
I would expect this to withdraw
0.5 UST
and not0.5 aUST
This was with
1.1.0-alpha.2
and usingbombay-12
.This is how I was calling the function:
And here is the tx:
https://finder.terra.money/bombay-12/address/terra1cq8l6fxx5gfs9qde80f2rcp7n0j020zwffrlx0
The text was updated successfully, but these errors were encountered: