tx · FTSD3WaLVkVis74WZXzipijH5gU2Vfeb8DufvsQLBP2G 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3: -0.00100000 Waves 2022.08.09 10:25 [2176618] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves
{ "type": 13, "id": "FTSD3WaLVkVis74WZXzipijH5gU2Vfeb8DufvsQLBP2G", "fee": 100000, "feeAssetId": null, "timestamp": 1660029935464, "version": 2, "chainId": 84, "sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3", "senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE", "proofs": [ "2UoCuU23y4toQAM1fM7TcKQ7KUXwkyauQofrz6KmNAobDU2L86eDvqoiqgYxD9LZmadxgiEB812qJqam5UQjLuJg" ], "script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBnByaWNlMQkAdgYJALYCAQCAgJC7utat8A0AEgkAtgIBAICAkLu61q3wDQASABIFBUZMT09SBAZwcmljZTIJAHYGCQC2AgEAAQAACQC2AgEAAQAAAAAFBUZMT09SBAZwcmljZTMJAHYGCQC2AgEAAQAACQC2AgEAAgAAAAAFBUZMT09SBAZwcmljZTQJAHYGCQC2AgEAAQAACQC2AgEAAwAAABIFBUZMT09SCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfMQkA2gQBCQCdAwEFBnByaWNlMQkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8yCQDaBAEJAJ0DAQUGcHJpY2UyCQDMCAIJAQtTdHJpbmdFbnRyeQICB3ByaWNlXzMJANoEAQkAnQMBBQZwcmljZTMJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfNAkA2gQBCQCdAwEFBnByaWNlNAUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAakSWWD", "height": 2176618, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EG5FidSHp7KEfV8nmHTG5hFBF6XnKeMMkb29NKbJsZdN Next: 8QfPJ6vkTA8z1ZJAhnY5EfQFPpAZg82DAxokPnDpf5Ef Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | else unit | |
16 | 16 | if ((err == err)) | |
17 | 17 | then { | |
18 | - | let price1 = pow(toBigInt( | |
18 | + | let price1 = pow(toBigInt(1000000000000000000), 18, toBigInt(1000000000000000000), 18, 18, FLOOR) | |
19 | 19 | let price2 = pow(toBigInt(1), 0, toBigInt(1), 0, 0, FLOOR) | |
20 | 20 | let price3 = pow(toBigInt(1), 0, toBigInt(2), 0, 0, FLOOR) | |
21 | 21 | let price4 = pow(toBigInt(1), 0, toBigInt(3), 0, 18, FLOOR) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let MIN_TICK = -887272 | |
5 | 5 | ||
6 | 6 | let MAX_TICK = -(MIN_TICK) | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func getSqrtRatioAtTick (tick) = { | |
10 | 10 | let absTick = if ((0 > tick)) | |
11 | 11 | then (tick * -1) | |
12 | 12 | else tick | |
13 | 13 | let err = if ((tick > MAX_TICK)) | |
14 | 14 | then throw("invalid tick") | |
15 | 15 | else unit | |
16 | 16 | if ((err == err)) | |
17 | 17 | then { | |
18 | - | let price1 = pow(toBigInt( | |
18 | + | let price1 = pow(toBigInt(1000000000000000000), 18, toBigInt(1000000000000000000), 18, 18, FLOOR) | |
19 | 19 | let price2 = pow(toBigInt(1), 0, toBigInt(1), 0, 0, FLOOR) | |
20 | 20 | let price3 = pow(toBigInt(1), 0, toBigInt(2), 0, 0, FLOOR) | |
21 | 21 | let price4 = pow(toBigInt(1), 0, toBigInt(3), 0, 18, FLOOR) | |
22 | 22 | $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) | |
23 | 23 | } | |
24 | 24 | else throw("Strict value is not equal to itself.") | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Verifier(tx) | |
29 | 29 | func verify () = true | |
30 | 30 |
github/deemru/w8io/026f985 19.60 ms ◑