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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nR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACNlaXCw==", "height": 1792071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3tFSfG4t8GfuYP7RNKicdHAF9xBAMvjFp2kjmgdYWfs5 Next: 6A12VU362axm4rgdfw3vdR68TBm6X4ZH6hQ9b9VAHBYA Diff:
Old | New | Differences | |
---|---|---|---|
49 | 49 | ||
50 | 50 | let x = "voting_active_cell_3" | |
51 | 51 | ||
52 | - | let y = base58' | |
52 | + | let y = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
53 | 53 | ||
54 | - | let z = base58' | |
54 | + | let z = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
55 | 55 | ||
56 | - | let A = base58' | |
56 | + | let A = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
57 | 57 | ||
58 | 58 | let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
65 | 65 | ||
66 | 66 | let F = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7' | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = getBooleanValue(this, c) | |
71 | 71 | ||
72 | - | let I = getIntegerValue(this, | |
72 | + | let I = getIntegerValue(this, d) | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = getIntegerValue(this, k) | |
75 | 75 | ||
76 | - | let K = valueOrElse(getString(this, | |
76 | + | let K = valueOrElse(getString(this, v), "") | |
77 | 77 | ||
78 | - | let L = valueOrElse(getString(this, | |
78 | + | let L = valueOrElse(getString(this, w), "") | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = valueOrElse(getString(this, x), "") | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = 1000000000 | |
83 | 83 | ||
84 | - | let O = | |
84 | + | let O = 1000 | |
85 | 85 | ||
86 | - | let P = | |
86 | + | let P = 100000000 | |
87 | 87 | ||
88 | - | let Q = | |
88 | + | let Q = 1000 | |
89 | 89 | ||
90 | - | let R = | |
90 | + | let R = 8 | |
91 | 91 | ||
92 | - | let S = | |
92 | + | let S = 3 | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = 7 | |
95 | 95 | ||
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")) | |
99 | 101 | then { | |
100 | - | let | |
101 | - | if (isDefined(assetInfo( | |
102 | + | let Y = X | |
103 | + | if (isDefined(assetInfo(Y))) | |
102 | 104 | then { | |
103 | - | let | |
104 | - | let | |
105 | - | $Tuple3( | |
105 | + | let Z = toBase58String(Y) | |
106 | + | let aa = valueOrErrorMessage(assetInfo(Y), (("Asset " + Z) + " doesn't exist")) | |
107 | + | $Tuple3(Z, aa.name, aa.decimals) | |
106 | 108 | } | |
107 | 109 | else throw("Asset is not defined") | |
108 | 110 | } | |
109 | - | else if ($isInstanceOf( | |
111 | + | else if ($isInstanceOf(X, "Unit")) | |
110 | 112 | then { | |
111 | - | let | |
113 | + | let ab = X | |
112 | 114 | $Tuple3("WAVES", "WAVES", 8) | |
113 | 115 | } | |
114 | 116 | else throw("Match error") | |
115 | 117 | } | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
119 | - | let | |
120 | - | let | |
121 | - | if (if ( | |
122 | - | then ( | |
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 != "") | |
123 | 125 | else false) | |
124 | 126 | then { | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | if ( | |
131 | - | then if (( | |
132 | - | then if ( | |
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) | |
133 | 135 | then true | |
134 | 136 | else false | |
135 | 137 | else false | |
139 | 141 | } | |
140 | 142 | ||
141 | 143 | ||
142 | - | func | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | if (if ( | |
147 | - | then ( | |
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 != "") | |
148 | 150 | else false) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | if (( | |
154 | - | then if ( | |
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) | |
155 | 157 | then "" | |
156 | - | else | |
157 | - | else | |
158 | + | else ao | |
159 | + | else ao | |
158 | 160 | } | |
159 | - | else | |
161 | + | else ao | |
160 | 162 | } | |
161 | 163 | ||
162 | 164 | ||
163 | - | func | |
165 | + | func ap (ae,af) = if (if (ac(K, ae, af)) | |
164 | 166 | then true | |
165 | - | else | |
167 | + | else ac(L, ae, af)) | |
166 | 168 | then true | |
167 | - | else | |
169 | + | else ac(M, ae, af) | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | if ((0 > | |
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)) | |
175 | 177 | then 0 | |
176 | - | else if (!( | |
178 | + | else if (!(am)) | |
177 | 179 | then 0 | |
178 | - | else if (( | |
180 | + | else if ((al > ar)) | |
179 | 181 | then 1 | |
180 | 182 | else 0 | |
181 | 183 | } | |
182 | 184 | ||
183 | 185 | ||
184 | - | func | |
186 | + | func as () = ((aq(valueOrElse(getInteger(this, K), -1)) + aq(valueOrElse(getInteger(this, L), -1))) + aq(valueOrElse(getInteger(this, M), -1))) | |
185 | 187 | ||
186 | 188 | ||
187 | - | func | |
189 | + | func at () = if ((an(v) != "")) | |
188 | 190 | then v | |
189 | - | else if (( | |
191 | + | else if ((an(w) != "")) | |
190 | 192 | then w | |
191 | - | else if (( | |
193 | + | else if ((an(x) != "")) | |
192 | 194 | then x | |
193 | 195 | else "" | |
194 | 196 | ||
195 | 197 | ||
196 | - | func | |
198 | + | func au (av) = if ((av == "WAVES")) | |
197 | 199 | then unit | |
198 | - | else fromBase58String( | |
200 | + | else fromBase58String(av) | |
199 | 201 | ||
200 | 202 | ||
201 | - | func | |
203 | + | func aw (ax) = if ((valueOrElse(getInteger(D, (toString(ax) + r)), 0) > 0)) | |
202 | 204 | then true | |
203 | 205 | else false | |
204 | 206 | ||
205 | 207 | ||
206 | - | func | |
208 | + | func ay (az) = [BooleanEntry(c, false), StringEntry(p, az)] | |
207 | 209 | ||
208 | 210 | ||
209 | - | func | |
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")) | |
210 | 212 | ||
211 | 213 | ||
212 | - | @Callable( | |
213 | - | func init () = if (( | |
214 | + | @Callable(aD) | |
215 | + | func init () = if ((aD.caller != this)) | |
214 | 216 | then throw("Only the DApp itself can call this function") | |
215 | 217 | else if (isDefined(getBoolean(this, c))) | |
216 | 218 | then throw("DApp is already active") | |
217 | 219 | else { | |
218 | - | let aD = 0 | |
219 | 220 | 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)] | |
223 | 225 | } | |
224 | 226 | ||
225 | 227 | ||
226 | 228 | ||
227 | - | @Callable( | |
228 | - | func initVotingForNewPool ( | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | if (!( | |
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)) | |
247 | 249 | then throw("DApp is inactive at this moment") | |
248 | - | else if (( | |
250 | + | else if ((aM == aN)) | |
249 | 251 | then throw("Assets must be different") | |
250 | - | else if ( | |
252 | + | else if (aQ) | |
251 | 253 | then throw("This pool already exists") | |
252 | - | else if (if ((( | |
254 | + | else if (if (((aP + 1) > S)) | |
253 | 255 | then true | |
254 | - | else ( | |
255 | - | then throw(("Too many votings. Maximum quantity: " + toString( | |
256 | - | else if ((size( | |
256 | + | else (aO == "")) | |
257 | + | then throw(("Too many votings. Maximum quantity: " + toString(S))) | |
258 | + | else if ((size(aD.payments) != 1)) | |
257 | 259 | then throw("One attached asset expected") | |
258 | - | else if (( | |
260 | + | else if ((aK != F)) | |
259 | 261 | then throw("You must use a SWOP token") | |
260 | - | else if (if (( | |
262 | + | else if (if ((ae == "")) | |
261 | 263 | then true | |
262 | - | else ( | |
264 | + | else (af == "")) | |
263 | 265 | then throw("Assets can't be empty") | |
264 | - | else if (( | |
266 | + | else if ((aJ != N)) | |
265 | 267 | then throw("You need to attach 10 SWOP tokens") | |
266 | - | else if (!(if (if (( | |
268 | + | else if (!(if (if (if ((aN == E)) | |
267 | 269 | then true | |
268 | - | else ( | |
270 | + | else (aN == unit)) | |
269 | 271 | then true | |
270 | - | else (aM == F))) | |
272 | + | else (aN == F)) | |
273 | + | then true | |
274 | + | else (aN == G))) | |
271 | 275 | then throw("assetB must be USDN, WAVES or SWOP") | |
272 | - | else [IntegerEntry(((((( | |
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)] | |
273 | 277 | } | |
274 | 278 | ||
275 | 279 | ||
276 | 280 | ||
277 | - | @Callable( | |
278 | - | func voteForPool ( | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | then (valueOrElse(getInteger(this, (((toString( | |
285 | - | else (valueOrElse(getInteger(this, (((toString( | |
286 | - | if (!( | |
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))) | |
287 | 291 | then throw("This address has 0 SWOP in Governance dApp") | |
288 | - | else if (!( | |
292 | + | else if (!(am)) | |
289 | 293 | then throw("This voting was canceled") | |
290 | - | else if (( | |
294 | + | else if ((ar > bb)) | |
291 | 295 | then throw("This voting was expired") | |
292 | - | else if ((0 > | |
296 | + | else if ((0 > ba)) | |
293 | 297 | then throw("The number of votes must be positive") | |
294 | - | else if (( | |
295 | - | then throw((((toString(this) + " has ") + toString( | |
296 | - | else if ( | |
298 | + | else if ((bd > bc)) | |
299 | + | then throw((((toString(this) + " has ") + toString(bc)) + " SWOP in governance.")) | |
300 | + | else if (aZ) | |
297 | 301 | then { | |
298 | - | let | |
299 | - | let | |
300 | - | [IntegerEntry((toString( | |
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)] | |
301 | 305 | } | |
302 | 306 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | [IntegerEntry((toString( | |
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)] | |
306 | 310 | } | |
307 | 311 | } | |
308 | 312 | ||
309 | 313 | ||
310 | 314 | ||
311 | - | @Callable( | |
312 | - | func cancelVoting ( | |
313 | - | let | |
314 | - | if (!( | |
315 | + | @Callable(aD) | |
316 | + | func cancelVoting (ai,az) = { | |
317 | + | let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true) | |
318 | + | if (!(H)) | |
315 | 319 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified"))) | |
316 | - | else if (!(containsElement([y, z, A | |
320 | + | else if (!(containsElement([y, z, A], aD.callerPublicKey))) | |
317 | 321 | then throw("Only admin can call this function") | |
318 | - | else if (!( | |
319 | - | then throw((("Voting " + toString( | |
320 | - | else [IntegerEntry(d, ( | |
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)] | |
321 | 325 | } | |
322 | 326 | ||
323 | 327 | ||
324 | 328 | ||
325 | - | @Callable( | |
326 | - | func shutdown () = if (!( | |
329 | + | @Callable(aD) | |
330 | + | func shutdown () = if (!(H)) | |
327 | 331 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified"))) | |
328 | - | else if (!(containsElement([y, z, A, B], | |
332 | + | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
329 | 333 | then throw("Only admin can call this function") | |
330 | - | else | |
334 | + | else ay("Paused by admin") | |
331 | 335 | ||
332 | 336 | ||
333 | 337 | ||
334 | - | @Callable( | |
335 | - | func activate () = if ( | |
338 | + | @Callable(aD) | |
339 | + | func activate () = if (H) | |
336 | 340 | then throw("DApp is already active") | |
337 | - | else if (!(containsElement([y, z, A, B], | |
341 | + | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
338 | 342 | then throw("Only admin can call this function") | |
339 | 343 | else [BooleanEntry(c, true), DeleteEntry(p)] | |
340 | 344 | ||
341 | 345 | ||
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 | + | } | |
344 | 359 |
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 = "voting_active_number" | |
11 | 11 | ||
12 | 12 | let e = "_finish_height" | |
13 | 13 | ||
14 | 14 | let f = "_total_votes_no" | |
15 | 15 | ||
16 | 16 | let g = "_total_votes_yes" | |
17 | 17 | ||
18 | 18 | let h = "_vote_no" | |
19 | 19 | ||
20 | 20 | let i = "_vote_yes" | |
21 | 21 | ||
22 | 22 | let j = "_status" | |
23 | 23 | ||
24 | 24 | let k = "voting_id_last" | |
25 | 25 | ||
26 | 26 | let l = "max_amount_voting" | |
27 | 27 | ||
28 | 28 | let m = "max_day_voting" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "commission_scale_delimiter" | |
33 | 33 | ||
34 | 34 | let p = "shutdown_cause" | |
35 | 35 | ||
36 | 36 | let q = "_cancel_cause" | |
37 | 37 | ||
38 | 38 | let r = "_SWOP_amount" | |
39 | 39 | ||
40 | 40 | let s = "_asset_name" | |
41 | 41 | ||
42 | 42 | let t = "_voting" | |
43 | 43 | ||
44 | 44 | let u = "period_voting" | |
45 | 45 | ||
46 | 46 | let v = "voting_active_cell_1" | |
47 | 47 | ||
48 | 48 | let w = "voting_active_cell_2" | |
49 | 49 | ||
50 | 50 | let x = "voting_active_cell_3" | |
51 | 51 | ||
52 | - | let y = base58' | |
52 | + | let y = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
53 | 53 | ||
54 | - | let z = base58' | |
54 | + | let z = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
55 | 55 | ||
56 | - | let A = base58' | |
56 | + | let A = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
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'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
63 | 63 | ||
64 | 64 | let E = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
65 | 65 | ||
66 | 66 | let F = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = base58'BGFpLHKYAnTLq28F4i8Lpe8UTn5oB85cwsa9nWdhJBZ7' | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = getBooleanValue(this, c) | |
71 | 71 | ||
72 | - | let I = getIntegerValue(this, | |
72 | + | let I = getIntegerValue(this, d) | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = getIntegerValue(this, k) | |
75 | 75 | ||
76 | - | let K = valueOrElse(getString(this, | |
76 | + | let K = valueOrElse(getString(this, v), "") | |
77 | 77 | ||
78 | - | let L = valueOrElse(getString(this, | |
78 | + | let L = valueOrElse(getString(this, w), "") | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = valueOrElse(getString(this, x), "") | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = 1000000000 | |
83 | 83 | ||
84 | - | let O = | |
84 | + | let O = 1000 | |
85 | 85 | ||
86 | - | let P = | |
86 | + | let P = 100000000 | |
87 | 87 | ||
88 | - | let Q = | |
88 | + | let Q = 1000 | |
89 | 89 | ||
90 | - | let R = | |
90 | + | let R = 8 | |
91 | 91 | ||
92 | - | let S = | |
92 | + | let S = 3 | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = 7 | |
95 | 95 | ||
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")) | |
99 | 101 | then { | |
100 | - | let | |
101 | - | if (isDefined(assetInfo( | |
102 | + | let Y = X | |
103 | + | if (isDefined(assetInfo(Y))) | |
102 | 104 | then { | |
103 | - | let | |
104 | - | let | |
105 | - | $Tuple3( | |
105 | + | let Z = toBase58String(Y) | |
106 | + | let aa = valueOrErrorMessage(assetInfo(Y), (("Asset " + Z) + " doesn't exist")) | |
107 | + | $Tuple3(Z, aa.name, aa.decimals) | |
106 | 108 | } | |
107 | 109 | else throw("Asset is not defined") | |
108 | 110 | } | |
109 | - | else if ($isInstanceOf( | |
111 | + | else if ($isInstanceOf(X, "Unit")) | |
110 | 112 | then { | |
111 | - | let | |
113 | + | let ab = X | |
112 | 114 | $Tuple3("WAVES", "WAVES", 8) | |
113 | 115 | } | |
114 | 116 | else throw("Match error") | |
115 | 117 | } | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
119 | - | let | |
120 | - | let | |
121 | - | if (if ( | |
122 | - | then ( | |
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 != "") | |
123 | 125 | else false) | |
124 | 126 | then { | |
125 | - | let | |
126 | - | let | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | if ( | |
131 | - | then if (( | |
132 | - | then if ( | |
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) | |
133 | 135 | then true | |
134 | 136 | else false | |
135 | 137 | else false | |
136 | 138 | else false | |
137 | 139 | } | |
138 | 140 | else false | |
139 | 141 | } | |
140 | 142 | ||
141 | 143 | ||
142 | - | func | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | if (if ( | |
147 | - | then ( | |
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 != "") | |
148 | 150 | else false) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | if (( | |
154 | - | then if ( | |
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) | |
155 | 157 | then "" | |
156 | - | else | |
157 | - | else | |
158 | + | else ao | |
159 | + | else ao | |
158 | 160 | } | |
159 | - | else | |
161 | + | else ao | |
160 | 162 | } | |
161 | 163 | ||
162 | 164 | ||
163 | - | func | |
165 | + | func ap (ae,af) = if (if (ac(K, ae, af)) | |
164 | 166 | then true | |
165 | - | else | |
167 | + | else ac(L, ae, af)) | |
166 | 168 | then true | |
167 | - | else | |
169 | + | else ac(M, ae, af) | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | if ((0 > | |
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)) | |
175 | 177 | then 0 | |
176 | - | else if (!( | |
178 | + | else if (!(am)) | |
177 | 179 | then 0 | |
178 | - | else if (( | |
180 | + | else if ((al > ar)) | |
179 | 181 | then 1 | |
180 | 182 | else 0 | |
181 | 183 | } | |
182 | 184 | ||
183 | 185 | ||
184 | - | func | |
186 | + | func as () = ((aq(valueOrElse(getInteger(this, K), -1)) + aq(valueOrElse(getInteger(this, L), -1))) + aq(valueOrElse(getInteger(this, M), -1))) | |
185 | 187 | ||
186 | 188 | ||
187 | - | func | |
189 | + | func at () = if ((an(v) != "")) | |
188 | 190 | then v | |
189 | - | else if (( | |
191 | + | else if ((an(w) != "")) | |
190 | 192 | then w | |
191 | - | else if (( | |
193 | + | else if ((an(x) != "")) | |
192 | 194 | then x | |
193 | 195 | else "" | |
194 | 196 | ||
195 | 197 | ||
196 | - | func | |
198 | + | func au (av) = if ((av == "WAVES")) | |
197 | 199 | then unit | |
198 | - | else fromBase58String( | |
200 | + | else fromBase58String(av) | |
199 | 201 | ||
200 | 202 | ||
201 | - | func | |
203 | + | func aw (ax) = if ((valueOrElse(getInteger(D, (toString(ax) + r)), 0) > 0)) | |
202 | 204 | then true | |
203 | 205 | else false | |
204 | 206 | ||
205 | 207 | ||
206 | - | func | |
208 | + | func ay (az) = [BooleanEntry(c, false), StringEntry(p, az)] | |
207 | 209 | ||
208 | 210 | ||
209 | - | func | |
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")) | |
210 | 212 | ||
211 | 213 | ||
212 | - | @Callable( | |
213 | - | func init () = if (( | |
214 | + | @Callable(aD) | |
215 | + | func init () = if ((aD.caller != this)) | |
214 | 216 | then throw("Only the DApp itself can call this function") | |
215 | 217 | else if (isDefined(getBoolean(this, c))) | |
216 | 218 | then throw("DApp is already active") | |
217 | 219 | else { | |
218 | - | let aD = 0 | |
219 | 220 | 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)] | |
223 | 225 | } | |
224 | 226 | ||
225 | 227 | ||
226 | 228 | ||
227 | - | @Callable( | |
228 | - | func initVotingForNewPool ( | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | if (!( | |
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)) | |
247 | 249 | then throw("DApp is inactive at this moment") | |
248 | - | else if (( | |
250 | + | else if ((aM == aN)) | |
249 | 251 | then throw("Assets must be different") | |
250 | - | else if ( | |
252 | + | else if (aQ) | |
251 | 253 | then throw("This pool already exists") | |
252 | - | else if (if ((( | |
254 | + | else if (if (((aP + 1) > S)) | |
253 | 255 | then true | |
254 | - | else ( | |
255 | - | then throw(("Too many votings. Maximum quantity: " + toString( | |
256 | - | else if ((size( | |
256 | + | else (aO == "")) | |
257 | + | then throw(("Too many votings. Maximum quantity: " + toString(S))) | |
258 | + | else if ((size(aD.payments) != 1)) | |
257 | 259 | then throw("One attached asset expected") | |
258 | - | else if (( | |
260 | + | else if ((aK != F)) | |
259 | 261 | then throw("You must use a SWOP token") | |
260 | - | else if (if (( | |
262 | + | else if (if ((ae == "")) | |
261 | 263 | then true | |
262 | - | else ( | |
264 | + | else (af == "")) | |
263 | 265 | then throw("Assets can't be empty") | |
264 | - | else if (( | |
266 | + | else if ((aJ != N)) | |
265 | 267 | then throw("You need to attach 10 SWOP tokens") | |
266 | - | else if (!(if (if (( | |
268 | + | else if (!(if (if (if ((aN == E)) | |
267 | 269 | then true | |
268 | - | else ( | |
270 | + | else (aN == unit)) | |
269 | 271 | then true | |
270 | - | else (aM == F))) | |
272 | + | else (aN == F)) | |
273 | + | then true | |
274 | + | else (aN == G))) | |
271 | 275 | then throw("assetB must be USDN, WAVES or SWOP") | |
272 | - | else [IntegerEntry(((((( | |
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)] | |
273 | 277 | } | |
274 | 278 | ||
275 | 279 | ||
276 | 280 | ||
277 | - | @Callable( | |
278 | - | func voteForPool ( | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | then (valueOrElse(getInteger(this, (((toString( | |
285 | - | else (valueOrElse(getInteger(this, (((toString( | |
286 | - | if (!( | |
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))) | |
287 | 291 | then throw("This address has 0 SWOP in Governance dApp") | |
288 | - | else if (!( | |
292 | + | else if (!(am)) | |
289 | 293 | then throw("This voting was canceled") | |
290 | - | else if (( | |
294 | + | else if ((ar > bb)) | |
291 | 295 | then throw("This voting was expired") | |
292 | - | else if ((0 > | |
296 | + | else if ((0 > ba)) | |
293 | 297 | then throw("The number of votes must be positive") | |
294 | - | else if (( | |
295 | - | then throw((((toString(this) + " has ") + toString( | |
296 | - | else if ( | |
298 | + | else if ((bd > bc)) | |
299 | + | then throw((((toString(this) + " has ") + toString(bc)) + " SWOP in governance.")) | |
300 | + | else if (aZ) | |
297 | 301 | then { | |
298 | - | let | |
299 | - | let | |
300 | - | [IntegerEntry((toString( | |
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)] | |
301 | 305 | } | |
302 | 306 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | [IntegerEntry((toString( | |
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)] | |
306 | 310 | } | |
307 | 311 | } | |
308 | 312 | ||
309 | 313 | ||
310 | 314 | ||
311 | - | @Callable( | |
312 | - | func cancelVoting ( | |
313 | - | let | |
314 | - | if (!( | |
315 | + | @Callable(aD) | |
316 | + | func cancelVoting (ai,az) = { | |
317 | + | let am = valueOrElse(getBoolean(this, (toString(ai) + j)), true) | |
318 | + | if (!(H)) | |
315 | 319 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified"))) | |
316 | - | else if (!(containsElement([y, z, A | |
320 | + | else if (!(containsElement([y, z, A], aD.callerPublicKey))) | |
317 | 321 | then throw("Only admin can call this function") | |
318 | - | else if (!( | |
319 | - | then throw((("Voting " + toString( | |
320 | - | else [IntegerEntry(d, ( | |
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)] | |
321 | 325 | } | |
322 | 326 | ||
323 | 327 | ||
324 | 328 | ||
325 | - | @Callable( | |
326 | - | func shutdown () = if (!( | |
329 | + | @Callable(aD) | |
330 | + | func shutdown () = if (!(H)) | |
327 | 331 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified"))) | |
328 | - | else if (!(containsElement([y, z, A, B], | |
332 | + | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
329 | 333 | then throw("Only admin can call this function") | |
330 | - | else | |
334 | + | else ay("Paused by admin") | |
331 | 335 | ||
332 | 336 | ||
333 | 337 | ||
334 | - | @Callable( | |
335 | - | func activate () = if ( | |
338 | + | @Callable(aD) | |
339 | + | func activate () = if (H) | |
336 | 340 | then throw("DApp is already active") | |
337 | - | else if (!(containsElement([y, z, A, B], | |
341 | + | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
338 | 342 | then throw("Only admin can call this function") | |
339 | 343 | else [BooleanEntry(c, true), DeleteEntry(p)] | |
340 | 344 | ||
341 | 345 | ||
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 | + | } | |
344 | 359 |
github/deemru/w8io/169f3d6 383.96 ms ◑