tx · 66aDmYgExJDGMj1nKA9pEAZrpsf6rqFUCGu9cuCFQdHj 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.01400000 Waves 2022.05.06 15:03 [2039814] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "66aDmYgExJDGMj1nKA9pEAZrpsf6rqFUCGu9cuCFQdHj", "fee": 1400000, "feeAssetId": null, "timestamp": 1651838621644, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "3KriyuhbyKiomQ45AEZVtKyXoapReX6rh8Xu1iFMtz9X2WwVbNxELfbqXGPere6PtyhtSdd5HPcSpxvjdwYHhoJF" ], "script": "base64:AAIFAAAAAAAAADoIAhIMCgoICAgIAQgBAQgBEgQKAggIEgUKAwgIBBIECgIICBIDCgEBEgMKAQESBAoCCAgSAwoBCBIAAAAAGwAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAMa2V5RmVlQW1vdW50CQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAADZmVlBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAOa2V5VXNkbkFzc2V0SWQJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAt1c2RuQXNzZXRJZAUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAAEWtleVZvdGluZ0R1cmF0aW9uCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAABFrZXlGaW5hbGl6ZVJld2FyZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADmZpbmFsaXplUmV3YXJkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAASa2V5Vm90aW5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FAAAAAnBtCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAPdGFyZ2V0UHVibGljS2V5BAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleYf36zo=", "chainId": 84, "height": 2039814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vHL7r6M9ndfd8VKh1tFWGn3LPm3pCoMpHG6mo8JoZy5 Next: 6fRp6dfcnfwgf5DffwywYQMKBLaTAFZhu8XDARq31cGD Diff:
Old | New | Differences | |
---|---|---|---|
117 | 117 | ||
118 | 118 | @Callable(I) | |
119 | 119 | func constructor (O,P,Q,R,S,T,U,V,W,X) = { | |
120 | - | let Y = [if (H(I)) | |
121 | - | then true | |
122 | - | else throw("Must manager"), if (isDefined(addressFromString(O))) | |
120 | + | let Y = [H(I), if (isDefined(addressFromString(O))) | |
123 | 121 | then true | |
124 | 122 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(Q))) | |
125 | 123 | then true | |
180 | 178 | if ((ab == ab)) | |
181 | 179 | then { | |
182 | 180 | let ac = { | |
183 | - | let E = invoke( | |
181 | + | let E = invoke(C, "isVerifiedREADONLY", [o], nil) | |
184 | 182 | if ($isInstanceOf(E, "Boolean")) | |
185 | 183 | then { | |
186 | 184 | let ad = E |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "fee"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "usdnAssetId"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "finalizeReward"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "votingThreshold"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "wxAssetId"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "assetsStoreContract"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s", "userPoolContract"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s", "emissionContract"], a) | |
23 | 23 | ||
24 | 24 | let k = makeString(["%s", "boostingContract"], a) | |
25 | 25 | ||
26 | 26 | func l (m) = valueOrErrorMessage(getString(this, m), (m + " is not defined")) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (o,p) = makeString([("%s%s%s" + "inList"), o, p], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func q (o,p) = makeString([("%s%s%s" + "startHeight"), o, p], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (o,p) = makeString(["%s%s%s", "votingResult", o, p], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (o,p,t) = makeString(["%s%s%s%s", "vote", o, p, t], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func u (v,w) = { | |
42 | 42 | let m = if (w) | |
43 | 43 | then makeString(["%d%s", v, "yes"], a) | |
44 | 44 | else makeString(["%d%s", v, "no"], a) | |
45 | 45 | m | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func x () = "%s__managerPublicKey" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func y () = "%s__pendingManagerPublicKey" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | let z = addressFromStringValue(l(j)) | |
56 | 56 | ||
57 | 57 | let A = addressFromStringValue(l(i)) | |
58 | 58 | ||
59 | 59 | let B = addressFromStringValue(l(k)) | |
60 | 60 | ||
61 | 61 | let C = addressFromStringValue(l(h)) | |
62 | 62 | ||
63 | 63 | func D () = { | |
64 | 64 | let E = getString(x()) | |
65 | 65 | if ($isInstanceOf(E, "String")) | |
66 | 66 | then { | |
67 | 67 | let F = E | |
68 | 68 | fromBase58String(F) | |
69 | 69 | } | |
70 | 70 | else if ($isInstanceOf(E, "Unit")) | |
71 | 71 | then unit | |
72 | 72 | else throw("Match error") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func G () = { | |
77 | 77 | let E = getString(y()) | |
78 | 78 | if ($isInstanceOf(E, "String")) | |
79 | 79 | then { | |
80 | 80 | let F = E | |
81 | 81 | fromBase58String(F) | |
82 | 82 | } | |
83 | 83 | else if ($isInstanceOf(E, "Unit")) | |
84 | 84 | then unit | |
85 | 85 | else throw("Match error") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H (I) = { | |
90 | 90 | let J = throw("Permission denied") | |
91 | 91 | let E = D() | |
92 | 92 | if ($isInstanceOf(E, "ByteVector")) | |
93 | 93 | then { | |
94 | 94 | let K = E | |
95 | 95 | if ((I.callerPublicKey == K)) | |
96 | 96 | then true | |
97 | 97 | else J | |
98 | 98 | } | |
99 | 99 | else if ($isInstanceOf(E, "Unit")) | |
100 | 100 | then if ((I.caller == this)) | |
101 | 101 | then true | |
102 | 102 | else J | |
103 | 103 | else throw("Match error") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func L (M) = { | |
108 | 108 | let E = M | |
109 | 109 | if ($isInstanceOf(E, "Int")) | |
110 | 110 | then { | |
111 | 111 | let N = E | |
112 | 112 | N | |
113 | 113 | } | |
114 | 114 | else throw("Failed to cast into Integer") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(I) | |
119 | 119 | func constructor (O,P,Q,R,S,T,U,V,W,X) = { | |
120 | - | let Y = [if (H(I)) | |
121 | - | then true | |
122 | - | else throw("Must manager"), if (isDefined(addressFromString(O))) | |
120 | + | let Y = [H(I), if (isDefined(addressFromString(O))) | |
123 | 121 | then true | |
124 | 122 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(Q))) | |
125 | 123 | then true | |
126 | 124 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(P))) | |
127 | 125 | then true | |
128 | 126 | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(R))) | |
129 | 127 | then true | |
130 | 128 | else throw("Invalid emission contract address"), if ((S >= 0)) | |
131 | 129 | then true | |
132 | 130 | else throw("Invalid fee amount"), if ((V > 0)) | |
133 | 131 | then true | |
134 | 132 | else throw("Invalid voting duration"), if ((X > 0)) | |
135 | 133 | then true | |
136 | 134 | else throw("Invalid finalize reward"), if ((U >= 0)) | |
137 | 135 | then true | |
138 | 136 | else throw("Invalid voting threshold"), if (isDefined(assetInfo(fromBase58String(T)))) | |
139 | 137 | then true | |
140 | 138 | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(W)))) | |
141 | 139 | then true | |
142 | 140 | else throw("Invalid USDN asset ID")] | |
143 | 141 | if ((Y == Y)) | |
144 | 142 | then $Tuple2([StringEntry(h, O), StringEntry(i, P), StringEntry(j, R), IntegerEntry(b, S), IntegerEntry(d, V), IntegerEntry(e, X), IntegerEntry(f, U), StringEntry(g, T), StringEntry(c, W)], unit) | |
145 | 143 | else throw("Strict value is not equal to itself.") | |
146 | 144 | } | |
147 | 145 | ||
148 | 146 | ||
149 | 147 | ||
150 | 148 | @Callable(I) | |
151 | 149 | func suggest (o,p) = { | |
152 | 150 | let Z = value(I.payments[0]) | |
153 | 151 | let aa = valueOrErrorMessage(assetInfo(fromBase58String(o)), "Invalid amountAssetId ID") | |
154 | 152 | let Y = [if ((aa.issuer == I.caller)) | |
155 | 153 | then true | |
156 | 154 | else throw("Asset can only be suggested by its issuer"), if ((aa.scripted == false)) | |
157 | 155 | then true | |
158 | 156 | else throw("Asset is smart"), if ((toBase58String(value(Z.assetId)) == value(getString(g)))) | |
159 | 157 | then true | |
160 | 158 | else throw("Invalid fee asset"), if ((Z.amount == value(getInteger(b)))) | |
161 | 159 | then true | |
162 | 160 | else throw("Invalid fee amount"), if ((p == value(getString(c)))) | |
163 | 161 | then true | |
164 | 162 | else throw("priceAssetId is not USDN"), if ((getBoolean(n(o, p)) == unit)) | |
165 | 163 | then true | |
166 | 164 | else throw("Already in voting list")] | |
167 | 165 | if ((Y == Y)) | |
168 | 166 | then { | |
169 | 167 | let ab = { | |
170 | 168 | let E = invoke(A, "statusREADONLY", [o, p], nil) | |
171 | 169 | if ($isInstanceOf(E, "String")) | |
172 | 170 | then { | |
173 | 171 | let F = E | |
174 | 172 | if ((F == "active")) | |
175 | 173 | then true | |
176 | 174 | else throw("User pool is not active") | |
177 | 175 | } | |
178 | 176 | else throw("User pool is not active") | |
179 | 177 | } | |
180 | 178 | if ((ab == ab)) | |
181 | 179 | then { | |
182 | 180 | let ac = { | |
183 | - | let E = invoke( | |
181 | + | let E = invoke(C, "isVerifiedREADONLY", [o], nil) | |
184 | 182 | if ($isInstanceOf(E, "Boolean")) | |
185 | 183 | then { | |
186 | 184 | let ad = E | |
187 | 185 | ad | |
188 | 186 | } | |
189 | 187 | else throw("Asset is not verified") | |
190 | 188 | } | |
191 | 189 | if ((ac == ac)) | |
192 | 190 | then { | |
193 | 191 | let ae = invoke(z, "burn", nil, [AttachedPayment(Z.assetId, Z.amount)]) | |
194 | 192 | if ((ae == ae)) | |
195 | 193 | then [BooleanEntry(n(o, p), true), IntegerEntry(q(o, p), height)] | |
196 | 194 | else throw("Strict value is not equal to itself.") | |
197 | 195 | } | |
198 | 196 | else throw("Strict value is not equal to itself.") | |
199 | 197 | } | |
200 | 198 | else throw("Strict value is not equal to itself.") | |
201 | 199 | } | |
202 | 200 | else throw("Strict value is not equal to itself.") | |
203 | 201 | } | |
204 | 202 | ||
205 | 203 | ||
206 | 204 | ||
207 | 205 | @Callable(I) | |
208 | 206 | func vote (o,p,af) = { | |
209 | 207 | let ag = (value(getInteger(q(o, p))) + value(getInteger(d))) | |
210 | 208 | let Y = [if (valueOrElse(getBoolean(n(o, p)), false)) | |
211 | 209 | then true | |
212 | 210 | else throw("The token isn't on the voting list"), if ((height >= ag)) | |
213 | 211 | then true | |
214 | 212 | else throw("too late to vote")] | |
215 | 213 | if ((Y == Y)) | |
216 | 214 | then { | |
217 | 215 | let ah = split(value(getString(r(o, p))), a) | |
218 | 216 | let ai = ah[1] | |
219 | 217 | let aj = ah[2] | |
220 | 218 | let v = invoke(B, "getUserGwxAmountAtHeightREADONLY", [toString(I.caller), ag], nil) | |
221 | 219 | let ak = if (af) | |
222 | 220 | then { | |
223 | 221 | let al = (parseIntValue(ai) + L(v)) | |
224 | 222 | let am = makeString(["%d%d", toString(al), aj], a) | |
225 | 223 | let an = s(o, p, toString(I.caller)) | |
226 | 224 | let ao = u(toString(L(v)), af) | |
227 | 225 | $Tuple2([StringEntry(r(o, p), am), StringEntry(an, ao)], unit) | |
228 | 226 | } | |
229 | 227 | else { | |
230 | 228 | let ap = (parseIntValue(aj) + L(v)) | |
231 | 229 | let am = makeString(["%d%d", ai, toString(ap)], a) | |
232 | 230 | let aq = s(o, p, toString(I.caller)) | |
233 | 231 | let ar = u(toString(L(v)), af) | |
234 | 232 | $Tuple2([StringEntry(r(o, p), am), StringEntry(aq, ar)], unit) | |
235 | 233 | } | |
236 | 234 | ak | |
237 | 235 | } | |
238 | 236 | else throw("Strict value is not equal to itself.") | |
239 | 237 | } | |
240 | 238 | ||
241 | 239 | ||
242 | 240 | ||
243 | 241 | @Callable(I) | |
244 | 242 | func cancelVote (o,p) = { | |
245 | 243 | let Y = [if (isDefined(r(o, p))) | |
246 | 244 | then true | |
247 | 245 | else throw("No vote for assets pair")] | |
248 | 246 | if ((Y == Y)) | |
249 | 247 | then { | |
250 | 248 | let w = split(value(getString(s(o, p, toString(I.caller)))), a) | |
251 | 249 | let as = w[1] | |
252 | 250 | let at = w[2] | |
253 | 251 | let ah = split(value(getString(r(o, p))), a) | |
254 | 252 | let ai = ah[1] | |
255 | 253 | let aj = ah[2] | |
256 | 254 | let au = if ((at == "yes")) | |
257 | 255 | then { | |
258 | 256 | let al = (parseIntValue(ai) - parseIntValue(as)) | |
259 | 257 | let am = makeString(["%d%d", toString(al), aj], a) | |
260 | 258 | $Tuple2([StringEntry(r(o, p), am), DeleteEntry(s(o, p, toString(I.caller)))], unit) | |
261 | 259 | } | |
262 | 260 | else { | |
263 | 261 | let ap = (parseIntValue(aj) - parseIntValue(as)) | |
264 | 262 | let am = makeString(["%d%d", toString(ap), aj], a) | |
265 | 263 | $Tuple2([StringEntry(r(o, p), am), DeleteEntry(s(o, p, toString(I.caller)))], unit) | |
266 | 264 | } | |
267 | 265 | au | |
268 | 266 | } | |
269 | 267 | else throw("Strict value is not equal to itself.") | |
270 | 268 | } | |
271 | 269 | ||
272 | 270 | ||
273 | 271 | ||
274 | 272 | @Callable(I) | |
275 | 273 | func setVotingThreshold (av) = { | |
276 | 274 | let Y = [if (H(I)) | |
277 | 275 | then true | |
278 | 276 | else throw("Must manager")] | |
279 | 277 | if ((Y == Y)) | |
280 | 278 | then [IntegerEntry(f, av)] | |
281 | 279 | else throw("Strict value is not equal to itself.") | |
282 | 280 | } | |
283 | 281 | ||
284 | 282 | ||
285 | 283 | ||
286 | 284 | @Callable(I) | |
287 | 285 | func setFee (aw) = { | |
288 | 286 | let Y = [if (H(I)) | |
289 | 287 | then true | |
290 | 288 | else throw("Must manager")] | |
291 | 289 | if ((Y == Y)) | |
292 | 290 | then [IntegerEntry(b, aw)] | |
293 | 291 | else throw("Strict value is not equal to itself.") | |
294 | 292 | } | |
295 | 293 | ||
296 | 294 | ||
297 | 295 | ||
298 | 296 | @Callable(I) | |
299 | 297 | func finalize (o,p) = { | |
300 | 298 | let ag = (value(getInteger(q(o, p))) + value(getInteger(d))) | |
301 | 299 | let Y = [if (isDefined(n(o, p))) | |
302 | 300 | then true | |
303 | 301 | else throw("No assets pair"), if ((ag > height)) | |
304 | 302 | then true | |
305 | 303 | else throw("insufficient height for completion")] | |
306 | 304 | if ((Y == Y)) | |
307 | 305 | then { | |
308 | 306 | let ah = split(value(getString(r(o, p))), a) | |
309 | 307 | let ai = parseIntValue(ah[1]) | |
310 | 308 | let aj = parseIntValue(ah[2]) | |
311 | 309 | let au = if ((ai > aj)) | |
312 | 310 | then { | |
313 | 311 | let ax = invoke(C, "setPoolLabels", [o, p, "WX_EMISSION"], nil) | |
314 | 312 | if ((ax == ax)) | |
315 | 313 | then $Tuple2([DeleteEntry(n(o, p))], unit) | |
316 | 314 | else throw("Strict value is not equal to itself.") | |
317 | 315 | } | |
318 | 316 | else $Tuple2([DeleteEntry(n(o, p))], unit) | |
319 | 317 | au | |
320 | 318 | } | |
321 | 319 | else throw("Strict value is not equal to itself.") | |
322 | 320 | } | |
323 | 321 | ||
324 | 322 | ||
325 | 323 | ||
326 | 324 | @Callable(I) | |
327 | 325 | func setManager (ay) = { | |
328 | 326 | let az = H(I) | |
329 | 327 | if ((az == az)) | |
330 | 328 | then { | |
331 | 329 | let aA = fromBase58String(ay) | |
332 | 330 | if ((aA == aA)) | |
333 | 331 | then [StringEntry(y(), ay)] | |
334 | 332 | else throw("Strict value is not equal to itself.") | |
335 | 333 | } | |
336 | 334 | else throw("Strict value is not equal to itself.") | |
337 | 335 | } | |
338 | 336 | ||
339 | 337 | ||
340 | 338 | ||
341 | 339 | @Callable(I) | |
342 | 340 | func confirmManager () = { | |
343 | 341 | let aB = G() | |
344 | 342 | let aC = if (isDefined(aB)) | |
345 | 343 | then true | |
346 | 344 | else throw("No pending manager") | |
347 | 345 | if ((aC == aC)) | |
348 | 346 | then { | |
349 | 347 | let aD = if ((I.callerPublicKey == value(aB))) | |
350 | 348 | then true | |
351 | 349 | else throw("You are not pending manager") | |
352 | 350 | if ((aD == aD)) | |
353 | 351 | then [StringEntry(x(), toBase58String(value(aB))), DeleteEntry(y())] | |
354 | 352 | else throw("Strict value is not equal to itself.") | |
355 | 353 | } | |
356 | 354 | else throw("Strict value is not equal to itself.") | |
357 | 355 | } | |
358 | 356 | ||
359 | 357 | ||
360 | 358 | @Verifier(aE) | |
361 | 359 | func aF () = { | |
362 | 360 | let aG = { | |
363 | 361 | let E = D() | |
364 | 362 | if ($isInstanceOf(E, "ByteVector")) | |
365 | 363 | then { | |
366 | 364 | let K = E | |
367 | 365 | K | |
368 | 366 | } | |
369 | 367 | else if ($isInstanceOf(E, "Unit")) | |
370 | 368 | then aE.senderPublicKey | |
371 | 369 | else throw("Match error") | |
372 | 370 | } | |
373 | 371 | sigVerify(aE.bodyBytes, aE.proofs[0], aG) | |
374 | 372 | } | |
375 | 373 |
github/deemru/w8io/169f3d6 43.74 ms ◑