tx · TyLrL1qwGrspWBN2qEKUjC744xCJEwN5u4yuP3Tuc4R

3NCCJWh4gk9p2FssfGtuHEQgbcBiEJNwfpY:  -0.14000000 Waves

2021.10.28 15:45 [1766161] smart account 3NCCJWh4gk9p2FssfGtuHEQgbcBiEJNwfpY > SELF 0.00000000 Waves

{ "type": 13, "id": "TyLrL1qwGrspWBN2qEKUjC744xCJEwN5u4yuP3Tuc4R", "fee": 14000000, "feeAssetId": null, "timestamp": 1635425187825, "version": 2, "chainId": 84, "sender": "3NCCJWh4gk9p2FssfGtuHEQgbcBiEJNwfpY", "senderPublicKey": "6uCSnTeNsFiTBE6u6npUmFezFkve5M54EgMVmfEEZ4Yn", "proofs": [ "5HgThq261FbXUgb4biQFBzMPJYKjuxkqZ2uArrismLg8E2gc5T6Cw6dJnxMF8kUmMHUceNam8jeX3u95LJaz3aar", "2uZmc2NHTKZD9WJ6MNVdDwd7MLn6fcTjPjftjavGgMaKS9jYbbC1gvBaZ9SxvRyEhjN4WpHvkb5v2AUVYJsD4tmp" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAPAAAAABhrZXlVc2VyRU5OT0NsYWltZWRBbW91bnQCAAAAFF9FTk5PX2NsYWltZWRfYW1vdW50AAAAABxrZXlVc2VyRU5OT0xhc3RDbGFpbWVkQW1vdW50AgAAABlfRU5OT19sYXN0X2NsYWltZWRfYW1vdW50AAAAABFrZXlVc2VyRU5OT0xvY2tlZAIAAAAMX0VOTk9fYW1vdW50AAAAABRrZXlVc2VyRU5OT0xvY2tlZFRhZwIAAAAGc2hhcmVfAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAAAxhZG1pblB1YktleTEBAAAAIFepk7yEupOYL1euYnjVKBoA6QMFEEnH/ZuMJcQl4MoPAAAAAAxhZG1pblB1YktleTIBAAAAIFepk7yEupOYL1euYnjVKBoA6QMFEEnH/ZuMJcQl4MoPAAAAA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AgkAAGQAAAACCQAAZAAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkBQAAABJhZG1pblB1YktleTNTaWduZWQAAAAAAAAAAAKnHz9X", "height": 1766161, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2pc9QseAtA4QeJwqnGZxENGs8PwB41BoVxgb3bSLVeMR Next: none Diff:
OldNewDifferences
4949
5050
5151 func u (p) = {
52- let q = getInteger(k, (toString(p) + c))
53- let r = {
54- let s = q
55- if ($isInstanceOf(s, "Int"))
56- then {
57- let t = s
58- t
59- }
60- else if ($isInstanceOf(s, "Unit"))
61- then {
62- let t = s
63- throw("Only governance qualifiers can call this function.")
64- }
65- else throw("Match error")
66- }
67- r
68- }
69-
70-
71-func v (p) = {
72- let w = getInteger(k, (toString(p) + a))
73- let x = {
74- let s = w
52+ let v = getInteger(k, (toString(p) + a))
53+ let w = {
54+ let s = v
7555 if ($isInstanceOf(s, "Int"))
7656 then {
7757 let t = s
8464 }
8565 else throw("Match error")
8666 }
87- x
67+ w
8868 }
8969
9070
91-@Callable(y)
71+@Callable(x)
9272 func claimAndWithdrawENNO () = if (!(l))
9373 then throw("DApp is inactive at this moment")
9474 else {
95- let z = o(y.caller)
96- let A = v(y.caller)
97- let B = (z - A)
98- if ((0 >= B))
75+ let y = o(x.caller)
76+ let z = u(x.caller)
77+ let A = (y - z)
78+ if ((0 >= A))
9979 then throw("Claim amount must be bigger than 0")
10080 else {
101- let C = (A + B)
102- let D = invoke(k, "claimAndWithdrawENNO", nil, nil)
103- if ((D == D))
104- then [IntegerEntry((toString(y.caller) + a), C), IntegerEntry((toString(y.caller) + b), B)]
81+ let B = (z + A)
82+ let C = invoke(k, "claimAndWithdrawENNO", nil, nil)
83+ if ((C == C))
84+ then [IntegerEntry((toString(x.caller) + a), B), IntegerEntry((toString(x.caller) + b), A)]
10585 else throw("Strict value is not equal to itself.")
10686 }
10787 }
10888
10989
11090
111-@Callable(y)
91+@Callable(x)
11292 func claimAndStakeENNO () = if (!(l))
11393 then throw("DApp is inactive at this moment")
11494 else {
115- let z = o(y.caller)
116- let A = v(y.caller)
117- let B = (z - A)
118- if ((0 >= B))
95+ let y = o(x.caller)
96+ let z = u(x.caller)
97+ let A = (y - z)
98+ if ((0 >= A))
11999 then throw("Claim amount must be bigger than 0")
120100 else {
121- let C = (A + B)
122- let D = invoke(k, "claimAndStakeENNO", nil, nil)
123- if ((D == D))
124- then [IntegerEntry((toString(y.caller) + a), C), IntegerEntry((toString(y.caller) + b), B)]
101+ let B = (z + A)
102+ let C = invoke(k, "claimAndStakeENNO", nil, nil)
103+ if ((C == C))
104+ then [IntegerEntry((toString(x.caller) + a), B), IntegerEntry((toString(x.caller) + b), A)]
125105 else throw("Strict value is not equal to itself.")
126106 }
127107 }
128108
129109
130-@Verifier(E)
131-func F () = {
132- let s = E
133- let G = if (sigVerify(E.bodyBytes, E.proofs[0], g))
110+@Verifier(D)
111+func E () = {
112+ let s = D
113+ let F = if (sigVerify(D.bodyBytes, D.proofs[0], g))
134114 then 1
135115 else 0
136- let H = if (sigVerify(E.bodyBytes, E.proofs[1], h))
116+ let G = if (sigVerify(D.bodyBytes, D.proofs[1], h))
137117 then 1
138118 else 0
139- let I = if (sigVerify(E.bodyBytes, E.proofs[2], i))
119+ let H = if (sigVerify(D.bodyBytes, D.proofs[2], i))
140120 then 1
141121 else 0
142- (((G + H) + I) >= 2)
122+ (((F + G) + H) >= 2)
143123 }
144124
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_ENNO_claimed_amount"
55
66 let b = "_ENNO_last_claimed_amount"
77
88 let c = "_ENNO_amount"
99
1010 let d = "share_"
1111
1212 let e = "active"
1313
1414 let f = "shutdown_cause"
1515
1616 let g = base58'6uCSnTeNsFiTBE6u6npUmFezFkve5M54EgMVmfEEZ4Yn'
1717
1818 let h = base58'6uCSnTeNsFiTBE6u6npUmFezFkve5M54EgMVmfEEZ4Yn'
1919
2020 let i = base58'6uCSnTeNsFiTBE6u6npUmFezFkve5M54EgMVmfEEZ4Yn'
2121
2222 let j = base58'79G9MRTWPsir5gThDeuicpBuQxx8UFNqVaDUYcRfWtPA'
2323
2424 let k = addressFromPublicKey(base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8')
2525
2626 let l = valueOrElse(getBoolean(this, e), true)
2727
2828 func m (n) = [BooleanEntry(e, false), StringEntry(f, n)]
2929
3030
3131 func o (p) = {
3232 let q = getInteger(addressFromPublicKey(j), (d + toString(p)))
3333 let r = {
3434 let s = q
3535 if ($isInstanceOf(s, "Int"))
3636 then {
3737 let t = s
3838 t
3939 }
4040 else if ($isInstanceOf(s, "Unit"))
4141 then {
4242 let t = s
4343 throw("Only governance qualifiers can call this function.")
4444 }
4545 else throw("Match error")
4646 }
4747 r
4848 }
4949
5050
5151 func u (p) = {
52- let q = getInteger(k, (toString(p) + c))
53- let r = {
54- let s = q
55- if ($isInstanceOf(s, "Int"))
56- then {
57- let t = s
58- t
59- }
60- else if ($isInstanceOf(s, "Unit"))
61- then {
62- let t = s
63- throw("Only governance qualifiers can call this function.")
64- }
65- else throw("Match error")
66- }
67- r
68- }
69-
70-
71-func v (p) = {
72- let w = getInteger(k, (toString(p) + a))
73- let x = {
74- let s = w
52+ let v = getInteger(k, (toString(p) + a))
53+ let w = {
54+ let s = v
7555 if ($isInstanceOf(s, "Int"))
7656 then {
7757 let t = s
7858 t
7959 }
8060 else if ($isInstanceOf(s, "Unit"))
8161 then {
8262 let t = s
8363 0
8464 }
8565 else throw("Match error")
8666 }
87- x
67+ w
8868 }
8969
9070
91-@Callable(y)
71+@Callable(x)
9272 func claimAndWithdrawENNO () = if (!(l))
9373 then throw("DApp is inactive at this moment")
9474 else {
95- let z = o(y.caller)
96- let A = v(y.caller)
97- let B = (z - A)
98- if ((0 >= B))
75+ let y = o(x.caller)
76+ let z = u(x.caller)
77+ let A = (y - z)
78+ if ((0 >= A))
9979 then throw("Claim amount must be bigger than 0")
10080 else {
101- let C = (A + B)
102- let D = invoke(k, "claimAndWithdrawENNO", nil, nil)
103- if ((D == D))
104- then [IntegerEntry((toString(y.caller) + a), C), IntegerEntry((toString(y.caller) + b), B)]
81+ let B = (z + A)
82+ let C = invoke(k, "claimAndWithdrawENNO", nil, nil)
83+ if ((C == C))
84+ then [IntegerEntry((toString(x.caller) + a), B), IntegerEntry((toString(x.caller) + b), A)]
10585 else throw("Strict value is not equal to itself.")
10686 }
10787 }
10888
10989
11090
111-@Callable(y)
91+@Callable(x)
11292 func claimAndStakeENNO () = if (!(l))
11393 then throw("DApp is inactive at this moment")
11494 else {
115- let z = o(y.caller)
116- let A = v(y.caller)
117- let B = (z - A)
118- if ((0 >= B))
95+ let y = o(x.caller)
96+ let z = u(x.caller)
97+ let A = (y - z)
98+ if ((0 >= A))
11999 then throw("Claim amount must be bigger than 0")
120100 else {
121- let C = (A + B)
122- let D = invoke(k, "claimAndStakeENNO", nil, nil)
123- if ((D == D))
124- then [IntegerEntry((toString(y.caller) + a), C), IntegerEntry((toString(y.caller) + b), B)]
101+ let B = (z + A)
102+ let C = invoke(k, "claimAndStakeENNO", nil, nil)
103+ if ((C == C))
104+ then [IntegerEntry((toString(x.caller) + a), B), IntegerEntry((toString(x.caller) + b), A)]
125105 else throw("Strict value is not equal to itself.")
126106 }
127107 }
128108
129109
130-@Verifier(E)
131-func F () = {
132- let s = E
133- let G = if (sigVerify(E.bodyBytes, E.proofs[0], g))
110+@Verifier(D)
111+func E () = {
112+ let s = D
113+ let F = if (sigVerify(D.bodyBytes, D.proofs[0], g))
134114 then 1
135115 else 0
136- let H = if (sigVerify(E.bodyBytes, E.proofs[1], h))
116+ let G = if (sigVerify(D.bodyBytes, D.proofs[1], h))
137117 then 1
138118 else 0
139- let I = if (sigVerify(E.bodyBytes, E.proofs[2], i))
119+ let H = if (sigVerify(D.bodyBytes, D.proofs[2], i))
140120 then 1
141121 else 0
142- (((G + H) + I) >= 2)
122+ (((F + G) + H) >= 2)
143123 }
144124

github/deemru/w8io/026f985 
34.02 ms