tx · 99CtQ6X6XosLah7m8DARiZzHHsPCDradiWsHJG4J6dWk 3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa: -0.01100000 Waves 2023.02.02 11:25 [2431758] smart account 3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa > SELF 0.00000000 Waves
{ "type": 13, "id": "99CtQ6X6XosLah7m8DARiZzHHsPCDradiWsHJG4J6dWk", "fee": 1100000, "feeAssetId": null, "timestamp": 1675326391634, "version": 2, "chainId": 84, "sender": "3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa", "senderPublicKey": "HJ4MXkC5hCwrUSxdnzS5VVpQGe5zYXcUVukdiKcGNVnV", "proofs": [ "2JK8AVPH8fyoYcyeCeyQq1BLQU9mD3vNpTzFsuE49KCwav2A3R9cLKnRsAztbQbGKB6hhCHdf78LHXcBnnz4t1gn", "5358sJ8h1mhZPSz7n8BnwT4nHbh9YkJMepo9ZTroj3iNNkXyqq4WbbAFBhzeKC6Eqcdoznr8YN76JLB28PJApjGm" ], "script": "base64:BgIMCAISBAoCCAESABIALgAHa0FjdGl2ZQIGYWN0aXZlAA1rZXlBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1VzZXJQb29sVm90ZQIQX3VzZXJfdm90ZV9nU1dPUAAOa1VzZXJUb3RhbFZvdGUCFl91c2VyX3RvdGFsX3ZvdGVfZ1NXT1AACWtQb29sVm90ZQIQX3Bvb2xfdm90ZV9nU1dPUAAKa1RvdGFsVm90ZQIQdG90YWxfdm90ZV9nU1dPUAAQa0hhcnZlc3RQb29sVm90ZQIYX2hhcnZlc3RfcG9vbF92b3RlX2dTV09QABRrSGFydmVzdFVzZXJQb29sVm90ZQIdX2hhcnZlc3RfdXNlcl9wb29sX3ZvdGVfZ1NXT1AADGtTdGFydEhlaWdodAIMc3Rhc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PmFcvCLE7PfFwP24kJn Next: CRoGizM4phFffDZiKbZvhjPmBfA9FYMvCumn3EmN24WP Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "deprecated_" | |
9 | 9 | ||
10 | 10 | let d = "shutdown_cause" | |
11 | 11 | ||
12 | 12 | let e = "_user_vote_gSWOP" | |
13 | 13 | ||
14 | 14 | let f = "_user_total_vote_gSWOP" | |
15 | 15 | ||
16 | 16 | let g = "_pool_vote_gSWOP" | |
17 | 17 | ||
18 | 18 | let h = "total_vote_gSWOP" | |
19 | 19 | ||
20 | 20 | let i = "_harvest_pool_vote_gSWOP" | |
21 | 21 | ||
22 | 22 | let j = "_harvest_user_pool_vote_gSWOP" | |
23 | 23 | ||
24 | 24 | let k = "start_height" | |
25 | 25 | ||
26 | 26 | let l = "base_period" | |
27 | 27 | ||
28 | 28 | let m = "period_length" | |
29 | 29 | ||
30 | 30 | let n = "admin_pub_1" | |
31 | 31 | ||
32 | 32 | let o = "admin_pub_2" | |
33 | 33 | ||
34 | 34 | let p = "admin_pub_3" | |
35 | 35 | ||
36 | 36 | let q = "farming_address" | |
37 | 37 | ||
38 | 38 | let r = "governance_address" | |
39 | 39 | ||
40 | 40 | let s = "first_harvest_height" | |
41 | 41 | ||
42 | 42 | let t = "_pool_struc" | |
43 | 43 | ||
44 | 44 | let u = "_user_pool_struc" | |
45 | 45 | ||
46 | 46 | let v = "_user_total_struc" | |
47 | 47 | ||
48 | 48 | let w = "total_struc" | |
49 | 49 | ||
50 | 50 | let x = "_harvest_pool_activeVote_struc" | |
51 | 51 | ||
52 | 52 | let y = "_harvest_user_pool_activeVote_struc" | |
53 | 53 | ||
54 | 54 | let z = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
55 | 55 | ||
56 | 56 | let A = valueOrElse(getBoolean(this, a), true) | |
57 | 57 | ||
58 | 58 | let B = valueOrElse(getBoolean(z, b), true) | |
59 | 59 | ||
60 | 60 | let C = valueOrErrorMessage(getInteger(this, l), "Empty kBasePeriod") | |
61 | 61 | ||
62 | 62 | let D = valueOrErrorMessage(getInteger(this, k), "Empty kStartHeight") | |
63 | 63 | ||
64 | 64 | let E = valueOrErrorMessage(getInteger(this, m), "Empty kPeriodLength") | |
65 | 65 | ||
66 | 66 | func F (G) = { | |
67 | 67 | let H = getString(z, G) | |
68 | 68 | if ($isInstanceOf(H, "String")) | |
69 | 69 | then { | |
70 | 70 | let I = H | |
71 | 71 | fromBase58String(I) | |
72 | 72 | } | |
73 | 73 | else { | |
74 | 74 | let J = H | |
75 | 75 | throw((G + "is empty")) | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | let K = F(n) | |
81 | 81 | ||
82 | 82 | let L = F(o) | |
83 | 83 | ||
84 | 84 | let M = F(p) | |
85 | 85 | ||
86 | 86 | let N = Address(F(r)) | |
87 | 87 | ||
88 | 88 | let O = Address(F(q)) | |
89 | 89 | ||
90 | 90 | let P = (C + ((height - D) / E)) | |
91 | 91 | ||
92 | 92 | func Q () = if (if (A) | |
93 | 93 | then B | |
94 | 94 | else false) | |
95 | 95 | then unit | |
96 | 96 | else throw("DApp is inactive at this moment") | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func R (S) = if (containsElement([K, L, M], S.callerPublicKey)) | |
100 | 100 | then unit | |
101 | 101 | else throw("Only admin can call this function") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func T (U) = (valueOrElse(getInteger(N, (toString(U) + "_SWOP_amount")), 0) > 0) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func V (W) = isDefined(getInteger(N, (W + "_current_pool_fraction_reward"))) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func X (W) = valueOrElse(getBoolean(z, (c + W)), false) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func Y (W) = (valueOrElse(getInteger(Address(fromBase58String(W)), s), 0) - E) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func Z (aa) = [BooleanEntry(a, false), StringEntry(d, aa)] | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ab (ac,W) = { | |
120 | 120 | func ad (ae,G) = if (isDefined(getString(this, G))) | |
121 | 121 | then (ae :+ DeleteEntry(G)) | |
122 | 122 | else ae | |
123 | 123 | ||
124 | 124 | ad(ad(ad(ad(ad(ad(nil, (((ac + "_") + W) + u)), (ac + v)), (W + t)), w), (W + x)), (((ac + "_") + W) + y)) | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(S) | |
129 | 129 | func votePoolWeight (W,af) = valueOrElse(Q(), if (!(V(W))) | |
130 | 130 | then throw("This pool is not in Governance dApp") | |
131 | 131 | else { | |
132 | 132 | let ag = valueOrErrorMessage(getInteger(N, (toString(S.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
133 | 133 | let ah = valueOrElse(getInteger(N, (toString(S.caller) + "_GSwop_amount")), ag) | |
134 | 134 | let ai = if (isDefined(getString(this, (((toString(S.caller) + "_") + W) + u)))) | |
135 | 135 | then parseIntValue(split(value(getString(this, (((toString(S.caller) + "_") + W) + u))), "_")[0]) | |
136 | 136 | else valueOrElse(getInteger(this, (((toString(S.caller) + "_") + W) + e)), 0) | |
137 | 137 | let aj = if (isDefined(getString(this, (toString(S.caller) + v)))) | |
138 | 138 | then parseIntValue(split(value(getString(this, (toString(S.caller) + v))), "_")[0]) | |
139 | 139 | else valueOrElse(getInteger(this, (toString(S.caller) + f)), 0) | |
140 | 140 | let ak = if (isDefined(getString(this, (W + t)))) | |
141 | 141 | then parseIntValue(split(value(getString(this, (W + t))), "_")[0]) | |
142 | 142 | else valueOrElse(getInteger(this, (W + g)), 0) | |
143 | 143 | let al = if (isDefined(getString(this, w))) | |
144 | 144 | then parseIntValue(split(value(getString(this, w)), "_")[0]) | |
145 | 145 | else valueOrElse(getInteger(this, h), 0) | |
146 | 146 | let am = (af - ai) | |
147 | 147 | let an = (aj + am) | |
148 | 148 | if (if (X(W)) | |
149 | 149 | then (am > 0) | |
150 | 150 | else false) | |
151 | 151 | then throw("You can't vote for deprecated pool") | |
152 | 152 | else if ((an > ah)) | |
153 | 153 | then throw(((((toString(S.caller) + " has ") + toString(ah)) + " GSWOP in governance. New GSWOP in voting ") + toString(an))) | |
154 | 154 | else if ((0 > an)) | |
155 | 155 | then throw("New userTotalVoteSWOPnew < 0") | |
156 | 156 | else if ((0 > af)) | |
157 | 157 | then throw("New userPoolVoteSWOPnew < 0") | |
158 | 158 | else { | |
159 | 159 | let ao = -(am) | |
160 | 160 | let ap = if ((af >= ai)) | |
161 | 161 | then (ak + am) | |
162 | 162 | else (ak - ao) | |
163 | 163 | let aq = if ((af >= ai)) | |
164 | 164 | then (al + am) | |
165 | 165 | else (al - ao) | |
166 | 166 | if (if ((0 > ap)) | |
167 | 167 | then true | |
168 | 168 | else (0 > aq)) | |
169 | 169 | then throw("One or more values are negative") | |
170 | 170 | else { | |
171 | 171 | let ar = if ((Y(W) > height)) | |
172 | 172 | then [IntegerEntry((W + i), ap), IntegerEntry((((toString(S.caller) + "_") + W) + j), af)] | |
173 | 173 | else nil | |
174 | 174 | let as = invoke(O, "updateUserBoostInterest", [W, toString(S.caller)], nil) | |
175 | 175 | if ((as == as)) | |
176 | 176 | then (([IntegerEntry((((toString(S.caller) + "_") + W) + e), af), IntegerEntry((toString(S.caller) + f), an), IntegerEntry((W + g), ap), IntegerEntry(h, aq)] ++ ab(toString(S.caller), W)) ++ ar) | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | } | |
180 | 180 | }) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | ||
184 | 184 | @Callable(S) | |
185 | 185 | func shutdown () = valueOrElse(R(S), if (!(A)) | |
186 | 186 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, d), "the cause wasn't specified"))) | |
187 | 187 | else Z("Paused by admin")) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(S) | |
192 | 192 | func activate () = valueOrElse(R(S), if (A) | |
193 | 193 | then throw("DApp is already active") | |
194 | 194 | else [BooleanEntry(a, true), DeleteEntry(d)]) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | @Verifier(at) | |
198 | 198 | func au () = { | |
199 | 199 | let av = if (sigVerify(at.bodyBytes, at.proofs[0], K)) | |
200 | 200 | then 1 | |
201 | 201 | else 0 | |
202 | 202 | let aw = if (sigVerify(at.bodyBytes, at.proofs[1], L)) | |
203 | 203 | then 1 | |
204 | 204 | else 0 | |
205 | 205 | let ax = if (sigVerify(at.bodyBytes, at.proofs[2], M)) | |
206 | 206 | then 1 | |
207 | 207 | else 0 | |
208 | 208 | (((av + aw) + ax) >= 2) | |
209 | 209 | } | |
210 | 210 |
github/deemru/w8io/026f985 37.12 ms ◑