tx · 4Ec9jXGPbgeFMgLFotmguau9CGrYp8mnT4SdNdVk1jnF 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01300000 Waves 2023.05.10 13:17 [2571657] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "4Ec9jXGPbgeFMgLFotmguau9CGrYp8mnT4SdNdVk1jnF", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713846972, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "u935n3RUM4cZmRgThhL2WcfsuqENxFu596zCxTnjkpL2mdLTurkiur9Te1pwjpnrgBuPExz5inaRg3wQwVDyxFT" ], "script": "base64:BgLiDwgCEgkKBwgICBgBCAESABIICgYICAgICAgSAwoBGBIAEgQKAggIIhBjb250cmFjdEZpbGVuYW1lIgNTRVAiDHdhdmVzQXNzZXRJZCIRaW52YWxpZFByaWNlQXNzZXQiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiB3Rocm93UEQiFHRocm93Q3JlYXRlTm90Q2FsbGVkIhF0aHJvd1lvdU5vdElzc3VlciIPdGhyb3dQb29sRXhpc3RzIhV0aHJvd0Fzc2V0Tm90VmVyaWZpZWQiFnRocm93SW52YWxpZFByaWNlQXNzZXQiFHRocm93SW52YWxpZEZlZUFzc2V0Ihd0aHJvd0ludmFsaWRBbW91bnRBc3NldCISdGhyb3dJbnZhbGlkU3RhdHVzIh90aHJvd0NhbkFjdGl2YXRlT25seVBlbmRpbmdQb29sIh10aHJvd0ZhY3RvcnlSZXR1cm5lZE5vdFN0cmluZyIcdGhyb3dJbnZhbGlkUHJpY2VBc3NldEFtb3VudCIPdGhyb3dJbnZhbGlkRmVlIhV0aHJvd0ludmFsaWRBc3NldFBhaXIiE2tleU1hbmFnZXJQdWJsaWN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lAoCBQNuaWwFAmF5AQJidQECYnYABAJidwQBVwkBAmFqAAMJAAECBQFXAgpCeXRlVmVjdG9yBAJhbgUBVwUCYW4DCQABAgUBVwIEVW5pdAgFAmJ1D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJidQlib2R5Qnl0ZXMJAJEDAggFAmJ1BnByb29mcwAABQJid0ZWy58=", "height": 2571657, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4pAh3mrJUeHMi8nxU6tiKTbUTDVovY6CR5E5STvVv8sc Next: Bcqq9bGEuN49RvHfog8bCyPom58HDDuTAGPCW6xYYaGT Diff:
Old | New | Differences | |
---|---|---|---|
60 | 60 | func v () = makeString(["%s", "managerPublicKey"], b) | |
61 | 61 | ||
62 | 62 | ||
63 | - | func w () = | |
63 | + | func w () = "%s__managerVaultAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func x () = makeString(["%s", "adminPubKeys"], b) | |
124 | 124 | func U () = makeString(["%s", "priceAssets"], b) | |
125 | 125 | ||
126 | 126 | ||
127 | - | func V (W) = valueOrErrorMessage(getString(this, W), (W + " is not defined")) | |
127 | + | func V () = { | |
128 | + | let W = getString(w()) | |
129 | + | if ($isInstanceOf(W, "String")) | |
130 | + | then { | |
131 | + | let X = W | |
132 | + | addressFromStringValue(X) | |
133 | + | } | |
134 | + | else this | |
135 | + | } | |
128 | 136 | ||
129 | 137 | ||
130 | - | func X (Y) = { | |
131 | - | let Z = Y | |
132 | - | if ($isInstanceOf(Z, "String")) | |
138 | + | func Y (Z) = valueOrErrorMessage(getString(this, Z), (Z + " is not defined")) | |
139 | + | ||
140 | + | ||
141 | + | func aa (ab) = { | |
142 | + | let W = ab | |
143 | + | if ($isInstanceOf(W, "String")) | |
133 | 144 | then { | |
134 | - | let | |
135 | - | if ((size( | |
145 | + | let X = W | |
146 | + | if ((size(X) == 0)) | |
136 | 147 | then nil | |
137 | - | else split( | |
148 | + | else split(X, b) | |
138 | 149 | } | |
139 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(W, "Unit")) | |
140 | 151 | then nil | |
141 | 152 | else throw("Match error") | |
142 | 153 | } | |
143 | 154 | ||
144 | 155 | ||
145 | - | let | |
156 | + | let ac = addressFromStringValue(Y(B())) | |
146 | 157 | ||
147 | - | let | |
158 | + | let ad = makeString(["%s", "votingEmissionContract"], b) | |
148 | 159 | ||
149 | - | let | |
160 | + | let ae = addressFromStringValue(valueOrErrorMessage(getString(ac, ad), e("voting emission contract address is required"))) | |
150 | 161 | ||
151 | - | let | |
162 | + | let af = makeString(["%s", "votingEmissionCandidateContract"], b) | |
152 | 163 | ||
153 | - | let | |
164 | + | let ag = addressFromStringValue(valueOrErrorMessage(getString(ae, af), e("voting emission candidate contract address is required"))) | |
154 | 165 | ||
155 | - | func | |
166 | + | func ah (z,A) = valueOrElse(getBoolean(L(z, A)), false) | |
156 | 167 | ||
157 | 168 | ||
158 | - | func | |
169 | + | func ai (z,A) = if (ah(z, A)) | |
159 | 170 | then true | |
160 | 171 | else i() | |
161 | 172 | ||
162 | 173 | ||
163 | - | func ai () = { | |
164 | - | let Z = getString(v()) | |
165 | - | if ($isInstanceOf(Z, "String")) | |
174 | + | func aj () = { | |
175 | + | let ak = V() | |
176 | + | let W = getString(ak, v()) | |
177 | + | if ($isInstanceOf(W, "String")) | |
166 | 178 | then { | |
167 | - | let | |
168 | - | fromBase58String( | |
179 | + | let X = W | |
180 | + | fromBase58String(X) | |
169 | 181 | } | |
170 | - | else if ($isInstanceOf( | |
182 | + | else if ($isInstanceOf(W, "Unit")) | |
171 | 183 | then unit | |
172 | 184 | else throw("Match error") | |
173 | 185 | } | |
174 | 186 | ||
175 | 187 | ||
176 | - | func | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
188 | + | func al (am) = { | |
189 | + | let W = aj() | |
190 | + | if ($isInstanceOf(W, "ByteVector")) | |
179 | 191 | then { | |
180 | - | let | |
181 | - | | |
192 | + | let an = W | |
193 | + | (am.callerPublicKey == an) | |
182 | 194 | } | |
183 | - | else if ($isInstanceOf( | |
184 | - | then | |
195 | + | else if ($isInstanceOf(W, "Unit")) | |
196 | + | then (am.caller == this) | |
185 | 197 | else throw("Match error") | |
186 | 198 | } | |
187 | 199 | ||
188 | 200 | ||
189 | - | func ak (al) = { | |
190 | - | let Z = ai() | |
191 | - | if ($isInstanceOf(Z, "ByteVector")) | |
192 | - | then { | |
193 | - | let am = Z | |
194 | - | (al.callerPublicKey == am) | |
195 | - | } | |
196 | - | else if ($isInstanceOf(Z, "Unit")) | |
197 | - | then (al.caller == this) | |
198 | - | else throw("Match error") | |
199 | - | } | |
200 | - | ||
201 | - | ||
202 | - | func an (al) = if (ak(al)) | |
201 | + | func ao (am) = if (al(am)) | |
203 | 202 | then true | |
204 | 203 | else h() | |
205 | 204 | ||
206 | 205 | ||
207 | - | func | |
208 | - | let | |
209 | - | if (containsElement( | |
206 | + | func ap (am) = { | |
207 | + | let aq = aa(getString(x())) | |
208 | + | if (containsElement(aq, toBase58String(am.callerPublicKey))) | |
210 | 209 | then true | |
211 | - | else | |
210 | + | else ao(am) | |
212 | 211 | } | |
213 | 212 | ||
214 | 213 | ||
215 | - | func | |
214 | + | func ar (as) = (valueOrElse(getInteger(addressFromStringValue(Y(C())), (("status_<" + as) + ">")), 0) == 2) | |
216 | 215 | ||
217 | 216 | ||
218 | - | func | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
217 | + | func at (au) = { | |
218 | + | let W = au.assetId | |
219 | + | if ($isInstanceOf(W, "ByteVector")) | |
221 | 220 | then { | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple2(toBase58String( | |
221 | + | let av = W | |
222 | + | let aw = value(assetInfo(av)) | |
223 | + | $Tuple2(toBase58String(av), aw) | |
225 | 224 | } | |
226 | - | else if ($isInstanceOf( | |
225 | + | else if ($isInstanceOf(W, "Unit")) | |
227 | 226 | then $Tuple2(c, unit) | |
228 | 227 | else throw("Match error") | |
229 | 228 | } | |
230 | 229 | ||
231 | 230 | ||
232 | - | func | |
231 | + | func ax (ay) = containsElement(K, ay) | |
233 | 232 | ||
234 | 233 | ||
235 | - | @Callable( | |
236 | - | func constructor ( | |
237 | - | let | |
238 | - | if (( | |
239 | - | then [StringEntry(B(), | |
234 | + | @Callable(am) | |
235 | + | func constructor (az,aA,aB,aC,aD,aE,aF) = { | |
236 | + | let aG = ao(am) | |
237 | + | if ((aG == aG)) | |
238 | + | then [StringEntry(B(), az), StringEntry(C(), aA), StringEntry(D(), aB), StringEntry(T(), makeString(aC, b)), IntegerEntry(S(), aD), StringEntry(Q(), aE), IntegerEntry(R(), aF)] | |
240 | 239 | else throw("Strict value is not equal to itself.") | |
241 | 240 | } | |
242 | 241 | ||
243 | 242 | ||
244 | 243 | ||
245 | - | @Callable( | |
244 | + | @Callable(am) | |
246 | 245 | func create () = { | |
247 | - | let aG = value(al.payments[0]) | |
248 | - | let aH = value(al.payments[1]) | |
249 | - | let aI = value(al.payments[2]) | |
250 | - | let aJ = as(aG) | |
251 | - | let z = aJ._1 | |
252 | - | let aK = aJ._2 | |
253 | - | let aL = as(aH) | |
254 | - | let A = aL._1 | |
255 | - | let aM = aL._2 | |
256 | - | let aN = as(aI) | |
257 | - | let aD = aN._1 | |
258 | - | let aO = aN._2 | |
259 | - | let aP = aG.amount | |
260 | - | let aQ = aH.amount | |
261 | - | let aR = aI.amount | |
262 | - | let aS = X(getString(ab, U())) | |
263 | - | let aT = getIntegerValue(S()) | |
264 | - | let aU = X(getString(T())) | |
265 | - | let aC = if (containsElement(aS, z)) | |
246 | + | let aH = value(am.payments[0]) | |
247 | + | let aI = value(am.payments[1]) | |
248 | + | let aJ = value(am.payments[2]) | |
249 | + | let aK = at(aH) | |
250 | + | let aL = aK._1 | |
251 | + | let aM = aK._2 | |
252 | + | let aN = at(aI) | |
253 | + | let aO = aN._1 | |
254 | + | let aP = aN._2 | |
255 | + | let aQ = at(aJ) | |
256 | + | let aE = aQ._1 | |
257 | + | let aR = aQ._2 | |
258 | + | let aS = aa(getString(ac, U())) | |
259 | + | let aT = if ((aL != aO)) | |
260 | + | then true | |
261 | + | else u() | |
262 | + | if ((aT == aT)) | |
266 | 263 | then { | |
267 | - | let aV = valueOrErrorMessage(indexOf(aS, z), d) | |
268 | - | value(parseInt(aU[aV])) | |
269 | - | } | |
270 | - | else aT | |
271 | - | let aW = if (containsElement(aS, A)) | |
272 | - | then { | |
273 | - | let aV = valueOrErrorMessage(indexOf(aS, A), d) | |
274 | - | value(parseInt(aU[aV])) | |
275 | - | } | |
276 | - | else aT | |
277 | - | let aX = valueOrElse(getInteger(F()), 0) | |
278 | - | let aY = (aX + 1) | |
279 | - | let aZ = addressFromStringValue(V(D())) | |
280 | - | let ba = { | |
281 | - | let bb = invoke(ab, "poolExistsREADONLY", [z, A], nil) | |
282 | - | if ($isInstanceOf(bb, "Boolean")) | |
283 | - | then bb | |
284 | - | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
285 | - | } | |
286 | - | let bc = [if (!(ag(z, A))) | |
287 | - | then true | |
288 | - | else k(), if (!(ba)) | |
289 | - | then true | |
290 | - | else k(), if ((z != A)) | |
291 | - | then true | |
292 | - | else u(), if (if (aq(z)) | |
293 | - | then aq(A) | |
294 | - | else false) | |
295 | - | then true | |
296 | - | else u(), if (if (containsElement(aS, z)) | |
297 | - | then true | |
298 | - | else containsElement(aS, A)) | |
299 | - | then true | |
300 | - | else u(), if (if (ak(al)) | |
301 | - | then true | |
302 | - | else (getString(Q()) == aD)) | |
303 | - | then true | |
304 | - | else n(), if (if (ak(al)) | |
305 | - | then true | |
306 | - | else (aP >= getIntegerValue(S()))) | |
307 | - | then true | |
308 | - | else o(), if (if (ak(al)) | |
309 | - | then true | |
310 | - | else (aQ >= aW)) | |
311 | - | then true | |
312 | - | else s(), if (if (ak(al)) | |
313 | - | then true | |
314 | - | else (aR == getInteger(R()))) | |
315 | - | then true | |
316 | - | else t()] | |
317 | - | if ((bc == bc)) | |
318 | - | then { | |
319 | - | let bd = 3 | |
320 | - | let be = if ((size(al.payments) >= bd)) | |
321 | - | then invoke(aZ, "burn", nil, [AttachedPayment(fromBase58String(aD), aR)]) | |
322 | - | else unit | |
323 | - | if ((be == be)) | |
324 | - | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(al.caller)), IntegerEntry(F(), aY), StringEntry(E(z, A), (toString(aY) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aP), IntegerEntry(O(z, A), aQ)] | |
264 | + | let aU = if (if (al(am)) | |
265 | + | then true | |
266 | + | else if (containsElement(aS, aO)) | |
267 | + | then ar(aL) | |
268 | + | else false) | |
269 | + | then $Tuple4(aL, aH.amount, aO, aI.amount) | |
270 | + | else if (if (containsElement(aS, aL)) | |
271 | + | then ar(aO) | |
272 | + | else false) | |
273 | + | then $Tuple4(aO, aI.amount, aL, aH.amount) | |
274 | + | else u() | |
275 | + | let z = aU._1 | |
276 | + | let aV = aU._2 | |
277 | + | let A = aU._3 | |
278 | + | let aW = aU._4 | |
279 | + | let aX = 1 | |
280 | + | let aY = if (al(am)) | |
281 | + | then aX | |
282 | + | else { | |
283 | + | let aZ = valueOrErrorMessage(indexOf(aS, A), d) | |
284 | + | value(parseInt(aa(getString(T()))[aZ])) | |
285 | + | } | |
286 | + | let ba = valueOrElse(getInteger(F()), 0) | |
287 | + | let bb = (ba + 1) | |
288 | + | let bc = addressFromStringValue(Y(D())) | |
289 | + | let bd = { | |
290 | + | let be = invoke(ac, "poolExistsREADONLY", [z, A], nil) | |
291 | + | if ($isInstanceOf(be, "Boolean")) | |
292 | + | then be | |
293 | + | else throw(($getType(be) + " couldn't be cast to Boolean")) | |
294 | + | } | |
295 | + | let bf = [if (!(ah(z, A))) | |
296 | + | then true | |
297 | + | else k(), if (!(bd)) | |
298 | + | then true | |
299 | + | else k(), if (if (al(am)) | |
300 | + | then true | |
301 | + | else (getString(Q()) == aE)) | |
302 | + | then true | |
303 | + | else n(), if (if (al(am)) | |
304 | + | then true | |
305 | + | else (aV >= getIntegerValue(S()))) | |
306 | + | then true | |
307 | + | else o(), if (if (al(am)) | |
308 | + | then true | |
309 | + | else (aW >= aY)) | |
310 | + | then true | |
311 | + | else s(), if (if (al(am)) | |
312 | + | then true | |
313 | + | else (aJ.amount == getInteger(R()))) | |
314 | + | then true | |
315 | + | else t()] | |
316 | + | if ((bf == bf)) | |
317 | + | then { | |
318 | + | let bg = 3 | |
319 | + | let bh = if ((size(am.payments) >= bg)) | |
320 | + | then invoke(bc, "burn", nil, [AttachedPayment(fromBase58String(aE), aJ.amount)]) | |
321 | + | else unit | |
322 | + | if ((bh == bh)) | |
323 | + | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(am.caller)), IntegerEntry(F(), bb), StringEntry(E(z, A), (toString(bb) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aV), IntegerEntry(O(z, A), aW)] | |
324 | + | else throw("Strict value is not equal to itself.") | |
325 | + | } | |
325 | 326 | else throw("Strict value is not equal to itself.") | |
326 | 327 | } | |
327 | 328 | else throw("Strict value is not equal to itself.") | |
329 | 330 | ||
330 | 331 | ||
331 | 332 | ||
332 | - | @Callable( | |
333 | - | func activate ( | |
334 | - | let | |
333 | + | @Callable(am) | |
334 | + | func activate (bi,z,bj,A,bk,bl) = { | |
335 | + | let bf = [ap(am), if (ah(z, A)) | |
335 | 336 | then true | |
336 | 337 | else i(), if ((value(getString(y(z, A))) == H)) | |
337 | 338 | then true | |
338 | 339 | else q()] | |
339 | - | if (( | |
340 | + | if ((bf == bf)) | |
340 | 341 | then { | |
341 | - | let | |
342 | - | if (( | |
342 | + | let bm = invoke(ac, "activateNewPool", [bi, z, A, ((bj + bk) + "LP"), (((bj + "/") + bk) + " pool liquidity provider token"), 0, "VLTPOOL", bl], nil) | |
343 | + | if ((bm == bm)) | |
343 | 344 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
345 | + | let bn = { | |
346 | + | let W = bm | |
347 | + | if ($isInstanceOf(W, "String")) | |
347 | 348 | then { | |
348 | - | let | |
349 | - | | |
349 | + | let av = W | |
350 | + | av | |
350 | 351 | } | |
351 | 352 | else r() | |
352 | 353 | } | |
353 | - | if (( | |
354 | + | if ((bn == bn)) | |
354 | 355 | then { | |
355 | - | let | |
356 | - | if (( | |
356 | + | let bo = assetBalance(this, fromBase58String(bn)) | |
357 | + | if ((bo == bo)) | |
357 | 358 | then { | |
358 | - | let | |
359 | + | let bp = invoke(addressFromStringValue(bi), "put", [0, false], [AttachedPayment(if ((z == "WAVES")) | |
359 | 360 | then unit | |
360 | 361 | else fromBase58String(z), value(getInteger(N(z, A)))), AttachedPayment(if ((A == "WAVES")) | |
361 | 362 | then unit | |
362 | 363 | else fromBase58String(A), value(getInteger(O(z, A))))]) | |
363 | - | if (( | |
364 | + | if ((bp == bp)) | |
364 | 365 | then { | |
365 | - | let | |
366 | - | if (( | |
366 | + | let bq = assetBalance(this, fromBase58String(bn)) | |
367 | + | if ((bq == bq)) | |
367 | 368 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
371 | - | then [StringEntry(y(z, A), J), ScriptTransfer( | |
369 | + | let br = value(addressFromString(value(getString(M(z, A))))) | |
370 | + | let bs = invoke(ag, "approve", [z, A], nil) | |
371 | + | if ((bs == bs)) | |
372 | + | then [StringEntry(y(z, A), J), ScriptTransfer(br, (bq - bo), fromBase58String(bn))] | |
372 | 373 | else throw("Strict value is not equal to itself.") | |
373 | 374 | } | |
374 | 375 | else throw("Strict value is not equal to itself.") | |
386 | 387 | ||
387 | 388 | ||
388 | 389 | ||
389 | - | @Callable( | |
390 | - | func setAdmins ( | |
391 | - | let | |
392 | - | if (( | |
393 | - | then [StringEntry(x(), makeString( | |
390 | + | @Callable(am) | |
391 | + | func setAdmins (bt) = { | |
392 | + | let aG = ao(am) | |
393 | + | if ((aG == aG)) | |
394 | + | then [StringEntry(x(), makeString(bt, b))] | |
394 | 395 | else throw("Strict value is not equal to itself.") | |
395 | 396 | } | |
396 | 397 | ||
397 | 398 | ||
398 | 399 | ||
399 | - | @Callable(al) | |
400 | - | func setManager (br) = { | |
401 | - | let aF = an(al) | |
402 | - | if ((aF == aF)) | |
403 | - | then { | |
404 | - | let bs = fromBase58String(br) | |
405 | - | if ((bs == bs)) | |
406 | - | then [StringEntry(w(), br)] | |
407 | - | else throw("Strict value is not equal to itself.") | |
408 | - | } | |
409 | - | else throw("Strict value is not equal to itself.") | |
400 | + | @Callable(am) | |
401 | + | func priceAssetsREADONLY () = $Tuple2(nil, aa(getString(U()))) | |
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | @Callable(am) | |
406 | + | func statusREADONLY (z,A) = { | |
407 | + | let ay = { | |
408 | + | let W = getString(y(z, A)) | |
409 | + | if ($isInstanceOf(W, "String")) | |
410 | + | then { | |
411 | + | let X = W | |
412 | + | X | |
413 | + | } | |
414 | + | else unit | |
415 | + | } | |
416 | + | $Tuple2(nil, ay) | |
410 | 417 | } | |
411 | 418 | ||
412 | 419 | ||
413 | - | ||
414 | - | @Callable(al) | |
415 | - | func confirmManager () = { | |
416 | - | let bt = aj() | |
417 | - | let bu = if (isDefined(bt)) | |
418 | - | then true | |
419 | - | else throw("No pending manager") | |
420 | - | if ((bu == bu)) | |
421 | - | then { | |
422 | - | let bv = if ((al.callerPublicKey == value(bt))) | |
423 | - | then true | |
424 | - | else throw("You are not pending manager") | |
425 | - | if ((bv == bv)) | |
426 | - | then [StringEntry(v(), toBase58String(value(bt))), DeleteEntry(w())] | |
427 | - | else throw("Strict value is not equal to itself.") | |
428 | - | } | |
429 | - | else throw("Strict value is not equal to itself.") | |
430 | - | } | |
431 | - | ||
432 | - | ||
433 | - | ||
434 | - | @Callable(al) | |
435 | - | func priceAssetsREADONLY () = $Tuple2(nil, X(getString(U()))) | |
436 | - | ||
437 | - | ||
438 | - | ||
439 | - | @Callable(al) | |
440 | - | func statusREADONLY (z,A) = { | |
441 | - | let ax = { | |
442 | - | let Z = getString(y(z, A)) | |
443 | - | if ($isInstanceOf(Z, "String")) | |
420 | + | @Verifier(bu) | |
421 | + | func bv () = { | |
422 | + | let bw = { | |
423 | + | let W = aj() | |
424 | + | if ($isInstanceOf(W, "ByteVector")) | |
444 | 425 | then { | |
445 | - | let | |
446 | - | | |
426 | + | let an = W | |
427 | + | an | |
447 | 428 | } | |
448 | - | else unit | |
449 | - | } | |
450 | - | $Tuple2(nil, ax) | |
451 | - | } | |
452 | - | ||
453 | - | ||
454 | - | @Verifier(bw) | |
455 | - | func bx () = { | |
456 | - | let by = { | |
457 | - | let Z = ai() | |
458 | - | if ($isInstanceOf(Z, "ByteVector")) | |
459 | - | then { | |
460 | - | let am = Z | |
461 | - | am | |
462 | - | } | |
463 | - | else if ($isInstanceOf(Z, "Unit")) | |
464 | - | then bw.senderPublicKey | |
429 | + | else if ($isInstanceOf(W, "Unit")) | |
430 | + | then bu.senderPublicKey | |
465 | 431 | else throw("Match error") | |
466 | 432 | } | |
467 | - | sigVerify( | |
433 | + | sigVerify(bu.bodyBytes, bu.proofs[0], bw) | |
468 | 434 | } | |
469 | 435 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "user_pools.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = "Invalid price asset" | |
11 | 11 | ||
12 | 12 | func e (f) = makeString([a, ": ", f], "") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h () = g("Permission denied") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i () = g("Create is not called for assets pair") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func j () = g("You are not amountAsset issuer") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func k () = g("Pool with such assets already exists") | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l () = g("Asset is not verified") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = g(d) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n () = g("Invalid fee asset") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func o () = g("Invalid amount asset attached") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func p () = g("Invalid status") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func q () = g("Can activate pool only in 'pending' status") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func r () = g("FactoryV2 returned not string") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s () = g("invalid price asset amount") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func t () = g("invalid fee") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func u () = g("invalid asset pair") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func v () = makeString(["%s", "managerPublicKey"], b) | |
61 | 61 | ||
62 | 62 | ||
63 | - | func w () = | |
63 | + | func w () = "%s__managerVaultAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func x () = makeString(["%s", "adminPubKeys"], b) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func y (z,A) = makeString(["%s%s%s", "status", z, A], b) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func B () = makeString(["%s", "factoryContract"], b) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func C () = makeString(["%s", "assetsStoreContract"], b) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func D () = makeString(["%s", "emissionContract"], b) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func E (z,A) = makeString(["%s%s%s", "suffix", z, A], b) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F () = makeString(["%s", "lastIndex"], b) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | let G = "u" | |
88 | 88 | ||
89 | 89 | let H = "pending" | |
90 | 90 | ||
91 | 91 | let I = "declined" | |
92 | 92 | ||
93 | 93 | let J = "active" | |
94 | 94 | ||
95 | 95 | let K = [H, I, J] | |
96 | 96 | ||
97 | 97 | func L (z,A) = makeString(["%s%s%s", "createCalled", z, A], b) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func M (z,A) = makeString(["%s%s%s", "createCaller", z, A], b) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func N (z,A) = makeString(["%s%s%s", "amountAssetAmount", z, A], b) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func O (z,A) = makeString(["%s%s%s", "priceAssetAmount", z, A], b) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func P (z,A) = makeString(["%s%s%s", "height", z, A], b) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Q () = makeString(["%s", "feeAssetId"], b) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func R () = makeString(["%s", "feeAmount"], b) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func S () = makeString(["%s", "amountAssetMinAmount"], b) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func T () = makeString(["%s", "priceAssetsMinAmount"], b) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func U () = makeString(["%s", "priceAssets"], b) | |
125 | 125 | ||
126 | 126 | ||
127 | - | func V (W) = valueOrErrorMessage(getString(this, W), (W + " is not defined")) | |
127 | + | func V () = { | |
128 | + | let W = getString(w()) | |
129 | + | if ($isInstanceOf(W, "String")) | |
130 | + | then { | |
131 | + | let X = W | |
132 | + | addressFromStringValue(X) | |
133 | + | } | |
134 | + | else this | |
135 | + | } | |
128 | 136 | ||
129 | 137 | ||
130 | - | func X (Y) = { | |
131 | - | let Z = Y | |
132 | - | if ($isInstanceOf(Z, "String")) | |
138 | + | func Y (Z) = valueOrErrorMessage(getString(this, Z), (Z + " is not defined")) | |
139 | + | ||
140 | + | ||
141 | + | func aa (ab) = { | |
142 | + | let W = ab | |
143 | + | if ($isInstanceOf(W, "String")) | |
133 | 144 | then { | |
134 | - | let | |
135 | - | if ((size( | |
145 | + | let X = W | |
146 | + | if ((size(X) == 0)) | |
136 | 147 | then nil | |
137 | - | else split( | |
148 | + | else split(X, b) | |
138 | 149 | } | |
139 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(W, "Unit")) | |
140 | 151 | then nil | |
141 | 152 | else throw("Match error") | |
142 | 153 | } | |
143 | 154 | ||
144 | 155 | ||
145 | - | let | |
156 | + | let ac = addressFromStringValue(Y(B())) | |
146 | 157 | ||
147 | - | let | |
158 | + | let ad = makeString(["%s", "votingEmissionContract"], b) | |
148 | 159 | ||
149 | - | let | |
160 | + | let ae = addressFromStringValue(valueOrErrorMessage(getString(ac, ad), e("voting emission contract address is required"))) | |
150 | 161 | ||
151 | - | let | |
162 | + | let af = makeString(["%s", "votingEmissionCandidateContract"], b) | |
152 | 163 | ||
153 | - | let | |
164 | + | let ag = addressFromStringValue(valueOrErrorMessage(getString(ae, af), e("voting emission candidate contract address is required"))) | |
154 | 165 | ||
155 | - | func | |
166 | + | func ah (z,A) = valueOrElse(getBoolean(L(z, A)), false) | |
156 | 167 | ||
157 | 168 | ||
158 | - | func | |
169 | + | func ai (z,A) = if (ah(z, A)) | |
159 | 170 | then true | |
160 | 171 | else i() | |
161 | 172 | ||
162 | 173 | ||
163 | - | func ai () = { | |
164 | - | let Z = getString(v()) | |
165 | - | if ($isInstanceOf(Z, "String")) | |
174 | + | func aj () = { | |
175 | + | let ak = V() | |
176 | + | let W = getString(ak, v()) | |
177 | + | if ($isInstanceOf(W, "String")) | |
166 | 178 | then { | |
167 | - | let | |
168 | - | fromBase58String( | |
179 | + | let X = W | |
180 | + | fromBase58String(X) | |
169 | 181 | } | |
170 | - | else if ($isInstanceOf( | |
182 | + | else if ($isInstanceOf(W, "Unit")) | |
171 | 183 | then unit | |
172 | 184 | else throw("Match error") | |
173 | 185 | } | |
174 | 186 | ||
175 | 187 | ||
176 | - | func | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
188 | + | func al (am) = { | |
189 | + | let W = aj() | |
190 | + | if ($isInstanceOf(W, "ByteVector")) | |
179 | 191 | then { | |
180 | - | let | |
181 | - | | |
192 | + | let an = W | |
193 | + | (am.callerPublicKey == an) | |
182 | 194 | } | |
183 | - | else if ($isInstanceOf( | |
184 | - | then | |
195 | + | else if ($isInstanceOf(W, "Unit")) | |
196 | + | then (am.caller == this) | |
185 | 197 | else throw("Match error") | |
186 | 198 | } | |
187 | 199 | ||
188 | 200 | ||
189 | - | func ak (al) = { | |
190 | - | let Z = ai() | |
191 | - | if ($isInstanceOf(Z, "ByteVector")) | |
192 | - | then { | |
193 | - | let am = Z | |
194 | - | (al.callerPublicKey == am) | |
195 | - | } | |
196 | - | else if ($isInstanceOf(Z, "Unit")) | |
197 | - | then (al.caller == this) | |
198 | - | else throw("Match error") | |
199 | - | } | |
200 | - | ||
201 | - | ||
202 | - | func an (al) = if (ak(al)) | |
201 | + | func ao (am) = if (al(am)) | |
203 | 202 | then true | |
204 | 203 | else h() | |
205 | 204 | ||
206 | 205 | ||
207 | - | func | |
208 | - | let | |
209 | - | if (containsElement( | |
206 | + | func ap (am) = { | |
207 | + | let aq = aa(getString(x())) | |
208 | + | if (containsElement(aq, toBase58String(am.callerPublicKey))) | |
210 | 209 | then true | |
211 | - | else | |
210 | + | else ao(am) | |
212 | 211 | } | |
213 | 212 | ||
214 | 213 | ||
215 | - | func | |
214 | + | func ar (as) = (valueOrElse(getInteger(addressFromStringValue(Y(C())), (("status_<" + as) + ">")), 0) == 2) | |
216 | 215 | ||
217 | 216 | ||
218 | - | func | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
217 | + | func at (au) = { | |
218 | + | let W = au.assetId | |
219 | + | if ($isInstanceOf(W, "ByteVector")) | |
221 | 220 | then { | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple2(toBase58String( | |
221 | + | let av = W | |
222 | + | let aw = value(assetInfo(av)) | |
223 | + | $Tuple2(toBase58String(av), aw) | |
225 | 224 | } | |
226 | - | else if ($isInstanceOf( | |
225 | + | else if ($isInstanceOf(W, "Unit")) | |
227 | 226 | then $Tuple2(c, unit) | |
228 | 227 | else throw("Match error") | |
229 | 228 | } | |
230 | 229 | ||
231 | 230 | ||
232 | - | func | |
231 | + | func ax (ay) = containsElement(K, ay) | |
233 | 232 | ||
234 | 233 | ||
235 | - | @Callable( | |
236 | - | func constructor ( | |
237 | - | let | |
238 | - | if (( | |
239 | - | then [StringEntry(B(), | |
234 | + | @Callable(am) | |
235 | + | func constructor (az,aA,aB,aC,aD,aE,aF) = { | |
236 | + | let aG = ao(am) | |
237 | + | if ((aG == aG)) | |
238 | + | then [StringEntry(B(), az), StringEntry(C(), aA), StringEntry(D(), aB), StringEntry(T(), makeString(aC, b)), IntegerEntry(S(), aD), StringEntry(Q(), aE), IntegerEntry(R(), aF)] | |
240 | 239 | else throw("Strict value is not equal to itself.") | |
241 | 240 | } | |
242 | 241 | ||
243 | 242 | ||
244 | 243 | ||
245 | - | @Callable( | |
244 | + | @Callable(am) | |
246 | 245 | func create () = { | |
247 | - | let aG = value(al.payments[0]) | |
248 | - | let aH = value(al.payments[1]) | |
249 | - | let aI = value(al.payments[2]) | |
250 | - | let aJ = as(aG) | |
251 | - | let z = aJ._1 | |
252 | - | let aK = aJ._2 | |
253 | - | let aL = as(aH) | |
254 | - | let A = aL._1 | |
255 | - | let aM = aL._2 | |
256 | - | let aN = as(aI) | |
257 | - | let aD = aN._1 | |
258 | - | let aO = aN._2 | |
259 | - | let aP = aG.amount | |
260 | - | let aQ = aH.amount | |
261 | - | let aR = aI.amount | |
262 | - | let aS = X(getString(ab, U())) | |
263 | - | let aT = getIntegerValue(S()) | |
264 | - | let aU = X(getString(T())) | |
265 | - | let aC = if (containsElement(aS, z)) | |
246 | + | let aH = value(am.payments[0]) | |
247 | + | let aI = value(am.payments[1]) | |
248 | + | let aJ = value(am.payments[2]) | |
249 | + | let aK = at(aH) | |
250 | + | let aL = aK._1 | |
251 | + | let aM = aK._2 | |
252 | + | let aN = at(aI) | |
253 | + | let aO = aN._1 | |
254 | + | let aP = aN._2 | |
255 | + | let aQ = at(aJ) | |
256 | + | let aE = aQ._1 | |
257 | + | let aR = aQ._2 | |
258 | + | let aS = aa(getString(ac, U())) | |
259 | + | let aT = if ((aL != aO)) | |
260 | + | then true | |
261 | + | else u() | |
262 | + | if ((aT == aT)) | |
266 | 263 | then { | |
267 | - | let aV = valueOrErrorMessage(indexOf(aS, z), d) | |
268 | - | value(parseInt(aU[aV])) | |
269 | - | } | |
270 | - | else aT | |
271 | - | let aW = if (containsElement(aS, A)) | |
272 | - | then { | |
273 | - | let aV = valueOrErrorMessage(indexOf(aS, A), d) | |
274 | - | value(parseInt(aU[aV])) | |
275 | - | } | |
276 | - | else aT | |
277 | - | let aX = valueOrElse(getInteger(F()), 0) | |
278 | - | let aY = (aX + 1) | |
279 | - | let aZ = addressFromStringValue(V(D())) | |
280 | - | let ba = { | |
281 | - | let bb = invoke(ab, "poolExistsREADONLY", [z, A], nil) | |
282 | - | if ($isInstanceOf(bb, "Boolean")) | |
283 | - | then bb | |
284 | - | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
285 | - | } | |
286 | - | let bc = [if (!(ag(z, A))) | |
287 | - | then true | |
288 | - | else k(), if (!(ba)) | |
289 | - | then true | |
290 | - | else k(), if ((z != A)) | |
291 | - | then true | |
292 | - | else u(), if (if (aq(z)) | |
293 | - | then aq(A) | |
294 | - | else false) | |
295 | - | then true | |
296 | - | else u(), if (if (containsElement(aS, z)) | |
297 | - | then true | |
298 | - | else containsElement(aS, A)) | |
299 | - | then true | |
300 | - | else u(), if (if (ak(al)) | |
301 | - | then true | |
302 | - | else (getString(Q()) == aD)) | |
303 | - | then true | |
304 | - | else n(), if (if (ak(al)) | |
305 | - | then true | |
306 | - | else (aP >= getIntegerValue(S()))) | |
307 | - | then true | |
308 | - | else o(), if (if (ak(al)) | |
309 | - | then true | |
310 | - | else (aQ >= aW)) | |
311 | - | then true | |
312 | - | else s(), if (if (ak(al)) | |
313 | - | then true | |
314 | - | else (aR == getInteger(R()))) | |
315 | - | then true | |
316 | - | else t()] | |
317 | - | if ((bc == bc)) | |
318 | - | then { | |
319 | - | let bd = 3 | |
320 | - | let be = if ((size(al.payments) >= bd)) | |
321 | - | then invoke(aZ, "burn", nil, [AttachedPayment(fromBase58String(aD), aR)]) | |
322 | - | else unit | |
323 | - | if ((be == be)) | |
324 | - | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(al.caller)), IntegerEntry(F(), aY), StringEntry(E(z, A), (toString(aY) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aP), IntegerEntry(O(z, A), aQ)] | |
264 | + | let aU = if (if (al(am)) | |
265 | + | then true | |
266 | + | else if (containsElement(aS, aO)) | |
267 | + | then ar(aL) | |
268 | + | else false) | |
269 | + | then $Tuple4(aL, aH.amount, aO, aI.amount) | |
270 | + | else if (if (containsElement(aS, aL)) | |
271 | + | then ar(aO) | |
272 | + | else false) | |
273 | + | then $Tuple4(aO, aI.amount, aL, aH.amount) | |
274 | + | else u() | |
275 | + | let z = aU._1 | |
276 | + | let aV = aU._2 | |
277 | + | let A = aU._3 | |
278 | + | let aW = aU._4 | |
279 | + | let aX = 1 | |
280 | + | let aY = if (al(am)) | |
281 | + | then aX | |
282 | + | else { | |
283 | + | let aZ = valueOrErrorMessage(indexOf(aS, A), d) | |
284 | + | value(parseInt(aa(getString(T()))[aZ])) | |
285 | + | } | |
286 | + | let ba = valueOrElse(getInteger(F()), 0) | |
287 | + | let bb = (ba + 1) | |
288 | + | let bc = addressFromStringValue(Y(D())) | |
289 | + | let bd = { | |
290 | + | let be = invoke(ac, "poolExistsREADONLY", [z, A], nil) | |
291 | + | if ($isInstanceOf(be, "Boolean")) | |
292 | + | then be | |
293 | + | else throw(($getType(be) + " couldn't be cast to Boolean")) | |
294 | + | } | |
295 | + | let bf = [if (!(ah(z, A))) | |
296 | + | then true | |
297 | + | else k(), if (!(bd)) | |
298 | + | then true | |
299 | + | else k(), if (if (al(am)) | |
300 | + | then true | |
301 | + | else (getString(Q()) == aE)) | |
302 | + | then true | |
303 | + | else n(), if (if (al(am)) | |
304 | + | then true | |
305 | + | else (aV >= getIntegerValue(S()))) | |
306 | + | then true | |
307 | + | else o(), if (if (al(am)) | |
308 | + | then true | |
309 | + | else (aW >= aY)) | |
310 | + | then true | |
311 | + | else s(), if (if (al(am)) | |
312 | + | then true | |
313 | + | else (aJ.amount == getInteger(R()))) | |
314 | + | then true | |
315 | + | else t()] | |
316 | + | if ((bf == bf)) | |
317 | + | then { | |
318 | + | let bg = 3 | |
319 | + | let bh = if ((size(am.payments) >= bg)) | |
320 | + | then invoke(bc, "burn", nil, [AttachedPayment(fromBase58String(aE), aJ.amount)]) | |
321 | + | else unit | |
322 | + | if ((bh == bh)) | |
323 | + | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(am.caller)), IntegerEntry(F(), bb), StringEntry(E(z, A), (toString(bb) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aV), IntegerEntry(O(z, A), aW)] | |
324 | + | else throw("Strict value is not equal to itself.") | |
325 | + | } | |
325 | 326 | else throw("Strict value is not equal to itself.") | |
326 | 327 | } | |
327 | 328 | else throw("Strict value is not equal to itself.") | |
328 | 329 | } | |
329 | 330 | ||
330 | 331 | ||
331 | 332 | ||
332 | - | @Callable( | |
333 | - | func activate ( | |
334 | - | let | |
333 | + | @Callable(am) | |
334 | + | func activate (bi,z,bj,A,bk,bl) = { | |
335 | + | let bf = [ap(am), if (ah(z, A)) | |
335 | 336 | then true | |
336 | 337 | else i(), if ((value(getString(y(z, A))) == H)) | |
337 | 338 | then true | |
338 | 339 | else q()] | |
339 | - | if (( | |
340 | + | if ((bf == bf)) | |
340 | 341 | then { | |
341 | - | let | |
342 | - | if (( | |
342 | + | let bm = invoke(ac, "activateNewPool", [bi, z, A, ((bj + bk) + "LP"), (((bj + "/") + bk) + " pool liquidity provider token"), 0, "VLTPOOL", bl], nil) | |
343 | + | if ((bm == bm)) | |
343 | 344 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
345 | + | let bn = { | |
346 | + | let W = bm | |
347 | + | if ($isInstanceOf(W, "String")) | |
347 | 348 | then { | |
348 | - | let | |
349 | - | | |
349 | + | let av = W | |
350 | + | av | |
350 | 351 | } | |
351 | 352 | else r() | |
352 | 353 | } | |
353 | - | if (( | |
354 | + | if ((bn == bn)) | |
354 | 355 | then { | |
355 | - | let | |
356 | - | if (( | |
356 | + | let bo = assetBalance(this, fromBase58String(bn)) | |
357 | + | if ((bo == bo)) | |
357 | 358 | then { | |
358 | - | let | |
359 | + | let bp = invoke(addressFromStringValue(bi), "put", [0, false], [AttachedPayment(if ((z == "WAVES")) | |
359 | 360 | then unit | |
360 | 361 | else fromBase58String(z), value(getInteger(N(z, A)))), AttachedPayment(if ((A == "WAVES")) | |
361 | 362 | then unit | |
362 | 363 | else fromBase58String(A), value(getInteger(O(z, A))))]) | |
363 | - | if (( | |
364 | + | if ((bp == bp)) | |
364 | 365 | then { | |
365 | - | let | |
366 | - | if (( | |
366 | + | let bq = assetBalance(this, fromBase58String(bn)) | |
367 | + | if ((bq == bq)) | |
367 | 368 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
371 | - | then [StringEntry(y(z, A), J), ScriptTransfer( | |
369 | + | let br = value(addressFromString(value(getString(M(z, A))))) | |
370 | + | let bs = invoke(ag, "approve", [z, A], nil) | |
371 | + | if ((bs == bs)) | |
372 | + | then [StringEntry(y(z, A), J), ScriptTransfer(br, (bq - bo), fromBase58String(bn))] | |
372 | 373 | else throw("Strict value is not equal to itself.") | |
373 | 374 | } | |
374 | 375 | else throw("Strict value is not equal to itself.") | |
375 | 376 | } | |
376 | 377 | else throw("Strict value is not equal to itself.") | |
377 | 378 | } | |
378 | 379 | else throw("Strict value is not equal to itself.") | |
379 | 380 | } | |
380 | 381 | else throw("Strict value is not equal to itself.") | |
381 | 382 | } | |
382 | 383 | else throw("Strict value is not equal to itself.") | |
383 | 384 | } | |
384 | 385 | else throw("Strict value is not equal to itself.") | |
385 | 386 | } | |
386 | 387 | ||
387 | 388 | ||
388 | 389 | ||
389 | - | @Callable( | |
390 | - | func setAdmins ( | |
391 | - | let | |
392 | - | if (( | |
393 | - | then [StringEntry(x(), makeString( | |
390 | + | @Callable(am) | |
391 | + | func setAdmins (bt) = { | |
392 | + | let aG = ao(am) | |
393 | + | if ((aG == aG)) | |
394 | + | then [StringEntry(x(), makeString(bt, b))] | |
394 | 395 | else throw("Strict value is not equal to itself.") | |
395 | 396 | } | |
396 | 397 | ||
397 | 398 | ||
398 | 399 | ||
399 | - | @Callable(al) | |
400 | - | func setManager (br) = { | |
401 | - | let aF = an(al) | |
402 | - | if ((aF == aF)) | |
403 | - | then { | |
404 | - | let bs = fromBase58String(br) | |
405 | - | if ((bs == bs)) | |
406 | - | then [StringEntry(w(), br)] | |
407 | - | else throw("Strict value is not equal to itself.") | |
408 | - | } | |
409 | - | else throw("Strict value is not equal to itself.") | |
400 | + | @Callable(am) | |
401 | + | func priceAssetsREADONLY () = $Tuple2(nil, aa(getString(U()))) | |
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | @Callable(am) | |
406 | + | func statusREADONLY (z,A) = { | |
407 | + | let ay = { | |
408 | + | let W = getString(y(z, A)) | |
409 | + | if ($isInstanceOf(W, "String")) | |
410 | + | then { | |
411 | + | let X = W | |
412 | + | X | |
413 | + | } | |
414 | + | else unit | |
415 | + | } | |
416 | + | $Tuple2(nil, ay) | |
410 | 417 | } | |
411 | 418 | ||
412 | 419 | ||
413 | - | ||
414 | - | @Callable(al) | |
415 | - | func confirmManager () = { | |
416 | - | let bt = aj() | |
417 | - | let bu = if (isDefined(bt)) | |
418 | - | then true | |
419 | - | else throw("No pending manager") | |
420 | - | if ((bu == bu)) | |
421 | - | then { | |
422 | - | let bv = if ((al.callerPublicKey == value(bt))) | |
423 | - | then true | |
424 | - | else throw("You are not pending manager") | |
425 | - | if ((bv == bv)) | |
426 | - | then [StringEntry(v(), toBase58String(value(bt))), DeleteEntry(w())] | |
427 | - | else throw("Strict value is not equal to itself.") | |
428 | - | } | |
429 | - | else throw("Strict value is not equal to itself.") | |
430 | - | } | |
431 | - | ||
432 | - | ||
433 | - | ||
434 | - | @Callable(al) | |
435 | - | func priceAssetsREADONLY () = $Tuple2(nil, X(getString(U()))) | |
436 | - | ||
437 | - | ||
438 | - | ||
439 | - | @Callable(al) | |
440 | - | func statusREADONLY (z,A) = { | |
441 | - | let ax = { | |
442 | - | let Z = getString(y(z, A)) | |
443 | - | if ($isInstanceOf(Z, "String")) | |
420 | + | @Verifier(bu) | |
421 | + | func bv () = { | |
422 | + | let bw = { | |
423 | + | let W = aj() | |
424 | + | if ($isInstanceOf(W, "ByteVector")) | |
444 | 425 | then { | |
445 | - | let | |
446 | - | | |
426 | + | let an = W | |
427 | + | an | |
447 | 428 | } | |
448 | - | else unit | |
449 | - | } | |
450 | - | $Tuple2(nil, ax) | |
451 | - | } | |
452 | - | ||
453 | - | ||
454 | - | @Verifier(bw) | |
455 | - | func bx () = { | |
456 | - | let by = { | |
457 | - | let Z = ai() | |
458 | - | if ($isInstanceOf(Z, "ByteVector")) | |
459 | - | then { | |
460 | - | let am = Z | |
461 | - | am | |
462 | - | } | |
463 | - | else if ($isInstanceOf(Z, "Unit")) | |
464 | - | then bw.senderPublicKey | |
429 | + | else if ($isInstanceOf(W, "Unit")) | |
430 | + | then bu.senderPublicKey | |
465 | 431 | else throw("Match error") | |
466 | 432 | } | |
467 | - | sigVerify( | |
433 | + | sigVerify(bu.bodyBytes, bu.proofs[0], bw) | |
468 | 434 | } | |
469 | 435 |
github/deemru/w8io/169f3d6 93.04 ms ◑