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