tx · 966iURjdFwRzoAnk3AdtLMob75U4ZycvuGRFvKLtMrtH

3MsfPLcgQY8V3SpQss9hw5ydZ3SdoooQ9xy:  -0.00700000 Waves

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

{ "type": 13, "id": "966iURjdFwRzoAnk3AdtLMob75U4ZycvuGRFvKLtMrtH", "fee": 700000, "feeAssetId": null, "timestamp": 1664471730472, "version": 2, "chainId": 84, "sender": "3MsfPLcgQY8V3SpQss9hw5ydZ3SdoooQ9xy", "senderPublicKey": "4mZ3UeajXYuJVqUiK9DfeKYAVuR279UJFfMQi4WBbBnf", "proofs": [ "4PWkt5AerpVp1iGvDpB8kbHQ5Mj37dqB9bZKZBqvSAJNhiWa1dL97rhxTVygbehVw945kTWyB1EGuGbtPgWgf3xD" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYICAgICAEAAAAGAAAAAAVydWxlcgIAAAAsQmd4cENtNHd4Ylc4U0tMUEtabmY0S1UyRDZaVTI5b3Y4TWdacmthU0FxcFkAAAAACGJvYm1hX2lkAgAAACw1eHlyVW9KdVhKY1l4YzhSZnJvV2o0UWVMYXc2eGhCZkFkU3JlU3RZQ1JNbgAAAAAIYnVnZ3NfaWQCAAAALEg1VVV1UEo3V0JYempnNloxYWhCVXhqN1ZXb1ZGRmZHM0JNenlBQW5SV3Q2AQAAAA5nZXRBc3NldFN0cmluZwAAAAEAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMAUAAAAHYXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAABYgUAAAAHJG1hdGNoMAkAAlgAAAABBQAAAAFiAgAAAAVXQVZFUwEAAAANZ2V0QXNzZXRCeXRlcwAAAAEAAAAHYXNzZXRJZAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMFAAAABHVuaXQJAAJZAAAAAQUAAAAHYXNzZXR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eXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5MJxuUA==", "height": 2250684, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3jgTk36wFLEBiG1DHJRWJYWpLhrbu7ibGzbeV6ZNYrmE Next: GLyrLF6RKj1TKqJUMZAn4v3p1vV3takXxsrptFNyiTKH Diff:
OldNewDifferences
4444 let s = value(r.assetId)
4545 let t = value(r.amount)
4646 let u = if ((m == "p"))
47- then invoke(Address(toBytes(l)), "swap", [k, 0], [AttachedPayment(s, t)])
48- else invoke(Address(toBytes(l)), "exchange", [0], [AttachedPayment(s, t)])
47+ then invoke(Address(fromBase58String(l)), "swap", [k, 0], [AttachedPayment(s, t)])
48+ else invoke(Address(fromBase58String(l)), "exchange", [0], [AttachedPayment(s, t)])
4949 if ((u == u))
5050 then {
5151 let v = i(h(k))
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"))
47- then invoke(Address(toBytes(l)), "swap", [k, 0], [AttachedPayment(s, t)])
48- else invoke(Address(toBytes(l)), "exchange", [0], [AttachedPayment(s, t)])
47+ then invoke(Address(fromBase58String(l)), "swap", [k, 0], [AttachedPayment(s, t)])
48+ else invoke(Address(fromBase58String(l)), "exchange", [0], [AttachedPayment(s, t)])
4949 if ((u == u))
5050 then {
5151 let v = i(h(k))
5252 let w = if ((m == "p"))
5353 then invoke(Address(toBytes(n)), "swap", [s, 0], [AttachedPayment(h(k), v)])
5454 else invoke(Address(toBytes(n)), "exchange", [0], [AttachedPayment(h(k), v)])
5555 if ((w == w))
5656 then {
5757 let x = i(s)
5858 if ((x > t))
5959 then [ScriptTransfer(j.caller, x, s)]
6060 else throw(("Ooops, " + toString(x)))
6161 }
6262 else throw("Strict value is not equal to itself.")
6363 }
6464 else throw("Strict value is not equal to itself.")
6565 }
6666 }
6767
6868
6969 @Verifier(y)
7070 func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
7171

github/deemru/w8io/169f3d6 
27.71 ms