tx · E3QUQ9babF8rejcj5DDXAxMHN67K5QssFH7v9sASqs6v

3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat:  -0.00600000 Waves

2022.09.29 17:44 [2250534] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves

{ "type": 13, "id": "E3QUQ9babF8rejcj5DDXAxMHN67K5QssFH7v9sASqs6v", "fee": 600000, "feeAssetId": null, "timestamp": 1664462683020, "version": 2, "chainId": 84, "sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat", "senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR", "proofs": [ "5hj5zHX37kJabozfQEpcHijBA8ePuXE2NveqwUd9PLQEcpdYzktSjVbkrhs6cEvFDPBbgK2S5662xHFwC1sbjWM4" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAYAAAAABXJ1bGVyAgAAACxCZ3hwQ200d3hiVzhTS0xQS1puZjRLVTJENlpVMjlvdjhNZ1pya2FTQXFwWQAAAAAIYm9ibWFfaWQCAAAALDV4eXJVb0p1WEpjWXhjOFJmcm9XajRRZUxhdzZ4aEJmQWRTcmVTdFlDUk1uAAAAAAhidWdnc19pZAIAAAAsSDVVVXVQSjdXQlh6amc2WjFhaEJVeGo3VldvVkZGZkczQk16eUFBblJXdDYBAAAADmdldEFzc2V0U3RyaW5nAAAAAQAAAAdhc3NldElkBAAAAAckbWF0Y2gwBQAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gwCQACWAAAAAEFAAAAAWICAAAABVdBVkVTAQAAAA1nZXRBc3NldEJ5dGVzAAAAAQAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkAgAAAAVXQVZFUwUAAAAEdW5pdAkAAlkAAAABBQAAAAdhc3NldElkAQAAAAlteUJhbGFuY2UAAAABAAAAB2Fzc2V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AAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkt9tLp", "height": 2250534, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6vVHmgqPevTKeDZUg8j8CKm6MrUqptfsDDJVz2gVyM28 Next: DDpUWDq62oidgqFWr8YRJax3Y7f8Q5UmYnsTkmPWrNZ8 Diff:
OldNewDifferences
3636
3737 @Callable(j)
3838 func swap (k,l) = {
39- let m = toString(j.caller)
40- let n = toBase58String(j.callerPublicKey)
41- let o = i(h(b))
42- let p = i(h(c))
43- if ((n == a))
44- then throw(((("No-no-no bomba: " + toString(o)) + ", buggs: ") + toString(p)))
39+ let m = toBase58String(j.callerPublicKey)
40+ if ((m != a))
41+ then throw("No-no-no")
4542 else {
46- let q = j.payments[0]
47- let r = value(q.assetId)
48- let s = value(q.amount)
49-[IntegerEntry("op", 1)]
43+ let n = i(h(b))
44+ let o = i(h(c))
45+ let p = j.payments[0]
46+ let q = value(p.assetId)
47+ let r = value(p.amount)
48+ let s = (r * 2)
49+[ScriptTransfer(j.caller, s, h(k))]
5050 }
5151 }
5252
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 swap (k,l) = {
39- let m = toString(j.caller)
40- let n = toBase58String(j.callerPublicKey)
41- let o = i(h(b))
42- let p = i(h(c))
43- if ((n == a))
44- then throw(((("No-no-no bomba: " + toString(o)) + ", buggs: ") + toString(p)))
39+ let m = toBase58String(j.callerPublicKey)
40+ if ((m != a))
41+ then throw("No-no-no")
4542 else {
46- let q = j.payments[0]
47- let r = value(q.assetId)
48- let s = value(q.amount)
49-[IntegerEntry("op", 1)]
43+ let n = i(h(b))
44+ let o = i(h(c))
45+ let p = j.payments[0]
46+ let q = value(p.assetId)
47+ let r = value(p.amount)
48+ let s = (r * 2)
49+[ScriptTransfer(j.caller, s, h(k))]
5050 }
5151 }
5252
5353
5454 @Verifier(t)
5555 func u () = sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
5656

github/deemru/w8io/169f3d6 
22.25 ms