CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: underflow --> 3bb01b4bf2f0f2e83a413feeb6f3fb3021ce890db816569bcc4142358df9c440:13:319 | 13 | let I1B2sqr: UInt256 = SwapConfig.sqrt(I1B2);let I2B1sqr: UInt256 = SwapConfig.sqrt(I2B1);let fee: UInt256 = 997000000000000000;let feefee: UInt256 = 994009000000000000;let f1 = fee * I1B2sqr / scale * I2B1sqr / scale - I1B2;let f2 = fee * B2 / scale + feefee*I2/scale;let res = f1*scale/f2;let total: UFix64 = SwapConfig.ScaledUInt256ToUFix64(res) - 0.2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Loading...