tx · CL7LGWjXy6v7xepRUUVf6ZTmNVGYshK2soMKcacGFQcH

3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp:  -0.01400000 Waves

2021.04.18 02:24 [1487121] smart account 3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp > SELF 0.00000000 Waves

{ "type": 13, "id": "CL7LGWjXy6v7xepRUUVf6ZTmNVGYshK2soMKcacGFQcH", "fee": 1400000, "feeAssetId": null, "timestamp": 1618701914993, "version": 2, "chainId": 84, "sender": "3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp", "senderPublicKey": "ECgJ5aXMvEomM6yWA4tsqXdM3az7ddLr4cLr3yNJwJUb", "proofs": [ "3iuLRWJGgfmhuLr1U8yV3tPXRgS5cs4ZdiPBUPooy92mRkRwFBsnYgbm73nk4592Q8NacDZe3jfXkJKVXbgXNs36" ], "script": "base64:AAIEAAAAAAAAABIIAhIFCgMIAQESBwoFCAEBAQgAAAACAAAAAAZwYXI3SWQBAAAAIJedbhD+DwLKhAB/H26DYx4Zv6xpfO57kM3OSOXSB0EjAQAAAAdjdXJyZW50AAAAAQAAAAFpBAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAACAAAAAWkBAAAADnNwb25zb3JEZXBvc2l0AAAAAwAAAAtjb21wZU51bWJlcgAAABFjb21wZUVuZFRpbWVzdGFtcAAAAAl0aW1lc3RhbXAEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAJY3VycmVudElkCQEAAAAHY3VycmVudAAAAAEFAAAAAWkDCQAAZgAAAAIFAAAACXRpbWVzdGFtcAUAAAARY29tcGVFbmRUaW1lc3RhbXAJAAACAAAA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AAAAAAAAAEAAAACW5ld0Ftb3VudAkAAGUAAAACBQAAAA1jdXJyZW50QW1vdW50BQAAAAZhbW91bnQDCQAAZgAAAAIFAAAACXRpbWVzdGFtcAUAAAATY29tcGVTdGFydFRpbWVzdGFtcAkAAAIAAAABAgAAAB9Db21wZXRpdGlvbiBoYXMgYWxyZWFkeSBzdGFydGVkAwkAAGYAAAACAAAAAAAAAAAABQAAAAZhbW91bnQJAAACAAAAAQIAAAAeQ2FuJ3Qgd2l0aGRyYXcgbmVnYXRpdmUgYW1vdW50AwkAAGYAAAACAAAAAAAAAAAABQAAAAluZXdBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIc3BvbnNvcl8FAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAB2Fzc2V0SWQCAAAAAV8FAAAAC2NvbXBlTnVtYmVyBQAAAAluZXdBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAtjb21wZU51bWJlcgIAAAABXwUAAAAHYXNzZXRJZAUAAAAJbmV3QW1vdW50BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTpyu+o=", "height": 1487121, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dnn5CU6jLKdfN55Pzt96MkTsqFGK9HVCNKpU9dhPPsRE Next: 7i4nPFX4HSh2uyfgwKviBeuRbue8rePJnaXxX5Ny45J7 Diff:
OldNewDifferences
1212
1313
1414 @Callable(c)
15-func sponsorDeposit (e,f,g,h) = {
15+func sponsorDeposit (e,f,g) = {
1616 let d = c.payments[0]
17- let i = b(c)
17+ let h = b(c)
1818 if ((g > f))
1919 then throw("Competition is finished")
2020 else {
21- let j = toBase58String(c.caller.bytes)
22- let k = {
23- let l = getInteger(this, j)
24- if ($isInstanceOf(l, "Int"))
21+ let i = toBase58String(c.caller.bytes)
22+ let j = {
23+ let k = getInteger(this, i)
24+ if ($isInstanceOf(k, "Int"))
2525 then {
26- let m = l
27- m
26+ let l = k
27+ l
2828 }
2929 else 0
3030 }
31- let n = (k + d.amount)
32-[IntegerEntry(((((("sponsor_" + j) + "_") + i) + "_") + e), n), IntegerEntry(((e + "_") + i), n)]
31+ let m = (j + d.amount)
32+[IntegerEntry(((((("sponsor_" + i) + "_") + h) + "_") + e), m), IntegerEntry(((e + "_") + h), m)]
3333 }
3434 }
3535
3636
3737
3838 @Callable(c)
39-func sponsorWithDraw (e,o,g,p,q) = {
40- let j = toBase58String(c.caller.bytes)
41- let k = {
42- let l = getInteger(this, ((j + "_") + e))
43- if ($isInstanceOf(l, "Int"))
39+func sponsorWithDraw (e,n,g,o,p) = {
40+ let i = toBase58String(c.caller.bytes)
41+ let j = {
42+ let k = getInteger(this, ((i + "_") + e))
43+ if ($isInstanceOf(k, "Int"))
4444 then {
45- let m = l
46- m
45+ let l = k
46+ l
4747 }
4848 else 0
4949 }
50- let n = (k - p)
51- if ((g > o))
50+ let m = (j - o)
51+ if ((g > n))
5252 then throw("Competition has already started")
53- else if ((0 > p))
53+ else if ((0 > o))
5454 then throw("Can't withdraw negative amount")
55- else if ((0 > n))
55+ else if ((0 > m))
5656 then throw("Not enough balance")
57- else [IntegerEntry(((((("sponsor_" + j) + "_") + q) + "_") + e), n), IntegerEntry(((e + "_") + q), n)]
57+ else [IntegerEntry(((((("sponsor_" + i) + "_") + p) + "_") + e), m), IntegerEntry(((e + "_") + p), m)]
5858 }
5959
6060
61-@Verifier(r)
62-func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
61+@Verifier(q)
62+func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
6363
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BCqo4hvDBB2dzmidJQKkVtQtkgEQVVwMy1jjV4R4tNB4'
55
66 func b (c) = {
77 let d = c.payments[0]
88 if (isDefined(d.assetId))
99 then toBase58String(value(d.assetId))
1010 else "WAVES"
1111 }
1212
1313
1414 @Callable(c)
15-func sponsorDeposit (e,f,g,h) = {
15+func sponsorDeposit (e,f,g) = {
1616 let d = c.payments[0]
17- let i = b(c)
17+ let h = b(c)
1818 if ((g > f))
1919 then throw("Competition is finished")
2020 else {
21- let j = toBase58String(c.caller.bytes)
22- let k = {
23- let l = getInteger(this, j)
24- if ($isInstanceOf(l, "Int"))
21+ let i = toBase58String(c.caller.bytes)
22+ let j = {
23+ let k = getInteger(this, i)
24+ if ($isInstanceOf(k, "Int"))
2525 then {
26- let m = l
27- m
26+ let l = k
27+ l
2828 }
2929 else 0
3030 }
31- let n = (k + d.amount)
32-[IntegerEntry(((((("sponsor_" + j) + "_") + i) + "_") + e), n), IntegerEntry(((e + "_") + i), n)]
31+ let m = (j + d.amount)
32+[IntegerEntry(((((("sponsor_" + i) + "_") + h) + "_") + e), m), IntegerEntry(((e + "_") + h), m)]
3333 }
3434 }
3535
3636
3737
3838 @Callable(c)
39-func sponsorWithDraw (e,o,g,p,q) = {
40- let j = toBase58String(c.caller.bytes)
41- let k = {
42- let l = getInteger(this, ((j + "_") + e))
43- if ($isInstanceOf(l, "Int"))
39+func sponsorWithDraw (e,n,g,o,p) = {
40+ let i = toBase58String(c.caller.bytes)
41+ let j = {
42+ let k = getInteger(this, ((i + "_") + e))
43+ if ($isInstanceOf(k, "Int"))
4444 then {
45- let m = l
46- m
45+ let l = k
46+ l
4747 }
4848 else 0
4949 }
50- let n = (k - p)
51- if ((g > o))
50+ let m = (j - o)
51+ if ((g > n))
5252 then throw("Competition has already started")
53- else if ((0 > p))
53+ else if ((0 > o))
5454 then throw("Can't withdraw negative amount")
55- else if ((0 > n))
55+ else if ((0 > m))
5656 then throw("Not enough balance")
57- else [IntegerEntry(((((("sponsor_" + j) + "_") + q) + "_") + e), n), IntegerEntry(((e + "_") + q), n)]
57+ else [IntegerEntry(((((("sponsor_" + i) + "_") + p) + "_") + e), m), IntegerEntry(((e + "_") + p), m)]
5858 }
5959
6060
61-@Verifier(r)
62-func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
61+@Verifier(q)
62+func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
6363

github/deemru/w8io/169f3d6 
38.85 ms