tx · AwmD1VSDeLiiGkanKpCSH7z8Dk2tXBaFhA2VvYEUj9ed

3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn:  -0.01000000 Waves

2022.11.01 14:59 [2298017] smart account 3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn > SELF 0.00000000 Waves

{ "type": 13, "id": "AwmD1VSDeLiiGkanKpCSH7z8Dk2tXBaFhA2VvYEUj9ed", "fee": 1000000, "feeAssetId": null, "timestamp": 1667303997970, "version": 2, "chainId": 84, "sender": "3N2D6tJAXzcTDgUiTWmcdCHd6ctYwNENuBn", "senderPublicKey": "Cq4RbcVcQJpCWyHiACDqUf2PbU8PaX949Dun9wRSeDzE", "proofs": [ "53LEZmAo1QvPZ7kbxVho1BK7NM8nUAs5BqU8QCNbhMtBmc9ShSNgLNDJ6jpu2FmdMzXXafsMfxyTbPZYj5cpCf8K" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAACgAAAAAKbmZ0QXNzZXRJZAEAAAAAAAAAABBpbmN1YmF0b3JBZGRyZXNzAQAAAAAAAAAAC3VzZXJBZGRyZXNzAQAAAAAAAAAAF2NvbGxlY3RpdmVNYXN0ZXJBZGRyZXNzAQAAAAAAAAAABXJlZjIwCQAETAAAAAICAAAAAAUAAAADbmlsAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAABAAAAE21hc3RlclRyeUdldEJvb2xlYW4AAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACCQEAAAAHQWRkcmVzcwAAAAEFAAAAF2NvbGxlY3RpdmVNYXN0ZXJBZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIF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AAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlDNE+d", "height": 2298017, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4oCboyW3iKd9zTC8rQ1LM8YrYjvKXiUMDdTPVih4hYb6 Next: 2w8iJnTuhU5C8iwpPVLCaxofMDUiDqZKYV9Fx67Gp5hV Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'JCGDtrVy64cCJ1wCKfCaiNQMnyYwii71TbE5QeAHfxgF'
4+let a = base58''
55
6-let b = base58'3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv'
6+let b = base58''
77
8-let c = base58'3PAETTtuW7aSiyKtn9GuML3RgtV1xdq1mQW'
8+let c = base58''
99
10-let d = base58'3PDktsxDVEcoobpEBJcausnKo4enhcWUDEF'
10+let d = base58''
1111
12-let e = ["3PR66kMvUDE1QvYAg8r6e1xDX7QbnTV7JW5"]
12+let e = [""]
1313
1414 func f (g) = {
1515 let h = getInteger(this, g)
6161
6262
6363 @Callable(q)
64-func addRefKey (p,r) = if ((q.caller != this))
64+func addgatewayKey (p,r) = if ((q.caller != this))
6565 then throw("admin only")
6666 else {
6767 let s = (("key_" + r) + "_refererAddress")
7373
7474
7575 @Callable(q)
76-func refPayment (r) = {
77- let t = toString(q.originCaller)
76+func gatewayreward (t) = {
77+ let u = toString(q.originCaller)
7878 if (if ((q.caller.bytes != b))
7979 then (q.caller.bytes != c)
8080 else false)
8181 then throw("This method can be called only by farming and incubator dApps")
82- else if (if ((r == ""))
83- then (n((("address_" + t) + "_referedBy")) == "")
82+ else if (if ((t == ""))
83+ then (n((("address_" + u) + "_referedBy")) == "")
8484 else false)
8585 then nil
86- else if (j(("farm_" + t)))
86+ else if (j(("gateway_" + u)))
8787 then nil
8888 else {
89- let u = {
90- let h = getString(this, (("key_" + r) + "_refererAddress"))
89+ let v = {
90+ let h = getString(this, (("key_" + t) + "_refererAddress"))
9191 if ($isInstanceOf(h, "String"))
9292 then {
93- let v = h
94- v
93+ let w = h
94+ w
9595 }
96- else r
96+ else t
9797 }
98- let p = {
99- let h = getString(this, (("address_" + t) + "_referedBy"))
98+ let x = {
99+ let h = getString(this, (("address_" + u) + "_referedBy"))
100100 if ($isInstanceOf(h, "String"))
101101 then {
102- let v = h
103- v
102+ let w = h
103+ w
104104 }
105- else u
105+ else v
106106 }
107- let w = (q.payments[0].amount * o(p))
108- if ((addressFromString(p) == unit))
107+ let y = (q.payments[0].amount * o(x))
108+ if ((addressFromString(x) == unit))
109109 then nil
110110 else {
111- let x = addressFromStringValue(p)
112- let y = addressFromStringValue(t)
113- let z = w
114- let A = (("address_" + p) + "_earnedReward")
115- let B = (((("referer_" + p) + "_referal_") + t) + "_deliveredReward")
116- if ((p == t))
111+ let z = addressFromStringValue(x)
112+ let A = addressFromStringValue(u)
113+ let B = y
114+ let C = (("address_" + x) + "_earnedReward")
115+ let D = (((("referer_" + x) + "_referal_") + u) + "_deliveredReward")
116+ if ((x == u))
117117 then nil
118- else [StringEntry((("address_" + t) + "_referedBy"), p), IntegerEntry(A, (f(A) + z)), IntegerEntry(B, (f(B) + z)), IntegerEntry((((("referer_" + p) + "_referal_") + t) + "_amount"), (f((((("referer_" + p) + "_referal_") + t) + "_amount")) + 1)), ScriptTransfer(x, z, a)]
118+ else [StringEntry((("address_" + u) + "_referedBy"), x), IntegerEntry(C, (f(C) + B)), IntegerEntry(D, (f(D) + B)), IntegerEntry((((("referer_" + x) + "_referal_") + u) + "_amount"), (f((((("referer_" + x) + "_referal_") + u) + "_amount")) + 1)), ScriptTransfer(z, B, c)]
119119 }
120120 }
121121 }
122122
123123
124-@Verifier(C)
125-func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
124+@Verifier(E)
125+func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey)
126126
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = base58'JCGDtrVy64cCJ1wCKfCaiNQMnyYwii71TbE5QeAHfxgF'
4+let a = base58''
55
6-let b = base58'3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv'
6+let b = base58''
77
8-let c = base58'3PAETTtuW7aSiyKtn9GuML3RgtV1xdq1mQW'
8+let c = base58''
99
10-let d = base58'3PDktsxDVEcoobpEBJcausnKo4enhcWUDEF'
10+let d = base58''
1111
12-let e = ["3PR66kMvUDE1QvYAg8r6e1xDX7QbnTV7JW5"]
12+let e = [""]
1313
1414 func f (g) = {
1515 let h = getInteger(this, g)
1616 if ($isInstanceOf(h, "Int"))
1717 then {
1818 let i = h
1919 i
2020 }
2121 else 0
2222 }
2323
2424
2525 func j (g) = {
2626 let h = getBoolean(Address(d), g)
2727 if ($isInstanceOf(h, "Boolean"))
2828 then {
2929 let i = h
3030 i
3131 }
3232 else false
3333 }
3434
3535
3636 func k (l) = {
3737 let h = addressFromString(l)
3838 if ($isInstanceOf(h, "Address"))
3939 then {
4040 let m = h
4141 true
4242 }
4343 else false
4444 }
4545
4646
4747 func n (g) = {
4848 let h = getString(this, g)
4949 if ($isInstanceOf(h, "String"))
5050 then {
5151 let m = h
5252 m
5353 }
5454 else ""
5555 }
5656
5757
5858 func o (p) = if ((indexOf(e, p) != unit))
5959 then 4
6060 else 1
6161
6262
6363 @Callable(q)
64-func addRefKey (p,r) = if ((q.caller != this))
64+func addgatewayKey (p,r) = if ((q.caller != this))
6565 then throw("admin only")
6666 else {
6767 let s = (("key_" + r) + "_refererAddress")
6868 if ((n(s) == ""))
6969 then [StringEntry(s, p), StringEntry(((("address_" + p) + "_refererKey_") + r), r)]
7070 else throw((("The ref key \"" + r) + "\" is already registered"))
7171 }
7272
7373
7474
7575 @Callable(q)
76-func refPayment (r) = {
77- let t = toString(q.originCaller)
76+func gatewayreward (t) = {
77+ let u = toString(q.originCaller)
7878 if (if ((q.caller.bytes != b))
7979 then (q.caller.bytes != c)
8080 else false)
8181 then throw("This method can be called only by farming and incubator dApps")
82- else if (if ((r == ""))
83- then (n((("address_" + t) + "_referedBy")) == "")
82+ else if (if ((t == ""))
83+ then (n((("address_" + u) + "_referedBy")) == "")
8484 else false)
8585 then nil
86- else if (j(("farm_" + t)))
86+ else if (j(("gateway_" + u)))
8787 then nil
8888 else {
89- let u = {
90- let h = getString(this, (("key_" + r) + "_refererAddress"))
89+ let v = {
90+ let h = getString(this, (("key_" + t) + "_refererAddress"))
9191 if ($isInstanceOf(h, "String"))
9292 then {
93- let v = h
94- v
93+ let w = h
94+ w
9595 }
96- else r
96+ else t
9797 }
98- let p = {
99- let h = getString(this, (("address_" + t) + "_referedBy"))
98+ let x = {
99+ let h = getString(this, (("address_" + u) + "_referedBy"))
100100 if ($isInstanceOf(h, "String"))
101101 then {
102- let v = h
103- v
102+ let w = h
103+ w
104104 }
105- else u
105+ else v
106106 }
107- let w = (q.payments[0].amount * o(p))
108- if ((addressFromString(p) == unit))
107+ let y = (q.payments[0].amount * o(x))
108+ if ((addressFromString(x) == unit))
109109 then nil
110110 else {
111- let x = addressFromStringValue(p)
112- let y = addressFromStringValue(t)
113- let z = w
114- let A = (("address_" + p) + "_earnedReward")
115- let B = (((("referer_" + p) + "_referal_") + t) + "_deliveredReward")
116- if ((p == t))
111+ let z = addressFromStringValue(x)
112+ let A = addressFromStringValue(u)
113+ let B = y
114+ let C = (("address_" + x) + "_earnedReward")
115+ let D = (((("referer_" + x) + "_referal_") + u) + "_deliveredReward")
116+ if ((x == u))
117117 then nil
118- else [StringEntry((("address_" + t) + "_referedBy"), p), IntegerEntry(A, (f(A) + z)), IntegerEntry(B, (f(B) + z)), IntegerEntry((((("referer_" + p) + "_referal_") + t) + "_amount"), (f((((("referer_" + p) + "_referal_") + t) + "_amount")) + 1)), ScriptTransfer(x, z, a)]
118+ else [StringEntry((("address_" + u) + "_referedBy"), x), IntegerEntry(C, (f(C) + B)), IntegerEntry(D, (f(D) + B)), IntegerEntry((((("referer_" + x) + "_referal_") + u) + "_amount"), (f((((("referer_" + x) + "_referal_") + u) + "_amount")) + 1)), ScriptTransfer(z, B, c)]
119119 }
120120 }
121121 }
122122
123123
124-@Verifier(C)
125-func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
124+@Verifier(E)
125+func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey)
126126

github/deemru/w8io/026f985 
46.52 ms