Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> bef4065bb0274a0449a0aa794284d5ec0a8dd9494f0244d01165c784a4bed5a0:34:8
|
34 | self.heartbeat.tick(scope: "TradablePool")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> b7248baa24a95c3f.FixesHeartbeat:92:24
|
92 | hookRef.onHeartbeat(deltaTime)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> b7248baa24a95c3f.FixesTradablePool:1465:12
|
1465 | self.transferLiquidity()
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> b7248baa24a95c3f.FixesTradablePool:1027:19
|
1027 | return self._transferLiquidity()
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: panic: The swap token1In is greater than the token1Max. 34461.99000000 > 198.99450000 swapPrice: 1184035572 bcPrice: 70900000000000
--> b7248baa24a95c3f.FixesTradablePool:1678:28
|
1678 | panic("The swap token1In is greater than the token1Max. "
1679 | .concat(swapToken1In.toString())
1680 | .concat(" > ")
1681 | .concat(token1Max.toString())
1682 | .concat(" swapPrice: ")
1683 | .concat(scaledSwapPrice.toString())
1684 | .concat(" bcPrice: ")
1685 | .concat(scaledTokenInPoolPrice.toString())
1686 | )
| ^