You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In validation testing the second half of #7784 - impact to reserve metrics, two issues were observed:
Total amounts distributed were less than what is going in (assets missing) - 14.99 (returned to vault) + 14.99 (returned to vault) + 10.01 (bid payout) + 3.575 (bid payout) + 1.107 (ATOM in reserve) vs 45 ATOM
vaults seem to have too much and no longer match expectations (each reconstituted vault was expected to receive 14.889 ATOM / 100.5 IST and 14.896 ATOM / 103.51 IST back after reconstitution but had 14.99 ATOM /100.5IST and 14.99 ATOM/ 103.51 IST respectively)
In the unit test that replicates this scenario, the numbers have a little more resolution. Because of rounding, they don't match the spreadsheet. The UI does some truncation, so it doesn't display all the low-order bits.
Early on, distributeProceeds subtracts out the penalty, and doesn't add it back before sending what should be all the leftovers to the reserve. That leaks the penalty (.310 in this case)
Describe the bug
In validation testing the second half of #7784 - impact to reserve metrics, two issues were observed:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Platform Environment
git describe --tags --always
)Additional context
Reserve metrics before auction:
root@3ac654d9e579:/usr/src/agoric-sdk# agoric follow -lF :published.reserve.metrics
{
allocations: {},
shortfallBalance: {
brand: slotToVal("board0257","Alleged: IST brand"),
value: 0n,
},
totalFeeBurned: {
brand: slotToVal("board0257"),
value: 0n,
},
totalFeeMinted: {
brand: slotToVal("board0257"),
value: 0n,
Reserve metrics after:
Reserve after:
allocations: {
ATOM: {
brand: slotToVal("board05557","Alleged: ATOM brand"),
value: 1107181n, (1.107 IST)
},
Fee: {
brand: slotToVal("board0257","Alleged: IST brand"),
value: 2135000n, (2.1 IST)
},
},
shortfallBalance: {
brand: slotToVal("board0257"),
value: 5525000n, (5.525)
},
totalFeeBurned: {
brand: slotToVal("board0257"),
value: 0n,
},
totalFeeMinted: {
brand: slotToVal("board0257"),
value: 0n,
Screenshots
The text was updated successfully, but these errors were encountered: