-
Notifications
You must be signed in to change notification settings - Fork 208
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
agoricdev-7: Error when opening vaults #4407
Comments
Can you get a stack trace out of your ag-solo as well as a gui error message? Or as you noted, try 2b0ce50 outside docker / devnet. |
The console in the wallet doesn't show an error, and the treasury console just shows an unhelpful |
Just tested |
My two ideas for what's wrong are:
|
Wondering if this is a duplicate of Agoric/dapp-treasury#47. In that instance i'm pretty sure i'm running the chain locally, but I'm almost certain i've run into this issue on devnet. Can you confirm that you have RUN in your wallet's Zoe Fees Purse? |
Yep I have RUN in the fee purse, and I did try overcollateralizing to be safe to no avail. |
I'm going to try and submit a bug report on hackerone when I have a moment, but last night I managed to reproduce this and actually run into some other issues. Not sure how helpful it is but below is a quick screengrab i took last night. Screenflick.Movie.15.mp4In that instance, the offer actually succeeds and I get the USDC requested, but this error still appears in the stack trace. 🤔 Hope it's useful info! |
@samsiegart, here is the stack trace I found on-chain from when you get the conservation error:
Looking at const reallocateReward = (amount, fromSeat, otherSeat = undefined) => {
rewardPoolSeat.incrementBy(
fromSeat.decrementBy(
harden({
RUN: amount,
}),
),
);
if (otherSeat !== undefined) {
zcf.reallocate(rewardPoolSeat, fromSeat, otherSeat); // THIS LINE
} else {
zcf.reallocate(rewardPoolSeat, fromSeat);
}
}; the above-marked @dtribble can you PTAL at this when you have a chance? I don't know who else is available right now that understands the stablecoin machine. |
The stack trace tells me that this is called from line 462 of I don't see what could do this. |
Can you take another look at the handling of stagings that are empty/zero values? We'd seen problems in Zoe around this edge case before. |
From what I see, empty stagings should be handled fine. the rights conservation check adds up all the amounts aggregated by brand regardless of keyword from both allocations and stagings of all the named seats. Empty amounts should aggregate as zeros. The error that I remember happening previously with staging had to do with a The one helpful thing I can think of to do is to add logging where |
Is there a way you could easily add this (I'd be happy to review the PR) so that it gets into the devnet release next week? |
When does the release get cut? I should be able to do it tomorrow. |
Tomorrow is fine. I'm making motions towards a release on the weekend or Monday. Oh, and just to confirm, the logging around this exception needs to be arguments to the |
@samsiegart Can you please try to reproduce this and get a Zoe stack trace? Then we can determine who should take it from there. |
Closing because this is from agoricdev-7. If we're not able to open vaults in the latest devnet when expected then we can create another issue (with the relevant stack traces that @Chris-Hibbert improved in the linked PR). |
Describe the bug
When trying to open a vault via https://treasury.agoric.app on
agoricdev-7
, the following error occurs:Error: rights were not conserved for brand (an object)
Possibly related to #3850
To Reproduce
Steps to reproduce the behavior:
agoricdev-7
)Expected behavior
The vault is opened and RUN is received with no error
Platform Environment
agoricdev-7
via docker (https://github.com/Agoric/agoric-sdk/wiki/Setting-up-an-Agoric-Dapp-Client-with-docker-compose)Additional context
The vaults work when running the sdk locally with the latest changes, just not on the current devnet release. I tried increasing the collateralization percent when opening the vault but still experienced the issue.
Screenshots
The text was updated successfully, but these errors were encountered: