tx · 8QfPJ6vkTA8z1ZJAhnY5EfQFPpAZg82DAxokPnDpf5Ef

3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3:  -0.00100000 Waves

2022.08.09 10:28 [2176621] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves

{ "type": 13, "id": "8QfPJ6vkTA8z1ZJAhnY5EfQFPpAZg82DAxokPnDpf5Ef", "fee": 100000, "feeAssetId": null, "timestamp": 1660030085966, "version": 2, "chainId": 84, "sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3", "senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE", "proofs": [ "rV6M9Co7e4TtJWvheEq3LYQxCEDSYzKgZGSjckr76v3mhHNq4YuEHCvyo9BMFNdCoJHw3cdnjEwTnQwgXzkbz2c" ], "script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBnByaWNlMQkAdgYJALYCAQCRTgAECQC2AgEAAQAAAAQFBUZMT09SBAZwcmljZTIJAHYGCQC2AgEAkU4ABAkAtgIBAAEAAAASBQVGTE9PUgQGcHJpY2UzCQB2BgkAtgIBAJFOAAQJALYCAQACAAAABAUFRkxPT1IEBnByaWNlNAkAdgYJALYCAQCRTgAECQC2AgEAAgAAABIFBUZMT09SCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfMQkA2gQBCQCdAwEFBnByaWNlMQkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8yCQDaBAEJAJ0DAQUGcHJpY2UyCQDMCAIJAQtTdHJpbmdFbnRyeQICB3ByaWNlXzMJANoEAQkAnQMBBQZwcmljZTMJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfNAkA2gQBCQCdAwEFBnByaWNlNAUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAbFGQp0", "height": 2176621, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FTSD3WaLVkVis74WZXzipijH5gU2Vfeb8DufvsQLBP2G Next: 6o5p54fRpzEqHtKXwU5eeWcii3KKbajx2584djrJpBfG Diff:
OldNewDifferences
1515 else unit
1616 if ((err == err))
1717 then {
18- let price1 = pow(toBigInt(1000000000000000000), 18, toBigInt(1000000000000000000), 18, 18, FLOOR)
19- let price2 = pow(toBigInt(1), 0, toBigInt(1), 0, 0, FLOOR)
20- let price3 = pow(toBigInt(1), 0, toBigInt(2), 0, 0, FLOOR)
21- let price4 = pow(toBigInt(1), 0, toBigInt(3), 0, 18, FLOOR)
18+ let price1 = pow(toBigInt(10001), 4, toBigInt(1), 0, 4, FLOOR)
19+ let price2 = pow(toBigInt(10001), 4, toBigInt(1), 0, 18, FLOOR)
20+ let price3 = pow(toBigInt(10001), 4, toBigInt(2), 0, 4, FLOOR)
21+ let price4 = pow(toBigInt(10001), 4, toBigInt(2), 0, 18, FLOOR)
2222 $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)))], unit)
2323 }
2424 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 price1 = pow(toBigInt(1000000000000000000), 18, toBigInt(1000000000000000000), 18, 18, FLOOR)
19- let price2 = pow(toBigInt(1), 0, toBigInt(1), 0, 0, FLOOR)
20- let price3 = pow(toBigInt(1), 0, toBigInt(2), 0, 0, FLOOR)
21- let price4 = pow(toBigInt(1), 0, toBigInt(3), 0, 18, FLOOR)
18+ let price1 = pow(toBigInt(10001), 4, toBigInt(1), 0, 4, FLOOR)
19+ let price2 = pow(toBigInt(10001), 4, toBigInt(1), 0, 18, FLOOR)
20+ let price3 = pow(toBigInt(10001), 4, toBigInt(2), 0, 4, FLOOR)
21+ let price4 = pow(toBigInt(10001), 4, toBigInt(2), 0, 18, FLOOR)
2222 $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)))], unit)
2323 }
2424 else throw("Strict value is not equal to itself.")
2525 }
2626
2727
2828 @Verifier(tx)
2929 func verify () = true
3030

github/deemru/w8io/169f3d6 
28.23 ms