tx · D6TwvKUrb5E4pqCxAzJcXdpCEex781XSLcNRP3WHxBnN 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3: -0.00100000 Waves 2022.08.08 23:53 [2175982] smart account 3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3 > SELF 0.00000000 Waves
{ "type": 13, "id": "D6TwvKUrb5E4pqCxAzJcXdpCEex781XSLcNRP3WHxBnN", "fee": 100000, "feeAssetId": null, "timestamp": 1659992047845, "version": 2, "chainId": 84, "sender": "3N1Kt6er9nzzrv8DYLUNybdUdKhto6buhu3", "senderPublicKey": "HgKeKH88GY1mp5NpcZUDMRa9iw9LS79HZAnRt3ntaXpE", "proofs": [ "ML7bPCP1JPn67SignreVSyfc8ix2CaxJMakjjRP1GcWA39zr6kjY9HTSPh4CHo7SYFmS6k2qc9N7KAUjCYi4fVj" ], "script": "base64:BgIHCAISAwoBAQIACE1JTl9USUNLAJjsyf///////wEACE1BWF9USUNLCQEBLQEFCE1JTl9USUNLAQFpARJnZXRTcXJ0UmF0aW9BdFRpY2sBBHRpY2sEB2Fic1RpY2sDCQBmAgAABQR0aWNrCQBoAgUEdGljawD///////////8BBQR0aWNrBANlcnIDCQBmAgUEdGljawUITUFYX1RJQ0sJAAIBAgxpbnZhbGlkIHRpY2sFBHVuaXQDCQAAAgUDZXJyBQNlcnIEBnByaWNlMQkAdgYJALYCAQABAAAJALYCAQABAAAAEgUGSEFMRlVQBAZwcmljZTIJAHYGCQC2AgEAAQAACQC2AgEAAQAAAAAFBkhBTEZVUAQGcHJpY2UzCQB2BgkAtgIBAAEAAAkAtgIBAAIAAAAABQZIQUxGVVAEBnByaWNlNAkAdgYJALYCAQABAAAJALYCAQADAAAAEgUGSEFMRlVQCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfMQkA2gQBCQCdAwEFBnByaWNlMQkAzAgCCQELU3RyaW5nRW50cnkCAgdwcmljZV8yCQDaBAEJAJ0DAQUGcHJpY2UyCQDMCAIJAQtTdHJpbmdFbnRyeQICB3ByaWNlXzMJANoEAQkAnQMBBQZwcmljZTMJAMwIAgkBC1N0cmluZ0VudHJ5AgIHcHJpY2VfNAkA2gQBCQCdAwEFBnByaWNlNAUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAaSvKRo", "height": 2175982, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BetErnQtvuV2VGihGaHyTiqo1ywUJUQdcrfSZdYBLnhH Next: 22HqoTm37zRDMxG3KvdYeirGpU23TckpS84W4UKF28tv Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | else unit | |
16 | 16 | if ((f == f)) | |
17 | 17 | then { | |
18 | - | let g = pow(toBigInt(1), 0, toBigInt(b), 0, 18, HALFUP) | |
19 | - | $Tuple2([StringEntry("test", toBase64String(toBytes(g)))], unit) | |
18 | + | let g = pow(toBigInt(1), 0, toBigInt(1), 0, 18, HALFUP) | |
19 | + | let h = pow(toBigInt(1), 0, toBigInt(1), 0, 0, HALFUP) | |
20 | + | let i = pow(toBigInt(1), 0, toBigInt(2), 0, 0, HALFUP) | |
21 | + | let j = pow(toBigInt(1), 0, toBigInt(3), 0, 18, HALFUP) | |
22 | + | $Tuple2([StringEntry("price_1", toBase64String(toBytes(g))), StringEntry("price_2", toBase64String(toBytes(h))), StringEntry("price_3", toBase64String(toBytes(i))), StringEntry("price_4", toBase64String(toBytes(j)))], unit) | |
20 | 23 | } | |
21 | 24 | else throw("Strict value is not equal to itself.") | |
22 | 25 | } | |
23 | 26 | ||
24 | 27 | ||
25 | - | @Verifier( | |
26 | - | func | |
28 | + | @Verifier(k) | |
29 | + | func l () = true | |
27 | 30 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = -887272 | |
5 | 5 | ||
6 | 6 | let b = -(a) | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func getSqrtRatioAtTick (d) = { | |
10 | 10 | let e = if ((0 > d)) | |
11 | 11 | then (d * -1) | |
12 | 12 | else d | |
13 | 13 | let f = if ((d > b)) | |
14 | 14 | then throw("invalid tick") | |
15 | 15 | else unit | |
16 | 16 | if ((f == f)) | |
17 | 17 | then { | |
18 | - | let g = pow(toBigInt(1), 0, toBigInt(b), 0, 18, HALFUP) | |
19 | - | $Tuple2([StringEntry("test", toBase64String(toBytes(g)))], unit) | |
18 | + | let g = pow(toBigInt(1), 0, toBigInt(1), 0, 18, HALFUP) | |
19 | + | let h = pow(toBigInt(1), 0, toBigInt(1), 0, 0, HALFUP) | |
20 | + | let i = pow(toBigInt(1), 0, toBigInt(2), 0, 0, HALFUP) | |
21 | + | let j = pow(toBigInt(1), 0, toBigInt(3), 0, 18, HALFUP) | |
22 | + | $Tuple2([StringEntry("price_1", toBase64String(toBytes(g))), StringEntry("price_2", toBase64String(toBytes(h))), StringEntry("price_3", toBase64String(toBytes(i))), StringEntry("price_4", toBase64String(toBytes(j)))], unit) | |
20 | 23 | } | |
21 | 24 | else throw("Strict value is not equal to itself.") | |
22 | 25 | } | |
23 | 26 | ||
24 | 27 | ||
25 | - | @Verifier( | |
26 | - | func | |
28 | + | @Verifier(k) | |
29 | + | func l () = true | |
27 | 30 |
github/deemru/w8io/169f3d6 25.23 ms ◑