-
Notifications
You must be signed in to change notification settings - Fork 212
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
Loadgen vault close causes amountGiven or amountWanted must be greater than 0
#4114
Comments
I was unable to reproduce, and there was a suggestion that loadgen may not be useable on a Mac. |
I've updated instructions to avoid the loadgen runner which relies on Linux procfs |
FYI, I am still running into this error on master. |
That error message is generated in the AMM when it receives a swap request whose I don't see why this would be prompted by a request to close the vault. (Closing the vault shouldn't cause any interaction with the AMM.) Perhaps the loadgen task is checking the result of the previous transaction at that time? |
Ah, I see.
|
|
@Chris-Hibbert For proper project planning and tracking, this needs an area label covered by one of our weekly planning meetings. Please pick the appropriate one from: agd, agoric-cli, agoric-cosmos, amm, core economy, cosmic-swingset, endo, ertp, getrun, governance, installation-bundling, metering, oracle, pegasus, run-protocol, ses, staking, swingset, swingset-runner, tc39, token economy, tooling, ui, wallet, xsnap, zoe, zoe contract |
This is a bug in the AMM that is affecting loadgen. |
I thought no one needed to request zero prices, and so I threw in that case. #4114 reveals a situation where it will happen in ordinary circumstances. Change the AMM code to respond with an empty amount when an empty amount is offered, and vice versa.
Describe the bug
After #4026 landed, the chain started to print errors in the stderr (in verbose mode) when the loadgen's
create-vault
task performs a vault close.To Reproduce
Steps to reproduce the behavior:
agoric-sdk
on revisionb605a6a
or more recent,yarn && yarn build && make -C packages/cosmic-swingset
agoric
is in the $PATH (yarn link-cli
)mhofman/report-stage-results
branch of https://github.com/Agoric/testnet-load-generator/tree/mhofman/report-stage-results. The following all takes place in thetestnet-load-generator
directory.agoric install
agoric start local-chain --verbose
agoric start local-solo 8000 --verbose
Deployed Wallet!
in the output:yarn loadgen
curl -X PUT --data '{"vault":{"interval":600}}' http://127.0.0.1:3352/config
amountGiven or amountWanted must be greater than 0: {"brand":"[Alleged: RUN brand]","value":"[0n]"} {"brand":"[Alleged: BLD brand]","value":"[0n]"}
Expected behavior
No error in output
Platform Environment
agoric-sdk
revisionb605a6a
Additional context
Strangely the close offer succeeds, and the error is never surfaced to the client making requests.
This is the relevant
create-vault
code: https://github.com/Agoric/testnet-load-generator/blob/834421d023adb036f09eeb5500326b6fe9ff2499/loadgen/contract/agent-create-vault.js#L91-L105Screenshots
The relevant output of 2 cycles run before and after the PR landed: https://gist.github.com/mhofman/a07bc58efccd7cb42f9fb31814df8fe4
This is the deliveries resulting from the relevant loadgen code above:
The text was updated successfully, but these errors were encountered: