tx · Hao2VRs3MkcUxuNLuRSteBZ8tWN73pnXu3k23qZS6GpY

3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3:  -0.00100000 Waves

2022.08.08 23:24 [2175960] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves

{ "type": 13, "id": "Hao2VRs3MkcUxuNLuRSteBZ8tWN73pnXu3k23qZS6GpY", "fee": 100000, "feeAssetId": null, "timestamp": 1659990295314, "version": 2, "chainId": 84, "sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3", "senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE", "proofs": [ "4dRGo4hXFy7SaEnzfPHbfYNukzcXmxhyprB13h38BxnDcKoPQvxQ7QKNz7J27e4CW5c4Z72E5kfEWCEEMieJdLi2" ], "script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBXByaWNlCQB2BgkAtgIBAICA+b7rtMTwDQASCQC2AgEFCE1BWF9USUNLAAAAEgUGSEFMRlVQCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIEdGVzdAkA2gQBCQCdAwEFBXByaWNlBQNuaWwFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABllBc40=", "height": 2175960, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ECRUxgrVwoKbc8iLoULFTxDgGCZoN87LUsGYpYUsfSVM Next: BetErnQtvuV2VGihGaHyTiqo1ywUJUQdcrfSZdYBLnhH Diff:
OldNewDifferences
1515 else unit
1616 if ((err == err))
1717 then {
18- let price = pow(toBigInt(1000100000000000000), 18, toBigInt(tick), 0, 18, HALFUP)
18+ let price = pow(toBigInt(1000100000000000000), 18, toBigInt(MAX_TICK), 0, 18, HALFUP)
1919 $Tuple2([StringEntry("test", toBase64String(toBytes(price)))], unit)
2020 }
2121 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let MIN_TICK = -887272
55
66 let MAX_TICK = -(MIN_TICK)
77
88 @Callable(i)
99 func getSqrtRatioAtTick (tick) = {
1010 let absTick = if ((0 > tick))
1111 then (tick * -1)
1212 else tick
1313 let err = if ((tick > MAX_TICK))
1414 then throw("invalid tick")
1515 else unit
1616 if ((err == err))
1717 then {
18- let price = pow(toBigInt(1000100000000000000), 18, toBigInt(tick), 0, 18, HALFUP)
18+ let price = pow(toBigInt(1000100000000000000), 18, toBigInt(MAX_TICK), 0, 18, HALFUP)
1919 $Tuple2([StringEntry("test", toBase64String(toBytes(price)))], unit)
2020 }
2121 else throw("Strict value is not equal to itself.")
2222 }
2323
2424
2525 @Verifier(tx)
2626 func verify () = true
2727

github/deemru/w8io/169f3d6 
22.50 ms