-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bid with DAI logic #163
Bid with DAI logic #163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I was able to bid on an auction the way described in the initial comment. See: https://kovan.etherscan.io/tx/0xa626deff5b45a71a3210e75514e48d27d00883ed8dd06f4cec81bfb8763cd107
- Dai was withdrawn from VAT
- However, I was expecting to receive the 0.1 ETH (=
Auction amount
) in my wallet. This is not true. AFAIK the ETH wallet balance did not change- Same for execution of a
BAL
auction ->BAL
funds did not end up in wallet
- Same for execution of a
According to the execution trace it seems like the collateral ended up in the VAT, using Therefore, we may actually need initially proposed "collateral withdrawal" step 🙁 |
:( yes, seems like it. So we definitely need a solution for a user to get the funds in the wallet
Yes. Is there an easy command to fetch VAT balance for a certain collateral? Similar to the one we use for Dai. Just in order to doublecheck that collateral ends up in VAT associated with wallet address |
Not really. Here is where they are stored in vat contract. So in order to get this number, you need to:
So it's actually less than unified-auctions-ui/core/src/price.ts Lines 44 to 55 in 5494c08
But I think we should open another PR for both implementing |
Yes, with the caveat that in the case of Dai bidding it also affects to amount to bid. So I assume the total amount to bid is not always So going to approve this PR and we need to figure out |
No, that's impossible because |
Contributes to #160
In order to test:
ETH-A:120
Auction Price Total
)$nuxt.$store.dispatch("modals/setWalletModalAndFetchData", true)
Note: this will bid total amount.