tx · yoFPvLMMopFFiAQ5DvX1yShyQckP82qGHgCoMfSXvC8

3MsfPLcgQY8V3SpQss9hw5ydZ3SdoooQ9xy:  -0.00700000 Waves

2022.09.29 20:20 [2250690] smart account 3MsfPLcgQY8V3SpQss9hw5ydZ3SdoooQ9xy > SELF 0.00000000 Waves

{ "type": 13, "id": "yoFPvLMMopFFiAQ5DvX1yShyQckP82qGHgCoMfSXvC8", "fee": 700000, "feeAssetId": null, "timestamp": 1664471981933, "version": 2, "chainId": 84, "sender": "3MsfPLcgQY8V3SpQss9hw5ydZ3SdoooQ9xy", "senderPublicKey": "4mZ3UeajXYuJVqUiK9DfeKYAVuR279UJFfMQi4WBbBnf", "proofs": [ "3bAoWSNpioc8qyq6Vq2c2vhSC7CPBNYFRW4pUCK26wwnRYZQ7KZKEJFedEDLabYttGjFmojFijXNaXXZJDaQ7pbz" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYICAgICAEAAAAGAAAAAAVydWxlcgIAAAAsQmd4cENtNHd4Ylc4U0tMUEtabmY0S1UyRDZaVTI5b3Y4TWdacmthU0FxcFkAAAAACGJvYm1hX2lkAgAAACw1eHlyVW9KdVhKY1l4YzhSZnJvV2o0UWVMYXc2eGhCZkFkU3JlU3RZQ1JNbgAAAAAIYnVnZ3NfaWQCAAAALEg1VVV1UEo3V0JYempnNloxYWhCVXhqN1ZXb1ZGRmZHM0JNenlBQW5SV3Q2AQAAAA5nZXRBc3NldFN0cmluZwAAAAEAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMAUAAAAHYXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAABYgUAAAAHJG1hdGNoMAkAAlgAAAABBQAAAAFiAgAAAAVXQVZFUwEAAAANZ2V0QXNzZXRCeXRlcwAAAAEAAAAHYXNzZXRJZAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMFAAAABHVuaXQJAAJZAAAAAQUAAAAHYXNzZ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AAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmLSBTS", "height": 2250690, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GLyrLF6RKj1TKqJUMZAn4v3p1vV3takXxsrptFNyiTKH Next: 63fsQqUnUJ8USs1LshB7vdFco9srdbdbrqP9ssdWUNwx Diff:
OldNewDifferences
5252 if ((v == v))
5353 then {
5454 let w = if ((m == "p"))
55- then invoke(Address(toBytes(n)), "swap", [s, 0], [AttachedPayment(h(k), v)])
56- else invoke(Address(toBytes(n)), "exchange", [0], [AttachedPayment(h(k), v)])
55+ then invoke(Address(fromBase58String(n)), "swap", [s, 0], [AttachedPayment(h(k), v)])
56+ else invoke(Address(fromBase58String(n)), "exchange", [0], [AttachedPayment(h(k), v)])
5757 if ((w == w))
5858 then {
5959 let x = i(s)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY"
55
66 let b = "5xyrUoJuXJcYxc8RfroWj4QeLaw6xhBfAdSreStYCRMn"
77
88 let c = "H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6"
99
1010 func d (e) = {
1111 let f = e
1212 if ($isInstanceOf(f, "ByteVector"))
1313 then {
1414 let g = f
1515 toBase58String(g)
1616 }
1717 else "WAVES"
1818 }
1919
2020
2121 func h (e) = if ((e == "WAVES"))
2222 then unit
2323 else fromBase58String(e)
2424
2525
2626 func i (e) = {
2727 let f = e
2828 if ($isInstanceOf(f, "ByteVector"))
2929 then {
3030 let g = f
3131 assetBalance(this, g)
3232 }
3333 else wavesBalance(this).available
3434 }
3535
3636
3737 @Callable(j)
3838 func trade (k,l,m,n,o,p) = {
3939 let q = toBase58String(j.callerPublicKey)
4040 if ((q != a))
4141 then throw("No-no-no")
4242 else {
4343 let r = j.payments[0]
4444 let s = value(r.assetId)
4545 let t = value(r.amount)
4646 let u = if ((m == "p"))
4747 then invoke(Address(fromBase58String(l)), "swap", [k, 0], [AttachedPayment(s, t)])
4848 else invoke(Address(fromBase58String(l)), "exchange", [0], [AttachedPayment(s, t)])
4949 if ((u == u))
5050 then {
5151 let v = i(h(k))
5252 if ((v == v))
5353 then {
5454 let w = if ((m == "p"))
55- then invoke(Address(toBytes(n)), "swap", [s, 0], [AttachedPayment(h(k), v)])
56- else invoke(Address(toBytes(n)), "exchange", [0], [AttachedPayment(h(k), v)])
55+ then invoke(Address(fromBase58String(n)), "swap", [s, 0], [AttachedPayment(h(k), v)])
56+ else invoke(Address(fromBase58String(n)), "exchange", [0], [AttachedPayment(h(k), v)])
5757 if ((w == w))
5858 then {
5959 let x = i(s)
6060 if ((x == x))
6161 then if ((x > t))
6262 then [ScriptTransfer(j.caller, x, s)]
6363 else throw(("Ooops, " + toString(x)))
6464 else throw("Strict value is not equal to itself.")
6565 }
6666 else throw("Strict value is not equal to itself.")
6767 }
6868 else throw("Strict value is not equal to itself.")
6969 }
7070 else throw("Strict value is not equal to itself.")
7171 }
7272 }
7373
7474
7575 @Verifier(y)
7676 func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
7777

github/deemru/w8io/169f3d6 
74.95 ms