tx · Dox8HpadeCRzmZhVpFTTiXe35b4AVJKVmPA6jTWNVF54 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6: -0.01400000 Waves 2021.05.12 15:41 [1522464] smart account 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "Dox8HpadeCRzmZhVpFTTiXe35b4AVJKVmPA6jTWNVF54", "fee": 1400000, "feeAssetId": null, "timestamp": 1620823264991, "version": 2, "chainId": 84, "sender": "3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6", "senderPublicKey": "75SuvmjmHX6J7smVGHvWY6acr5mqyRQCYpFxeFQh8Cy3", "proofs": [ "4xmrYBMyKAgSJ7D8tmmRxsQA9W1ynJiW2FfaoSp2HfhDrGxLbikw4JXvrcPCxbMyoU6gEV161EruQmfc22762Cuu" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA7AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAABRrZXlNYXhBbW91bnRPZlZvdGluZwIAAAARbWF4X2Ftb3VudF92b3RpbmcAAAAAEWtleU1heERheU9mVm90aW5nAgAAAA5tYXhfZGF5X3ZvdGluZwAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb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QkAAAIAAAABAgAAABZEQXBwIGlzIGFscmVhZHkgYWN0aXZlAwkBAAAAASEAAAABCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAxhZG1pblB1YktleTEJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkyCQAETAAAAAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTEX+L4=", "height": 1522464, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3Rjhexgm1NwkDMDrDi2xFGfs6CJhzN7SLSjneLnG1onL Next: CBLRg5DHh7Ls2xBXZAFXsnfTq3Fy2GABKUsg7Ut73Xbd Diff:
Old | New | Differences | |
---|---|---|---|
120 | 120 | ||
121 | 121 | ||
122 | 122 | func ad (ae,af,ag) = { | |
123 | - | let ah = isDefined(getInteger(this, ae)) | |
124 | - | if (if (ah) | |
123 | + | let ah = split(ae, "_") | |
124 | + | let ai = isDefined(getInteger(this, ae)) | |
125 | + | if (if (ai) | |
125 | 126 | then (ae != "") | |
126 | 127 | else false) | |
127 | 128 | then { | |
128 | - | let ai = split(ae, "_") | |
129 | - | let aj = ai[2] | |
129 | + | let aj = ah[2] | |
130 | 130 | let ak = (((((af + "_") + ag) + "_") + aj) + r) | |
131 | 131 | let al = isDefined(getInteger(this, ak)) | |
132 | 132 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | - | func ao (ae) = { | |
147 | - | let ah = isDefined(getInteger(this, ae)) | |
148 | - | if (if (ah) | |
146 | + | func ao (ap) = { | |
147 | + | let ae = valueOrElse(getString(this, ap), "") | |
148 | + | let ah = split(ae, "_") | |
149 | + | let ai = isDefined(getInteger(this, ae)) | |
150 | + | if (if (ai) | |
149 | 151 | then (ae != "") | |
150 | 152 | else false) | |
151 | 153 | then { | |
152 | - | let ai = split(ae, "_") | |
153 | - | let aj = ai[2] | |
154 | + | let aj = ah[2] | |
154 | 155 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
155 | 156 | let an = valueOrElse(getBoolean(this, (aj + h)), true) | |
156 | 157 | if ((am > height)) | |
157 | 158 | then if (an) | |
158 | 159 | then "" | |
159 | - | else | |
160 | - | else | |
160 | + | else ap | |
161 | + | else ap | |
161 | 162 | } | |
162 | - | else | |
163 | + | else ap | |
163 | 164 | } | |
164 | 165 | ||
165 | 166 | ||
166 | - | func | |
167 | + | func aq (af,ag) = if (if (if (if (ad(J, af, ag)) | |
167 | 168 | then true | |
168 | 169 | else ad(K, af, ag)) | |
169 | 170 | then true | |
174 | 175 | else ad(N, af, ag) | |
175 | 176 | ||
176 | 177 | ||
177 | - | func | |
178 | + | func ar (aj) = { | |
178 | 179 | let am = valueOrElse(getInteger(this, (toString(aj) + e)), 0) | |
179 | 180 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
180 | - | let | |
181 | + | let as = height | |
181 | 182 | if ((0 > aj)) | |
182 | 183 | then 0 | |
183 | 184 | else if (!(an)) | |
184 | 185 | then 0 | |
185 | - | else if ((am > | |
186 | + | else if ((am > as)) | |
186 | 187 | then 1 | |
187 | 188 | else 0 | |
188 | 189 | } | |
189 | 190 | ||
190 | 191 | ||
191 | - | func | |
192 | + | func at () = ((((ar(valueOrElse(getInteger(this, J), -1)) + ar(valueOrElse(getInteger(this, K), -1))) + ar(valueOrElse(getInteger(this, L), -1))) + ar(valueOrElse(getInteger(this, M), -1))) + ar(valueOrElse(getInteger(this, N), -1))) | |
192 | 193 | ||
193 | 194 | ||
194 | - | func | |
195 | - | then | |
196 | - | else if ((ao( | |
197 | - | then | |
198 | - | else if ((ao( | |
199 | - | then | |
200 | - | else if ((ao( | |
201 | - | then | |
202 | - | else if ((ao( | |
203 | - | then | |
195 | + | func au () = if ((ao(t) != "")) | |
196 | + | then t | |
197 | + | else if ((ao(u) != "")) | |
198 | + | then u | |
199 | + | else if ((ao(v) != "")) | |
200 | + | then v | |
201 | + | else if ((ao(w) != "")) | |
202 | + | then w | |
203 | + | else if ((ao(x) != "")) | |
204 | + | then x | |
204 | 205 | else "" | |
205 | 206 | ||
206 | 207 | ||
207 | - | func | |
208 | + | func av (aw) = if ((aw == "WAVES")) | |
208 | 209 | then unit | |
209 | - | else fromBase58String( | |
210 | + | else fromBase58String(aw) | |
210 | 211 | ||
211 | 212 | ||
212 | - | func | |
213 | + | func ax (ay) = if ((valueOrElse(getInteger(D, (toString(ay) + p)), 0) > 0)) | |
213 | 214 | then true | |
214 | 215 | else false | |
215 | 216 | ||
216 | 217 | ||
217 | - | func | |
218 | + | func az (aA) = [BooleanEntry(c, false), StringEntry(n, aA)] | |
218 | 219 | ||
219 | 220 | ||
220 | - | func | |
221 | + | func aB (aC,aD) = throw(((((("Insufficient DApp balance to pay " + toString(aC)) + " ") + aD) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
221 | 222 | ||
222 | 223 | ||
223 | - | @Callable( | |
224 | - | func init () = if (( | |
224 | + | @Callable(aE) | |
225 | + | func init () = if ((aE.caller != this)) | |
225 | 226 | then throw("Only the DApp itself can call this function") | |
226 | 227 | else if (isDefined(getBoolean(this, c))) | |
227 | 228 | then throw("DApp is already active") | |
228 | 229 | else { | |
229 | - | let aE = 0 | |
230 | 230 | let aF = 0 | |
231 | - | let aG = true | |
232 | - | let aH = "" | |
233 | - | [StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(i, aF), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aH), StringEntry(u, aH), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)] | |
231 | + | let aG = 0 | |
232 | + | let aH = true | |
233 | + | let aI = "" | |
234 | + | [StringEntry(b, a), BooleanEntry(c, aH), IntegerEntry(d, aF), IntegerEntry(i, aG), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aI), StringEntry(u, aI), StringEntry(v, aI), StringEntry(w, aI), StringEntry(x, aI)] | |
234 | 235 | } | |
235 | 236 | ||
236 | 237 | ||
237 | 238 | ||
238 | - | @Callable( | |
239 | + | @Callable(aE) | |
239 | 240 | func initVotingForNewPool (af,ag) = { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
241 | + | let aJ = $Tuple2(aE.payments[0].amount, aE.payments[0].assetId) | |
242 | + | let aK = aJ._1 | |
243 | + | let aL = aJ._2 | |
244 | + | let aM = $Tuple2(av(af), av(ag)) | |
245 | + | let aN = aM._1 | |
246 | + | let aO = aM._2 | |
247 | + | let aP = au() | |
248 | + | let aQ = at() | |
249 | + | let aR = aq(af, ag) | |
250 | + | let aS = W(aN) | |
251 | + | let aT = aS._1 | |
252 | + | let aU = aS._2 | |
253 | + | let aV = aS._3 | |
254 | + | let aW = W(aO) | |
255 | + | let aX = aW._1 | |
256 | + | let aY = aW._2 | |
257 | + | let aZ = aW._3 | |
257 | 258 | if (!(G)) | |
258 | 259 | then throw("DApp is inactive at this moment") | |
259 | - | else if (( | |
260 | + | else if ((aN == aO)) | |
260 | 261 | then throw("Assets must be different") | |
261 | - | else if ( | |
262 | + | else if (aR) | |
262 | 263 | then throw("This pool already exists") | |
263 | - | else if (if ((( | |
264 | + | else if (if (((aQ + 1) > T)) | |
264 | 265 | then true | |
265 | - | else ( | |
266 | + | else (aP == "")) | |
266 | 267 | then throw(("Too many votes. Maximum quantity -" + toString(T))) | |
267 | - | else if ((size( | |
268 | + | else if ((size(aE.payments) != 1)) | |
268 | 269 | then throw("One attached assets expected") | |
269 | - | else if (( | |
270 | + | else if ((aL != F)) | |
270 | 271 | then throw("You must use a SWOP token") | |
271 | 272 | else if (if ((af == "")) | |
272 | 273 | then true | |
273 | 274 | else (ag == "")) | |
274 | 275 | then throw("Assets can't be empty") | |
275 | - | else if (( | |
276 | + | else if ((aK != O)) | |
276 | 277 | then throw("You need to attach 10 SWOP tokens") | |
277 | - | else if (!(if (if (( | |
278 | + | else if (!(if (if ((aO == E)) | |
278 | 279 | then true | |
279 | 280 | else (aN == unit)) | |
280 | 281 | then true | |
281 | 282 | else (aN == F))) | |
282 | 283 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
283 | - | else [IntegerEntry((((((af + "_") + ag) + "_") + toString(I)) + r), I), IntegerEntry((toString(I) + e), (height + V)), BooleanEntry((toString(I) + h), true), IntegerEntry(i, (I + 1)), IntegerEntry(d, ( | |
284 | + | else [IntegerEntry((((((af + "_") + ag) + "_") + toString(I)) + r), I), IntegerEntry((toString(I) + e), (height + V)), BooleanEntry((toString(I) + h), true), IntegerEntry(i, (I + 1)), IntegerEntry(d, (aQ + 1)), StringEntry((af + q), aU), StringEntry((ag + q), aY), StringEntry(aP, (((((af + "_") + ag) + "_") + toString(I)) + r)), ScriptTransfer(C, aK, aL)] | |
284 | 285 | } | |
285 | 286 | ||
286 | 287 | ||
287 | 288 | ||
288 | - | @Callable( | |
289 | - | func voteForPool (aj, | |
290 | - | let | |
291 | - | let | |
289 | + | @Callable(aE) | |
290 | + | func voteForPool (aj,ba,bb) = { | |
291 | + | let as = height | |
292 | + | let bc = valueOrErrorMessage(getIntegerValue(this, (toString(aj) + e)), "Empty pool height") | |
292 | 293 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
293 | - | let | |
294 | - | let | |
295 | - | if (!( | |
294 | + | let bd = valueOrElse(getInteger(D, (toString(aE.caller) + p)), 0) | |
295 | + | let be = ((valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + g)), 0) + valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + f)), 0)) + bb) | |
296 | + | if (!(ax(aE.caller))) | |
296 | 297 | then throw("This address has 0 SWOP in Governance dApp") | |
297 | 298 | else if (!(an)) | |
298 | 299 | then throw("This voting was canceled") | |
299 | - | else if (( | |
300 | + | else if ((as > bc)) | |
300 | 301 | then throw("This voting was expired") | |
301 | - | else if ((0 > | |
302 | + | else if ((0 > bb)) | |
302 | 303 | then throw("The number of votes must be positive") | |
303 | - | else if (( | |
304 | - | then throw((((toString(this) + " has ") + toString( | |
305 | - | else if ( | |
304 | + | else if ((be > bd)) | |
305 | + | then throw((((toString(this) + " has ") + toString(bd)) + " SWOP in governance.")) | |
306 | + | else if (ba) | |
306 | 307 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | [IntegerEntry((toString(aj) + g), | |
308 | + | let bf = valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + g)), 0) | |
309 | + | let bg = ((valueOrElse(getInteger(this, (toString(aj) + g)), 0) - bf) + bb) | |
310 | + | [IntegerEntry((toString(aj) + g), bg), IntegerEntry((((toString(aE.caller) + "_") + toString(aj)) + g), bb)] | |
310 | 311 | } | |
311 | 312 | else { | |
312 | - | let | |
313 | - | let | |
314 | - | [IntegerEntry((toString(aj) + f), | |
313 | + | let bf = valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + f)), 0) | |
314 | + | let bg = ((valueOrElse(getInteger(this, (toString(aj) + f)), 0) - bf) + bb) | |
315 | + | [IntegerEntry((toString(aj) + f), bg), IntegerEntry((((toString(aE.caller) + "_") + toString(aj)) + f), bb)] | |
315 | 316 | } | |
316 | 317 | } | |
317 | 318 | ||
318 | 319 | ||
319 | 320 | ||
320 | - | @Callable( | |
321 | - | func cancellationVoting (aj, | |
321 | + | @Callable(aE) | |
322 | + | func cancellationVoting (aj,aA) = { | |
322 | 323 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
323 | 324 | if (!(G)) | |
324 | 325 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
325 | - | else if (!(containsElement([y, z, A, B], | |
326 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
326 | 327 | then throw("Only admin can call this function") | |
327 | 328 | else if (!(an)) | |
328 | 329 | then throw((("Voting " + toString(aj)) + " has already been stopped")) | |
329 | - | else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(aj) + h), false), StringEntry((toString(aj) + o), | |
330 | + | else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(aj) + h), false), StringEntry((toString(aj) + o), aA)] | |
330 | 331 | } | |
331 | 332 | ||
332 | 333 | ||
333 | 334 | ||
334 | - | @Callable( | |
335 | + | @Callable(aE) | |
335 | 336 | func shutdown () = if (!(G)) | |
336 | 337 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
337 | - | else if (!(containsElement([y, z, A, B], | |
338 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
338 | 339 | then throw("Only admin can call this function") | |
339 | - | else | |
340 | + | else az("Paused by admin") | |
340 | 341 | ||
341 | 342 | ||
342 | 343 | ||
343 | - | @Callable( | |
344 | + | @Callable(aE) | |
344 | 345 | func activate () = if (G) | |
345 | 346 | then throw("DApp is already active") | |
346 | - | else if (!(containsElement([y, z, A, B], | |
347 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
347 | 348 | then throw("Only admin can call this function") | |
348 | 349 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
349 | 350 | ||
350 | 351 | ||
351 | - | @Verifier( | |
352 | - | func | |
352 | + | @Verifier(bh) | |
353 | + | func bi () = sigVerify(bh.bodyBytes, bh.proofs[0], bh.senderPublicKey) | |
353 | 354 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "number_voting" | |
11 | 11 | ||
12 | 12 | let e = "_height" | |
13 | 13 | ||
14 | 14 | let f = "_no" | |
15 | 15 | ||
16 | 16 | let g = "_yes" | |
17 | 17 | ||
18 | 18 | let h = "_status" | |
19 | 19 | ||
20 | 20 | let i = "amount_voting" | |
21 | 21 | ||
22 | 22 | let j = "max_amount_voting" | |
23 | 23 | ||
24 | 24 | let k = "max_day_voting" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "_cancel_cause" | |
33 | 33 | ||
34 | 34 | let p = "_SWOP_amount" | |
35 | 35 | ||
36 | 36 | let q = "_name" | |
37 | 37 | ||
38 | 38 | let r = "_votingId" | |
39 | 39 | ||
40 | 40 | let s = "period_voting" | |
41 | 41 | ||
42 | 42 | let t = "active_vote_first" | |
43 | 43 | ||
44 | 44 | let u = "active_vote_second" | |
45 | 45 | ||
46 | 46 | let v = "active_vote_third" | |
47 | 47 | ||
48 | 48 | let w = "active_vote_fourth" | |
49 | 49 | ||
50 | 50 | let x = "active_vote_fifth" | |
51 | 51 | ||
52 | 52 | let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
53 | 53 | ||
54 | 54 | let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | 55 | ||
56 | 56 | let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 57 | ||
58 | 58 | let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
60 | 60 | let C = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 61 | ||
62 | 62 | let D = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
63 | 63 | ||
64 | 64 | let E = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
65 | 65 | ||
66 | 66 | let F = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
67 | 67 | ||
68 | 68 | let G = getBooleanValue(this, c) | |
69 | 69 | ||
70 | 70 | let H = getIntegerValue(this, d) | |
71 | 71 | ||
72 | 72 | let I = getIntegerValue(this, i) | |
73 | 73 | ||
74 | 74 | let J = valueOrElse(getString(this, t), "") | |
75 | 75 | ||
76 | 76 | let K = valueOrElse(getString(this, u), "") | |
77 | 77 | ||
78 | 78 | let L = valueOrElse(getString(this, v), "") | |
79 | 79 | ||
80 | 80 | let M = valueOrElse(getString(this, w), "") | |
81 | 81 | ||
82 | 82 | let N = valueOrElse(getString(this, x), "") | |
83 | 83 | ||
84 | 84 | let O = 1000000000 | |
85 | 85 | ||
86 | 86 | let P = 1000 | |
87 | 87 | ||
88 | 88 | let Q = 100000000 | |
89 | 89 | ||
90 | 90 | let R = 1000 | |
91 | 91 | ||
92 | 92 | let S = 8 | |
93 | 93 | ||
94 | 94 | let T = 5 | |
95 | 95 | ||
96 | 96 | let U = 5 | |
97 | 97 | ||
98 | 98 | let V = (1440 * U) | |
99 | 99 | ||
100 | 100 | func W (X) = { | |
101 | 101 | let Y = X | |
102 | 102 | if ($isInstanceOf(Y, "ByteVector")) | |
103 | 103 | then { | |
104 | 104 | let Z = Y | |
105 | 105 | if (isDefined(assetInfo(Z))) | |
106 | 106 | then { | |
107 | 107 | let aa = toBase58String(Z) | |
108 | 108 | let ab = valueOrErrorMessage(assetInfo(Z), (("Asset " + aa) + " doesn't exist")) | |
109 | 109 | $Tuple3(aa, ab.name, ab.decimals) | |
110 | 110 | } | |
111 | 111 | else throw("Asset is not define") | |
112 | 112 | } | |
113 | 113 | else if ($isInstanceOf(Y, "Unit")) | |
114 | 114 | then { | |
115 | 115 | let ac = Y | |
116 | 116 | $Tuple3("WAVES", "WAVES", 8) | |
117 | 117 | } | |
118 | 118 | else throw("Match error") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func ad (ae,af,ag) = { | |
123 | - | let ah = isDefined(getInteger(this, ae)) | |
124 | - | if (if (ah) | |
123 | + | let ah = split(ae, "_") | |
124 | + | let ai = isDefined(getInteger(this, ae)) | |
125 | + | if (if (ai) | |
125 | 126 | then (ae != "") | |
126 | 127 | else false) | |
127 | 128 | then { | |
128 | - | let ai = split(ae, "_") | |
129 | - | let aj = ai[2] | |
129 | + | let aj = ah[2] | |
130 | 130 | let ak = (((((af + "_") + ag) + "_") + aj) + r) | |
131 | 131 | let al = isDefined(getInteger(this, ak)) | |
132 | 132 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
133 | 133 | let an = valueOrElse(getBoolean(this, (aj + h)), true) | |
134 | 134 | if (al) | |
135 | 135 | then if ((am > height)) | |
136 | 136 | then if (an) | |
137 | 137 | then true | |
138 | 138 | else false | |
139 | 139 | else false | |
140 | 140 | else false | |
141 | 141 | } | |
142 | 142 | else false | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | - | func ao (ae) = { | |
147 | - | let ah = isDefined(getInteger(this, ae)) | |
148 | - | if (if (ah) | |
146 | + | func ao (ap) = { | |
147 | + | let ae = valueOrElse(getString(this, ap), "") | |
148 | + | let ah = split(ae, "_") | |
149 | + | let ai = isDefined(getInteger(this, ae)) | |
150 | + | if (if (ai) | |
149 | 151 | then (ae != "") | |
150 | 152 | else false) | |
151 | 153 | then { | |
152 | - | let ai = split(ae, "_") | |
153 | - | let aj = ai[2] | |
154 | + | let aj = ah[2] | |
154 | 155 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
155 | 156 | let an = valueOrElse(getBoolean(this, (aj + h)), true) | |
156 | 157 | if ((am > height)) | |
157 | 158 | then if (an) | |
158 | 159 | then "" | |
159 | - | else | |
160 | - | else | |
160 | + | else ap | |
161 | + | else ap | |
161 | 162 | } | |
162 | - | else | |
163 | + | else ap | |
163 | 164 | } | |
164 | 165 | ||
165 | 166 | ||
166 | - | func | |
167 | + | func aq (af,ag) = if (if (if (if (ad(J, af, ag)) | |
167 | 168 | then true | |
168 | 169 | else ad(K, af, ag)) | |
169 | 170 | then true | |
170 | 171 | else ad(L, af, ag)) | |
171 | 172 | then true | |
172 | 173 | else ad(M, af, ag)) | |
173 | 174 | then true | |
174 | 175 | else ad(N, af, ag) | |
175 | 176 | ||
176 | 177 | ||
177 | - | func | |
178 | + | func ar (aj) = { | |
178 | 179 | let am = valueOrElse(getInteger(this, (toString(aj) + e)), 0) | |
179 | 180 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
180 | - | let | |
181 | + | let as = height | |
181 | 182 | if ((0 > aj)) | |
182 | 183 | then 0 | |
183 | 184 | else if (!(an)) | |
184 | 185 | then 0 | |
185 | - | else if ((am > | |
186 | + | else if ((am > as)) | |
186 | 187 | then 1 | |
187 | 188 | else 0 | |
188 | 189 | } | |
189 | 190 | ||
190 | 191 | ||
191 | - | func | |
192 | + | func at () = ((((ar(valueOrElse(getInteger(this, J), -1)) + ar(valueOrElse(getInteger(this, K), -1))) + ar(valueOrElse(getInteger(this, L), -1))) + ar(valueOrElse(getInteger(this, M), -1))) + ar(valueOrElse(getInteger(this, N), -1))) | |
192 | 193 | ||
193 | 194 | ||
194 | - | func | |
195 | - | then | |
196 | - | else if ((ao( | |
197 | - | then | |
198 | - | else if ((ao( | |
199 | - | then | |
200 | - | else if ((ao( | |
201 | - | then | |
202 | - | else if ((ao( | |
203 | - | then | |
195 | + | func au () = if ((ao(t) != "")) | |
196 | + | then t | |
197 | + | else if ((ao(u) != "")) | |
198 | + | then u | |
199 | + | else if ((ao(v) != "")) | |
200 | + | then v | |
201 | + | else if ((ao(w) != "")) | |
202 | + | then w | |
203 | + | else if ((ao(x) != "")) | |
204 | + | then x | |
204 | 205 | else "" | |
205 | 206 | ||
206 | 207 | ||
207 | - | func | |
208 | + | func av (aw) = if ((aw == "WAVES")) | |
208 | 209 | then unit | |
209 | - | else fromBase58String( | |
210 | + | else fromBase58String(aw) | |
210 | 211 | ||
211 | 212 | ||
212 | - | func | |
213 | + | func ax (ay) = if ((valueOrElse(getInteger(D, (toString(ay) + p)), 0) > 0)) | |
213 | 214 | then true | |
214 | 215 | else false | |
215 | 216 | ||
216 | 217 | ||
217 | - | func | |
218 | + | func az (aA) = [BooleanEntry(c, false), StringEntry(n, aA)] | |
218 | 219 | ||
219 | 220 | ||
220 | - | func | |
221 | + | func aB (aC,aD) = throw(((((("Insufficient DApp balance to pay " + toString(aC)) + " ") + aD) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
221 | 222 | ||
222 | 223 | ||
223 | - | @Callable( | |
224 | - | func init () = if (( | |
224 | + | @Callable(aE) | |
225 | + | func init () = if ((aE.caller != this)) | |
225 | 226 | then throw("Only the DApp itself can call this function") | |
226 | 227 | else if (isDefined(getBoolean(this, c))) | |
227 | 228 | then throw("DApp is already active") | |
228 | 229 | else { | |
229 | - | let aE = 0 | |
230 | 230 | let aF = 0 | |
231 | - | let aG = true | |
232 | - | let aH = "" | |
233 | - | [StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(i, aF), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aH), StringEntry(u, aH), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)] | |
231 | + | let aG = 0 | |
232 | + | let aH = true | |
233 | + | let aI = "" | |
234 | + | [StringEntry(b, a), BooleanEntry(c, aH), IntegerEntry(d, aF), IntegerEntry(i, aG), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aI), StringEntry(u, aI), StringEntry(v, aI), StringEntry(w, aI), StringEntry(x, aI)] | |
234 | 235 | } | |
235 | 236 | ||
236 | 237 | ||
237 | 238 | ||
238 | - | @Callable( | |
239 | + | @Callable(aE) | |
239 | 240 | func initVotingForNewPool (af,ag) = { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
241 | + | let aJ = $Tuple2(aE.payments[0].amount, aE.payments[0].assetId) | |
242 | + | let aK = aJ._1 | |
243 | + | let aL = aJ._2 | |
244 | + | let aM = $Tuple2(av(af), av(ag)) | |
245 | + | let aN = aM._1 | |
246 | + | let aO = aM._2 | |
247 | + | let aP = au() | |
248 | + | let aQ = at() | |
249 | + | let aR = aq(af, ag) | |
250 | + | let aS = W(aN) | |
251 | + | let aT = aS._1 | |
252 | + | let aU = aS._2 | |
253 | + | let aV = aS._3 | |
254 | + | let aW = W(aO) | |
255 | + | let aX = aW._1 | |
256 | + | let aY = aW._2 | |
257 | + | let aZ = aW._3 | |
257 | 258 | if (!(G)) | |
258 | 259 | then throw("DApp is inactive at this moment") | |
259 | - | else if (( | |
260 | + | else if ((aN == aO)) | |
260 | 261 | then throw("Assets must be different") | |
261 | - | else if ( | |
262 | + | else if (aR) | |
262 | 263 | then throw("This pool already exists") | |
263 | - | else if (if ((( | |
264 | + | else if (if (((aQ + 1) > T)) | |
264 | 265 | then true | |
265 | - | else ( | |
266 | + | else (aP == "")) | |
266 | 267 | then throw(("Too many votes. Maximum quantity -" + toString(T))) | |
267 | - | else if ((size( | |
268 | + | else if ((size(aE.payments) != 1)) | |
268 | 269 | then throw("One attached assets expected") | |
269 | - | else if (( | |
270 | + | else if ((aL != F)) | |
270 | 271 | then throw("You must use a SWOP token") | |
271 | 272 | else if (if ((af == "")) | |
272 | 273 | then true | |
273 | 274 | else (ag == "")) | |
274 | 275 | then throw("Assets can't be empty") | |
275 | - | else if (( | |
276 | + | else if ((aK != O)) | |
276 | 277 | then throw("You need to attach 10 SWOP tokens") | |
277 | - | else if (!(if (if (( | |
278 | + | else if (!(if (if ((aO == E)) | |
278 | 279 | then true | |
279 | 280 | else (aN == unit)) | |
280 | 281 | then true | |
281 | 282 | else (aN == F))) | |
282 | 283 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
283 | - | else [IntegerEntry((((((af + "_") + ag) + "_") + toString(I)) + r), I), IntegerEntry((toString(I) + e), (height + V)), BooleanEntry((toString(I) + h), true), IntegerEntry(i, (I + 1)), IntegerEntry(d, ( | |
284 | + | else [IntegerEntry((((((af + "_") + ag) + "_") + toString(I)) + r), I), IntegerEntry((toString(I) + e), (height + V)), BooleanEntry((toString(I) + h), true), IntegerEntry(i, (I + 1)), IntegerEntry(d, (aQ + 1)), StringEntry((af + q), aU), StringEntry((ag + q), aY), StringEntry(aP, (((((af + "_") + ag) + "_") + toString(I)) + r)), ScriptTransfer(C, aK, aL)] | |
284 | 285 | } | |
285 | 286 | ||
286 | 287 | ||
287 | 288 | ||
288 | - | @Callable( | |
289 | - | func voteForPool (aj, | |
290 | - | let | |
291 | - | let | |
289 | + | @Callable(aE) | |
290 | + | func voteForPool (aj,ba,bb) = { | |
291 | + | let as = height | |
292 | + | let bc = valueOrErrorMessage(getIntegerValue(this, (toString(aj) + e)), "Empty pool height") | |
292 | 293 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
293 | - | let | |
294 | - | let | |
295 | - | if (!( | |
294 | + | let bd = valueOrElse(getInteger(D, (toString(aE.caller) + p)), 0) | |
295 | + | let be = ((valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + g)), 0) + valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + f)), 0)) + bb) | |
296 | + | if (!(ax(aE.caller))) | |
296 | 297 | then throw("This address has 0 SWOP in Governance dApp") | |
297 | 298 | else if (!(an)) | |
298 | 299 | then throw("This voting was canceled") | |
299 | - | else if (( | |
300 | + | else if ((as > bc)) | |
300 | 301 | then throw("This voting was expired") | |
301 | - | else if ((0 > | |
302 | + | else if ((0 > bb)) | |
302 | 303 | then throw("The number of votes must be positive") | |
303 | - | else if (( | |
304 | - | then throw((((toString(this) + " has ") + toString( | |
305 | - | else if ( | |
304 | + | else if ((be > bd)) | |
305 | + | then throw((((toString(this) + " has ") + toString(bd)) + " SWOP in governance.")) | |
306 | + | else if (ba) | |
306 | 307 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | [IntegerEntry((toString(aj) + g), | |
308 | + | let bf = valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + g)), 0) | |
309 | + | let bg = ((valueOrElse(getInteger(this, (toString(aj) + g)), 0) - bf) + bb) | |
310 | + | [IntegerEntry((toString(aj) + g), bg), IntegerEntry((((toString(aE.caller) + "_") + toString(aj)) + g), bb)] | |
310 | 311 | } | |
311 | 312 | else { | |
312 | - | let | |
313 | - | let | |
314 | - | [IntegerEntry((toString(aj) + f), | |
313 | + | let bf = valueOrElse(getInteger(this, (((toString(aE.caller) + "_") + toString(aj)) + f)), 0) | |
314 | + | let bg = ((valueOrElse(getInteger(this, (toString(aj) + f)), 0) - bf) + bb) | |
315 | + | [IntegerEntry((toString(aj) + f), bg), IntegerEntry((((toString(aE.caller) + "_") + toString(aj)) + f), bb)] | |
315 | 316 | } | |
316 | 317 | } | |
317 | 318 | ||
318 | 319 | ||
319 | 320 | ||
320 | - | @Callable( | |
321 | - | func cancellationVoting (aj, | |
321 | + | @Callable(aE) | |
322 | + | func cancellationVoting (aj,aA) = { | |
322 | 323 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
323 | 324 | if (!(G)) | |
324 | 325 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
325 | - | else if (!(containsElement([y, z, A, B], | |
326 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
326 | 327 | then throw("Only admin can call this function") | |
327 | 328 | else if (!(an)) | |
328 | 329 | then throw((("Voting " + toString(aj)) + " has already been stopped")) | |
329 | - | else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(aj) + h), false), StringEntry((toString(aj) + o), | |
330 | + | else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(aj) + h), false), StringEntry((toString(aj) + o), aA)] | |
330 | 331 | } | |
331 | 332 | ||
332 | 333 | ||
333 | 334 | ||
334 | - | @Callable( | |
335 | + | @Callable(aE) | |
335 | 336 | func shutdown () = if (!(G)) | |
336 | 337 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
337 | - | else if (!(containsElement([y, z, A, B], | |
338 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
338 | 339 | then throw("Only admin can call this function") | |
339 | - | else | |
340 | + | else az("Paused by admin") | |
340 | 341 | ||
341 | 342 | ||
342 | 343 | ||
343 | - | @Callable( | |
344 | + | @Callable(aE) | |
344 | 345 | func activate () = if (G) | |
345 | 346 | then throw("DApp is already active") | |
346 | - | else if (!(containsElement([y, z, A, B], | |
347 | + | else if (!(containsElement([y, z, A, B], aE.callerPublicKey))) | |
347 | 348 | then throw("Only admin can call this function") | |
348 | 349 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
349 | 350 | ||
350 | 351 | ||
351 | - | @Verifier( | |
352 | - | func | |
352 | + | @Verifier(bh) | |
353 | + | func bi () = sigVerify(bh.bodyBytes, bh.proofs[0], bh.senderPublicKey) | |
353 | 354 |
github/deemru/w8io/169f3d6 93.96 ms ◑