tx · G1YU8jSUSc7ysinrv8ML7so24dsUkxQRYfCjNK7D79uD

3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3:  -0.00100000 Waves

2022.08.09 10:48 [2176645] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves

{ "type": 13, "id": "G1YU8jSUSc7ysinrv8ML7so24dsUkxQRYfCjNK7D79uD", "fee": 100000, "feeAssetId": null, "timestamp": 1660031353803, "version": 2, "chainId": 84, "sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3", "senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE", "proofs": [ "2KBaikYsfZv7ivM8oL2WnNV9TZmd5roNPtqyrxbxvSLyMGjgTjraYndBFuFuVEQEnT5uwafXEQmVKfvQqbgPR1Ti" ], "script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBnByaWNlMQkAdgYJALYCAQCRTgAECQC2AgEAAQAAAAQFBERPV04EBnByaWNlMgkAdgYJALYCAQCRTgAECQC2AgEAAQAAABIFBERPV04EBnByaWNlMwkAdgYJALYCAQCRTgAECQC2AgEAAgAAAAQFBERPV04EBnByaWNlNAkAdgYJALYCAQCRTgAECQC2AgEAAgAAABIFBERPV04EBnByaWNlNQkAbAYAFAABAP///////////wEAAAAEBQRET1dOBAZwcmljZTYJAHYGCQC2AgEAFAABCQC2AgEA////////////AQAAAAQFBERPV04JAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8xCQCmAwEFBnByaWNlMQkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8yCQCmAwEFBnByaWNlMgkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8zCQCmAwEFBnByaWNlMwkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV80CQCmAwEFBnByaWNlNAkAzAgCCQEMSW50ZWdlckVudHJ5AgIHcHJpY2VfNQUGcHJpY2U1CQDMCAIJAQtTdHJpbmdFbnRyeQICB3ByaWNlXzYJAKYDAQUGcHJpY2U2BQNuaWwFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABqGCzxY=", "height": 2176645, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6KzZUThcF2K6fpPaAGtWkvdLyMGwDx7kPt8vCp4wgwrT Next: F9mSLB9e7t9acFJcAJxHyMja1CvgbhRS1jaW1XSec9NR Diff:
OldNewDifferences
2121 let price4 = pow(toBigInt(10001), 4, toBigInt(2), 0, 18, DOWN)
2222 let price5 = pow(20, 1, -1, 0, 4, DOWN)
2323 let price6 = pow(toBigInt(20), 1, toBigInt(-1), 0, 4, DOWN)
24- $Tuple2([StringEntry("price_1", toBase64String(toBytes(price1))), StringEntry("price_2", toBase64String(toBytes(price2))), StringEntry("price_3", toBase64String(toBytes(price3))), StringEntry("price_4", toBase64String(toBytes(price4))), IntegerEntry("price_5", price5), StringEntry("price_6", toBase64String(toBytes(price6)))], unit)
24+ $Tuple2([StringEntry("price_1", toString(price1)), StringEntry("price_2", toString(price2)), StringEntry("price_3", toString(price3)), StringEntry("price_4", toString(price4)), IntegerEntry("price_5", price5), StringEntry("price_6", toString(price6))], unit)
2525 }
2626 else throw("Strict value is not equal to itself.")
2727 }
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 {
1818 let price1 = pow(toBigInt(10001), 4, toBigInt(1), 0, 4, DOWN)
1919 let price2 = pow(toBigInt(10001), 4, toBigInt(1), 0, 18, DOWN)
2020 let price3 = pow(toBigInt(10001), 4, toBigInt(2), 0, 4, DOWN)
2121 let price4 = pow(toBigInt(10001), 4, toBigInt(2), 0, 18, DOWN)
2222 let price5 = pow(20, 1, -1, 0, 4, DOWN)
2323 let price6 = pow(toBigInt(20), 1, toBigInt(-1), 0, 4, DOWN)
24- $Tuple2([StringEntry("price_1", toBase64String(toBytes(price1))), StringEntry("price_2", toBase64String(toBytes(price2))), StringEntry("price_3", toBase64String(toBytes(price3))), StringEntry("price_4", toBase64String(toBytes(price4))), IntegerEntry("price_5", price5), StringEntry("price_6", toBase64String(toBytes(price6)))], unit)
24+ $Tuple2([StringEntry("price_1", toString(price1)), StringEntry("price_2", toString(price2)), StringEntry("price_3", toString(price3)), StringEntry("price_4", toString(price4)), IntegerEntry("price_5", price5), StringEntry("price_6", toString(price6))], unit)
2525 }
2626 else throw("Strict value is not equal to itself.")
2727 }
2828
2929
3030 @Verifier(tx)
3131 func verify () = true
3232

github/deemru/w8io/169f3d6 
28.14 ms