Flow price: --
01d4b08b9d55cc89f9182fe3d5320b1a0d7b5313df983bd975fad1905c1b33aa

Transaction

Hash: 01d4b08b9d55cc89f9182fe3d5320b1a0d7b5313df983bd975fad1905c1b33aa
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
 --> 01d4b08b9d55cc89f9182fe3d5320b1a0d7b5313df983bd975fad1905c1b33aa:4:3
  |
4 | 			signer.contracts.add(name: name, code: code.decodeHex() )
  | 			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `sqrt`
   --> 9829c926abe95d7c.SwapConfig:155:31
    |
155 |             if (C1 < C2) { D = sqrt(B * B / self.scaleFactor + 4 * (C2-C1)*self.scaleFactor/f) }
    |                                ^^^^ not found in this scope

error: cannot find variable in this scope: `sqrt`
   --> 9829c926abe95d7c.SwapConfig:156:23
    |
156 |             else { D = sqrt(B * B / self.scaleFactor - 4 * (C1-C2)*self.scaleFactor/f) }
    |                        ^^^^ not found in this scope


Hash:
01d4b08b9d55cc89f9182fe3d5320b1a0d7b5313df983bd975fad1905c1b33aa
Status:
ERROR
Block height:
69497192
Block id:
c23a5a6e742231d6cf1ad105b52a1546758a9918aecb488e7588aee039f6b080
Timestamp:
Tuesday 9 January 2024 at 06:30:56 UTC
()
Proposer:
Authorizers: