tx · J34VZAA2VhYrzkkd85A4QQsnY6k6B7zbbUAZyj18dAax

3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb:  -0.01400000 Waves

2021.11.15 14:12 [1792071] smart account 3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb > SELF 0.00000000 Waves

{ "type": 13, "id": "J34VZAA2VhYrzkkd85A4QQsnY6k6B7zbbUAZyj18dAax", "fee": 1400000, "feeAssetId": null, "timestamp": 1636974762694, "version": 2, "chainId": 84, "sender": "3Mzgi6deFV8CyF2nqbWSBkqba5JaD42EXyb", "senderPublicKey": "61fhePmC5L8iWserAMXoPAZbv24cAo6eyvnyYpoLpZJy", "proofs": [ "2WkCr8GaGu9wED16AtYjyUuHeCcrGAvd3UZg6vBfWNmAt8wNaBd4HhDvkYTkXgekmXT6MqFQrtozcvxgSbKYBN4n" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA6AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAABR2b3RpbmdfYWN0aXZlX251bWJlcgAAAAAPa2V5SGVpZ2h0T2ZQb29sAgAAAA5fZmluaXNoX2hlaWdodAAAAAAFa2V5Tm8CAAAAD190b3RhbF92b3Rlc19ubwAAAAAGa2V5WWVzAgAAABBfdG90YWxfdm90ZXNfeWVzAAAAAAlrZXlOb1VzZXICAAAACF92b3RlX25vAAAAAAprZXlZZXNVc2VyAgAAAAlfdm90ZV95ZXMAAAAAEWtleVN0YXR1c09mVm90aW5nAgAAAAdfc3RhdHVzAAAAABFrZXlBbW91bnRPZlZvdGluZwIAAAAOdm90aW5nX2lkX2xhc3QAAAAAFGtleU1heEFtb3VudE9mVm90aW5nAgAAABFtYXhfYW1vdW50X3ZvdGluZwAAAAARa2V5TWF4RGF5T2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AnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACNlaXCw==", "height": 1792071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3tFSfG4t8GfuYP7RNKicdHAF9xBAMvjFp2kjmgdYWfs5 Next: 6A12VU362axm4rgdfw3vdR68TBm6X4ZH6hQ9b9VAHBYA Diff:
OldNewDifferences
4949
5050 let x = "voting_active_cell_3"
5151
52-let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let y = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+let z = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
56+let A = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
5757
5858 let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6565
6666 let F = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
6767
68-let G = getBooleanValue(this, c)
68+let G = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
6969
70-let H = getIntegerValue(this, d)
70+let H = getBooleanValue(this, c)
7171
72-let I = getIntegerValue(this, k)
72+let I = getIntegerValue(this, d)
7373
74-let J = valueOrElse(getString(this, v), "")
74+let J = getIntegerValue(this, k)
7575
76-let K = valueOrElse(getString(this, w), "")
76+let K = valueOrElse(getString(this, v), "")
7777
78-let L = valueOrElse(getString(this, x), "")
78+let L = valueOrElse(getString(this, w), "")
7979
80-let M = 1000000000
80+let M = valueOrElse(getString(this, x), "")
8181
82-let N = 1000
82+let N = 1000000000
8383
84-let O = 100000000
84+let O = 1000
8585
86-let P = 1000
86+let P = 100000000
8787
88-let Q = 8
88+let Q = 1000
8989
90-let R = 3
90+let R = 8
9191
92-let S = 7
92+let S = 3
9393
94-let T = 5
94+let T = 7
9595
96-func U (V) = {
97- let W = V
98- if ($isInstanceOf(W, "ByteVector"))
96+let U = (1443 * T)
97+
98+func V (W) = {
99+ let X = W
100+ if ($isInstanceOf(X, "ByteVector"))
99101 then {
100- let X = W
101- if (isDefined(assetInfo(X)))
102+ let Y = X
103+ if (isDefined(assetInfo(Y)))
102104 then {
103- let Y = toBase58String(X)
104- let Z = valueOrErrorMessage(assetInfo(X), (("Asset " + Y) + " doesn't exist"))
105- $Tuple3(Y, Z.name, Z.decimals)
105+ let Z = toBase58String(Y)
106+ let aa = valueOrErrorMessage(assetInfo(Y), (("Asset " + Z) + " doesn't exist"))
107+ $Tuple3(Z, aa.name, aa.decimals)
106108 }
107109 else throw("Asset is not defined")
108110 }
109- else if ($isInstanceOf(W, "Unit"))
111+ else if ($isInstanceOf(X, "Unit"))
110112 then {
111- let aa = W
113+ let ab = X
112114 $Tuple3("WAVES", "WAVES", 8)
113115 }
114116 else throw("Match error")
115117 }
116118
117119
118-func ab (ac,ad,ae) = {
119- let af = split(ac, "_")
120- let ag = isDefined(getInteger(this, ac))
121- if (if (ag)
122- then (ac != "")
120+func ac (ad,ae,af) = {
121+ let ag = split(ad, "_")
122+ let ah = isDefined(getInteger(this, ad))
123+ if (if (ah)
124+ then (ad != "")
123125 else false)
124126 then {
125- let ah = af[2]
126- let ai = (((((ad + "_") + ae) + "_") + ah) + t)
127- let aj = isDefined(getInteger(this, ai))
128- let ak = valueOrElse(getInteger(this, (ah + e)), 0)
129- let al = valueOrElse(getBoolean(this, (ah + j)), true)
130- if (aj)
131- then if ((ak > height))
132- then if (al)
127+ let ai = ag[2]
128+ let aj = (((((ae + "_") + af) + "_") + ai) + t)
129+ let ak = isDefined(getInteger(this, aj))
130+ let al = valueOrElse(getInteger(this, (ai + e)), 0)
131+ let am = valueOrElse(getBoolean(this, (ai + j)), true)
132+ if (ak)
133+ then if ((al > height))
134+ then if (am)
133135 then true
134136 else false
135137 else false
139141 }
140142
141143
142-func am (an) = {
143- let ac = valueOrElse(getString(this, an), "")
144- let af = split(ac, "_")
145- let ag = isDefined(getInteger(this, ac))
146- if (if (ag)
147- then (ac != "")
144+func an (ao) = {
145+ let ad = valueOrElse(getString(this, ao), "")
146+ let ag = split(ad, "_")
147+ let ah = isDefined(getInteger(this, ad))
148+ if (if (ah)
149+ then (ad != "")
148150 else false)
149151 then {
150- let ah = af[2]
151- let ak = valueOrElse(getInteger(this, (ah + e)), 0)
152- let al = valueOrElse(getBoolean(this, (ah + j)), true)
153- if ((ak > height))
154- then if (al)
152+ let ai = ag[2]
153+ let al = valueOrElse(getInteger(this, (ai + e)), 0)
154+ let am = valueOrElse(getBoolean(this, (ai + j)), true)
155+ if ((al > height))
156+ then if (am)
155157 then ""
156- else an
157- else an
158+ else ao
159+ else ao
158160 }
159- else an
161+ else ao
160162 }
161163
162164
163-func ao (ad,ae) = if (if (ab(J, ad, ae))
165+func ap (ae,af) = if (if (ac(K, ae, af))
164166 then true
165- else ab(K, ad, ae))
167+ else ac(L, ae, af))
166168 then true
167- else ab(L, ad, ae)
169+ else ac(M, ae, af)
168170
169171
170-func ap (ah) = {
171- let ak = valueOrElse(getInteger(this, (toString(ah) + e)), 0)
172- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
173- let aq = height
174- if ((0 > ah))
172+func aq (ai) = {
173+ let al = valueOrElse(getInteger(this, (toString(ai) + e)), 0)
174+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
175+ let ar = height
176+ if ((0 > ai))
175177 then 0
176- else if (!(al))
178+ else if (!(am))
177179 then 0
178- else if ((ak > aq))
180+ else if ((al > ar))
179181 then 1
180182 else 0
181183 }
182184
183185
184-func ar () = ((ap(valueOrElse(getInteger(this, J), -1)) + ap(valueOrElse(getInteger(this, K), -1))) + ap(valueOrElse(getInteger(this, L), -1)))
186+func as () = ((aq(valueOrElse(getInteger(this, K), -1)) + aq(valueOrElse(getInteger(this, L), -1))) + aq(valueOrElse(getInteger(this, M), -1)))
185187
186188
187-func as () = if ((am(v) != ""))
189+func at () = if ((an(v) != ""))
188190 then v
189- else if ((am(w) != ""))
191+ else if ((an(w) != ""))
190192 then w
191- else if ((am(x) != ""))
193+ else if ((an(x) != ""))
192194 then x
193195 else ""
194196
195197
196-func at (au) = if ((au == "WAVES"))
198+func au (av) = if ((av == "WAVES"))
197199 then unit
198- else fromBase58String(au)
200+ else fromBase58String(av)
199201
200202
201-func av (aw) = if ((valueOrElse(getInteger(D, (toString(aw) + r)), 0) > 0))
203+func aw (ax) = if ((valueOrElse(getInteger(D, (toString(ax) + r)), 0) > 0))
202204 then true
203205 else false
204206
205207
206-func ax (ay) = [BooleanEntry(c, false), StringEntry(p, ay)]
208+func ay (az) = [BooleanEntry(c, false), StringEntry(p, az)]
207209
208210
209-func az (aA,aB) = throw(((((("Insufficient DApp balance to pay " + toString(aA)) + " ") + aB) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
211+func aA (aB,aC) = throw(((((("Insufficient DApp balance to pay " + toString(aB)) + " ") + aC) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
210212
211213
212-@Callable(aC)
213-func init () = if ((aC.caller != this))
214+@Callable(aD)
215+func init () = if ((aD.caller != this))
214216 then throw("Only the DApp itself can call this function")
215217 else if (isDefined(getBoolean(this, c)))
216218 then throw("DApp is already active")
217219 else {
218- let aD = 0
219220 let aE = 0
220- let aF = true
221- let aG = ""
222-[StringEntry(b, a), BooleanEntry(c, aF), IntegerEntry(d, aD), IntegerEntry(k, aE), IntegerEntry(l, R), IntegerEntry(m, S), StringEntry(v, aG), StringEntry(w, aG), StringEntry(x, aG)]
221+ let aF = 0
222+ let aG = true
223+ let aH = ""
224+[StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(k, aF), IntegerEntry(l, S), IntegerEntry(m, T), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)]
223225 }
224226
225227
226228
227-@Callable(aC)
228-func initVotingForNewPool (ad,ae) = {
229- let aH = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId)
230- let aI = aH._1
231- let aJ = aH._2
232- let aK = $Tuple2(at(ad), at(ae))
233- let aL = aK._1
234- let aM = aK._2
235- let aN = as()
236- let aO = ar()
237- let aP = ao(ad, ae)
238- let aQ = U(aL)
239- let aR = aQ._1
240- let aS = aQ._2
241- let aT = aQ._3
242- let aU = U(aM)
243- let aV = aU._1
244- let aW = aU._2
245- let aX = aU._3
246- if (!(G))
229+@Callable(aD)
230+func initVotingForNewPool (ae,af) = {
231+ let aI = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
232+ let aJ = aI._1
233+ let aK = aI._2
234+ let aL = $Tuple2(au(ae), au(af))
235+ let aM = aL._1
236+ let aN = aL._2
237+ let aO = at()
238+ let aP = as()
239+ let aQ = ap(ae, af)
240+ let aR = V(aM)
241+ let aS = aR._1
242+ let aT = aR._2
243+ let aU = aR._3
244+ let aV = V(aN)
245+ let aW = aV._1
246+ let aX = aV._2
247+ let aY = aV._3
248+ if (!(H))
247249 then throw("DApp is inactive at this moment")
248- else if ((aL == aM))
250+ else if ((aM == aN))
249251 then throw("Assets must be different")
250- else if (aP)
252+ else if (aQ)
251253 then throw("This pool already exists")
252- else if (if (((aO + 1) > R))
254+ else if (if (((aP + 1) > S))
253255 then true
254- else (aN == ""))
255- then throw(("Too many votings. Maximum quantity: " + toString(R)))
256- else if ((size(aC.payments) != 1))
256+ else (aO == ""))
257+ then throw(("Too many votings. Maximum quantity: " + toString(S)))
258+ else if ((size(aD.payments) != 1))
257259 then throw("One attached asset expected")
258- else if ((aJ != F))
260+ else if ((aK != F))
259261 then throw("You must use a SWOP token")
260- else if (if ((ad == ""))
262+ else if (if ((ae == ""))
261263 then true
262- else (ae == ""))
264+ else (af == ""))
263265 then throw("Assets can't be empty")
264- else if ((aI != M))
266+ else if ((aJ != N))
265267 then throw("You need to attach 10 SWOP tokens")
266- else if (!(if (if ((aM == E))
268+ else if (!(if (if (if ((aN == E))
267269 then true
268- else (aM == unit))
270+ else (aN == unit))
269271 then true
270- else (aM == F)))
272+ else (aN == F))
273+ then true
274+ else (aN == G)))
271275 then throw("assetB must be USDN, WAVES or SWOP")
272- else [IntegerEntry((((((ad + "_") + ae) + "_") + toString(I)) + t), I), IntegerEntry((toString(I) + e), (height + T)), BooleanEntry((toString(I) + j), true), IntegerEntry(k, (I + 1)), IntegerEntry(d, (aO + 1)), StringEntry((ad + s), aS), StringEntry((ae + s), aW), StringEntry(aN, (((((ad + "_") + ae) + "_") + toString(I)) + t)), ScriptTransfer(C, aI, aJ)]
276+ else [IntegerEntry((((((ae + "_") + af) + "_") + toString(J)) + t), J), IntegerEntry((toString(J) + e), (height + U)), BooleanEntry((toString(J) + j), true), IntegerEntry(k, (J + 1)), IntegerEntry(d, (aP + 1)), StringEntry((ae + s), aT), StringEntry((af + s), aX), StringEntry(aO, (((((ae + "_") + af) + "_") + toString(J)) + t)), ScriptTransfer(C, aJ, aK)]
273277 }
274278
275279
276280
277-@Callable(aC)
278-func voteForPool (ah,aY,aZ) = {
279- let aq = height
280- let ba = valueOrErrorMessage(getIntegerValue(this, (toString(ah) + e)), "Empty pool height")
281- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
282- let bb = valueOrElse(getInteger(D, (toString(aC.caller) + r)), 0)
283- let bc = if (aY)
284- then (valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + h)), 0) + aZ)
285- else (valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + i)), 0) + aZ)
286- if (!(av(aC.caller)))
281+@Callable(aD)
282+func voteForPool (ai,aZ,ba) = {
283+ let ar = height
284+ let bb = valueOrErrorMessage(getIntegerValue(this, (toString(ai) + e)), "Empty pool height")
285+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
286+ let bc = valueOrElse(getInteger(D, (toString(aD.caller) + r)), 0)
287+ let bd = if (aZ)
288+ then (valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + h)), 0) + ba)
289+ else (valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + i)), 0) + ba)
290+ if (!(aw(aD.caller)))
287291 then throw("This address has 0 SWOP in Governance dApp")
288- else if (!(al))
292+ else if (!(am))
289293 then throw("This voting was canceled")
290- else if ((aq > ba))
294+ else if ((ar > bb))
291295 then throw("This voting was expired")
292- else if ((0 > aZ))
296+ else if ((0 > ba))
293297 then throw("The number of votes must be positive")
294- else if ((bc > bb))
295- then throw((((toString(this) + " has ") + toString(bb)) + " SWOP in governance."))
296- else if (aY)
298+ else if ((bd > bc))
299+ then throw((((toString(this) + " has ") + toString(bc)) + " SWOP in governance."))
300+ else if (aZ)
297301 then {
298- let bd = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + i)), 0)
299- let be = ((valueOrElse(getInteger(this, (toString(ah) + g)), 0) - bd) + aZ)
300-[IntegerEntry((toString(ah) + g), be), IntegerEntry((((toString(aC.caller) + "_") + toString(ah)) + i), aZ)]
302+ let be = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + i)), 0)
303+ let bf = ((valueOrElse(getInteger(this, (toString(ai) + g)), 0) - be) + ba)
304+[IntegerEntry((toString(ai) + g), bf), IntegerEntry((((toString(aD.caller) + "_") + toString(ai)) + i), ba)]
301305 }
302306 else {
303- let bd = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + h)), 0)
304- let be = ((valueOrElse(getInteger(this, (toString(ah) + f)), 0) - bd) + aZ)
305-[IntegerEntry((toString(ah) + f), be), IntegerEntry((((toString(aC.caller) + "_") + toString(ah)) + h), aZ)]
307+ let be = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + h)), 0)
308+ let bf = ((valueOrElse(getInteger(this, (toString(ai) + f)), 0) - be) + ba)
309+[IntegerEntry((toString(ai) + f), bf), IntegerEntry((((toString(aD.caller) + "_") + toString(ai)) + h), ba)]
306310 }
307311 }
308312
309313
310314
311-@Callable(aC)
312-func cancelVoting (ah,ay) = {
313- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
314- if (!(G))
315+@Callable(aD)
316+func cancelVoting (ai,az) = {
317+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
318+ if (!(H))
315319 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified")))
316- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
320+ else if (!(containsElement([y, z, A], aD.callerPublicKey)))
317321 then throw("Only admin can call this function")
318- else if (!(al))
319- then throw((("Voting " + toString(ah)) + " has already been stopped"))
320- else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(ah) + j), false), StringEntry((toString(ah) + q), ay)]
322+ else if (!(am))
323+ then throw((("Voting " + toString(ai)) + " has already been stopped"))
324+ else [IntegerEntry(d, (I - 1)), BooleanEntry((toString(ai) + j), false), StringEntry((toString(ai) + q), az)]
321325 }
322326
323327
324328
325-@Callable(aC)
326-func shutdown () = if (!(G))
329+@Callable(aD)
330+func shutdown () = if (!(H))
327331 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified")))
328- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
332+ else if (!(containsElement([y, z, A, B], aD.callerPublicKey)))
329333 then throw("Only admin can call this function")
330- else ax("Paused by admin")
334+ else ay("Paused by admin")
331335
332336
333337
334-@Callable(aC)
335-func activate () = if (G)
338+@Callable(aD)
339+func activate () = if (H)
336340 then throw("DApp is already active")
337- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
341+ else if (!(containsElement([y, z, A, B], aD.callerPublicKey)))
338342 then throw("Only admin can call this function")
339343 else [BooleanEntry(c, true), DeleteEntry(p)]
340344
341345
342-@Verifier(bf)
343-func bg () = sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
346+@Verifier(bg)
347+func bh () = {
348+ let bi = if (sigVerify(bg.bodyBytes, bg.proofs[0], y))
349+ then 1
350+ else 0
351+ let bj = if (sigVerify(bg.bodyBytes, bg.proofs[1], z))
352+ then 1
353+ else 0
354+ let bk = if (sigVerify(bg.bodyBytes, bg.proofs[2], A))
355+ then 1
356+ else 0
357+ (((bi + bj) + bk) >= 2)
358+ }
344359
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
55
66 let b = "version"
77
88 let c = "active"
99
1010 let d = "voting_active_number"
1111
1212 let e = "_finish_height"
1313
1414 let f = "_total_votes_no"
1515
1616 let g = "_total_votes_yes"
1717
1818 let h = "_vote_no"
1919
2020 let i = "_vote_yes"
2121
2222 let j = "_status"
2323
2424 let k = "voting_id_last"
2525
2626 let l = "max_amount_voting"
2727
2828 let m = "max_day_voting"
2929
3030 let n = "commission"
3131
3232 let o = "commission_scale_delimiter"
3333
3434 let p = "shutdown_cause"
3535
3636 let q = "_cancel_cause"
3737
3838 let r = "_SWOP_amount"
3939
4040 let s = "_asset_name"
4141
4242 let t = "_voting"
4343
4444 let u = "period_voting"
4545
4646 let v = "voting_active_cell_1"
4747
4848 let w = "voting_active_cell_2"
4949
5050 let x = "voting_active_cell_3"
5151
52-let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let y = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy'
5353
54-let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+let z = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk'
5555
56-let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
56+let A = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP'
5757
5858 let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6060 let C = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6161
6262 let D = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
6363
6464 let E = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
6565
6666 let F = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
6767
68-let G = getBooleanValue(this, c)
68+let G = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7'
6969
70-let H = getIntegerValue(this, d)
70+let H = getBooleanValue(this, c)
7171
72-let I = getIntegerValue(this, k)
72+let I = getIntegerValue(this, d)
7373
74-let J = valueOrElse(getString(this, v), "")
74+let J = getIntegerValue(this, k)
7575
76-let K = valueOrElse(getString(this, w), "")
76+let K = valueOrElse(getString(this, v), "")
7777
78-let L = valueOrElse(getString(this, x), "")
78+let L = valueOrElse(getString(this, w), "")
7979
80-let M = 1000000000
80+let M = valueOrElse(getString(this, x), "")
8181
82-let N = 1000
82+let N = 1000000000
8383
84-let O = 100000000
84+let O = 1000
8585
86-let P = 1000
86+let P = 100000000
8787
88-let Q = 8
88+let Q = 1000
8989
90-let R = 3
90+let R = 8
9191
92-let S = 7
92+let S = 3
9393
94-let T = 5
94+let T = 7
9595
96-func U (V) = {
97- let W = V
98- if ($isInstanceOf(W, "ByteVector"))
96+let U = (1443 * T)
97+
98+func V (W) = {
99+ let X = W
100+ if ($isInstanceOf(X, "ByteVector"))
99101 then {
100- let X = W
101- if (isDefined(assetInfo(X)))
102+ let Y = X
103+ if (isDefined(assetInfo(Y)))
102104 then {
103- let Y = toBase58String(X)
104- let Z = valueOrErrorMessage(assetInfo(X), (("Asset " + Y) + " doesn't exist"))
105- $Tuple3(Y, Z.name, Z.decimals)
105+ let Z = toBase58String(Y)
106+ let aa = valueOrErrorMessage(assetInfo(Y), (("Asset " + Z) + " doesn't exist"))
107+ $Tuple3(Z, aa.name, aa.decimals)
106108 }
107109 else throw("Asset is not defined")
108110 }
109- else if ($isInstanceOf(W, "Unit"))
111+ else if ($isInstanceOf(X, "Unit"))
110112 then {
111- let aa = W
113+ let ab = X
112114 $Tuple3("WAVES", "WAVES", 8)
113115 }
114116 else throw("Match error")
115117 }
116118
117119
118-func ab (ac,ad,ae) = {
119- let af = split(ac, "_")
120- let ag = isDefined(getInteger(this, ac))
121- if (if (ag)
122- then (ac != "")
120+func ac (ad,ae,af) = {
121+ let ag = split(ad, "_")
122+ let ah = isDefined(getInteger(this, ad))
123+ if (if (ah)
124+ then (ad != "")
123125 else false)
124126 then {
125- let ah = af[2]
126- let ai = (((((ad + "_") + ae) + "_") + ah) + t)
127- let aj = isDefined(getInteger(this, ai))
128- let ak = valueOrElse(getInteger(this, (ah + e)), 0)
129- let al = valueOrElse(getBoolean(this, (ah + j)), true)
130- if (aj)
131- then if ((ak > height))
132- then if (al)
127+ let ai = ag[2]
128+ let aj = (((((ae + "_") + af) + "_") + ai) + t)
129+ let ak = isDefined(getInteger(this, aj))
130+ let al = valueOrElse(getInteger(this, (ai + e)), 0)
131+ let am = valueOrElse(getBoolean(this, (ai + j)), true)
132+ if (ak)
133+ then if ((al > height))
134+ then if (am)
133135 then true
134136 else false
135137 else false
136138 else false
137139 }
138140 else false
139141 }
140142
141143
142-func am (an) = {
143- let ac = valueOrElse(getString(this, an), "")
144- let af = split(ac, "_")
145- let ag = isDefined(getInteger(this, ac))
146- if (if (ag)
147- then (ac != "")
144+func an (ao) = {
145+ let ad = valueOrElse(getString(this, ao), "")
146+ let ag = split(ad, "_")
147+ let ah = isDefined(getInteger(this, ad))
148+ if (if (ah)
149+ then (ad != "")
148150 else false)
149151 then {
150- let ah = af[2]
151- let ak = valueOrElse(getInteger(this, (ah + e)), 0)
152- let al = valueOrElse(getBoolean(this, (ah + j)), true)
153- if ((ak > height))
154- then if (al)
152+ let ai = ag[2]
153+ let al = valueOrElse(getInteger(this, (ai + e)), 0)
154+ let am = valueOrElse(getBoolean(this, (ai + j)), true)
155+ if ((al > height))
156+ then if (am)
155157 then ""
156- else an
157- else an
158+ else ao
159+ else ao
158160 }
159- else an
161+ else ao
160162 }
161163
162164
163-func ao (ad,ae) = if (if (ab(J, ad, ae))
165+func ap (ae,af) = if (if (ac(K, ae, af))
164166 then true
165- else ab(K, ad, ae))
167+ else ac(L, ae, af))
166168 then true
167- else ab(L, ad, ae)
169+ else ac(M, ae, af)
168170
169171
170-func ap (ah) = {
171- let ak = valueOrElse(getInteger(this, (toString(ah) + e)), 0)
172- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
173- let aq = height
174- if ((0 > ah))
172+func aq (ai) = {
173+ let al = valueOrElse(getInteger(this, (toString(ai) + e)), 0)
174+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
175+ let ar = height
176+ if ((0 > ai))
175177 then 0
176- else if (!(al))
178+ else if (!(am))
177179 then 0
178- else if ((ak > aq))
180+ else if ((al > ar))
179181 then 1
180182 else 0
181183 }
182184
183185
184-func ar () = ((ap(valueOrElse(getInteger(this, J), -1)) + ap(valueOrElse(getInteger(this, K), -1))) + ap(valueOrElse(getInteger(this, L), -1)))
186+func as () = ((aq(valueOrElse(getInteger(this, K), -1)) + aq(valueOrElse(getInteger(this, L), -1))) + aq(valueOrElse(getInteger(this, M), -1)))
185187
186188
187-func as () = if ((am(v) != ""))
189+func at () = if ((an(v) != ""))
188190 then v
189- else if ((am(w) != ""))
191+ else if ((an(w) != ""))
190192 then w
191- else if ((am(x) != ""))
193+ else if ((an(x) != ""))
192194 then x
193195 else ""
194196
195197
196-func at (au) = if ((au == "WAVES"))
198+func au (av) = if ((av == "WAVES"))
197199 then unit
198- else fromBase58String(au)
200+ else fromBase58String(av)
199201
200202
201-func av (aw) = if ((valueOrElse(getInteger(D, (toString(aw) + r)), 0) > 0))
203+func aw (ax) = if ((valueOrElse(getInteger(D, (toString(ax) + r)), 0) > 0))
202204 then true
203205 else false
204206
205207
206-func ax (ay) = [BooleanEntry(c, false), StringEntry(p, ay)]
208+func ay (az) = [BooleanEntry(c, false), StringEntry(p, az)]
207209
208210
209-func az (aA,aB) = throw(((((("Insufficient DApp balance to pay " + toString(aA)) + " ") + aB) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
211+func aA (aB,aC) = throw(((((("Insufficient DApp balance to pay " + toString(aB)) + " ") + aC) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
210212
211213
212-@Callable(aC)
213-func init () = if ((aC.caller != this))
214+@Callable(aD)
215+func init () = if ((aD.caller != this))
214216 then throw("Only the DApp itself can call this function")
215217 else if (isDefined(getBoolean(this, c)))
216218 then throw("DApp is already active")
217219 else {
218- let aD = 0
219220 let aE = 0
220- let aF = true
221- let aG = ""
222-[StringEntry(b, a), BooleanEntry(c, aF), IntegerEntry(d, aD), IntegerEntry(k, aE), IntegerEntry(l, R), IntegerEntry(m, S), StringEntry(v, aG), StringEntry(w, aG), StringEntry(x, aG)]
221+ let aF = 0
222+ let aG = true
223+ let aH = ""
224+[StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(k, aF), IntegerEntry(l, S), IntegerEntry(m, T), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)]
223225 }
224226
225227
226228
227-@Callable(aC)
228-func initVotingForNewPool (ad,ae) = {
229- let aH = $Tuple2(aC.payments[0].amount, aC.payments[0].assetId)
230- let aI = aH._1
231- let aJ = aH._2
232- let aK = $Tuple2(at(ad), at(ae))
233- let aL = aK._1
234- let aM = aK._2
235- let aN = as()
236- let aO = ar()
237- let aP = ao(ad, ae)
238- let aQ = U(aL)
239- let aR = aQ._1
240- let aS = aQ._2
241- let aT = aQ._3
242- let aU = U(aM)
243- let aV = aU._1
244- let aW = aU._2
245- let aX = aU._3
246- if (!(G))
229+@Callable(aD)
230+func initVotingForNewPool (ae,af) = {
231+ let aI = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
232+ let aJ = aI._1
233+ let aK = aI._2
234+ let aL = $Tuple2(au(ae), au(af))
235+ let aM = aL._1
236+ let aN = aL._2
237+ let aO = at()
238+ let aP = as()
239+ let aQ = ap(ae, af)
240+ let aR = V(aM)
241+ let aS = aR._1
242+ let aT = aR._2
243+ let aU = aR._3
244+ let aV = V(aN)
245+ let aW = aV._1
246+ let aX = aV._2
247+ let aY = aV._3
248+ if (!(H))
247249 then throw("DApp is inactive at this moment")
248- else if ((aL == aM))
250+ else if ((aM == aN))
249251 then throw("Assets must be different")
250- else if (aP)
252+ else if (aQ)
251253 then throw("This pool already exists")
252- else if (if (((aO + 1) > R))
254+ else if (if (((aP + 1) > S))
253255 then true
254- else (aN == ""))
255- then throw(("Too many votings. Maximum quantity: " + toString(R)))
256- else if ((size(aC.payments) != 1))
256+ else (aO == ""))
257+ then throw(("Too many votings. Maximum quantity: " + toString(S)))
258+ else if ((size(aD.payments) != 1))
257259 then throw("One attached asset expected")
258- else if ((aJ != F))
260+ else if ((aK != F))
259261 then throw("You must use a SWOP token")
260- else if (if ((ad == ""))
262+ else if (if ((ae == ""))
261263 then true
262- else (ae == ""))
264+ else (af == ""))
263265 then throw("Assets can't be empty")
264- else if ((aI != M))
266+ else if ((aJ != N))
265267 then throw("You need to attach 10 SWOP tokens")
266- else if (!(if (if ((aM == E))
268+ else if (!(if (if (if ((aN == E))
267269 then true
268- else (aM == unit))
270+ else (aN == unit))
269271 then true
270- else (aM == F)))
272+ else (aN == F))
273+ then true
274+ else (aN == G)))
271275 then throw("assetB must be USDN, WAVES or SWOP")
272- else [IntegerEntry((((((ad + "_") + ae) + "_") + toString(I)) + t), I), IntegerEntry((toString(I) + e), (height + T)), BooleanEntry((toString(I) + j), true), IntegerEntry(k, (I + 1)), IntegerEntry(d, (aO + 1)), StringEntry((ad + s), aS), StringEntry((ae + s), aW), StringEntry(aN, (((((ad + "_") + ae) + "_") + toString(I)) + t)), ScriptTransfer(C, aI, aJ)]
276+ else [IntegerEntry((((((ae + "_") + af) + "_") + toString(J)) + t), J), IntegerEntry((toString(J) + e), (height + U)), BooleanEntry((toString(J) + j), true), IntegerEntry(k, (J + 1)), IntegerEntry(d, (aP + 1)), StringEntry((ae + s), aT), StringEntry((af + s), aX), StringEntry(aO, (((((ae + "_") + af) + "_") + toString(J)) + t)), ScriptTransfer(C, aJ, aK)]
273277 }
274278
275279
276280
277-@Callable(aC)
278-func voteForPool (ah,aY,aZ) = {
279- let aq = height
280- let ba = valueOrErrorMessage(getIntegerValue(this, (toString(ah) + e)), "Empty pool height")
281- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
282- let bb = valueOrElse(getInteger(D, (toString(aC.caller) + r)), 0)
283- let bc = if (aY)
284- then (valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + h)), 0) + aZ)
285- else (valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + i)), 0) + aZ)
286- if (!(av(aC.caller)))
281+@Callable(aD)
282+func voteForPool (ai,aZ,ba) = {
283+ let ar = height
284+ let bb = valueOrErrorMessage(getIntegerValue(this, (toString(ai) + e)), "Empty pool height")
285+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
286+ let bc = valueOrElse(getInteger(D, (toString(aD.caller) + r)), 0)
287+ let bd = if (aZ)
288+ then (valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + h)), 0) + ba)
289+ else (valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + i)), 0) + ba)
290+ if (!(aw(aD.caller)))
287291 then throw("This address has 0 SWOP in Governance dApp")
288- else if (!(al))
292+ else if (!(am))
289293 then throw("This voting was canceled")
290- else if ((aq > ba))
294+ else if ((ar > bb))
291295 then throw("This voting was expired")
292- else if ((0 > aZ))
296+ else if ((0 > ba))
293297 then throw("The number of votes must be positive")
294- else if ((bc > bb))
295- then throw((((toString(this) + " has ") + toString(bb)) + " SWOP in governance."))
296- else if (aY)
298+ else if ((bd > bc))
299+ then throw((((toString(this) + " has ") + toString(bc)) + " SWOP in governance."))
300+ else if (aZ)
297301 then {
298- let bd = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + i)), 0)
299- let be = ((valueOrElse(getInteger(this, (toString(ah) + g)), 0) - bd) + aZ)
300-[IntegerEntry((toString(ah) + g), be), IntegerEntry((((toString(aC.caller) + "_") + toString(ah)) + i), aZ)]
302+ let be = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + i)), 0)
303+ let bf = ((valueOrElse(getInteger(this, (toString(ai) + g)), 0) - be) + ba)
304+[IntegerEntry((toString(ai) + g), bf), IntegerEntry((((toString(aD.caller) + "_") + toString(ai)) + i), ba)]
301305 }
302306 else {
303- let bd = valueOrElse(getInteger(this, (((toString(aC.caller) + "_") + toString(ah)) + h)), 0)
304- let be = ((valueOrElse(getInteger(this, (toString(ah) + f)), 0) - bd) + aZ)
305-[IntegerEntry((toString(ah) + f), be), IntegerEntry((((toString(aC.caller) + "_") + toString(ah)) + h), aZ)]
307+ let be = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(ai)) + h)), 0)
308+ let bf = ((valueOrElse(getInteger(this, (toString(ai) + f)), 0) - be) + ba)
309+[IntegerEntry((toString(ai) + f), bf), IntegerEntry((((toString(aD.caller) + "_") + toString(ai)) + h), ba)]
306310 }
307311 }
308312
309313
310314
311-@Callable(aC)
312-func cancelVoting (ah,ay) = {
313- let al = valueOrElse(getBoolean(this, (toString(ah) + j)), true)
314- if (!(G))
315+@Callable(aD)
316+func cancelVoting (ai,az) = {
317+ let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true)
318+ if (!(H))
315319 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified")))
316- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
320+ else if (!(containsElement([y, z, A], aD.callerPublicKey)))
317321 then throw("Only admin can call this function")
318- else if (!(al))
319- then throw((("Voting " + toString(ah)) + " has already been stopped"))
320- else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(ah) + j), false), StringEntry((toString(ah) + q), ay)]
322+ else if (!(am))
323+ then throw((("Voting " + toString(ai)) + " has already been stopped"))
324+ else [IntegerEntry(d, (I - 1)), BooleanEntry((toString(ai) + j), false), StringEntry((toString(ai) + q), az)]
321325 }
322326
323327
324328
325-@Callable(aC)
326-func shutdown () = if (!(G))
329+@Callable(aD)
330+func shutdown () = if (!(H))
327331 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified")))
328- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
332+ else if (!(containsElement([y, z, A, B], aD.callerPublicKey)))
329333 then throw("Only admin can call this function")
330- else ax("Paused by admin")
334+ else ay("Paused by admin")
331335
332336
333337
334-@Callable(aC)
335-func activate () = if (G)
338+@Callable(aD)
339+func activate () = if (H)
336340 then throw("DApp is already active")
337- else if (!(containsElement([y, z, A, B], aC.callerPublicKey)))
341+ else if (!(containsElement([y, z, A, B], aD.callerPublicKey)))
338342 then throw("Only admin can call this function")
339343 else [BooleanEntry(c, true), DeleteEntry(p)]
340344
341345
342-@Verifier(bf)
343-func bg () = sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
346+@Verifier(bg)
347+func bh () = {
348+ let bi = if (sigVerify(bg.bodyBytes, bg.proofs[0], y))
349+ then 1
350+ else 0
351+ let bj = if (sigVerify(bg.bodyBytes, bg.proofs[1], z))
352+ then 1
353+ else 0
354+ let bk = if (sigVerify(bg.bodyBytes, bg.proofs[2], A))
355+ then 1
356+ else 0
357+ (((bi + bj) + bk) >= 2)
358+ }
344359

github/deemru/w8io/169f3d6 
383.96 ms