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