TSwap Handler Test Error... #220
Unanswered
AllenGeorge08
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Hey @AllenOps08, Can you look into why your test is reverting with [27027] Handler::swapPoolTokenForWethBasedOnOutputWeth(320143 [3.201e5])
├─ [281] TSwapPool::getMinimumWethDepositAmount() [staticcall]
│ └─ ← [Return] 1000000000 [1e9]
├─ [2562] ERC20Mock::balanceOf(TSwapPool: [0x4f81992FCe2E1846dD528eC0102e6eE1f61ed3e2]) [staticcall]
│ └─ ← [Return] 50000000000000000000 [5e19]
├─ [0] console::log("Bound result", 49999999999000320144 [4.999e19]) [staticcall]
│ └─ ← [Stop]
├─ [562] ERC20Mock::balanceOf(TSwapPool: [0x4f81992FCe2E1846dD528eC0102e6eE1f61ed3e2]) [staticcall]
│ └─ ← [Return] 50000000000000000000 [5e19]
├─ [2562] ERC20Mock::balanceOf(TSwapPool: [0x4f81992FCe2E1846dD528eC0102e6eE1f61ed3e2]) [staticcall]
│ └─ ← [Return] 100000000000000000000 [1e20]
├─ [545] TSwapPool::getInputAmountBasedOnOutput(49999999999000320144 [4.999e19], 100000000000000000000 [1e20], 18446744073709551615 [1.844e19]) [staticcall]
│ └─ ← [Revert] panic: arithmetic underflow or overflow (0x11)
└─ ← [Revert] panic: arithmetic underflow or overflow (0x11) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey , there's still a error with how my values are bounded. Patrick's test is passing but mine is not
Here's the output
And here's my handler file
Beta Was this translation helpful? Give feedback.
All reactions