tx · GLi2qDHDZ7zbHkc1fhhjb9HkuSKkpodtCTupcLQNaLN9

3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp:  -0.01400000 Waves

2021.04.19 16:32 [1489411] smart account 3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp > SELF 0.00000000 Waves

{ "type": 13, "id": "GLi2qDHDZ7zbHkc1fhhjb9HkuSKkpodtCTupcLQNaLN9", "fee": 1400000, "feeAssetId": null, "timestamp": 1618839156818, "version": 2, "chainId": 84, "sender": "3N3P5euNnTjmGsZHxXceWDyFZM7CN9YPjhp", "senderPublicKey": "ECgJ5aXMvEomM6yWA4tsqXdM3az7ddLr4cLr3yNJwJUb", "proofs": [ "56hKFomqKiwqkNZXUwfwxzS1BNNEWjwyPJe8qxEwD8ba8qfadXKNH1RHQRQrLAzCY69pMCVsAMY1YxRKVSKnmDfB" ], "script": "base64:AAIEAAAAAAAAABIIAhIFCgMIAQESBwoFCAEBAQgAAAACAAAAAAZwYXI3SWQBAAAAIJedbhD+DwLKhAB/H26DYx4Zv6xpfO57kM3OSOXSB0EjAQAAAAdjdXJyZW50AAAAAQAAAAFpBAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAACAAAAAWkBAAAADnNwb25zb3JEZXBvc2l0AAAAAwAAAAtjb21wZU51bWJlcgAAABFjb21wZUVuZFRpbWVzdGFtcAAAAAl0aW1lc3RhbXAEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAJY3VycmVudElkCQEAAAAHY3VycmVudAAAAAEFAAAAAWkDCQAAZgAAAAIFAAAACXRpbWVzdGFtcAUAAAARY29tcGVFbmRUaW1lc3RhbXAJAA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vdW50AwkAAGYAAAACAAAAAAAAAAAABQAAAAluZXdBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIc3BvbnNvcl8FAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAB2Fzc2V0SWQCAAAAAV8FAAAAC2NvbXBlTnVtYmVyBQAAAAluZXdBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAtjb21wZU51bWJlcgIAAAABXwUAAAAHYXNzZXRJZAUAAAAOY29tcGVOZXdBbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5yGDoNw==", "height": 1489411, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7Xq5N8vsw6bQd6po8SpysYnn82577LWaUgeEpjVoTJLY Next: 2pmczVKDPqgmbKSqtWmpVhonzFLSe8eKK2H3JXcmYY3m Diff:
OldNewDifferences
4646
4747
4848 @Callable(c)
49-func sponsorWithdraw (e,p,g,q,r) = {
49+func sponsorWithdraw (e,f,g,p,q) = {
5050 let i = toBase58String(c.caller.bytes)
5151 let j = {
52- let k = getInteger(this, ((((("sponsor_" + i) + "_") + r) + "_") + e))
52+ let k = getInteger(this, ((((("sponsor_" + i) + "_") + q) + "_") + e))
5353 if ($isInstanceOf(k, "Int"))
5454 then {
5555 let l = k
5757 }
5858 else 0
5959 }
60- let m = (j - q)
60+ let m = (j - p)
6161 let n = {
62- let k = getInteger(this, ((e + "_") + r))
62+ let k = getInteger(this, ((e + "_") + q))
6363 if ($isInstanceOf(k, "Int"))
6464 then {
6565 let l = k
6767 }
6868 else 0
6969 }
70- let o = (n - q)
71- if ((g > p))
72- then throw("Competition has already started")
73- else if ((0 > q))
70+ let o = (n - p)
71+ if ((g > f))
72+ then throw("Competition is finished")
73+ else if ((0 > p))
7474 then throw("Can't withdraw negative amount")
7575 else if ((0 > m))
7676 then throw("Not enough balance")
77- else [IntegerEntry(((((("sponsor_" + i) + "_") + r) + "_") + e), m), IntegerEntry(((e + "_") + r), o)]
77+ else [IntegerEntry(((((("sponsor_" + i) + "_") + q) + "_") + e), m), IntegerEntry(((e + "_") + q), o)]
7878 }
7979
8080
81-@Verifier(s)
82-func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
81+@Verifier(r)
82+func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
8383
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)
1515 func sponsorDeposit (e,f,g) = {
1616 let d = c.payments[0]
1717 let h = b(c)
1818 if ((g > f))
1919 then throw("Competition is finished")
2020 else {
2121 let i = toBase58String(c.caller.bytes)
2222 let j = {
2323 let k = getInteger(this, ((((("sponsor_" + i) + "_") + h) + "_") + e))
2424 if ($isInstanceOf(k, "Int"))
2525 then {
2626 let l = k
2727 l
2828 }
2929 else 0
3030 }
3131 let m = (j + d.amount)
3232 let n = {
3333 let k = getInteger(this, ((e + "_") + h))
3434 if ($isInstanceOf(k, "Int"))
3535 then {
3636 let l = k
3737 l
3838 }
3939 else 0
4040 }
4141 let o = (n + d.amount)
4242 [IntegerEntry(((((("sponsor_" + i) + "_") + h) + "_") + e), m), IntegerEntry(((e + "_") + h), o)]
4343 }
4444 }
4545
4646
4747
4848 @Callable(c)
49-func sponsorWithdraw (e,p,g,q,r) = {
49+func sponsorWithdraw (e,f,g,p,q) = {
5050 let i = toBase58String(c.caller.bytes)
5151 let j = {
52- let k = getInteger(this, ((((("sponsor_" + i) + "_") + r) + "_") + e))
52+ let k = getInteger(this, ((((("sponsor_" + i) + "_") + q) + "_") + e))
5353 if ($isInstanceOf(k, "Int"))
5454 then {
5555 let l = k
5656 l
5757 }
5858 else 0
5959 }
60- let m = (j - q)
60+ let m = (j - p)
6161 let n = {
62- let k = getInteger(this, ((e + "_") + r))
62+ let k = getInteger(this, ((e + "_") + q))
6363 if ($isInstanceOf(k, "Int"))
6464 then {
6565 let l = k
6666 l
6767 }
6868 else 0
6969 }
70- let o = (n - q)
71- if ((g > p))
72- then throw("Competition has already started")
73- else if ((0 > q))
70+ let o = (n - p)
71+ if ((g > f))
72+ then throw("Competition is finished")
73+ else if ((0 > p))
7474 then throw("Can't withdraw negative amount")
7575 else if ((0 > m))
7676 then throw("Not enough balance")
77- else [IntegerEntry(((((("sponsor_" + i) + "_") + r) + "_") + e), m), IntegerEntry(((e + "_") + r), o)]
77+ else [IntegerEntry(((((("sponsor_" + i) + "_") + q) + "_") + e), m), IntegerEntry(((e + "_") + q), o)]
7878 }
7979
8080
81-@Verifier(s)
82-func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
81+@Verifier(r)
82+func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
8383

github/deemru/w8io/169f3d6 
26.94 ms