Closed wakamex closed 1 year ago
got some more prints. this tells me it's crashing on burn.
=== HyperdriveLong: closeLong ===
HyperdriveLong: closeLong: _maturityTime 1719964800
HyperdriveLong: closeLong: _bondAmount 1
HyperdriveLong: closeLong: _minOutput 0
HyperdriveLong: closeLong: _destination 0x1bF0326E53EC6d86d97a1e5330d2c00DEF11B9da
HyperdriveLong: closeLong: _asUnderlying true
HyperdriveLong: closeLong: sharePrice 1000139434479340023
HyperdriveLong: closeLong: _bondAmount PRE-BURN 1
eth_getTransactionReceipt
Transaction: 0x0ee7db1cf9b96b7ffb144a843c232d7d7820d25b59512d286dac379be8afd7fb
Gas used: 54646
Error: reverted with 'Arithmetic over/underflow'
Block Number: 20
Block Hash: 0x17b8b8ba8a6b45c26587ff97d22019b71b5e30498b22452eec1916d2acd91a83
Block Time: "Tue, 04 Jul 2023 00:59:22 +0000"
even more prints. this tells me it's trying to burn something that doesn't exist.
=== MultiToken: burn ===
MultiToken: burn: tokenID: 452312848583266388373324160190187140051835877600158453279131187532630627456
MultiToken: burn: from: 0x1bF0326E53EC6d86d97a1e5330d2c00DEF11B9da
MultiToken: burn: amount: 1
MultiToken: burn: next line: _balanceOf[tokenID][from] -= amount
MultiToken: burn: PRE-BURN _balanceOf[tokenID][from] 0
at this point thinking it's an error in the evm_bots
code as the agent is trying to close a position with 0 size.
will verify this, then close this issue, if confirmed.
Hyperdrive team don't worry about this for now. I'm actively rewriting evm_bots
so I'll revisit this bug once I'm done.
this issue is likely caused by or related to this issue on the elf-sims side, which we should resolve first, before doing any more work on the solidity bug: https://github.com/delvtech/elf-simulations/issues/637
Closing because this isn't a Hyperdrive issue.
hyperdrive commit: 661b4181b990da0ccf01d44ca8a7fb5d8352b2be elf-simulations commit: ed7ed8497570a2007f27dc9dd5e4c250568f5dc0
replication steps:
anvil --tracing --code-size-limit=9999999999999999 --load-state anvil_crash.json"
python examples/evm_bots.py profile_crash.json