tx · 6S4BHJFb6D969eEj5nGDFHTkdQCDCDmbxohM7U87yztn

3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC:  -0.01500000 Waves

2023.02.02 11:23 [2431756] smart account 3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC > SELF 0.00000000 Waves

{ "type": 13, "id": "6S4BHJFb6D969eEj5nGDFHTkdQCDCDmbxohM7U87yztn", "fee": 1500000, "feeAssetId": null, "timestamp": 1675326268788, "version": 2, "chainId": 84, "sender": "3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC", "senderPublicKey": "EBCSQaTtuxQBJyc62F142LxJ3hpQtCwuZ2z9kkoe6Vvt", "proofs": [ "3KcAfhyUn3aY7p1MroZfGNV1c3LALDnKb6VTVkuTukLFDx3Xb5sqvsEytFZv7L85c2Lz5p2mM8imTCs1VrYAn8iJ", "3NmNHYE2KkRmy74EgXLJkvtJ6kgrAZ8C8n1S2UckydE2QeQwwy2xPHZ2fPduWnJrgbAbB83Da5ZExsfsrSophgkb" ], "script": "base64:BgIbCAISABIECgIICBIFCgMBBAESBAoCAQgSABIAPwAGb3JhY2xlCQEHQWRkcmVzcwEBGgFUSBOXDMDTM8wlMoC2KfenZGiAq+PMe0uZAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAA9rTnVtYmVyT2ZWb3RpbmcCFHZvdGluZ19hY3RpdmVfbnVtYmVyAA1rSGVpZ2h0T2ZQb29sAg5fZmluaXNoX2hlaWdodAADa05vAg9fdG90YWxfdm90ZXNfbm8ABGtZZXMCEF90b3RhbF92b3Rlc195ZXMAB2tOb1VzZXICCF92b3RlX25vAAhrWWVzVXNlcgIJX3ZvdGVfeWVzAA9rU3RhdHVzT2ZWb3RpbmcCB19zdGF0dXMAD2tBbW91bnRPZlZvdGluZwIOdm90aW5nX2lkX2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luQ2FsbAEFAWkDBQZhY3RpdmUJAAIBAhZEQXBwIGlzIGFscmVhZHkgYWN0aXZlCQDMCAIJAQxCb29sZWFuRW50cnkCBQdrQWN0aXZlBgkAzAgCCQELRGVsZXRlRW50cnkBBQZrQ2F1c2UFA25pbAECdHgBBnZlcmlmeQAEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAjpKtPU=", "height": 2431756, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FD34jxrbdMKGWz9w1h1qB6yTW3KYayAkXiECyhfD9EyP Next: 84v2Gaj5naiJ8sBGghaTWjni7b7ZJSvRJwnTpSQk3vAc Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
55
66 let b = "1.0.0"
77
88 let c = "version"
99
1010 let d = "active"
1111
1212 let e = "active_all_contracts"
1313
1414 let f = "voting_active_number"
1515
1616 let g = "_finish_height"
1717
1818 let h = "_total_votes_no"
1919
2020 let i = "_total_votes_yes"
2121
2222 let j = "_vote_no"
2323
2424 let k = "_vote_yes"
2525
2626 let l = "_status"
2727
2828 let m = "voting_id_last"
2929
3030 let n = "max_amount_voting"
3131
3232 let o = "max_day_voting"
3333
3434 let p = "shutdown_cause"
3535
3636 let q = "_cancel_cause"
3737
3838 let r = "_GSwop_amount"
3939
4040 let s = "_asset_name"
4141
4242 let t = "_voting"
4343
4444 let u = "voting_active_cell_1"
4545
4646 let v = "voting_active_cell_2"
4747
4848 let w = "voting_active_cell_3"
4949
5050 let x = "admin_pub_1"
5151
5252 let y = "admin_pub_2"
5353
5454 let z = "admin_pub_3"
5555
5656 let A = "money_box_address"
5757
5858 let B = "governance_address"
5959
6060 let C = "farming_address"
6161
6262 let D = "usdn_asset_id"
6363
6464 let E = "SWOP_id"
6565
6666 let F = getIntegerValue(this, f)
6767
6868 let G = getIntegerValue(this, m)
6969
7070 let H = valueOrElse(getString(this, u), "")
7171
7272 let I = valueOrElse(getString(this, v), "")
7373
7474 let J = valueOrElse(getString(this, w), "")
7575
7676 let K = getBooleanValue(this, d)
7777
7878 let L = valueOrElse(getBoolean(a, e), true)
7979
8080 let M = 1000000000
8181
8282 let N = 3
8383
8484 let O = 7
8585
8686 let P = (1443 * O)
8787
8888 func Q (R) = {
8989 let S = getString(a, R)
9090 if ($isInstanceOf(S, "String"))
9191 then {
9292 let T = S
9393 fromBase58String(T)
9494 }
9595 else {
9696 let U = S
9797 throw((R + "is empty"))
9898 }
9999 }
100100
101101
102102 let V = Q(x)
103103
104104 let W = Q(y)
105105
106106 let X = Q(z)
107107
108108 let Y = Address(Q(B))
109109
110110 let Z = Address(Q(C))
111111
112112 let aa = Address(Q(A))
113113
114114 let ab = Q(D)
115115
116116 let ac = fromBase58String(getStringValue(Z, E))
117117
118118 func ad () = if (if (K)
119119 then L
120120 else false)
121121 then unit
122122 else throw("DApp is inactive at this moment")
123123
124124
125125 func ae (af) = if (containsElement([V, W, X], af.callerPublicKey))
126126 then unit
127127 else throw("Only admin can call this function")
128128
129129
130130 func ag (ah) = {
131131 let S = ah
132132 if ($isInstanceOf(S, "ByteVector"))
133133 then {
134134 let ai = S
135135 if (isDefined(assetInfo(ai)))
136136 then {
137137 let aj = toBase58String(ai)
138138 let ak = valueOrErrorMessage(assetInfo(ai), (("Asset " + aj) + " doesn't exist"))
139139 $Tuple3(aj, ak.name, ak.decimals)
140140 }
141141 else throw("Asset is not defined")
142142 }
143143 else if ($isInstanceOf(S, "Unit"))
144144 then {
145145 let al = S
146146 $Tuple3("WAVES", "WAVES", 8)
147147 }
148148 else throw("Match error")
149149 }
150150
151151
152152 func am (an,ao,ap) = {
153153 let aq = split(an, "_")
154154 let ar = isDefined(getInteger(this, an))
155155 if (if (ar)
156156 then (an != "")
157157 else false)
158158 then {
159159 let as = aq[2]
160160 let at = (((((ao + "_") + ap) + "_") + as) + t)
161161 let au = isDefined(getInteger(this, at))
162162 let av = valueOrElse(getInteger(this, (as + g)), 0)
163163 let aw = valueOrElse(getBoolean(this, (as + l)), true)
164164 if (au)
165165 then if ((av > height))
166166 then if (aw)
167167 then true
168168 else false
169169 else false
170170 else false
171171 }
172172 else false
173173 }
174174
175175
176176 func ax (ay) = {
177177 let an = valueOrElse(getString(this, ay), "")
178178 let aq = split(an, "_")
179179 let ar = isDefined(getInteger(this, an))
180180 if (if (ar)
181181 then (an != "")
182182 else false)
183183 then {
184184 let as = aq[2]
185185 let av = valueOrElse(getInteger(this, (as + g)), 0)
186186 let aw = valueOrElse(getBoolean(this, (as + l)), true)
187187 if ((av > height))
188188 then if (aw)
189189 then ""
190190 else ay
191191 else ay
192192 }
193193 else ay
194194 }
195195
196196
197197 func az (ao,ap) = if (if (am(H, ao, ap))
198198 then true
199199 else am(I, ao, ap))
200200 then true
201201 else am(J, ao, ap)
202202
203203
204204 func aA (as) = {
205205 let av = valueOrElse(getInteger(this, (toString(as) + g)), 0)
206206 let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true)
207207 let aB = height
208208 if ((0 > as))
209209 then 0
210210 else if (!(aw))
211211 then 0
212212 else if ((av > aB))
213213 then 1
214214 else 0
215215 }
216216
217217
218218 func aC () = ((aA(valueOrElse(getInteger(this, H), -1)) + aA(valueOrElse(getInteger(this, I), -1))) + aA(valueOrElse(getInteger(this, J), -1)))
219219
220220
221221 func aD () = if ((ax(u) != ""))
222222 then u
223223 else if ((ax(v) != ""))
224224 then v
225225 else if ((ax(w) != ""))
226226 then w
227227 else ""
228228
229229
230230 func aE (aF) = if ((aF == "WAVES"))
231231 then unit
232232 else fromBase58String(aF)
233233
234234
235235 func aG (aH) = if ((valueOrElse(getInteger(Y, (toString(aH) + r)), 0) > 0))
236236 then true
237237 else false
238238
239239
240240 func aI (aJ) = [BooleanEntry(d, false), StringEntry(p, aJ)]
241241
242242
243243 @Callable(af)
244244 func init () = if ((af.caller != this))
245245 then throw("Only the DApp itself can call this function")
246246 else if (isDefined(getBoolean(this, d)))
247247 then throw("DApp is already active")
248248 else {
249249 let aK = 0
250250 let aL = 0
251251 let aM = true
252252 let aN = ""
253253 [StringEntry(c, b), BooleanEntry(d, aM), IntegerEntry(f, aK), IntegerEntry(m, aL), IntegerEntry(n, N), IntegerEntry(o, O), StringEntry(u, aN), StringEntry(v, aN), StringEntry(w, aN)]
254254 }
255255
256256
257257
258258 @Callable(af)
259259 func initVotingForNewPool (ao,ap) = valueOrElse(ad(), {
260260 let aO = $Tuple2(af.payments[0].amount, af.payments[0].assetId)
261261 let aP = aO._1
262262 let aQ = aO._2
263263 let aR = $Tuple2(aE(ao), aE(ap))
264264 let aS = aR._1
265265 let aT = aR._2
266266 let aU = aD()
267267 let aV = aC()
268268 let aW = az(ao, ap)
269269 let aX = ag(aS)
270270 let aY = aX._1
271271 let aZ = aX._2
272272 let ba = aX._3
273273 let bb = ag(aT)
274274 let bc = bb._1
275275 let bd = bb._2
276276 let be = bb._3
277277 if ((aS == aT))
278278 then throw("Assets must be different")
279279 else if (aW)
280280 then throw("This pool already exists")
281281 else if ((size(af.payments) != 1))
282282 then throw("One attached asset expected")
283283 else if ((aQ != ac))
284284 then throw("You must use a SWOP token")
285285 else if (if ((ao == ""))
286286 then true
287287 else (ap == ""))
288288 then throw("Assets can't be empty")
289289 else if ((aP != M))
290290 then throw("You need to attach 10 SWOP tokens")
291291 else if (!(if (if ((aT == ab))
292292 then true
293293 else (aT == unit))
294294 then true
295295 else (aT == ac)))
296296 then throw("assetB must be USDN, WAVES or SWOP")
297297 else if (if (((aV + 1) > N))
298298 then true
299299 else (aU == ""))
300300 then throw(("Too many votings. Maximum quantity: " + toString(N)))
301301 else [IntegerEntry((((((ao + "_") + ap) + "_") + toString(G)) + t), G), IntegerEntry((toString(G) + g), (height + P)), BooleanEntry((toString(G) + l), true), IntegerEntry(m, (G + 1)), IntegerEntry(f, (aV + 1)), StringEntry((ao + s), aZ), StringEntry((ap + s), bd), StringEntry(aU, (((((ao + "_") + ap) + "_") + toString(G)) + t)), ScriptTransfer(aa, aP, aQ)]
302302 })
303303
304304
305305
306306 @Callable(af)
307307 func voteForPool (as,bf,bg) = valueOrElse(ad(), {
308308 let aB = height
309309 let bh = valueOrErrorMessage(getIntegerValue(this, (toString(as) + g)), "Empty pool height")
310310 let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true)
311311 let bi = valueOrElse(getInteger(Y, (toString(af.caller) + r)), 0)
312312 let bj = if (bf)
313313 then (valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + j)), 0) + bg)
314314 else (valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + k)), 0) + bg)
315315 if (!(aG(af.caller)))
316316 then throw("This address has 0 SWOP in Governance dApp")
317317 else if (!(aw))
318318 then throw("This voting was canceled")
319319 else if ((aB > bh))
320320 then throw("This voting was expired")
321321 else if ((0 > bg))
322322 then throw("The number of votes must be positive")
323323 else if ((bj > bi))
324324 then throw((((toString(af.caller) + " has ") + toString(bi)) + " GSWOP in governance."))
325325 else if (bf)
326326 then {
327327 let bk = valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + k)), 0)
328328 let bl = ((valueOrElse(getInteger(this, (toString(as) + i)), 0) - bk) + bg)
329329 [IntegerEntry((toString(as) + i), bl), IntegerEntry((((toString(af.caller) + "_") + toString(as)) + k), bg)]
330330 }
331331 else {
332332 let bk = valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + j)), 0)
333333 let bl = ((valueOrElse(getInteger(this, (toString(as) + h)), 0) - bk) + bg)
334334 [IntegerEntry((toString(as) + h), bl), IntegerEntry((((toString(af.caller) + "_") + toString(as)) + j), bg)]
335335 }
336336 })
337337
338338
339339
340340 @Callable(af)
341341 func cancelVoting (as,aJ) = valueOrElse(ae(af), {
342342 let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true)
343343 if (!(aw))
344344 then throw((("Voting " + toString(as)) + " has already been stopped"))
345345 else [IntegerEntry(f, (F - 1)), BooleanEntry((toString(as) + l), false), StringEntry((toString(as) + q), aJ)]
346346 })
347347
348348
349349
350350 @Callable(af)
351351 func shutdown () = valueOrElse(ae(af), if (!(K))
352352 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified")))
353353 else aI("Paused by admin"))
354354
355355
356356
357357 @Callable(af)
358358 func activate () = valueOrElse(ae(af), if (K)
359359 then throw("DApp is already active")
360360 else [BooleanEntry(d, true), DeleteEntry(p)])
361361
362362
363363 @Verifier(bm)
364364 func bn () = {
365365 let bo = if (sigVerify(bm.bodyBytes, bm.proofs[0], V))
366366 then 1
367367 else 0
368368 let bp = if (sigVerify(bm.bodyBytes, bm.proofs[1], W))
369369 then 1
370370 else 0
371371 let bq = if (sigVerify(bm.bodyBytes, bm.proofs[2], X))
372372 then 1
373373 else 0
374374 (((bo + bp) + bq) >= 2)
375375 }
376376

github/deemru/w8io/026f985 
43.29 ms