tx · EJ3eZimZTcoh46BuCER4W8oFq92pkCzDVXAi8U8uF7Pi 3MqQg3GcBjjk5727HxPKgQfqGQwWm6QA2yL: -0.03800000 Waves 2022.09.14 15:48 [2228790] smart account 3MqQg3GcBjjk5727HxPKgQfqGQwWm6QA2yL > SELF 0.00000000 Waves
{ "type": 13, "id": "EJ3eZimZTcoh46BuCER4W8oFq92pkCzDVXAi8U8uF7Pi", "fee": 3800000, "feeAssetId": null, "timestamp": 1663159628619, "version": 2, "chainId": 84, "sender": "3MqQg3GcBjjk5727HxPKgQfqGQwWm6QA2yL", "senderPublicKey": "4AhS4PdxdW6j71mgHB4Xq7Eewk1rPdm57kDHAwQTTweK", "proofs": [ "3aR2espC4wneMzrYQVHw4a282PbC9CsSAMDnEbNTgLZi8U3gJ2RjEcwVDgRkkyG2bXBxSQorwEFKmexXtMngCQj8", "4GGguNy9NvJkUmcbuxycHVBAPdxVftC6qjUNqwzWyJ8ZZ7erpzTgLajExrqZViWTJfAf3tGubukwtzEAkokwBywP" ], "script": "base64:BgJpCAISBAoCEQESBgoECAEBBBIECgIBBBIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIDCgEBXgAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rU2hhcmVBc3NldElkAg5zaGFyZV9hc3NldF9pZAARa1NoYXJlQXNzZXRTdXBwbHkCEnNoYXJlX2Fzc2V0X3N1cHBseQAEa0ZlZQI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0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5z7UbC3A==", "height": 2228790, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DxiDNY1rfY5kn5G6HYToZZmKdEjaS2UDcFJBLY72JnH6 Next: 6jWLsSCEiqv863AGbEtUcMNChrGXDasyZyWVvYS9mYbp Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | ||
68 | 68 | let I = "farming_address" | |
69 | 69 | ||
70 | - | let J = | |
70 | + | let J = "lp_farming" | |
71 | 71 | ||
72 | - | func K (L) = { | |
73 | - | let M = getString(J, L) | |
74 | - | if ($isInstanceOf(M, "String")) | |
72 | + | let K = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
73 | + | ||
74 | + | func L (M) = { | |
75 | + | let N = getString(K, M) | |
76 | + | if ($isInstanceOf(N, "String")) | |
75 | 77 | then { | |
76 | - | let | |
77 | - | fromBase58String( | |
78 | + | let O = N | |
79 | + | fromBase58String(O) | |
78 | 80 | } | |
79 | 81 | else { | |
80 | - | let | |
81 | - | throw(( | |
82 | + | let P = N | |
83 | + | throw((M + "is empty")) | |
82 | 84 | } | |
83 | 85 | } | |
84 | 86 | ||
85 | 87 | ||
86 | - | let | |
88 | + | let Q = L(z) | |
87 | 89 | ||
88 | - | let | |
90 | + | let R = L(B) | |
89 | 91 | ||
90 | - | let | |
92 | + | let S = L(C) | |
91 | 93 | ||
92 | - | let | |
94 | + | let T = L(E) | |
93 | 95 | ||
94 | - | let | |
96 | + | let U = Address(L(F)) | |
95 | 97 | ||
96 | - | let | |
98 | + | let V = Address(L(G)) | |
97 | 99 | ||
98 | - | let | |
100 | + | let W = Address(L(p)) | |
99 | 101 | ||
100 | - | let | |
102 | + | let X = Address(L(H)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let Y = Address(L(I)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let Z = Address(L(J)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let aa = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
107 | 109 | ||
108 | - | let | |
110 | + | let ab = [toBase58String(aa)] | |
109 | 111 | ||
110 | - | let | |
112 | + | let ac = valueOrErrorMessage(getInteger(X, w), "Empty kBasePeriod") | |
111 | 113 | ||
112 | - | let | |
114 | + | let ad = valueOrErrorMessage(getInteger(X, y), "Empty kStartHeight") | |
113 | 115 | ||
114 | - | let | |
116 | + | let ae = valueOrErrorMessage(getInteger(X, x), "Empty kPeriodLength") | |
115 | 117 | ||
116 | - | let | |
118 | + | let af = ((ac + ((height - ad) / ae)) + 3) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ag = getBooleanValue(this, j) | |
119 | 121 | ||
120 | - | let | |
122 | + | let ah = fromBase58String(getStringValue(this, l)) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ai = getIntegerValue(this, m) | |
123 | 125 | ||
124 | - | let | |
126 | + | let aj = 1000000 | |
125 | 127 | ||
126 | - | let | |
128 | + | let ak = getIntegerValue(this, n) | |
127 | 129 | ||
128 | - | let | |
130 | + | let al = fraction(40, aj, 100) | |
129 | 131 | ||
130 | - | let | |
132 | + | let am = getIntegerValue(this, "initial_A") | |
131 | 133 | ||
132 | - | let | |
134 | + | let an = getIntegerValue(this, "future_A") | |
133 | 135 | ||
134 | - | let | |
136 | + | let ao = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
135 | 137 | ||
136 | - | let | |
138 | + | let ap = valueOrElse(getInteger(this, "future_A_time"), 0) | |
137 | 139 | ||
138 | - | let | |
140 | + | let aq = split(getStringValue(this, h), ",") | |
139 | 141 | ||
140 | - | let | |
142 | + | let ar = size(aq) | |
141 | 143 | ||
142 | - | func | |
144 | + | func as (at) = [BooleanEntry(j, false), StringEntry(k, at)] | |
143 | 145 | ||
144 | 146 | ||
145 | - | func | |
147 | + | func au () = throw("DApp is already active") | |
146 | 148 | ||
147 | 149 | ||
148 | - | func | |
150 | + | func av () = if (ag) | |
149 | 151 | then unit | |
150 | 152 | else throw("DApp is inactive at this moment") | |
151 | 153 | ||
152 | 154 | ||
153 | - | func | |
155 | + | func aw (ax) = if (containsElement([Q, R, S], ax.callerPublicKey)) | |
154 | 156 | then unit | |
155 | 157 | else throw("Only admin can call this function") | |
156 | 158 | ||
157 | 159 | ||
158 | - | func | |
160 | + | func ay (ax) = if ((this == ax.caller)) | |
159 | 161 | then unit | |
160 | 162 | else throw("Only contract itself can call this function") | |
161 | 163 | ||
162 | 164 | ||
163 | - | let | |
165 | + | let az = toBigInt(2) | |
164 | 166 | ||
165 | - | let | |
167 | + | let aA = height | |
166 | 168 | ||
167 | - | func | |
169 | + | func aB (aC) = if (aC) | |
168 | 170 | then false | |
169 | 171 | else true | |
170 | 172 | ||
171 | 173 | ||
172 | - | func aC (aD) = { | |
173 | - | let aE = valueOrElse(getInteger(U, (toString(aD) + s)), 0) | |
174 | - | let aF = split(getStringValue(J, r), ",") | |
175 | - | let aG = split(getStringValue(J, q), ",") | |
176 | - | if (if ((aE >= parseIntValue(aF[0]))) | |
177 | - | then (parseIntValue(aF[1]) > aE) | |
174 | + | func aD (aE) = { | |
175 | + | let aF = { | |
176 | + | let N = aE | |
177 | + | if ($isInstanceOf(N, "Address")) | |
178 | + | then { | |
179 | + | let aG = N | |
180 | + | toString(aG) | |
181 | + | } | |
182 | + | else if ($isInstanceOf(N, "String")) | |
183 | + | then { | |
184 | + | let aG = N | |
185 | + | aG | |
186 | + | } | |
187 | + | else throw("Unknow type of user Addr") | |
188 | + | } | |
189 | + | let aH = valueOrElse(getInteger(V, (aF + s)), 0) | |
190 | + | let aI = split(getStringValue(K, r), ",") | |
191 | + | let aJ = split(getStringValue(K, q), ",") | |
192 | + | if (if ((aH >= parseIntValue(aI[0]))) | |
193 | + | then (parseIntValue(aI[1]) > aH) | |
178 | 194 | else false) | |
179 | - | then ( | |
180 | - | else if (if (( | |
181 | - | then (parseIntValue( | |
195 | + | then (aj - parseIntValue(aJ[0])) | |
196 | + | else if (if ((aH >= parseIntValue(aI[1]))) | |
197 | + | then (parseIntValue(aI[2]) > aH) | |
182 | 198 | else false) | |
183 | - | then ( | |
184 | - | else if (if (( | |
185 | - | then (parseIntValue( | |
199 | + | then (aj - parseIntValue(aJ[1])) | |
200 | + | else if (if ((aH >= parseIntValue(aI[2]))) | |
201 | + | then (parseIntValue(aI[3]) > aH) | |
186 | 202 | else false) | |
187 | - | then ( | |
188 | - | else if (if (( | |
189 | - | then (parseIntValue( | |
203 | + | then (aj - parseIntValue(aJ[2])) | |
204 | + | else if (if ((aH >= parseIntValue(aI[3]))) | |
205 | + | then (parseIntValue(aI[4]) > aH) | |
190 | 206 | else false) | |
191 | - | then ( | |
192 | - | else if (( | |
193 | - | then ( | |
194 | - | else | |
207 | + | then (aj - parseIntValue(aJ[3])) | |
208 | + | else if ((aH >= parseIntValue(aI[4]))) | |
209 | + | then (aj - parseIntValue(aJ[4])) | |
210 | + | else aj | |
195 | 211 | } | |
196 | 212 | ||
197 | 213 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
214 | + | func aK () = { | |
215 | + | let aL = ap | |
216 | + | let aM = an | |
217 | + | if ((aL > aA)) | |
202 | 218 | then { | |
203 | - | let | |
204 | - | let | |
205 | - | if (( | |
206 | - | then ( | |
207 | - | else ( | |
219 | + | let aN = am | |
220 | + | let aO = ao | |
221 | + | if ((aM > aN)) | |
222 | + | then (aN + (((aM - aN) * (aA - aO)) / (aL - aO))) | |
223 | + | else (aN - (((aN - aM) * (aA - aO)) / (aL - aO))) | |
208 | 224 | } | |
209 | - | else | |
225 | + | else aM | |
210 | 226 | } | |
211 | 227 | ||
212 | 228 | ||
213 | - | func | |
214 | - | func | |
229 | + | func aP () = { | |
230 | + | func aQ (aR,aS) = (aR :+ valueOrElse(getInteger(this, (aS + i)), 0)) | |
215 | 231 | ||
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | func | |
220 | - | then | |
221 | - | else | |
232 | + | let aT = aq | |
233 | + | let aU = size(aT) | |
234 | + | let aV = nil | |
235 | + | func aW (aX,aY) = if ((aY >= aU)) | |
236 | + | then aX | |
237 | + | else aQ(aX, aT[aY]) | |
222 | 238 | ||
223 | - | func | |
224 | - | then | |
239 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
240 | + | then aX | |
225 | 241 | else throw("List size exceeds 15") | |
226 | 242 | ||
227 | - | aW( | |
243 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
228 | 244 | } | |
229 | 245 | ||
230 | 246 | ||
231 | - | func | |
247 | + | func ba (bb) = bb | |
232 | 248 | ||
233 | 249 | ||
234 | - | func | |
250 | + | func bc (aR,bd) = (aR + bd) | |
235 | 251 | ||
236 | 252 | ||
237 | - | func | |
238 | - | let | |
239 | - | if ($isInstanceOf( | |
240 | - | then | |
241 | - | else throw(($getType(invoke(this, "D", [ | |
253 | + | func be (bb,bf) = { | |
254 | + | let bg = invoke(this, "D", [bb, bf], nil) | |
255 | + | if ($isInstanceOf(bg, "Int")) | |
256 | + | then bg | |
257 | + | else throw(($getType(invoke(this, "D", [bb, bf], nil)) + " couldn't be cast to Int")) | |
242 | 258 | } | |
243 | 259 | ||
244 | 260 | ||
245 | - | func | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | func | |
251 | - | then | |
252 | - | else | |
261 | + | func bh (bb,bf) = { | |
262 | + | let bi = { | |
263 | + | let aT = bb | |
264 | + | let aU = size(aT) | |
265 | + | let aV = 0 | |
266 | + | func aW (aX,aY) = if ((aY >= aU)) | |
267 | + | then aX | |
268 | + | else bc(aX, aT[aY]) | |
253 | 269 | ||
254 | - | func | |
255 | - | then | |
270 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
271 | + | then aX | |
256 | 272 | else throw("List size exceeds 15") | |
257 | 273 | ||
258 | - | aW( | |
274 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
259 | 275 | } | |
260 | - | if (( | |
276 | + | if ((bi == 0)) | |
261 | 277 | then 0 | |
262 | 278 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | func | |
267 | - | then | |
279 | + | let bj = (bf * ar) | |
280 | + | let bk = (toBigInt(bj) * toBigInt(bi)) | |
281 | + | let bl = toBigInt((bj - 1)) | |
282 | + | func bm (aR,ax) = if ((aR._2 == true)) | |
283 | + | then aR | |
268 | 284 | else { | |
269 | - | let | |
270 | - | func | |
271 | - | then (( | |
272 | - | else | |
285 | + | let bn = aR._1 | |
286 | + | func bo (bp,ax) = if ((ar > ax)) | |
287 | + | then ((bp * bn) / (toBigInt(bb[ax]) * toBigInt(ar))) | |
288 | + | else bp | |
273 | 289 | ||
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then | |
280 | - | else | |
290 | + | let bp = { | |
291 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
292 | + | let aU = size(aT) | |
293 | + | let aV = bn | |
294 | + | func bq (aX,aY) = if ((aY >= aU)) | |
295 | + | then aX | |
296 | + | else bo(aX, aT[aY]) | |
281 | 297 | ||
282 | - | func | |
283 | - | then | |
298 | + | func br (aX,aY) = if ((aY >= aU)) | |
299 | + | then aX | |
284 | 300 | else throw("List size exceeds 15") | |
285 | 301 | ||
286 | - | | |
302 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
287 | 303 | } | |
288 | - | let | |
289 | - | if (( | |
290 | - | then if ((1 >= toInt(( | |
291 | - | then $Tuple2( | |
292 | - | else $Tuple2( | |
293 | - | else if ((1 >= toInt(( | |
294 | - | then $Tuple2( | |
295 | - | else $Tuple2( | |
304 | + | let bs = fraction((bk + (toBigInt(ar) * bp)), bn, ((bl * bn) + (toBigInt((ar + 1)) * bp))) | |
305 | + | if ((bs > bn)) | |
306 | + | then if ((1 >= toInt((bs - bn)))) | |
307 | + | then $Tuple2(bs, true) | |
308 | + | else $Tuple2(bs, false) | |
309 | + | else if ((1 >= toInt((bn - bs)))) | |
310 | + | then $Tuple2(bs, true) | |
311 | + | else $Tuple2(bs, false) | |
296 | 312 | } | |
297 | 313 | ||
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | func | |
303 | - | then | |
304 | - | else | |
314 | + | let bt = { | |
315 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
316 | + | let aU = size(aT) | |
317 | + | let aV = $Tuple2(toBigInt(bi), false) | |
318 | + | func bq (aX,aY) = if ((aY >= aU)) | |
319 | + | then aX | |
320 | + | else bm(aX, aT[aY]) | |
305 | 321 | ||
306 | - | func | |
307 | - | then | |
322 | + | func br (aX,aY) = if ((aY >= aU)) | |
323 | + | then aX | |
308 | 324 | else throw("List size exceeds 15") | |
309 | 325 | ||
310 | - | | |
326 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
311 | 327 | } | |
312 | - | let | |
313 | - | let | |
314 | - | if (( | |
315 | - | then throw(("get_D() not finished with " + toString( | |
316 | - | else toInt( | |
328 | + | let bs = bt._1 | |
329 | + | let bu = bt._2 | |
330 | + | if ((bu == false)) | |
331 | + | then throw(("get_D() not finished with " + toString(bs))) | |
332 | + | else toInt(bs) | |
317 | 333 | } | |
318 | 334 | } | |
319 | 335 | ||
320 | 336 | ||
321 | - | func | |
337 | + | func bv (bb,bf) = be(ba(bb), bf) | |
322 | 338 | ||
323 | 339 | ||
324 | - | func | |
340 | + | func bw (bx,by,bz,bA) = if (aB((bx != by))) | |
325 | 341 | then throw("same coin") | |
326 | - | else if ( | |
327 | - | then ( | |
342 | + | else if (aB(if ((by >= 0)) | |
343 | + | then (bx >= 0) | |
328 | 344 | else false)) | |
329 | 345 | then throw("below zero") | |
330 | - | else if ( | |
331 | - | then ( | |
346 | + | else if (aB(if ((ar > by)) | |
347 | + | then (ar > bx) | |
332 | 348 | else false)) | |
333 | 349 | then throw("above N_COINS") | |
334 | 350 | else { | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | then | |
344 | - | else | |
345 | - | if (if (( | |
346 | - | then ( | |
351 | + | let bf = aK() | |
352 | + | let bs = be(bA, bf) | |
353 | + | let bj = (bf * ar) | |
354 | + | func bB (aR,ax) = { | |
355 | + | let bC = aR | |
356 | + | let bD = bC._1 | |
357 | + | let bE = bC._2 | |
358 | + | let bF = if ((bx == ax)) | |
359 | + | then bz | |
360 | + | else bA[ax] | |
361 | + | if (if ((ax != by)) | |
362 | + | then (ar > ax) | |
347 | 363 | else false) | |
348 | - | then $Tuple2(( | |
349 | - | else $Tuple2( | |
364 | + | then $Tuple2((bD + bF), fraction(bE, toBigInt(bs), toBigInt((bF * ar)))) | |
365 | + | else $Tuple2(bD, bE) | |
350 | 366 | } | |
351 | 367 | ||
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | func | |
357 | - | then | |
358 | - | else | |
368 | + | let bG = { | |
369 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
370 | + | let aU = size(aT) | |
371 | + | let aV = $Tuple2(0, toBigInt(bs)) | |
372 | + | func aW (aX,aY) = if ((aY >= aU)) | |
373 | + | then aX | |
374 | + | else bB(aX, aT[aY]) | |
359 | 375 | ||
360 | - | func | |
361 | - | then | |
376 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
377 | + | then aX | |
362 | 378 | else throw("List size exceeds 15") | |
363 | 379 | ||
364 | - | aW( | |
380 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
365 | 381 | } | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | func | |
371 | - | then | |
382 | + | let bD = bG._1 | |
383 | + | let bH = bG._2 | |
384 | + | let bE = fraction(bH, toBigInt(bs), toBigInt((bj * ar))) | |
385 | + | let bI = toBigInt(((bD + (bs / bj)) - bs)) | |
386 | + | func bJ (aR,bK) = if ((aR._2 == true)) | |
387 | + | then aR | |
372 | 388 | else { | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
376 | - | then if ((1 >= toInt(( | |
377 | - | then $Tuple2( | |
378 | - | else $Tuple2( | |
379 | - | else if ((1 >= toInt(( | |
380 | - | then $Tuple2( | |
381 | - | else $Tuple2( | |
389 | + | let bL = aR._1 | |
390 | + | let bM = (((bL * bL) + bE) / ((az * bL) + bI)) | |
391 | + | if ((bM > bL)) | |
392 | + | then if ((1 >= toInt((bM - bL)))) | |
393 | + | then $Tuple2(bM, true) | |
394 | + | else $Tuple2(bM, false) | |
395 | + | else if ((1 >= toInt((bL - bM)))) | |
396 | + | then $Tuple2(bM, true) | |
397 | + | else $Tuple2(bM, false) | |
382 | 398 | } | |
383 | 399 | ||
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | func | |
389 | - | then | |
390 | - | else | |
400 | + | let bN = { | |
401 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
402 | + | let aU = size(aT) | |
403 | + | let aV = $Tuple2(toBigInt(bs), false) | |
404 | + | func bq (aX,aY) = if ((aY >= aU)) | |
405 | + | then aX | |
406 | + | else bJ(aX, aT[aY]) | |
391 | 407 | ||
392 | - | func | |
393 | - | then | |
408 | + | func br (aX,aY) = if ((aY >= aU)) | |
409 | + | then aX | |
394 | 410 | else throw("List size exceeds 16") | |
395 | 411 | ||
396 | - | | |
412 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
397 | 413 | } | |
398 | - | let | |
399 | - | let | |
400 | - | if (( | |
401 | - | then throw(("getY() not finished with " + toString( | |
402 | - | else toInt( | |
414 | + | let bM = bN._1 | |
415 | + | let bu = bN._2 | |
416 | + | if ((bu == false)) | |
417 | + | then throw(("getY() not finished with " + toString(bM))) | |
418 | + | else toInt(bM) | |
403 | 419 | } | |
404 | 420 | ||
405 | 421 | ||
406 | - | func | |
422 | + | func bO (bP,bx,bb,bs) = if (aB((bx >= 0))) | |
407 | 423 | then throw("i below zero") | |
408 | - | else if ( | |
424 | + | else if (aB((ar > bx))) | |
409 | 425 | then throw("i above N_COINS") | |
410 | 426 | else { | |
411 | - | let | |
412 | - | func | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | then ( | |
427 | + | let bj = (bP * ar) | |
428 | + | func bB (aR,ax) = { | |
429 | + | let bQ = aR | |
430 | + | let bD = bQ._1 | |
431 | + | let bE = bQ._2 | |
432 | + | let bF = if (if ((bx != ax)) | |
433 | + | then (ar > ax) | |
418 | 434 | else false) | |
419 | - | then | |
435 | + | then bb[ax] | |
420 | 436 | else 0 | |
421 | - | if (if (( | |
422 | - | then ( | |
437 | + | if (if ((ar > ax)) | |
438 | + | then (bx != ax) | |
423 | 439 | else false) | |
424 | - | then $Tuple2(( | |
425 | - | else $Tuple2( | |
440 | + | then $Tuple2((bD + bF), fraction(bE, toBigInt(bs), toBigInt((bF * ar)))) | |
441 | + | else $Tuple2(bD, bE) | |
426 | 442 | } | |
427 | 443 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
444 | + | let bR = { | |
445 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
446 | + | let aU = size(aT) | |
447 | + | let aV = $Tuple2(0, toBigInt(bs)) | |
448 | + | func aW (aX,aY) = if ((aY >= aU)) | |
449 | + | then aX | |
450 | + | else bB(aX, aT[aY]) | |
435 | 451 | ||
436 | - | func | |
437 | - | then | |
452 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
453 | + | then aX | |
438 | 454 | else throw("List size exceeds 15") | |
439 | 455 | ||
440 | - | aW( | |
456 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
441 | 457 | } | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | func | |
447 | - | then | |
458 | + | let bD = bR._1 | |
459 | + | let bH = bR._2 | |
460 | + | let bE = fraction(bH, toBigInt(bs), toBigInt((bj * ar))) | |
461 | + | let bI = toBigInt(((bD + (bs / bj)) - bs)) | |
462 | + | func bS (aR,ax) = if ((aR._2 == true)) | |
463 | + | then aR | |
448 | 464 | else { | |
449 | - | let | |
450 | - | let | |
451 | - | if (( | |
452 | - | then if ((1 >= toInt(( | |
453 | - | then $Tuple2( | |
454 | - | else $Tuple2( | |
455 | - | else if ((1 >= toInt(( | |
456 | - | then $Tuple2( | |
457 | - | else $Tuple2( | |
465 | + | let bL = aR._1 | |
466 | + | let bM = (((bL * bL) + bE) / ((az * bL) + bI)) | |
467 | + | if ((bM > bL)) | |
468 | + | then if ((1 >= toInt((bM - bL)))) | |
469 | + | then $Tuple2(bM, true) | |
470 | + | else $Tuple2(bM, false) | |
471 | + | else if ((1 >= toInt((bL - bM)))) | |
472 | + | then $Tuple2(bM, true) | |
473 | + | else $Tuple2(bM, false) | |
458 | 474 | } | |
459 | 475 | ||
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | func | |
465 | - | then | |
466 | - | else | |
476 | + | let bT = { | |
477 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
478 | + | let aU = size(aT) | |
479 | + | let aV = $Tuple2(toBigInt(bs), false) | |
480 | + | func bq (aX,aY) = if ((aY >= aU)) | |
481 | + | then aX | |
482 | + | else bS(aX, aT[aY]) | |
467 | 483 | ||
468 | - | func | |
469 | - | then | |
484 | + | func br (aX,aY) = if ((aY >= aU)) | |
485 | + | then aX | |
470 | 486 | else throw("List size exceeds 16") | |
471 | 487 | ||
472 | - | | |
488 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
473 | 489 | } | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
477 | - | then throw(("get_y_D() not finished with " + toString( | |
478 | - | else toInt( | |
490 | + | let bM = bT._1 | |
491 | + | let bu = bT._2 | |
492 | + | if ((bu == false)) | |
493 | + | then throw(("get_y_D() not finished with " + toString(bM))) | |
494 | + | else toInt(bM) | |
479 | 495 | } | |
480 | 496 | ||
481 | 497 | ||
482 | - | func | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | then (fraction( | |
497 | - | else ( | |
498 | - | $Tuple2(( | |
498 | + | func bU (bb,bV,ax,bW) = { | |
499 | + | let bX = aD(bW) | |
500 | + | let bf = aK() | |
501 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
502 | + | let bZ = ai | |
503 | + | let ca = be(bb, bf) | |
504 | + | let cb = (ca - fraction(bV, ca, bZ)) | |
505 | + | let cc = bO(bf, ax, bb, cb) | |
506 | + | let cd = (bb[ax] - cc) | |
507 | + | func ce (aR,cf) = { | |
508 | + | let cg = aR | |
509 | + | let ch = cg._1 | |
510 | + | let ci = cg._2 | |
511 | + | let cj = if ((ci == ax)) | |
512 | + | then (fraction(cf, cb, ca) - cc) | |
513 | + | else (cf - fraction(cf, cb, ca)) | |
514 | + | $Tuple2((ch :+ (cf - fraction(bY, cj, aj))), (ci + 1)) | |
499 | 515 | } | |
500 | 516 | ||
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | func | |
506 | - | then | |
507 | - | else | |
517 | + | let ck = { | |
518 | + | let aT = bb | |
519 | + | let aU = size(aT) | |
520 | + | let aV = $Tuple2(nil, 0) | |
521 | + | func aW (aX,aY) = if ((aY >= aU)) | |
522 | + | then aX | |
523 | + | else ce(aX, aT[aY]) | |
508 | 524 | ||
509 | - | func | |
510 | - | then | |
525 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
526 | + | then aX | |
511 | 527 | else throw("List size exceeds 15") | |
512 | 528 | ||
513 | - | aW( | |
529 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
514 | 530 | } | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | $Tuple2( | |
531 | + | let ch = ck._1 | |
532 | + | let ci = ck._2 | |
533 | + | let cl = ch[ax] | |
534 | + | let cm = ((cl - bO(bf, ax, ch, cb)) - 1) | |
535 | + | $Tuple2(cm, (cd - cm)) | |
520 | 536 | } | |
521 | 537 | ||
522 | 538 | ||
523 | - | func | |
524 | - | let | |
525 | - | if ($isInstanceOf( | |
539 | + | func cn (aS) = { | |
540 | + | let N = aS | |
541 | + | if ($isInstanceOf(N, "ByteVector")) | |
526 | 542 | then { | |
527 | - | let | |
528 | - | toBase58String( | |
543 | + | let co = N | |
544 | + | toBase58String(co) | |
529 | 545 | } | |
530 | - | else if ($isInstanceOf( | |
546 | + | else if ($isInstanceOf(N, "Unit")) | |
531 | 547 | then { | |
532 | - | let | |
548 | + | let cp = N | |
533 | 549 | "WAVES" | |
534 | 550 | } | |
535 | 551 | else throw("Match error") | |
536 | 552 | } | |
537 | 553 | ||
538 | 554 | ||
539 | - | func | |
540 | - | then $Tuple2("lockNeutrino", | |
541 | - | else $Tuple2("unlockNeutrino", | |
555 | + | func cq (cr,aS) = if (cr) | |
556 | + | then $Tuple2("lockNeutrino", W) | |
557 | + | else $Tuple2("unlockNeutrino", W) | |
542 | 558 | ||
543 | 559 | ||
544 | - | func | |
560 | + | func cs (cr,ct,aS) = if (cr) | |
545 | 561 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | $Tuple4( | |
562 | + | let cu = cq(cr, aS) | |
563 | + | let cv = cu._1 | |
564 | + | let cw = cu._2 | |
565 | + | $Tuple4(cv, cw, nil, [AttachedPayment(aS, ct)]) | |
550 | 566 | } | |
551 | 567 | else { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | $Tuple4( | |
568 | + | let cx = cq(cr, aS) | |
569 | + | let cv = cx._1 | |
570 | + | let cw = cx._2 | |
571 | + | $Tuple4(cv, cw, [ct, toBase58String(aS)], nil) | |
556 | 572 | } | |
557 | 573 | ||
558 | 574 | ||
559 | - | func | |
575 | + | func cr (ct,cy) = if (containsElement(ab, cy)) | |
560 | 576 | then { | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | invoke( | |
577 | + | let cz = cs(true, ct, fromBase58String(cy)) | |
578 | + | let cv = cz._1 | |
579 | + | let cA = cz._2 | |
580 | + | let cB = cz._3 | |
581 | + | let cC = cz._4 | |
582 | + | invoke(cA, cv, cB, cC) | |
567 | 583 | } | |
568 | 584 | else 0 | |
569 | 585 | ||
570 | 586 | ||
571 | - | func | |
587 | + | func cD (ct,cy) = if (containsElement(ab, cy)) | |
572 | 588 | then { | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | invoke( | |
589 | + | let cE = cs(false, ct, fromBase58String(cy)) | |
590 | + | let cv = cE._1 | |
591 | + | let cA = cE._2 | |
592 | + | let cB = cE._3 | |
593 | + | let cC = cE._4 | |
594 | + | invoke(cA, cv, cB, cC) | |
579 | 595 | } | |
580 | 596 | else 0 | |
581 | 597 | ||
582 | 598 | ||
583 | - | func | |
584 | - | let | |
585 | - | let | |
586 | - | if ($isInstanceOf( | |
599 | + | func cF (aS) = { | |
600 | + | let cG = { | |
601 | + | let N = aS | |
602 | + | if ($isInstanceOf(N, "ByteVector")) | |
587 | 603 | then { | |
588 | - | let | |
589 | - | if (( | |
590 | - | then getInteger( | |
604 | + | let cH = N | |
605 | + | if ((cH == aa)) | |
606 | + | then getInteger(W, ((("rpd_balance_" + toBase58String(cH)) + "_") + toString(this))) | |
591 | 607 | else 0 | |
592 | 608 | } | |
593 | - | else if ($isInstanceOf( | |
609 | + | else if ($isInstanceOf(N, "Unit")) | |
594 | 610 | then 0 | |
595 | 611 | else throw("Match error") | |
596 | 612 | } | |
597 | - | let | |
598 | - | if ($isInstanceOf( | |
613 | + | let N = cG | |
614 | + | if ($isInstanceOf(N, "Int")) | |
599 | 615 | then { | |
600 | - | let | |
601 | - | | |
616 | + | let ax = N | |
617 | + | ax | |
602 | 618 | } | |
603 | 619 | else 0 | |
604 | 620 | } | |
605 | 621 | ||
606 | 622 | ||
607 | - | func | |
608 | - | let | |
609 | - | func | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | if ( | |
614 | - | then $Tuple2( | |
623 | + | func cI () = { | |
624 | + | let cJ = aP() | |
625 | + | func cK (aR,aS) = { | |
626 | + | let cL = aR | |
627 | + | let cM = cL._1 | |
628 | + | let ax = cL._2 | |
629 | + | if (cM) | |
630 | + | then $Tuple2(cM, ax) | |
615 | 631 | else { | |
616 | - | let | |
617 | - | if (( | |
618 | - | then $Tuple2(true, | |
619 | - | else $Tuple2(false, ( | |
632 | + | let cN = (assetBalance(this, fromBase58String(aS)) + cF(fromBase58String(aS))) | |
633 | + | if ((cJ[ax] > cN)) | |
634 | + | then $Tuple2(true, ax) | |
635 | + | else $Tuple2(false, (ax + 1)) | |
620 | 636 | } | |
621 | 637 | } | |
622 | 638 | ||
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | func | |
627 | - | then | |
628 | - | else | |
639 | + | let aT = aq | |
640 | + | let aU = size(aT) | |
641 | + | let aV = $Tuple2(false, 0) | |
642 | + | func aW (aX,aY) = if ((aY >= aU)) | |
643 | + | then aX | |
644 | + | else cK(aX, aT[aY]) | |
629 | 645 | ||
630 | - | func | |
631 | - | then | |
646 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
647 | + | then aX | |
632 | 648 | else throw("List size exceeds 15") | |
633 | 649 | ||
634 | - | aW( | |
650 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
635 | 651 | } | |
636 | 652 | ||
637 | 653 | ||
638 | - | func | |
654 | + | func cO (ax) = as(("Suspicious state with asset: " + aq[ax])) | |
639 | 655 | ||
640 | 656 | ||
641 | - | func | |
642 | - | func | |
657 | + | func cP (bW,cC) = { | |
658 | + | func cQ (aR,cR) = (aR :+ ScriptTransfer(bW, cR.amount, cR.assetId)) | |
643 | 659 | ||
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | func | |
648 | - | then | |
649 | - | else | |
660 | + | let aT = cC | |
661 | + | let aU = size(aT) | |
662 | + | let aV = nil | |
663 | + | func aW (aX,aY) = if ((aY >= aU)) | |
664 | + | then aX | |
665 | + | else cQ(aX, aT[aY]) | |
650 | 666 | ||
651 | - | func | |
652 | - | then | |
667 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
668 | + | then aX | |
653 | 669 | else throw("List size exceeds 15") | |
654 | 670 | ||
655 | - | aW( | |
671 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
656 | 672 | } | |
657 | 673 | ||
658 | 674 | ||
659 | - | func | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if (( | |
675 | + | func cS (cT) = { | |
676 | + | let cU = valueOrErrorMessage(getInteger(this, o), "No dAppThresholdCoef key") | |
677 | + | let cV = 10000 | |
678 | + | let cW = max(cT) | |
679 | + | let cX = min(cT) | |
680 | + | let cY = fraction(cW, cV, cX) | |
681 | + | if ((cY > (cU * cV))) | |
666 | 682 | then throw("New balance in assets of the DApp is less than threshold") | |
667 | 683 | else false | |
668 | 684 | } | |
669 | 685 | ||
670 | 686 | ||
671 | - | func | |
672 | - | let | |
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | if (( | |
687 | + | func cZ (aq) = { | |
688 | + | let da = split(aq, ",") | |
689 | + | func db (dc,aS) = { | |
690 | + | let dd = valueOrErrorMessage(fromBase58String(aS), ("fromBase58String: " + aS)) | |
691 | + | let de = valueOrErrorMessage(assetInfo(dd), ("assetInfo: " + aS)).decimals | |
692 | + | if ((de != d)) | |
677 | 693 | then throw("wrong decimals") | |
678 | 694 | else false | |
679 | 695 | } | |
680 | 696 | ||
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | func | |
685 | - | then | |
686 | - | else | |
697 | + | let aT = da | |
698 | + | let aU = size(aT) | |
699 | + | let aV = false | |
700 | + | func aW (aX,aY) = if ((aY >= aU)) | |
701 | + | then aX | |
702 | + | else db(aX, aT[aY]) | |
687 | 703 | ||
688 | - | func | |
689 | - | then | |
704 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
705 | + | then aX | |
690 | 706 | else throw("List size exceeds 15") | |
691 | 707 | ||
692 | - | aW( | |
708 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
693 | 709 | } | |
694 | 710 | ||
695 | 711 | ||
696 | - | @Callable( | |
697 | - | func D ( | |
698 | - | let | |
699 | - | $Tuple2([IntegerEntry("D", | |
712 | + | @Callable(df) | |
713 | + | func D (bb,bf) = { | |
714 | + | let bs = bh(bb, bf) | |
715 | + | $Tuple2([IntegerEntry("D", bs)], bs) | |
700 | 716 | } | |
701 | 717 | ||
702 | 718 | ||
703 | 719 | ||
704 | - | @Callable( | |
705 | - | func init ( | |
720 | + | @Callable(df) | |
721 | + | func init (aq,aK,dg,dh) = if (!(isDataStorageUntouched(this))) | |
706 | 722 | then throw("Already initialized") | |
707 | - | else if ((0 >= | |
723 | + | else if ((0 >= aK)) | |
708 | 724 | then throw("Amp must be must > 0") | |
709 | - | else if ((0 >= | |
725 | + | else if ((0 >= dg)) | |
710 | 726 | then throw("dApp Threshold Coef must be > 0") | |
711 | 727 | else { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | if ( | |
728 | + | let di = "s_Multi_USD" | |
729 | + | let dj = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
730 | + | let dk = Issue(di, dj, 0, 6, true) | |
731 | + | let dl = calculateAssetId(dk) | |
732 | + | if (cZ(aq)) | |
717 | 733 | then throw() | |
718 | 734 | else { | |
719 | - | let | |
720 | - | if ( | |
721 | - | then ( | |
722 | - | else | |
735 | + | let dm = [StringEntry(g, f), StringEntry(h, aq), IntegerEntry("initial_A", aK), IntegerEntry("future_A", aK), IntegerEntry(n, getIntegerValue(K, "base_fee_flat")), StringEntry(l, toBase58String(dl)), IntegerEntry(m, 0), IntegerEntry(o, dg), BooleanEntry(j, true), dk] | |
736 | + | if (dh) | |
737 | + | then (dm ++ [BooleanEntry(t, dh), IntegerEntry(u, (ad + (af * ae)))]) | |
738 | + | else dm | |
723 | 739 | } | |
724 | 740 | } | |
725 | 741 | ||
726 | 742 | ||
727 | 743 | ||
728 | - | @Callable( | |
729 | - | func addLiquidity ( | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
744 | + | @Callable(df) | |
745 | + | func addLiquidity (dn,do) = valueOrElse(av(), { | |
746 | + | let bf = aK() | |
747 | + | let bb = aP() | |
748 | + | let ca = if ((ai == 0)) | |
733 | 749 | then 0 | |
734 | - | else | |
735 | - | let | |
736 | - | let | |
737 | - | func | |
738 | - | then throw(("payments size > " + toString( | |
739 | - | else if ((1 > | |
750 | + | else bv(bb, bf) | |
751 | + | let cC = df.payments | |
752 | + | let dp = size(cC) | |
753 | + | func dq (dr) = if ((dp > ar)) | |
754 | + | then throw(("payments size > " + toString(ar))) | |
755 | + | else if ((1 > dp)) | |
740 | 756 | then throw("payments size < 1") | |
741 | - | else if (if (( | |
742 | - | then ( | |
757 | + | else if (if ((ai == 0)) | |
758 | + | then (ar != dp) | |
743 | 759 | else false) | |
744 | 760 | then throw("initial deposit requires all coins") | |
745 | 761 | else { | |
746 | - | func | |
762 | + | func ds (aR,cR) = if (containsElement(aq, cn(cR.assetId))) | |
747 | 763 | then true | |
748 | 764 | else throw("Invalid asset in payment") | |
749 | 765 | ||
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | func | |
754 | - | then | |
755 | - | else | |
766 | + | let aT = cC | |
767 | + | let aU = size(aT) | |
768 | + | let aV = false | |
769 | + | func aW (aX,aY) = if ((aY >= aU)) | |
770 | + | then aX | |
771 | + | else ds(aX, aT[aY]) | |
756 | 772 | ||
757 | - | func | |
758 | - | then | |
773 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
774 | + | then aX | |
759 | 775 | else throw("List size exceeds 15") | |
760 | 776 | ||
761 | - | aW( | |
777 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
762 | 778 | } | |
763 | 779 | ||
764 | - | if (!( | |
780 | + | if (!(dq(dp))) | |
765 | 781 | then throw() | |
766 | 782 | else { | |
767 | - | let | |
768 | - | if ( | |
769 | - | then ( | |
783 | + | let cM = cI() | |
784 | + | if (cM._1) | |
785 | + | then (cO(cM._2) ++ cP(df.caller, cC)) | |
770 | 786 | else { | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | if (if (( | |
777 | - | then ( | |
787 | + | func cQ (aR,aS) = { | |
788 | + | let dt = aR | |
789 | + | let cT = dt._1 | |
790 | + | let ax = dt._2 | |
791 | + | let du = dt._3 | |
792 | + | if (if ((dp > du)) | |
793 | + | then (cn(cC[du].assetId) == aS) | |
778 | 794 | else false) | |
779 | - | then $Tuple3(( | |
780 | - | else $Tuple3(( | |
795 | + | then $Tuple3((cT :+ (bb[ax] + cC[du].amount)), (ax + 1), (du + 1)) | |
796 | + | else $Tuple3((cT :+ bb[ax]), (ax + 1), du) | |
781 | 797 | } | |
782 | 798 | ||
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | func | |
788 | - | then | |
789 | - | else | |
799 | + | let dv = { | |
800 | + | let aT = aq | |
801 | + | let aU = size(aT) | |
802 | + | let aV = $Tuple3(nil, 0, 0) | |
803 | + | func aW (aX,aY) = if ((aY >= aU)) | |
804 | + | then aX | |
805 | + | else cQ(aX, aT[aY]) | |
790 | 806 | ||
791 | - | func | |
792 | - | then | |
807 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
808 | + | then aX | |
793 | 809 | else throw("List size exceeds 15") | |
794 | 810 | ||
795 | - | aW( | |
811 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
796 | 812 | } | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (( | |
813 | + | let cT = dv._1 | |
814 | + | let dw = dv._2 | |
815 | + | let dx = dv._3 | |
816 | + | if ((dp > dx)) | |
801 | 817 | then throw("Incorect payments order") | |
802 | - | else if ( | |
818 | + | else if (cS(cT)) | |
803 | 819 | then throw() | |
804 | 820 | else { | |
805 | - | let | |
806 | - | if ( | |
821 | + | let cb = bv(cT, bf) | |
822 | + | if (aB((cb > ca))) | |
807 | 823 | then throw("D1 > D0") | |
808 | 824 | else { | |
809 | - | let | |
810 | - | func | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | if (( | |
825 | + | let bX = aD(df.caller) | |
826 | + | func dy (aR,dz) = { | |
827 | + | let dA = aR | |
828 | + | let dB = dA._1 | |
829 | + | let dC = dA._2 | |
830 | + | let ax = dA._3 | |
831 | + | if ((ai > 0)) | |
816 | 832 | then { | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | then ( | |
822 | - | else ( | |
823 | - | fraction( | |
833 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
834 | + | let dD = { | |
835 | + | let dE = fraction(cb, bb[ax], ca) | |
836 | + | let dF = if ((dE > dz)) | |
837 | + | then (dE - dz) | |
838 | + | else (dz - dE) | |
839 | + | fraction(bY, dF, aj) | |
824 | 840 | } | |
825 | - | let dD = fraction(dA, ak, ai) | |
826 | - | let dE = (dw - dA) | |
827 | - | let dF = (dw - dA) | |
828 | - | let dG = (dw - aY[aw]) | |
829 | - | let dH = if ((dG > 0)) | |
830 | - | then co((dG - dA), ap[aw]) | |
831 | - | else cA(dA, ap[aw]) | |
832 | - | if ((dH == dH)) | |
833 | - | then $Tuple3((dy :+ dF), (dz ++ [ScriptTransfer(Y, (dA - dD), fromBase58String(ap[aw])), ScriptTransfer(T, dD, fromBase58String(ap[aw])), IntegerEntry((ap[aw] + i), dE)]), (aw + 1)) | |
841 | + | let dG = fraction(dD, al, aj) | |
842 | + | let dH = (dz - dD) | |
843 | + | let dI = (dz - dD) | |
844 | + | let dJ = (dz - bb[ax]) | |
845 | + | let dK = (dD - dG) | |
846 | + | let dL = if ((dJ > 0)) | |
847 | + | then cr((dJ - dD), aq[ax]) | |
848 | + | else cD(dD, aq[ax]) | |
849 | + | if ((dL == dL)) | |
850 | + | then { | |
851 | + | let dM = if ((dK > 0)) | |
852 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(fromBase58String(aq[ax]), dK)]) | |
853 | + | else 0 | |
854 | + | if ((dM == dM)) | |
855 | + | then $Tuple3((dB :+ dI), (dC ++ [ScriptTransfer(U, dG, fromBase58String(aq[ax])), IntegerEntry((aq[ax] + i), dH)]), (ax + 1)) | |
856 | + | else throw("Strict value is not equal to itself.") | |
857 | + | } | |
834 | 858 | else throw("Strict value is not equal to itself.") | |
835 | 859 | } | |
836 | 860 | else { | |
837 | - | let | |
838 | - | if (( | |
839 | - | then $Tuple3(( | |
861 | + | let dL = cr(dz, aq[ax]) | |
862 | + | if ((dL == dL)) | |
863 | + | then $Tuple3((dB :+ dz), (dC :+ IntegerEntry((aq[ax] + i), dz)), (ax + 1)) | |
840 | 864 | else throw("Strict value is not equal to itself.") | |
841 | 865 | } | |
842 | 866 | } | |
843 | 867 | ||
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | func | |
849 | - | then | |
850 | - | else | |
868 | + | let dN = { | |
869 | + | let aT = cT | |
870 | + | let aU = size(aT) | |
871 | + | let aV = $Tuple3(nil, nil, 0) | |
872 | + | func bq (aX,aY) = if ((aY >= aU)) | |
873 | + | then aX | |
874 | + | else dy(aX, aT[aY]) | |
851 | 875 | ||
852 | - | func | |
853 | - | then | |
876 | + | func br (aX,aY) = if ((aY >= aU)) | |
877 | + | then aX | |
854 | 878 | else throw("List size exceeds 15") | |
855 | 879 | ||
856 | - | | |
880 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
857 | 881 | } | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | then | |
863 | - | else fraction( | |
864 | - | if ( | |
882 | + | let dB = dN._1 | |
883 | + | let dC = dN._2 | |
884 | + | let dO = bv(dB, bf) | |
885 | + | let dP = if ((ai == 0)) | |
886 | + | then cb | |
887 | + | else fraction(ai, (dO - ca), ca) | |
888 | + | if (aB((dP >= dn))) | |
865 | 889 | then throw("Slippage screwed you") | |
866 | - | else if ( | |
890 | + | else if (do) | |
867 | 891 | then { | |
868 | - | let | |
869 | - | if (( | |
892 | + | let dQ = invoke(this, "reissueShare", [dP], nil) | |
893 | + | if ((dQ == dQ)) | |
870 | 894 | then { | |
871 | - | let | |
872 | - | if (( | |
873 | - | then ( | |
895 | + | let dR = invoke(Y, "lockShareTokens", [toString(this)], [AttachedPayment(ah, dP)]) | |
896 | + | if ((dR == dR)) | |
897 | + | then (dC :+ IntegerEntry(m, (ai + dP))) | |
874 | 898 | else throw("Strict value is not equal to itself.") | |
875 | 899 | } | |
876 | 900 | else throw("Strict value is not equal to itself.") | |
877 | 901 | } | |
878 | - | else ( | |
902 | + | else (dC ++ [Reissue(ah, dP, true), ScriptTransfer(df.caller, dP, ah), IntegerEntry(m, (ai + dP))]) | |
879 | 903 | } | |
880 | 904 | } | |
881 | 905 | } | |
884 | 908 | ||
885 | 909 | ||
886 | 910 | ||
887 | - | @Callable(dc) | |
888 | - | func reissueShare (cq) = valueOrElse(ax(dc), [Reissue(ag, cq, true)]) | |
911 | + | @Callable(df) | |
912 | + | func calcMintAmount (cT,aF) = { | |
913 | + | let bf = aK() | |
914 | + | let bb = aP() | |
915 | + | let cb = bv(cT, bf) | |
916 | + | if ((ai == 0)) | |
917 | + | then $Tuple2(nil, cb) | |
918 | + | else { | |
919 | + | let ca = bv(bb, bf) | |
920 | + | let bX = aD(aF) | |
921 | + | func dS (aR,dz) = { | |
922 | + | let dT = aR | |
923 | + | let dB = dT._1 | |
924 | + | let ax = dT._2 | |
925 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
926 | + | let dD = { | |
927 | + | let dE = fraction(cb, bb[ax], ca) | |
928 | + | let dF = if ((dE > dz)) | |
929 | + | then (dE - dz) | |
930 | + | else (dz - dE) | |
931 | + | fraction(bY, dF, aj) | |
932 | + | } | |
933 | + | let dI = (dz - dD) | |
934 | + | $Tuple2((dB :+ dI), (ax + 1)) | |
935 | + | } | |
889 | 936 | ||
937 | + | let dU = { | |
938 | + | let aT = cT | |
939 | + | let aU = size(aT) | |
940 | + | let aV = $Tuple2(nil, 0) | |
941 | + | func aW (aX,aY) = if ((aY >= aU)) | |
942 | + | then aX | |
943 | + | else dS(aX, aT[aY]) | |
890 | 944 | ||
945 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
946 | + | then aX | |
947 | + | else throw("List size exceeds 15") | |
891 | 948 | ||
892 | - | @Callable(dc) | |
893 | - | func getDy (dN,dO,dP,dQ) = { | |
894 | - | let aY = aM() | |
895 | - | let dR = valueOrErrorMessage(indexOf(ap, dN), "unknown token in") | |
896 | - | let dS = valueOrErrorMessage(indexOf(ap, dO), "unknown token out") | |
897 | - | let bw = (aY[dR] + dP) | |
898 | - | let bJ = bt(dR, dS, bw, aY) | |
899 | - | let cj = ((aY[dS] - bJ) - 1) | |
900 | - | let bU = aC(Address(fromBase58String(dQ))) | |
901 | - | let bV = fraction(fraction(aj, bU, ai, CEILING), cj, ai) | |
902 | - | $Tuple2(nil, $Tuple2((cj - bV), bV)) | |
949 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
950 | + | } | |
951 | + | let dB = dU._1 | |
952 | + | let dw = dU._2 | |
953 | + | let dO = bv(dB, bf) | |
954 | + | let dV = fraction(ai, (dO - ca), ca) | |
955 | + | $Tuple2(nil, dV) | |
956 | + | } | |
903 | 957 | } | |
904 | 958 | ||
905 | 959 | ||
906 | 960 | ||
907 | - | @Callable(dc) | |
908 | - | func exchange (dT,dU) = valueOrElse(au(), if ((size(dc.payments) != 1)) | |
961 | + | @Callable(df) | |
962 | + | func reissueShare (ct) = valueOrElse(ay(df), [Reissue(ah, ct, true)]) | |
963 | + | ||
964 | + | ||
965 | + | ||
966 | + | @Callable(df) | |
967 | + | func getDy (dW,dX,dY,dZ) = { | |
968 | + | let bb = aP() | |
969 | + | let ea = valueOrErrorMessage(indexOf(aq, dW), "unknown token in") | |
970 | + | let eb = valueOrErrorMessage(indexOf(aq, dX), "unknown token out") | |
971 | + | let bz = (bb[ea] + dY) | |
972 | + | let bM = bw(ea, eb, bz, bb) | |
973 | + | let cm = ((bb[eb] - bM) - 1) | |
974 | + | let bX = aD(Address(fromBase58String(dZ))) | |
975 | + | let bY = fraction(fraction(ak, bX, aj, CEILING), cm, aj) | |
976 | + | $Tuple2(nil, $Tuple2((cm - bY), bY)) | |
977 | + | } | |
978 | + | ||
979 | + | ||
980 | + | ||
981 | + | @Callable(df) | |
982 | + | func exchange (ec,ed) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
909 | 983 | then throw("size(payments) != 1") | |
910 | 984 | else { | |
911 | - | let | |
912 | - | if ( | |
913 | - | then ( | |
985 | + | let cM = cI() | |
986 | + | if (cM._1) | |
987 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
914 | 988 | else { | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | if ( | |
989 | + | let cR = df.payments[0] | |
990 | + | let ee = cn(cR.assetId) | |
991 | + | let ef = fromBase58String(ec) | |
992 | + | let dY = cR.amount | |
993 | + | let ea = valueOrErrorMessage(indexOf(aq, ee), "unknown token in") | |
994 | + | let eb = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
995 | + | let bb = aP() | |
996 | + | let bz = (bb[ea] + dY) | |
997 | + | let bM = bw(ea, eb, bz, bb) | |
998 | + | let eg = ((bb[eb] - bM) - 1) | |
999 | + | let bX = aD(df.caller) | |
1000 | + | let bY = fraction(eg, fraction(ak, bX, aj, CEILING), aj) | |
1001 | + | let cm = (eg - bY) | |
1002 | + | let dG = fraction(bY, al, aj) | |
1003 | + | if (aB((cm >= ed))) | |
930 | 1004 | then throw("Exchange resulted in fewer coins than expected") | |
931 | 1005 | else { | |
932 | - | func | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | if (( | |
937 | - | then $Tuple2(( | |
938 | - | else if (( | |
939 | - | then $Tuple2(( | |
940 | - | else $Tuple2(( | |
1006 | + | func eh (aR,ei) = { | |
1007 | + | let ej = aR | |
1008 | + | let cT = ej._1 | |
1009 | + | let ax = ej._2 | |
1010 | + | if ((ax == ea)) | |
1011 | + | then $Tuple2((cT :+ (ei + dY)), (ax + 1)) | |
1012 | + | else if ((ax == eb)) | |
1013 | + | then $Tuple2((cT :+ (ei - eg)), (ax + 1)) | |
1014 | + | else $Tuple2((cT :+ ei), (ax + 1)) | |
941 | 1015 | } | |
942 | 1016 | ||
943 | - | let | |
944 | - | let | |
945 | - | let | |
946 | - | let | |
947 | - | func | |
948 | - | then | |
949 | - | else | |
1017 | + | let ek = { | |
1018 | + | let aT = bb | |
1019 | + | let aU = size(aT) | |
1020 | + | let aV = $Tuple2(nil, 0) | |
1021 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1022 | + | then aX | |
1023 | + | else eh(aX, aT[aY]) | |
950 | 1024 | ||
951 | - | func | |
952 | - | then | |
1025 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1026 | + | then aX | |
953 | 1027 | else throw("List size exceeds 15") | |
954 | 1028 | ||
955 | - | aW( | |
1029 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
956 | 1030 | } | |
957 | - | let | |
958 | - | let | |
959 | - | if ( | |
1031 | + | let cT = ek._1 | |
1032 | + | let ax = ek._2 | |
1033 | + | if (cS(cT)) | |
960 | 1034 | then throw() | |
961 | 1035 | else { | |
962 | - | let | |
963 | - | if (( | |
1036 | + | let dR = cr(cR.amount, cn(cR.assetId)) | |
1037 | + | if ((dR == dR)) | |
964 | 1038 | then { | |
965 | - | let ec = cA(dX, dT) | |
966 | - | if ((ec == ec)) | |
967 | - | then $Tuple2([IntegerEntry((dV + i), bw), IntegerEntry((dT + i), (aY[dS] - dX)), ScriptTransfer(dc.caller, cj, dW), ScriptTransfer(T, dD, dW), ScriptTransfer(Y, (bV - dD), dW)], [cj, dW]) | |
1039 | + | let el = cD(eg, ec) | |
1040 | + | if ((el == el)) | |
1041 | + | then { | |
1042 | + | let dK = (bY - dG) | |
1043 | + | let dM = if ((dK > 0)) | |
1044 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(ef, dK)]) | |
1045 | + | else 0 | |
1046 | + | if ((dM == dM)) | |
1047 | + | then $Tuple2([IntegerEntry((ee + i), bz), IntegerEntry((ec + i), (bb[eb] - eg)), ScriptTransfer(df.caller, cm, ef), ScriptTransfer(U, dG, ef)], [cm, ef]) | |
1048 | + | else throw("Strict value is not equal to itself.") | |
1049 | + | } | |
968 | 1050 | else throw("Strict value is not equal to itself.") | |
969 | 1051 | } | |
970 | 1052 | else throw("Strict value is not equal to itself.") | |
975 | 1057 | ||
976 | 1058 | ||
977 | 1059 | ||
978 | - | @Callable( | |
979 | - | func withdraw ( | |
1060 | + | @Callable(df) | |
1061 | + | func withdraw (em) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
980 | 1062 | then throw("size(payments) != 1") | |
981 | 1063 | else { | |
982 | - | let | |
983 | - | let | |
984 | - | if (( | |
1064 | + | let en = df.payments[0].amount | |
1065 | + | let eo = df.payments[0].assetId | |
1066 | + | if ((ah != eo)) | |
985 | 1067 | then throw("unknown payment token") | |
986 | 1068 | else { | |
987 | - | let | |
988 | - | if ( | |
989 | - | then ( | |
1069 | + | let cM = cI() | |
1070 | + | if (cM._1) | |
1071 | + | then (cO(cM._2) ++ cP(df.originCaller, df.payments)) | |
990 | 1072 | else { | |
991 | - | func | |
992 | - | let | |
993 | - | let | |
994 | - | let | |
995 | - | let | |
996 | - | if ( | |
1073 | + | func dy (aR,ep) = { | |
1074 | + | let eq = aR | |
1075 | + | let dC = eq._1 | |
1076 | + | let ax = eq._2 | |
1077 | + | let er = fraction(ep, en, ai) | |
1078 | + | if (aB((er >= em[ax]))) | |
997 | 1079 | then throw("Withdrawal resulted in fewer coins than expected") | |
998 | 1080 | else { | |
999 | - | let | |
1000 | - | if (( | |
1001 | - | then $Tuple2(( | |
1081 | + | let el = cD(er, aq[ax]) | |
1082 | + | if ((el == el)) | |
1083 | + | then $Tuple2((dC ++ [IntegerEntry((aq[ax] + i), (ep - er)), ScriptTransfer(df.originCaller, er, fromBase58String(aq[ax]))]), (ax + 1)) | |
1002 | 1084 | else throw("Strict value is not equal to itself.") | |
1003 | 1085 | } | |
1004 | 1086 | } | |
1005 | 1087 | ||
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1010 | - | func | |
1011 | - | then | |
1012 | - | else | |
1088 | + | let es = { | |
1089 | + | let aT = aP() | |
1090 | + | let aU = size(aT) | |
1091 | + | let aV = $Tuple2(nil, 0) | |
1092 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1093 | + | then aX | |
1094 | + | else dy(aX, aT[aY]) | |
1013 | 1095 | ||
1014 | - | func | |
1015 | - | then | |
1096 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1097 | + | then aX | |
1016 | 1098 | else throw("List size exceeds 15") | |
1017 | 1099 | ||
1018 | - | aW( | |
1100 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
1019 | 1101 | } | |
1020 | - | let | |
1021 | - | let | |
1022 | - | ( | |
1102 | + | let dC = es._1 | |
1103 | + | let ax = es._2 | |
1104 | + | (dC ++ [Burn(ah, en), IntegerEntry(m, (ai - en))]) | |
1023 | 1105 | } | |
1024 | 1106 | } | |
1025 | 1107 | }) | |
1026 | 1108 | ||
1027 | 1109 | ||
1028 | 1110 | ||
1029 | - | @Callable( | |
1030 | - | func withdrawWithUnlock ( | |
1111 | + | @Callable(df) | |
1112 | + | func withdrawWithUnlock (em,et) = valueOrElse(av(), if ((0 >= et)) | |
1031 | 1113 | then throw("Unlock amount must be positive") | |
1032 | 1114 | else { | |
1033 | - | let | |
1034 | - | if ( | |
1035 | - | then ( | |
1115 | + | let cM = cI() | |
1116 | + | if (cM._1) | |
1117 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
1036 | 1118 | else { | |
1037 | - | let | |
1038 | - | then if ((size( | |
1119 | + | let en = if ((size(df.payments) > 0)) | |
1120 | + | then if ((size(df.payments) != 1)) | |
1039 | 1121 | then throw("size(payments) != 1") | |
1040 | 1122 | else { | |
1041 | - | let | |
1042 | - | if (( | |
1123 | + | let eo = df.payments[0].assetId | |
1124 | + | if ((ah != eo)) | |
1043 | 1125 | then throw("unknown payment token") | |
1044 | - | else | |
1126 | + | else df.payments[0].amount | |
1045 | 1127 | } | |
1046 | 1128 | else 0 | |
1047 | - | let | |
1048 | - | if (( | |
1129 | + | let eu = invoke(Y, "withdrawShareTokens", [toString(this), et], nil) | |
1130 | + | if ((eu == eu)) | |
1049 | 1131 | then { | |
1050 | - | let | |
1051 | - | let | |
1052 | - | if (( | |
1132 | + | let ev = (en + et) | |
1133 | + | let dL = invoke(this, "withdraw", [em], [AttachedPayment(ah, ev)]) | |
1134 | + | if ((dL == dL)) | |
1053 | 1135 | then nil | |
1054 | 1136 | else throw("Strict value is not equal to itself.") | |
1055 | 1137 | } | |
1059 | 1141 | ||
1060 | 1142 | ||
1061 | 1143 | ||
1062 | - | @Callable( | |
1063 | - | func calcWithdrawOneCoin ( | |
1064 | - | let | |
1065 | - | $Tuple2(nil, | |
1144 | + | @Callable(df) | |
1145 | + | func calcWithdrawOneCoin (ew,ec,aF) = { | |
1146 | + | let ax = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
1147 | + | $Tuple2(nil, bU(aP(), ew, ax, Address(fromBase58String(aF)))._1) | |
1066 | 1148 | } | |
1067 | 1149 | ||
1068 | 1150 | ||
1069 | 1151 | ||
1070 | - | @Callable( | |
1071 | - | func withdrawOneCoin ( | |
1152 | + | @Callable(df) | |
1153 | + | func withdrawOneCoin (ec,ex) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
1072 | 1154 | then throw("size(payments) != 1") | |
1073 | 1155 | else { | |
1074 | - | let | |
1075 | - | if ( | |
1076 | - | then ( | |
1156 | + | let cM = cI() | |
1157 | + | if (cM._1) | |
1158 | + | then (cO(cM._2) ++ cP(df.originCaller, df.payments)) | |
1077 | 1159 | else { | |
1078 | - | let | |
1079 | - | let | |
1080 | - | if (( | |
1160 | + | let en = df.payments[0].amount | |
1161 | + | let eo = df.payments[0].assetId | |
1162 | + | if ((eo != ah)) | |
1081 | 1163 | then throw("unknown token") | |
1082 | 1164 | else { | |
1083 | - | let eq = valueOrErrorMessage(indexOf(ap, dT), "unknown token out") | |
1084 | - | let aY = aM() | |
1085 | - | let er = bR(aY, ee, eq, dc.originCaller) | |
1086 | - | let cj = er._1 | |
1087 | - | let es = er._2 | |
1088 | - | if (aA((cj >= ep))) | |
1165 | + | let ey = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
1166 | + | let ef = fromBase58String(ec) | |
1167 | + | let bb = aP() | |
1168 | + | let ez = bU(bb, en, ey, df.originCaller) | |
1169 | + | let cm = ez._1 | |
1170 | + | let eA = ez._2 | |
1171 | + | if (aB((cm >= ex))) | |
1089 | 1172 | then throw("Not enough coins removed") | |
1090 | 1173 | else { | |
1091 | - | let | |
1092 | - | let | |
1093 | - | func | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | if (( | |
1098 | - | then $Tuple2(( | |
1099 | - | else $Tuple2(( | |
1174 | + | let dG = fraction(eA, al, aj) | |
1175 | + | let eB = (cm + eA) | |
1176 | + | func eh (aR,ei) = { | |
1177 | + | let eC = aR | |
1178 | + | let cT = eC._1 | |
1179 | + | let ax = eC._2 | |
1180 | + | if ((ax == ey)) | |
1181 | + | then $Tuple2((cT :+ (ei - eB)), (ax + 1)) | |
1182 | + | else $Tuple2((cT :+ ei), (ax + 1)) | |
1100 | 1183 | } | |
1101 | 1184 | ||
1102 | - | let | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | func | |
1107 | - | then | |
1108 | - | else | |
1185 | + | let eD = { | |
1186 | + | let aT = bb | |
1187 | + | let aU = size(aT) | |
1188 | + | let aV = $Tuple2(nil, 0) | |
1189 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1190 | + | then aX | |
1191 | + | else eh(aX, aT[aY]) | |
1109 | 1192 | ||
1110 | - | func | |
1111 | - | then | |
1193 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1194 | + | then aX | |
1112 | 1195 | else throw("List size exceeds 15") | |
1113 | 1196 | ||
1114 | - | aW( | |
1197 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
1115 | 1198 | } | |
1116 | - | let | |
1117 | - | let | |
1118 | - | if ( | |
1199 | + | let cT = eD._1 | |
1200 | + | let eE = eD._2 | |
1201 | + | if (cS(cT)) | |
1119 | 1202 | then throw() | |
1120 | 1203 | else { | |
1121 | - | let ec = cA(et, dT) | |
1122 | - | if ((ec == ec)) | |
1123 | - | then [ScriptTransfer(dc.originCaller, cj, fromBase58String(dT)), IntegerEntry((ap[eq] + i), (aY[eq] - et)), Burn(ag, ee), ScriptTransfer(T, dD, fromBase58String(dT)), ScriptTransfer(Y, (es - dD), fromBase58String(dT)), IntegerEntry(m, (ah - ee))] | |
1204 | + | let el = cD(eB, ec) | |
1205 | + | if ((el == el)) | |
1206 | + | then { | |
1207 | + | let dK = (eA - dG) | |
1208 | + | let dM = if ((dK > 0)) | |
1209 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(ef, dK)]) | |
1210 | + | else 0 | |
1211 | + | if ((dM == dM)) | |
1212 | + | then [ScriptTransfer(df.originCaller, cm, ef), IntegerEntry((aq[ey] + i), (bb[ey] - eB)), Burn(ah, en), ScriptTransfer(U, dG, ef), IntegerEntry(m, (ai - en))] | |
1213 | + | else throw("Strict value is not equal to itself.") | |
1214 | + | } | |
1124 | 1215 | else throw("Strict value is not equal to itself.") | |
1125 | 1216 | } | |
1126 | 1217 | } | |
1130 | 1221 | ||
1131 | 1222 | ||
1132 | 1223 | ||
1133 | - | @Callable( | |
1134 | - | func withdrawOneCoinWithUnlock ( | |
1224 | + | @Callable(df) | |
1225 | + | func withdrawOneCoinWithUnlock (ec,ex,et) = valueOrElse(av(), if ((0 >= et)) | |
1135 | 1226 | then throw("Unlock amount must be positive") | |
1136 | 1227 | else { | |
1137 | - | let | |
1138 | - | if ( | |
1139 | - | then ( | |
1228 | + | let cM = cI() | |
1229 | + | if (cM._1) | |
1230 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
1140 | 1231 | else { | |
1141 | - | let | |
1142 | - | then if ((size( | |
1232 | + | let en = if ((size(df.payments) > 0)) | |
1233 | + | then if ((size(df.payments) != 1)) | |
1143 | 1234 | then throw("size(payments) != 1") | |
1144 | 1235 | else { | |
1145 | - | let | |
1146 | - | if (( | |
1236 | + | let eo = df.payments[0].assetId | |
1237 | + | if ((ah != eo)) | |
1147 | 1238 | then throw("unknown payment token") | |
1148 | - | else | |
1239 | + | else df.payments[0].amount | |
1149 | 1240 | } | |
1150 | 1241 | else 0 | |
1151 | - | let | |
1152 | - | if (( | |
1242 | + | let eu = invoke(Y, "withdrawShareTokens", [toString(this), et], nil) | |
1243 | + | if ((eu == eu)) | |
1153 | 1244 | then { | |
1154 | - | let | |
1155 | - | let | |
1156 | - | if (( | |
1245 | + | let ev = (en + et) | |
1246 | + | let dL = invoke(this, "withdrawOneCoin", [ec, ex], [AttachedPayment(ah, ev)]) | |
1247 | + | if ((dL == dL)) | |
1157 | 1248 | then nil | |
1158 | 1249 | else throw("Strict value is not equal to itself.") | |
1159 | 1250 | } | |
1163 | 1254 | ||
1164 | 1255 | ||
1165 | 1256 | ||
1166 | - | @Callable( | |
1167 | - | func A () = $Tuple2(nil, | |
1257 | + | @Callable(df) | |
1258 | + | func A () = $Tuple2(nil, aK()) | |
1168 | 1259 | ||
1169 | 1260 | ||
1170 | 1261 | ||
1171 | - | @Callable( | |
1262 | + | @Callable(df) | |
1172 | 1263 | func getVirtualPrice () = { | |
1173 | - | let | |
1174 | - | $Tuple2(nil, fraction( | |
1264 | + | let bs = be(aP(), aK()) | |
1265 | + | $Tuple2(nil, fraction(bs, a, ai)) | |
1175 | 1266 | } | |
1176 | 1267 | ||
1177 | 1268 | ||
1178 | 1269 | ||
1179 | - | @Callable( | |
1180 | - | func calcTokenAmount ( | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | func | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | then | |
1190 | - | else -( | |
1191 | - | $Tuple2(( | |
1270 | + | @Callable(df) | |
1271 | + | func calcTokenAmount (eF,eG) = { | |
1272 | + | let bf = aK() | |
1273 | + | let eH = aP() | |
1274 | + | let ca = bv(eH, bf) | |
1275 | + | func eI (aR,ep) = { | |
1276 | + | let eJ = aR | |
1277 | + | let cT = eJ._1 | |
1278 | + | let ax = eJ._2 | |
1279 | + | let dz = (ep + (if (eG) | |
1280 | + | then eF[ax] | |
1281 | + | else -(eF[ax]))) | |
1282 | + | $Tuple2((cT :+ dz), (ax + 1)) | |
1192 | 1283 | } | |
1193 | 1284 | ||
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | func | |
1198 | - | then | |
1199 | - | else | |
1285 | + | let cT = ( let aT = eH | |
1286 | + | let aU = size(aT) | |
1287 | + | let aV = $Tuple2(nil, 0) | |
1288 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1289 | + | then aX | |
1290 | + | else eI(aX, aT[aY]) | |
1200 | 1291 | ||
1201 | - | func | |
1202 | - | then | |
1292 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1293 | + | then aX | |
1203 | 1294 | else throw("List size exceeds 15") | |
1204 | 1295 | ||
1205 | - | aW( | |
1206 | - | let | |
1207 | - | let | |
1208 | - | then ( | |
1209 | - | else ( | |
1210 | - | $Tuple2(nil, fraction( | |
1296 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15))._1 | |
1297 | + | let cb = bv(cT, bf) | |
1298 | + | let eK = if (eG) | |
1299 | + | then (cb - ca) | |
1300 | + | else (ca - cb) | |
1301 | + | $Tuple2(nil, fraction(eK, ai, ca)) | |
1211 | 1302 | } | |
1212 | 1303 | ||
1213 | 1304 | ||
1214 | 1305 | ||
1215 | - | @Callable( | |
1216 | - | func rampA ( | |
1306 | + | @Callable(df) | |
1307 | + | func rampA (eL,eM) = valueOrElse(av(), valueOrElse(aw(df), if (aB((aA >= (ao + e)))) | |
1217 | 1308 | then throw("too often") | |
1218 | - | else if ( | |
1309 | + | else if (aB((eM >= (aA + e)))) | |
1219 | 1310 | then throw("insufficient time") | |
1220 | 1311 | else { | |
1221 | - | let | |
1222 | - | if ( | |
1223 | - | then (b > | |
1312 | + | let eN = aK() | |
1313 | + | if (aB(if ((eL > 0)) | |
1314 | + | then (b > eL) | |
1224 | 1315 | else false)) | |
1225 | 1316 | then throw("out of base range") | |
1226 | - | else if ( | |
1227 | - | then (( | |
1317 | + | else if (aB(if (if ((eL >= eN)) | |
1318 | + | then ((eN * c) >= eL) | |
1228 | 1319 | else false) | |
1229 | 1320 | then true | |
1230 | - | else if (( | |
1231 | - | then (( | |
1321 | + | else if ((eN > eL)) | |
1322 | + | then ((eL * c) >= eN) | |
1232 | 1323 | else false)) | |
1233 | 1324 | then throw("out of range") | |
1234 | - | else [IntegerEntry("initial_A", | |
1325 | + | else [IntegerEntry("initial_A", eN), IntegerEntry("future_A", eL), IntegerEntry("initial_A_time", aA), IntegerEntry("future_A_time", eM)] | |
1235 | 1326 | })) | |
1236 | 1327 | ||
1237 | 1328 | ||
1238 | 1329 | ||
1239 | - | @Callable( | |
1240 | - | func stopRampA () = valueOrElse( | |
1241 | - | let | |
1242 | - | [IntegerEntry("initial_A", | |
1330 | + | @Callable(df) | |
1331 | + | func stopRampA () = valueOrElse(av(), valueOrElse(aw(df), { | |
1332 | + | let eO = aK() | |
1333 | + | [IntegerEntry("initial_A", eO), IntegerEntry("future_A", eO), IntegerEntry("initial_A_time", aA), IntegerEntry("future_A_time", aA)] | |
1243 | 1334 | })) | |
1244 | 1335 | ||
1245 | 1336 | ||
1246 | 1337 | ||
1247 | - | @Callable( | |
1248 | - | func shutdown () = valueOrElse( | |
1338 | + | @Callable(df) | |
1339 | + | func shutdown () = valueOrElse(aw(df), if (!(ag)) | |
1249 | 1340 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, k), "the cause wasn't specified"))) | |
1250 | - | else | |
1341 | + | else as("Paused by admin")) | |
1251 | 1342 | ||
1252 | 1343 | ||
1253 | 1344 | ||
1254 | - | @Callable( | |
1255 | - | func activate () = valueOrElse( | |
1256 | - | then | |
1345 | + | @Callable(df) | |
1346 | + | func activate () = valueOrElse(aw(df), if (ag) | |
1347 | + | then au() | |
1257 | 1348 | else [BooleanEntry(j, true), DeleteEntry(k)]) | |
1258 | 1349 | ||
1259 | 1350 | ||
1260 | 1351 | ||
1261 | - | @Callable( | |
1262 | - | func keepLimitForFirstHarvest ( | |
1352 | + | @Callable(df) | |
1353 | + | func keepLimitForFirstHarvest (eP) = valueOrElse(av(), valueOrElse(aw(df), [IntegerEntry(v, eP)])) | |
1263 | 1354 | ||
1264 | 1355 | ||
1265 | - | @Verifier( | |
1266 | - | func | |
1267 | - | let | |
1268 | - | let | |
1356 | + | @Verifier(eQ) | |
1357 | + | func eR () = { | |
1358 | + | let eS = { | |
1359 | + | let eT = if (sigVerify(eQ.bodyBytes, eQ.proofs[0], Q)) | |
1269 | 1360 | then 1 | |
1270 | 1361 | else 0 | |
1271 | - | let | |
1362 | + | let eU = if (sigVerify(eQ.bodyBytes, eQ.proofs[1], R)) | |
1272 | 1363 | then 1 | |
1273 | 1364 | else 0 | |
1274 | - | let | |
1365 | + | let eV = if (sigVerify(eQ.bodyBytes, eQ.proofs[2], S)) | |
1275 | 1366 | then 1 | |
1276 | 1367 | else 0 | |
1277 | - | ((( | |
1368 | + | (((eT + eU) + eV) >= 2) | |
1278 | 1369 | } | |
1279 | - | let | |
1280 | - | if ($isInstanceOf( | |
1370 | + | let N = eQ | |
1371 | + | if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
1281 | 1372 | then { | |
1282 | - | let | |
1283 | - | let | |
1284 | - | then ( | |
1373 | + | let dL = N | |
1374 | + | let eW = if ((dL.dApp == this)) | |
1375 | + | then (dL.function == "takeIntoAccountExtraFunds") | |
1285 | 1376 | else false | |
1286 | - | let | |
1377 | + | let eX = if (if (if (sigVerify(eQ.bodyBytes, eQ.proofs[0], Q)) | |
1287 | 1378 | then true | |
1288 | - | else sigVerify( | |
1379 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], R)) | |
1289 | 1380 | then true | |
1290 | - | else sigVerify( | |
1381 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], S)) | |
1291 | 1382 | then true | |
1292 | - | else sigVerify( | |
1293 | - | if (if ( | |
1294 | - | then | |
1383 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], T) | |
1384 | + | if (if (eW) | |
1385 | + | then eX | |
1295 | 1386 | else false) | |
1296 | 1387 | then true | |
1297 | - | else | |
1388 | + | else eS | |
1298 | 1389 | } | |
1299 | - | else | |
1390 | + | else eS | |
1300 | 1391 | } | |
1301 | 1392 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 6 | |
11 | 11 | ||
12 | 12 | let e = (86400 / 60) | |
13 | 13 | ||
14 | 14 | let f = "3.0.0" | |
15 | 15 | ||
16 | 16 | let g = "version" | |
17 | 17 | ||
18 | 18 | let h = "asset_ids" | |
19 | 19 | ||
20 | 20 | let i = "_balance" | |
21 | 21 | ||
22 | 22 | let j = "active" | |
23 | 23 | ||
24 | 24 | let k = "shutdown_cause" | |
25 | 25 | ||
26 | 26 | let l = "share_asset_id" | |
27 | 27 | ||
28 | 28 | let m = "share_asset_supply" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "dAppThresholdCoef" | |
33 | 33 | ||
34 | 34 | let p = "staking_usdnnsbt_address" | |
35 | 35 | ||
36 | 36 | let q = "discounts" | |
37 | 37 | ||
38 | 38 | let r = "discount_values" | |
39 | 39 | ||
40 | 40 | let s = "_SWOP_amount" | |
41 | 41 | ||
42 | 42 | let t = "first_harvest" | |
43 | 43 | ||
44 | 44 | let u = "first_harvest_height" | |
45 | 45 | ||
46 | 46 | let v = "share_limit_on_first_harvest" | |
47 | 47 | ||
48 | 48 | let w = "base_period" | |
49 | 49 | ||
50 | 50 | let x = "period_length" | |
51 | 51 | ||
52 | 52 | let y = "start_height" | |
53 | 53 | ||
54 | 54 | let z = "admin_pub_1" | |
55 | 55 | ||
56 | 56 | let B = "admin_pub_2" | |
57 | 57 | ||
58 | 58 | let C = "admin_pub_3" | |
59 | 59 | ||
60 | 60 | let E = "admin_invoke_pub" | |
61 | 61 | ||
62 | 62 | let F = "money_box_address" | |
63 | 63 | ||
64 | 64 | let G = "governance_address" | |
65 | 65 | ||
66 | 66 | let H = "voting_address" | |
67 | 67 | ||
68 | 68 | let I = "farming_address" | |
69 | 69 | ||
70 | - | let J = | |
70 | + | let J = "lp_farming" | |
71 | 71 | ||
72 | - | func K (L) = { | |
73 | - | let M = getString(J, L) | |
74 | - | if ($isInstanceOf(M, "String")) | |
72 | + | let K = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
73 | + | ||
74 | + | func L (M) = { | |
75 | + | let N = getString(K, M) | |
76 | + | if ($isInstanceOf(N, "String")) | |
75 | 77 | then { | |
76 | - | let | |
77 | - | fromBase58String( | |
78 | + | let O = N | |
79 | + | fromBase58String(O) | |
78 | 80 | } | |
79 | 81 | else { | |
80 | - | let | |
81 | - | throw(( | |
82 | + | let P = N | |
83 | + | throw((M + "is empty")) | |
82 | 84 | } | |
83 | 85 | } | |
84 | 86 | ||
85 | 87 | ||
86 | - | let | |
88 | + | let Q = L(z) | |
87 | 89 | ||
88 | - | let | |
90 | + | let R = L(B) | |
89 | 91 | ||
90 | - | let | |
92 | + | let S = L(C) | |
91 | 93 | ||
92 | - | let | |
94 | + | let T = L(E) | |
93 | 95 | ||
94 | - | let | |
96 | + | let U = Address(L(F)) | |
95 | 97 | ||
96 | - | let | |
98 | + | let V = Address(L(G)) | |
97 | 99 | ||
98 | - | let | |
100 | + | let W = Address(L(p)) | |
99 | 101 | ||
100 | - | let | |
102 | + | let X = Address(L(H)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let Y = Address(L(I)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let Z = Address(L(J)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let aa = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
107 | 109 | ||
108 | - | let | |
110 | + | let ab = [toBase58String(aa)] | |
109 | 111 | ||
110 | - | let | |
112 | + | let ac = valueOrErrorMessage(getInteger(X, w), "Empty kBasePeriod") | |
111 | 113 | ||
112 | - | let | |
114 | + | let ad = valueOrErrorMessage(getInteger(X, y), "Empty kStartHeight") | |
113 | 115 | ||
114 | - | let | |
116 | + | let ae = valueOrErrorMessage(getInteger(X, x), "Empty kPeriodLength") | |
115 | 117 | ||
116 | - | let | |
118 | + | let af = ((ac + ((height - ad) / ae)) + 3) | |
117 | 119 | ||
118 | - | let | |
120 | + | let ag = getBooleanValue(this, j) | |
119 | 121 | ||
120 | - | let | |
122 | + | let ah = fromBase58String(getStringValue(this, l)) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ai = getIntegerValue(this, m) | |
123 | 125 | ||
124 | - | let | |
126 | + | let aj = 1000000 | |
125 | 127 | ||
126 | - | let | |
128 | + | let ak = getIntegerValue(this, n) | |
127 | 129 | ||
128 | - | let | |
130 | + | let al = fraction(40, aj, 100) | |
129 | 131 | ||
130 | - | let | |
132 | + | let am = getIntegerValue(this, "initial_A") | |
131 | 133 | ||
132 | - | let | |
134 | + | let an = getIntegerValue(this, "future_A") | |
133 | 135 | ||
134 | - | let | |
136 | + | let ao = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
135 | 137 | ||
136 | - | let | |
138 | + | let ap = valueOrElse(getInteger(this, "future_A_time"), 0) | |
137 | 139 | ||
138 | - | let | |
140 | + | let aq = split(getStringValue(this, h), ",") | |
139 | 141 | ||
140 | - | let | |
142 | + | let ar = size(aq) | |
141 | 143 | ||
142 | - | func | |
144 | + | func as (at) = [BooleanEntry(j, false), StringEntry(k, at)] | |
143 | 145 | ||
144 | 146 | ||
145 | - | func | |
147 | + | func au () = throw("DApp is already active") | |
146 | 148 | ||
147 | 149 | ||
148 | - | func | |
150 | + | func av () = if (ag) | |
149 | 151 | then unit | |
150 | 152 | else throw("DApp is inactive at this moment") | |
151 | 153 | ||
152 | 154 | ||
153 | - | func | |
155 | + | func aw (ax) = if (containsElement([Q, R, S], ax.callerPublicKey)) | |
154 | 156 | then unit | |
155 | 157 | else throw("Only admin can call this function") | |
156 | 158 | ||
157 | 159 | ||
158 | - | func | |
160 | + | func ay (ax) = if ((this == ax.caller)) | |
159 | 161 | then unit | |
160 | 162 | else throw("Only contract itself can call this function") | |
161 | 163 | ||
162 | 164 | ||
163 | - | let | |
165 | + | let az = toBigInt(2) | |
164 | 166 | ||
165 | - | let | |
167 | + | let aA = height | |
166 | 168 | ||
167 | - | func | |
169 | + | func aB (aC) = if (aC) | |
168 | 170 | then false | |
169 | 171 | else true | |
170 | 172 | ||
171 | 173 | ||
172 | - | func aC (aD) = { | |
173 | - | let aE = valueOrElse(getInteger(U, (toString(aD) + s)), 0) | |
174 | - | let aF = split(getStringValue(J, r), ",") | |
175 | - | let aG = split(getStringValue(J, q), ",") | |
176 | - | if (if ((aE >= parseIntValue(aF[0]))) | |
177 | - | then (parseIntValue(aF[1]) > aE) | |
174 | + | func aD (aE) = { | |
175 | + | let aF = { | |
176 | + | let N = aE | |
177 | + | if ($isInstanceOf(N, "Address")) | |
178 | + | then { | |
179 | + | let aG = N | |
180 | + | toString(aG) | |
181 | + | } | |
182 | + | else if ($isInstanceOf(N, "String")) | |
183 | + | then { | |
184 | + | let aG = N | |
185 | + | aG | |
186 | + | } | |
187 | + | else throw("Unknow type of user Addr") | |
188 | + | } | |
189 | + | let aH = valueOrElse(getInteger(V, (aF + s)), 0) | |
190 | + | let aI = split(getStringValue(K, r), ",") | |
191 | + | let aJ = split(getStringValue(K, q), ",") | |
192 | + | if (if ((aH >= parseIntValue(aI[0]))) | |
193 | + | then (parseIntValue(aI[1]) > aH) | |
178 | 194 | else false) | |
179 | - | then ( | |
180 | - | else if (if (( | |
181 | - | then (parseIntValue( | |
195 | + | then (aj - parseIntValue(aJ[0])) | |
196 | + | else if (if ((aH >= parseIntValue(aI[1]))) | |
197 | + | then (parseIntValue(aI[2]) > aH) | |
182 | 198 | else false) | |
183 | - | then ( | |
184 | - | else if (if (( | |
185 | - | then (parseIntValue( | |
199 | + | then (aj - parseIntValue(aJ[1])) | |
200 | + | else if (if ((aH >= parseIntValue(aI[2]))) | |
201 | + | then (parseIntValue(aI[3]) > aH) | |
186 | 202 | else false) | |
187 | - | then ( | |
188 | - | else if (if (( | |
189 | - | then (parseIntValue( | |
203 | + | then (aj - parseIntValue(aJ[2])) | |
204 | + | else if (if ((aH >= parseIntValue(aI[3]))) | |
205 | + | then (parseIntValue(aI[4]) > aH) | |
190 | 206 | else false) | |
191 | - | then ( | |
192 | - | else if (( | |
193 | - | then ( | |
194 | - | else | |
207 | + | then (aj - parseIntValue(aJ[3])) | |
208 | + | else if ((aH >= parseIntValue(aI[4]))) | |
209 | + | then (aj - parseIntValue(aJ[4])) | |
210 | + | else aj | |
195 | 211 | } | |
196 | 212 | ||
197 | 213 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
214 | + | func aK () = { | |
215 | + | let aL = ap | |
216 | + | let aM = an | |
217 | + | if ((aL > aA)) | |
202 | 218 | then { | |
203 | - | let | |
204 | - | let | |
205 | - | if (( | |
206 | - | then ( | |
207 | - | else ( | |
219 | + | let aN = am | |
220 | + | let aO = ao | |
221 | + | if ((aM > aN)) | |
222 | + | then (aN + (((aM - aN) * (aA - aO)) / (aL - aO))) | |
223 | + | else (aN - (((aN - aM) * (aA - aO)) / (aL - aO))) | |
208 | 224 | } | |
209 | - | else | |
225 | + | else aM | |
210 | 226 | } | |
211 | 227 | ||
212 | 228 | ||
213 | - | func | |
214 | - | func | |
229 | + | func aP () = { | |
230 | + | func aQ (aR,aS) = (aR :+ valueOrElse(getInteger(this, (aS + i)), 0)) | |
215 | 231 | ||
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | func | |
220 | - | then | |
221 | - | else | |
232 | + | let aT = aq | |
233 | + | let aU = size(aT) | |
234 | + | let aV = nil | |
235 | + | func aW (aX,aY) = if ((aY >= aU)) | |
236 | + | then aX | |
237 | + | else aQ(aX, aT[aY]) | |
222 | 238 | ||
223 | - | func | |
224 | - | then | |
239 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
240 | + | then aX | |
225 | 241 | else throw("List size exceeds 15") | |
226 | 242 | ||
227 | - | aW( | |
243 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
228 | 244 | } | |
229 | 245 | ||
230 | 246 | ||
231 | - | func | |
247 | + | func ba (bb) = bb | |
232 | 248 | ||
233 | 249 | ||
234 | - | func | |
250 | + | func bc (aR,bd) = (aR + bd) | |
235 | 251 | ||
236 | 252 | ||
237 | - | func | |
238 | - | let | |
239 | - | if ($isInstanceOf( | |
240 | - | then | |
241 | - | else throw(($getType(invoke(this, "D", [ | |
253 | + | func be (bb,bf) = { | |
254 | + | let bg = invoke(this, "D", [bb, bf], nil) | |
255 | + | if ($isInstanceOf(bg, "Int")) | |
256 | + | then bg | |
257 | + | else throw(($getType(invoke(this, "D", [bb, bf], nil)) + " couldn't be cast to Int")) | |
242 | 258 | } | |
243 | 259 | ||
244 | 260 | ||
245 | - | func | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | func | |
251 | - | then | |
252 | - | else | |
261 | + | func bh (bb,bf) = { | |
262 | + | let bi = { | |
263 | + | let aT = bb | |
264 | + | let aU = size(aT) | |
265 | + | let aV = 0 | |
266 | + | func aW (aX,aY) = if ((aY >= aU)) | |
267 | + | then aX | |
268 | + | else bc(aX, aT[aY]) | |
253 | 269 | ||
254 | - | func | |
255 | - | then | |
270 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
271 | + | then aX | |
256 | 272 | else throw("List size exceeds 15") | |
257 | 273 | ||
258 | - | aW( | |
274 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
259 | 275 | } | |
260 | - | if (( | |
276 | + | if ((bi == 0)) | |
261 | 277 | then 0 | |
262 | 278 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | func | |
267 | - | then | |
279 | + | let bj = (bf * ar) | |
280 | + | let bk = (toBigInt(bj) * toBigInt(bi)) | |
281 | + | let bl = toBigInt((bj - 1)) | |
282 | + | func bm (aR,ax) = if ((aR._2 == true)) | |
283 | + | then aR | |
268 | 284 | else { | |
269 | - | let | |
270 | - | func | |
271 | - | then (( | |
272 | - | else | |
285 | + | let bn = aR._1 | |
286 | + | func bo (bp,ax) = if ((ar > ax)) | |
287 | + | then ((bp * bn) / (toBigInt(bb[ax]) * toBigInt(ar))) | |
288 | + | else bp | |
273 | 289 | ||
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then | |
280 | - | else | |
290 | + | let bp = { | |
291 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
292 | + | let aU = size(aT) | |
293 | + | let aV = bn | |
294 | + | func bq (aX,aY) = if ((aY >= aU)) | |
295 | + | then aX | |
296 | + | else bo(aX, aT[aY]) | |
281 | 297 | ||
282 | - | func | |
283 | - | then | |
298 | + | func br (aX,aY) = if ((aY >= aU)) | |
299 | + | then aX | |
284 | 300 | else throw("List size exceeds 15") | |
285 | 301 | ||
286 | - | | |
302 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
287 | 303 | } | |
288 | - | let | |
289 | - | if (( | |
290 | - | then if ((1 >= toInt(( | |
291 | - | then $Tuple2( | |
292 | - | else $Tuple2( | |
293 | - | else if ((1 >= toInt(( | |
294 | - | then $Tuple2( | |
295 | - | else $Tuple2( | |
304 | + | let bs = fraction((bk + (toBigInt(ar) * bp)), bn, ((bl * bn) + (toBigInt((ar + 1)) * bp))) | |
305 | + | if ((bs > bn)) | |
306 | + | then if ((1 >= toInt((bs - bn)))) | |
307 | + | then $Tuple2(bs, true) | |
308 | + | else $Tuple2(bs, false) | |
309 | + | else if ((1 >= toInt((bn - bs)))) | |
310 | + | then $Tuple2(bs, true) | |
311 | + | else $Tuple2(bs, false) | |
296 | 312 | } | |
297 | 313 | ||
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | func | |
303 | - | then | |
304 | - | else | |
314 | + | let bt = { | |
315 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
316 | + | let aU = size(aT) | |
317 | + | let aV = $Tuple2(toBigInt(bi), false) | |
318 | + | func bq (aX,aY) = if ((aY >= aU)) | |
319 | + | then aX | |
320 | + | else bm(aX, aT[aY]) | |
305 | 321 | ||
306 | - | func | |
307 | - | then | |
322 | + | func br (aX,aY) = if ((aY >= aU)) | |
323 | + | then aX | |
308 | 324 | else throw("List size exceeds 15") | |
309 | 325 | ||
310 | - | | |
326 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
311 | 327 | } | |
312 | - | let | |
313 | - | let | |
314 | - | if (( | |
315 | - | then throw(("get_D() not finished with " + toString( | |
316 | - | else toInt( | |
328 | + | let bs = bt._1 | |
329 | + | let bu = bt._2 | |
330 | + | if ((bu == false)) | |
331 | + | then throw(("get_D() not finished with " + toString(bs))) | |
332 | + | else toInt(bs) | |
317 | 333 | } | |
318 | 334 | } | |
319 | 335 | ||
320 | 336 | ||
321 | - | func | |
337 | + | func bv (bb,bf) = be(ba(bb), bf) | |
322 | 338 | ||
323 | 339 | ||
324 | - | func | |
340 | + | func bw (bx,by,bz,bA) = if (aB((bx != by))) | |
325 | 341 | then throw("same coin") | |
326 | - | else if ( | |
327 | - | then ( | |
342 | + | else if (aB(if ((by >= 0)) | |
343 | + | then (bx >= 0) | |
328 | 344 | else false)) | |
329 | 345 | then throw("below zero") | |
330 | - | else if ( | |
331 | - | then ( | |
346 | + | else if (aB(if ((ar > by)) | |
347 | + | then (ar > bx) | |
332 | 348 | else false)) | |
333 | 349 | then throw("above N_COINS") | |
334 | 350 | else { | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | then | |
344 | - | else | |
345 | - | if (if (( | |
346 | - | then ( | |
351 | + | let bf = aK() | |
352 | + | let bs = be(bA, bf) | |
353 | + | let bj = (bf * ar) | |
354 | + | func bB (aR,ax) = { | |
355 | + | let bC = aR | |
356 | + | let bD = bC._1 | |
357 | + | let bE = bC._2 | |
358 | + | let bF = if ((bx == ax)) | |
359 | + | then bz | |
360 | + | else bA[ax] | |
361 | + | if (if ((ax != by)) | |
362 | + | then (ar > ax) | |
347 | 363 | else false) | |
348 | - | then $Tuple2(( | |
349 | - | else $Tuple2( | |
364 | + | then $Tuple2((bD + bF), fraction(bE, toBigInt(bs), toBigInt((bF * ar)))) | |
365 | + | else $Tuple2(bD, bE) | |
350 | 366 | } | |
351 | 367 | ||
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | func | |
357 | - | then | |
358 | - | else | |
368 | + | let bG = { | |
369 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
370 | + | let aU = size(aT) | |
371 | + | let aV = $Tuple2(0, toBigInt(bs)) | |
372 | + | func aW (aX,aY) = if ((aY >= aU)) | |
373 | + | then aX | |
374 | + | else bB(aX, aT[aY]) | |
359 | 375 | ||
360 | - | func | |
361 | - | then | |
376 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
377 | + | then aX | |
362 | 378 | else throw("List size exceeds 15") | |
363 | 379 | ||
364 | - | aW( | |
380 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
365 | 381 | } | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | func | |
371 | - | then | |
382 | + | let bD = bG._1 | |
383 | + | let bH = bG._2 | |
384 | + | let bE = fraction(bH, toBigInt(bs), toBigInt((bj * ar))) | |
385 | + | let bI = toBigInt(((bD + (bs / bj)) - bs)) | |
386 | + | func bJ (aR,bK) = if ((aR._2 == true)) | |
387 | + | then aR | |
372 | 388 | else { | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
376 | - | then if ((1 >= toInt(( | |
377 | - | then $Tuple2( | |
378 | - | else $Tuple2( | |
379 | - | else if ((1 >= toInt(( | |
380 | - | then $Tuple2( | |
381 | - | else $Tuple2( | |
389 | + | let bL = aR._1 | |
390 | + | let bM = (((bL * bL) + bE) / ((az * bL) + bI)) | |
391 | + | if ((bM > bL)) | |
392 | + | then if ((1 >= toInt((bM - bL)))) | |
393 | + | then $Tuple2(bM, true) | |
394 | + | else $Tuple2(bM, false) | |
395 | + | else if ((1 >= toInt((bL - bM)))) | |
396 | + | then $Tuple2(bM, true) | |
397 | + | else $Tuple2(bM, false) | |
382 | 398 | } | |
383 | 399 | ||
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | func | |
389 | - | then | |
390 | - | else | |
400 | + | let bN = { | |
401 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
402 | + | let aU = size(aT) | |
403 | + | let aV = $Tuple2(toBigInt(bs), false) | |
404 | + | func bq (aX,aY) = if ((aY >= aU)) | |
405 | + | then aX | |
406 | + | else bJ(aX, aT[aY]) | |
391 | 407 | ||
392 | - | func | |
393 | - | then | |
408 | + | func br (aX,aY) = if ((aY >= aU)) | |
409 | + | then aX | |
394 | 410 | else throw("List size exceeds 16") | |
395 | 411 | ||
396 | - | | |
412 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
397 | 413 | } | |
398 | - | let | |
399 | - | let | |
400 | - | if (( | |
401 | - | then throw(("getY() not finished with " + toString( | |
402 | - | else toInt( | |
414 | + | let bM = bN._1 | |
415 | + | let bu = bN._2 | |
416 | + | if ((bu == false)) | |
417 | + | then throw(("getY() not finished with " + toString(bM))) | |
418 | + | else toInt(bM) | |
403 | 419 | } | |
404 | 420 | ||
405 | 421 | ||
406 | - | func | |
422 | + | func bO (bP,bx,bb,bs) = if (aB((bx >= 0))) | |
407 | 423 | then throw("i below zero") | |
408 | - | else if ( | |
424 | + | else if (aB((ar > bx))) | |
409 | 425 | then throw("i above N_COINS") | |
410 | 426 | else { | |
411 | - | let | |
412 | - | func | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | then ( | |
427 | + | let bj = (bP * ar) | |
428 | + | func bB (aR,ax) = { | |
429 | + | let bQ = aR | |
430 | + | let bD = bQ._1 | |
431 | + | let bE = bQ._2 | |
432 | + | let bF = if (if ((bx != ax)) | |
433 | + | then (ar > ax) | |
418 | 434 | else false) | |
419 | - | then | |
435 | + | then bb[ax] | |
420 | 436 | else 0 | |
421 | - | if (if (( | |
422 | - | then ( | |
437 | + | if (if ((ar > ax)) | |
438 | + | then (bx != ax) | |
423 | 439 | else false) | |
424 | - | then $Tuple2(( | |
425 | - | else $Tuple2( | |
440 | + | then $Tuple2((bD + bF), fraction(bE, toBigInt(bs), toBigInt((bF * ar)))) | |
441 | + | else $Tuple2(bD, bE) | |
426 | 442 | } | |
427 | 443 | ||
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | func | |
433 | - | then | |
434 | - | else | |
444 | + | let bR = { | |
445 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
446 | + | let aU = size(aT) | |
447 | + | let aV = $Tuple2(0, toBigInt(bs)) | |
448 | + | func aW (aX,aY) = if ((aY >= aU)) | |
449 | + | then aX | |
450 | + | else bB(aX, aT[aY]) | |
435 | 451 | ||
436 | - | func | |
437 | - | then | |
452 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
453 | + | then aX | |
438 | 454 | else throw("List size exceeds 15") | |
439 | 455 | ||
440 | - | aW( | |
456 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
441 | 457 | } | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | func | |
447 | - | then | |
458 | + | let bD = bR._1 | |
459 | + | let bH = bR._2 | |
460 | + | let bE = fraction(bH, toBigInt(bs), toBigInt((bj * ar))) | |
461 | + | let bI = toBigInt(((bD + (bs / bj)) - bs)) | |
462 | + | func bS (aR,ax) = if ((aR._2 == true)) | |
463 | + | then aR | |
448 | 464 | else { | |
449 | - | let | |
450 | - | let | |
451 | - | if (( | |
452 | - | then if ((1 >= toInt(( | |
453 | - | then $Tuple2( | |
454 | - | else $Tuple2( | |
455 | - | else if ((1 >= toInt(( | |
456 | - | then $Tuple2( | |
457 | - | else $Tuple2( | |
465 | + | let bL = aR._1 | |
466 | + | let bM = (((bL * bL) + bE) / ((az * bL) + bI)) | |
467 | + | if ((bM > bL)) | |
468 | + | then if ((1 >= toInt((bM - bL)))) | |
469 | + | then $Tuple2(bM, true) | |
470 | + | else $Tuple2(bM, false) | |
471 | + | else if ((1 >= toInt((bL - bM)))) | |
472 | + | then $Tuple2(bM, true) | |
473 | + | else $Tuple2(bM, false) | |
458 | 474 | } | |
459 | 475 | ||
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | func | |
465 | - | then | |
466 | - | else | |
476 | + | let bT = { | |
477 | + | let aT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
478 | + | let aU = size(aT) | |
479 | + | let aV = $Tuple2(toBigInt(bs), false) | |
480 | + | func bq (aX,aY) = if ((aY >= aU)) | |
481 | + | then aX | |
482 | + | else bS(aX, aT[aY]) | |
467 | 483 | ||
468 | - | func | |
469 | - | then | |
484 | + | func br (aX,aY) = if ((aY >= aU)) | |
485 | + | then aX | |
470 | 486 | else throw("List size exceeds 16") | |
471 | 487 | ||
472 | - | | |
488 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
473 | 489 | } | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
477 | - | then throw(("get_y_D() not finished with " + toString( | |
478 | - | else toInt( | |
490 | + | let bM = bT._1 | |
491 | + | let bu = bT._2 | |
492 | + | if ((bu == false)) | |
493 | + | then throw(("get_y_D() not finished with " + toString(bM))) | |
494 | + | else toInt(bM) | |
479 | 495 | } | |
480 | 496 | ||
481 | 497 | ||
482 | - | func | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | then (fraction( | |
497 | - | else ( | |
498 | - | $Tuple2(( | |
498 | + | func bU (bb,bV,ax,bW) = { | |
499 | + | let bX = aD(bW) | |
500 | + | let bf = aK() | |
501 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
502 | + | let bZ = ai | |
503 | + | let ca = be(bb, bf) | |
504 | + | let cb = (ca - fraction(bV, ca, bZ)) | |
505 | + | let cc = bO(bf, ax, bb, cb) | |
506 | + | let cd = (bb[ax] - cc) | |
507 | + | func ce (aR,cf) = { | |
508 | + | let cg = aR | |
509 | + | let ch = cg._1 | |
510 | + | let ci = cg._2 | |
511 | + | let cj = if ((ci == ax)) | |
512 | + | then (fraction(cf, cb, ca) - cc) | |
513 | + | else (cf - fraction(cf, cb, ca)) | |
514 | + | $Tuple2((ch :+ (cf - fraction(bY, cj, aj))), (ci + 1)) | |
499 | 515 | } | |
500 | 516 | ||
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | func | |
506 | - | then | |
507 | - | else | |
517 | + | let ck = { | |
518 | + | let aT = bb | |
519 | + | let aU = size(aT) | |
520 | + | let aV = $Tuple2(nil, 0) | |
521 | + | func aW (aX,aY) = if ((aY >= aU)) | |
522 | + | then aX | |
523 | + | else ce(aX, aT[aY]) | |
508 | 524 | ||
509 | - | func | |
510 | - | then | |
525 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
526 | + | then aX | |
511 | 527 | else throw("List size exceeds 15") | |
512 | 528 | ||
513 | - | aW( | |
529 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
514 | 530 | } | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | $Tuple2( | |
531 | + | let ch = ck._1 | |
532 | + | let ci = ck._2 | |
533 | + | let cl = ch[ax] | |
534 | + | let cm = ((cl - bO(bf, ax, ch, cb)) - 1) | |
535 | + | $Tuple2(cm, (cd - cm)) | |
520 | 536 | } | |
521 | 537 | ||
522 | 538 | ||
523 | - | func | |
524 | - | let | |
525 | - | if ($isInstanceOf( | |
539 | + | func cn (aS) = { | |
540 | + | let N = aS | |
541 | + | if ($isInstanceOf(N, "ByteVector")) | |
526 | 542 | then { | |
527 | - | let | |
528 | - | toBase58String( | |
543 | + | let co = N | |
544 | + | toBase58String(co) | |
529 | 545 | } | |
530 | - | else if ($isInstanceOf( | |
546 | + | else if ($isInstanceOf(N, "Unit")) | |
531 | 547 | then { | |
532 | - | let | |
548 | + | let cp = N | |
533 | 549 | "WAVES" | |
534 | 550 | } | |
535 | 551 | else throw("Match error") | |
536 | 552 | } | |
537 | 553 | ||
538 | 554 | ||
539 | - | func | |
540 | - | then $Tuple2("lockNeutrino", | |
541 | - | else $Tuple2("unlockNeutrino", | |
555 | + | func cq (cr,aS) = if (cr) | |
556 | + | then $Tuple2("lockNeutrino", W) | |
557 | + | else $Tuple2("unlockNeutrino", W) | |
542 | 558 | ||
543 | 559 | ||
544 | - | func | |
560 | + | func cs (cr,ct,aS) = if (cr) | |
545 | 561 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | $Tuple4( | |
562 | + | let cu = cq(cr, aS) | |
563 | + | let cv = cu._1 | |
564 | + | let cw = cu._2 | |
565 | + | $Tuple4(cv, cw, nil, [AttachedPayment(aS, ct)]) | |
550 | 566 | } | |
551 | 567 | else { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | $Tuple4( | |
568 | + | let cx = cq(cr, aS) | |
569 | + | let cv = cx._1 | |
570 | + | let cw = cx._2 | |
571 | + | $Tuple4(cv, cw, [ct, toBase58String(aS)], nil) | |
556 | 572 | } | |
557 | 573 | ||
558 | 574 | ||
559 | - | func | |
575 | + | func cr (ct,cy) = if (containsElement(ab, cy)) | |
560 | 576 | then { | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | invoke( | |
577 | + | let cz = cs(true, ct, fromBase58String(cy)) | |
578 | + | let cv = cz._1 | |
579 | + | let cA = cz._2 | |
580 | + | let cB = cz._3 | |
581 | + | let cC = cz._4 | |
582 | + | invoke(cA, cv, cB, cC) | |
567 | 583 | } | |
568 | 584 | else 0 | |
569 | 585 | ||
570 | 586 | ||
571 | - | func | |
587 | + | func cD (ct,cy) = if (containsElement(ab, cy)) | |
572 | 588 | then { | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | invoke( | |
589 | + | let cE = cs(false, ct, fromBase58String(cy)) | |
590 | + | let cv = cE._1 | |
591 | + | let cA = cE._2 | |
592 | + | let cB = cE._3 | |
593 | + | let cC = cE._4 | |
594 | + | invoke(cA, cv, cB, cC) | |
579 | 595 | } | |
580 | 596 | else 0 | |
581 | 597 | ||
582 | 598 | ||
583 | - | func | |
584 | - | let | |
585 | - | let | |
586 | - | if ($isInstanceOf( | |
599 | + | func cF (aS) = { | |
600 | + | let cG = { | |
601 | + | let N = aS | |
602 | + | if ($isInstanceOf(N, "ByteVector")) | |
587 | 603 | then { | |
588 | - | let | |
589 | - | if (( | |
590 | - | then getInteger( | |
604 | + | let cH = N | |
605 | + | if ((cH == aa)) | |
606 | + | then getInteger(W, ((("rpd_balance_" + toBase58String(cH)) + "_") + toString(this))) | |
591 | 607 | else 0 | |
592 | 608 | } | |
593 | - | else if ($isInstanceOf( | |
609 | + | else if ($isInstanceOf(N, "Unit")) | |
594 | 610 | then 0 | |
595 | 611 | else throw("Match error") | |
596 | 612 | } | |
597 | - | let | |
598 | - | if ($isInstanceOf( | |
613 | + | let N = cG | |
614 | + | if ($isInstanceOf(N, "Int")) | |
599 | 615 | then { | |
600 | - | let | |
601 | - | | |
616 | + | let ax = N | |
617 | + | ax | |
602 | 618 | } | |
603 | 619 | else 0 | |
604 | 620 | } | |
605 | 621 | ||
606 | 622 | ||
607 | - | func | |
608 | - | let | |
609 | - | func | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | if ( | |
614 | - | then $Tuple2( | |
623 | + | func cI () = { | |
624 | + | let cJ = aP() | |
625 | + | func cK (aR,aS) = { | |
626 | + | let cL = aR | |
627 | + | let cM = cL._1 | |
628 | + | let ax = cL._2 | |
629 | + | if (cM) | |
630 | + | then $Tuple2(cM, ax) | |
615 | 631 | else { | |
616 | - | let | |
617 | - | if (( | |
618 | - | then $Tuple2(true, | |
619 | - | else $Tuple2(false, ( | |
632 | + | let cN = (assetBalance(this, fromBase58String(aS)) + cF(fromBase58String(aS))) | |
633 | + | if ((cJ[ax] > cN)) | |
634 | + | then $Tuple2(true, ax) | |
635 | + | else $Tuple2(false, (ax + 1)) | |
620 | 636 | } | |
621 | 637 | } | |
622 | 638 | ||
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | func | |
627 | - | then | |
628 | - | else | |
639 | + | let aT = aq | |
640 | + | let aU = size(aT) | |
641 | + | let aV = $Tuple2(false, 0) | |
642 | + | func aW (aX,aY) = if ((aY >= aU)) | |
643 | + | then aX | |
644 | + | else cK(aX, aT[aY]) | |
629 | 645 | ||
630 | - | func | |
631 | - | then | |
646 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
647 | + | then aX | |
632 | 648 | else throw("List size exceeds 15") | |
633 | 649 | ||
634 | - | aW( | |
650 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
635 | 651 | } | |
636 | 652 | ||
637 | 653 | ||
638 | - | func | |
654 | + | func cO (ax) = as(("Suspicious state with asset: " + aq[ax])) | |
639 | 655 | ||
640 | 656 | ||
641 | - | func | |
642 | - | func | |
657 | + | func cP (bW,cC) = { | |
658 | + | func cQ (aR,cR) = (aR :+ ScriptTransfer(bW, cR.amount, cR.assetId)) | |
643 | 659 | ||
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | func | |
648 | - | then | |
649 | - | else | |
660 | + | let aT = cC | |
661 | + | let aU = size(aT) | |
662 | + | let aV = nil | |
663 | + | func aW (aX,aY) = if ((aY >= aU)) | |
664 | + | then aX | |
665 | + | else cQ(aX, aT[aY]) | |
650 | 666 | ||
651 | - | func | |
652 | - | then | |
667 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
668 | + | then aX | |
653 | 669 | else throw("List size exceeds 15") | |
654 | 670 | ||
655 | - | aW( | |
671 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
656 | 672 | } | |
657 | 673 | ||
658 | 674 | ||
659 | - | func | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if (( | |
675 | + | func cS (cT) = { | |
676 | + | let cU = valueOrErrorMessage(getInteger(this, o), "No dAppThresholdCoef key") | |
677 | + | let cV = 10000 | |
678 | + | let cW = max(cT) | |
679 | + | let cX = min(cT) | |
680 | + | let cY = fraction(cW, cV, cX) | |
681 | + | if ((cY > (cU * cV))) | |
666 | 682 | then throw("New balance in assets of the DApp is less than threshold") | |
667 | 683 | else false | |
668 | 684 | } | |
669 | 685 | ||
670 | 686 | ||
671 | - | func | |
672 | - | let | |
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | if (( | |
687 | + | func cZ (aq) = { | |
688 | + | let da = split(aq, ",") | |
689 | + | func db (dc,aS) = { | |
690 | + | let dd = valueOrErrorMessage(fromBase58String(aS), ("fromBase58String: " + aS)) | |
691 | + | let de = valueOrErrorMessage(assetInfo(dd), ("assetInfo: " + aS)).decimals | |
692 | + | if ((de != d)) | |
677 | 693 | then throw("wrong decimals") | |
678 | 694 | else false | |
679 | 695 | } | |
680 | 696 | ||
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | func | |
685 | - | then | |
686 | - | else | |
697 | + | let aT = da | |
698 | + | let aU = size(aT) | |
699 | + | let aV = false | |
700 | + | func aW (aX,aY) = if ((aY >= aU)) | |
701 | + | then aX | |
702 | + | else db(aX, aT[aY]) | |
687 | 703 | ||
688 | - | func | |
689 | - | then | |
704 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
705 | + | then aX | |
690 | 706 | else throw("List size exceeds 15") | |
691 | 707 | ||
692 | - | aW( | |
708 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
693 | 709 | } | |
694 | 710 | ||
695 | 711 | ||
696 | - | @Callable( | |
697 | - | func D ( | |
698 | - | let | |
699 | - | $Tuple2([IntegerEntry("D", | |
712 | + | @Callable(df) | |
713 | + | func D (bb,bf) = { | |
714 | + | let bs = bh(bb, bf) | |
715 | + | $Tuple2([IntegerEntry("D", bs)], bs) | |
700 | 716 | } | |
701 | 717 | ||
702 | 718 | ||
703 | 719 | ||
704 | - | @Callable( | |
705 | - | func init ( | |
720 | + | @Callable(df) | |
721 | + | func init (aq,aK,dg,dh) = if (!(isDataStorageUntouched(this))) | |
706 | 722 | then throw("Already initialized") | |
707 | - | else if ((0 >= | |
723 | + | else if ((0 >= aK)) | |
708 | 724 | then throw("Amp must be must > 0") | |
709 | - | else if ((0 >= | |
725 | + | else if ((0 >= dg)) | |
710 | 726 | then throw("dApp Threshold Coef must be > 0") | |
711 | 727 | else { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | if ( | |
728 | + | let di = "s_Multi_USD" | |
729 | + | let dj = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
730 | + | let dk = Issue(di, dj, 0, 6, true) | |
731 | + | let dl = calculateAssetId(dk) | |
732 | + | if (cZ(aq)) | |
717 | 733 | then throw() | |
718 | 734 | else { | |
719 | - | let | |
720 | - | if ( | |
721 | - | then ( | |
722 | - | else | |
735 | + | let dm = [StringEntry(g, f), StringEntry(h, aq), IntegerEntry("initial_A", aK), IntegerEntry("future_A", aK), IntegerEntry(n, getIntegerValue(K, "base_fee_flat")), StringEntry(l, toBase58String(dl)), IntegerEntry(m, 0), IntegerEntry(o, dg), BooleanEntry(j, true), dk] | |
736 | + | if (dh) | |
737 | + | then (dm ++ [BooleanEntry(t, dh), IntegerEntry(u, (ad + (af * ae)))]) | |
738 | + | else dm | |
723 | 739 | } | |
724 | 740 | } | |
725 | 741 | ||
726 | 742 | ||
727 | 743 | ||
728 | - | @Callable( | |
729 | - | func addLiquidity ( | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
744 | + | @Callable(df) | |
745 | + | func addLiquidity (dn,do) = valueOrElse(av(), { | |
746 | + | let bf = aK() | |
747 | + | let bb = aP() | |
748 | + | let ca = if ((ai == 0)) | |
733 | 749 | then 0 | |
734 | - | else | |
735 | - | let | |
736 | - | let | |
737 | - | func | |
738 | - | then throw(("payments size > " + toString( | |
739 | - | else if ((1 > | |
750 | + | else bv(bb, bf) | |
751 | + | let cC = df.payments | |
752 | + | let dp = size(cC) | |
753 | + | func dq (dr) = if ((dp > ar)) | |
754 | + | then throw(("payments size > " + toString(ar))) | |
755 | + | else if ((1 > dp)) | |
740 | 756 | then throw("payments size < 1") | |
741 | - | else if (if (( | |
742 | - | then ( | |
757 | + | else if (if ((ai == 0)) | |
758 | + | then (ar != dp) | |
743 | 759 | else false) | |
744 | 760 | then throw("initial deposit requires all coins") | |
745 | 761 | else { | |
746 | - | func | |
762 | + | func ds (aR,cR) = if (containsElement(aq, cn(cR.assetId))) | |
747 | 763 | then true | |
748 | 764 | else throw("Invalid asset in payment") | |
749 | 765 | ||
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | func | |
754 | - | then | |
755 | - | else | |
766 | + | let aT = cC | |
767 | + | let aU = size(aT) | |
768 | + | let aV = false | |
769 | + | func aW (aX,aY) = if ((aY >= aU)) | |
770 | + | then aX | |
771 | + | else ds(aX, aT[aY]) | |
756 | 772 | ||
757 | - | func | |
758 | - | then | |
773 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
774 | + | then aX | |
759 | 775 | else throw("List size exceeds 15") | |
760 | 776 | ||
761 | - | aW( | |
777 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
762 | 778 | } | |
763 | 779 | ||
764 | - | if (!( | |
780 | + | if (!(dq(dp))) | |
765 | 781 | then throw() | |
766 | 782 | else { | |
767 | - | let | |
768 | - | if ( | |
769 | - | then ( | |
783 | + | let cM = cI() | |
784 | + | if (cM._1) | |
785 | + | then (cO(cM._2) ++ cP(df.caller, cC)) | |
770 | 786 | else { | |
771 | - | func | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | if (if (( | |
777 | - | then ( | |
787 | + | func cQ (aR,aS) = { | |
788 | + | let dt = aR | |
789 | + | let cT = dt._1 | |
790 | + | let ax = dt._2 | |
791 | + | let du = dt._3 | |
792 | + | if (if ((dp > du)) | |
793 | + | then (cn(cC[du].assetId) == aS) | |
778 | 794 | else false) | |
779 | - | then $Tuple3(( | |
780 | - | else $Tuple3(( | |
795 | + | then $Tuple3((cT :+ (bb[ax] + cC[du].amount)), (ax + 1), (du + 1)) | |
796 | + | else $Tuple3((cT :+ bb[ax]), (ax + 1), du) | |
781 | 797 | } | |
782 | 798 | ||
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | func | |
788 | - | then | |
789 | - | else | |
799 | + | let dv = { | |
800 | + | let aT = aq | |
801 | + | let aU = size(aT) | |
802 | + | let aV = $Tuple3(nil, 0, 0) | |
803 | + | func aW (aX,aY) = if ((aY >= aU)) | |
804 | + | then aX | |
805 | + | else cQ(aX, aT[aY]) | |
790 | 806 | ||
791 | - | func | |
792 | - | then | |
807 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
808 | + | then aX | |
793 | 809 | else throw("List size exceeds 15") | |
794 | 810 | ||
795 | - | aW( | |
811 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
796 | 812 | } | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (( | |
813 | + | let cT = dv._1 | |
814 | + | let dw = dv._2 | |
815 | + | let dx = dv._3 | |
816 | + | if ((dp > dx)) | |
801 | 817 | then throw("Incorect payments order") | |
802 | - | else if ( | |
818 | + | else if (cS(cT)) | |
803 | 819 | then throw() | |
804 | 820 | else { | |
805 | - | let | |
806 | - | if ( | |
821 | + | let cb = bv(cT, bf) | |
822 | + | if (aB((cb > ca))) | |
807 | 823 | then throw("D1 > D0") | |
808 | 824 | else { | |
809 | - | let | |
810 | - | func | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | if (( | |
825 | + | let bX = aD(df.caller) | |
826 | + | func dy (aR,dz) = { | |
827 | + | let dA = aR | |
828 | + | let dB = dA._1 | |
829 | + | let dC = dA._2 | |
830 | + | let ax = dA._3 | |
831 | + | if ((ai > 0)) | |
816 | 832 | then { | |
817 | - | let | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | then ( | |
822 | - | else ( | |
823 | - | fraction( | |
833 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
834 | + | let dD = { | |
835 | + | let dE = fraction(cb, bb[ax], ca) | |
836 | + | let dF = if ((dE > dz)) | |
837 | + | then (dE - dz) | |
838 | + | else (dz - dE) | |
839 | + | fraction(bY, dF, aj) | |
824 | 840 | } | |
825 | - | let dD = fraction(dA, ak, ai) | |
826 | - | let dE = (dw - dA) | |
827 | - | let dF = (dw - dA) | |
828 | - | let dG = (dw - aY[aw]) | |
829 | - | let dH = if ((dG > 0)) | |
830 | - | then co((dG - dA), ap[aw]) | |
831 | - | else cA(dA, ap[aw]) | |
832 | - | if ((dH == dH)) | |
833 | - | then $Tuple3((dy :+ dF), (dz ++ [ScriptTransfer(Y, (dA - dD), fromBase58String(ap[aw])), ScriptTransfer(T, dD, fromBase58String(ap[aw])), IntegerEntry((ap[aw] + i), dE)]), (aw + 1)) | |
841 | + | let dG = fraction(dD, al, aj) | |
842 | + | let dH = (dz - dD) | |
843 | + | let dI = (dz - dD) | |
844 | + | let dJ = (dz - bb[ax]) | |
845 | + | let dK = (dD - dG) | |
846 | + | let dL = if ((dJ > 0)) | |
847 | + | then cr((dJ - dD), aq[ax]) | |
848 | + | else cD(dD, aq[ax]) | |
849 | + | if ((dL == dL)) | |
850 | + | then { | |
851 | + | let dM = if ((dK > 0)) | |
852 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(fromBase58String(aq[ax]), dK)]) | |
853 | + | else 0 | |
854 | + | if ((dM == dM)) | |
855 | + | then $Tuple3((dB :+ dI), (dC ++ [ScriptTransfer(U, dG, fromBase58String(aq[ax])), IntegerEntry((aq[ax] + i), dH)]), (ax + 1)) | |
856 | + | else throw("Strict value is not equal to itself.") | |
857 | + | } | |
834 | 858 | else throw("Strict value is not equal to itself.") | |
835 | 859 | } | |
836 | 860 | else { | |
837 | - | let | |
838 | - | if (( | |
839 | - | then $Tuple3(( | |
861 | + | let dL = cr(dz, aq[ax]) | |
862 | + | if ((dL == dL)) | |
863 | + | then $Tuple3((dB :+ dz), (dC :+ IntegerEntry((aq[ax] + i), dz)), (ax + 1)) | |
840 | 864 | else throw("Strict value is not equal to itself.") | |
841 | 865 | } | |
842 | 866 | } | |
843 | 867 | ||
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | func | |
849 | - | then | |
850 | - | else | |
868 | + | let dN = { | |
869 | + | let aT = cT | |
870 | + | let aU = size(aT) | |
871 | + | let aV = $Tuple3(nil, nil, 0) | |
872 | + | func bq (aX,aY) = if ((aY >= aU)) | |
873 | + | then aX | |
874 | + | else dy(aX, aT[aY]) | |
851 | 875 | ||
852 | - | func | |
853 | - | then | |
876 | + | func br (aX,aY) = if ((aY >= aU)) | |
877 | + | then aX | |
854 | 878 | else throw("List size exceeds 15") | |
855 | 879 | ||
856 | - | | |
880 | + | br(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(bq(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
857 | 881 | } | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | then | |
863 | - | else fraction( | |
864 | - | if ( | |
882 | + | let dB = dN._1 | |
883 | + | let dC = dN._2 | |
884 | + | let dO = bv(dB, bf) | |
885 | + | let dP = if ((ai == 0)) | |
886 | + | then cb | |
887 | + | else fraction(ai, (dO - ca), ca) | |
888 | + | if (aB((dP >= dn))) | |
865 | 889 | then throw("Slippage screwed you") | |
866 | - | else if ( | |
890 | + | else if (do) | |
867 | 891 | then { | |
868 | - | let | |
869 | - | if (( | |
892 | + | let dQ = invoke(this, "reissueShare", [dP], nil) | |
893 | + | if ((dQ == dQ)) | |
870 | 894 | then { | |
871 | - | let | |
872 | - | if (( | |
873 | - | then ( | |
895 | + | let dR = invoke(Y, "lockShareTokens", [toString(this)], [AttachedPayment(ah, dP)]) | |
896 | + | if ((dR == dR)) | |
897 | + | then (dC :+ IntegerEntry(m, (ai + dP))) | |
874 | 898 | else throw("Strict value is not equal to itself.") | |
875 | 899 | } | |
876 | 900 | else throw("Strict value is not equal to itself.") | |
877 | 901 | } | |
878 | - | else ( | |
902 | + | else (dC ++ [Reissue(ah, dP, true), ScriptTransfer(df.caller, dP, ah), IntegerEntry(m, (ai + dP))]) | |
879 | 903 | } | |
880 | 904 | } | |
881 | 905 | } | |
882 | 906 | } | |
883 | 907 | }) | |
884 | 908 | ||
885 | 909 | ||
886 | 910 | ||
887 | - | @Callable(dc) | |
888 | - | func reissueShare (cq) = valueOrElse(ax(dc), [Reissue(ag, cq, true)]) | |
911 | + | @Callable(df) | |
912 | + | func calcMintAmount (cT,aF) = { | |
913 | + | let bf = aK() | |
914 | + | let bb = aP() | |
915 | + | let cb = bv(cT, bf) | |
916 | + | if ((ai == 0)) | |
917 | + | then $Tuple2(nil, cb) | |
918 | + | else { | |
919 | + | let ca = bv(bb, bf) | |
920 | + | let bX = aD(aF) | |
921 | + | func dS (aR,dz) = { | |
922 | + | let dT = aR | |
923 | + | let dB = dT._1 | |
924 | + | let ax = dT._2 | |
925 | + | let bY = ((fraction(ak, bX, aj, CEILING) * ar) / (4 * (ar - 1))) | |
926 | + | let dD = { | |
927 | + | let dE = fraction(cb, bb[ax], ca) | |
928 | + | let dF = if ((dE > dz)) | |
929 | + | then (dE - dz) | |
930 | + | else (dz - dE) | |
931 | + | fraction(bY, dF, aj) | |
932 | + | } | |
933 | + | let dI = (dz - dD) | |
934 | + | $Tuple2((dB :+ dI), (ax + 1)) | |
935 | + | } | |
889 | 936 | ||
937 | + | let dU = { | |
938 | + | let aT = cT | |
939 | + | let aU = size(aT) | |
940 | + | let aV = $Tuple2(nil, 0) | |
941 | + | func aW (aX,aY) = if ((aY >= aU)) | |
942 | + | then aX | |
943 | + | else dS(aX, aT[aY]) | |
890 | 944 | ||
945 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
946 | + | then aX | |
947 | + | else throw("List size exceeds 15") | |
891 | 948 | ||
892 | - | @Callable(dc) | |
893 | - | func getDy (dN,dO,dP,dQ) = { | |
894 | - | let aY = aM() | |
895 | - | let dR = valueOrErrorMessage(indexOf(ap, dN), "unknown token in") | |
896 | - | let dS = valueOrErrorMessage(indexOf(ap, dO), "unknown token out") | |
897 | - | let bw = (aY[dR] + dP) | |
898 | - | let bJ = bt(dR, dS, bw, aY) | |
899 | - | let cj = ((aY[dS] - bJ) - 1) | |
900 | - | let bU = aC(Address(fromBase58String(dQ))) | |
901 | - | let bV = fraction(fraction(aj, bU, ai, CEILING), cj, ai) | |
902 | - | $Tuple2(nil, $Tuple2((cj - bV), bV)) | |
949 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
950 | + | } | |
951 | + | let dB = dU._1 | |
952 | + | let dw = dU._2 | |
953 | + | let dO = bv(dB, bf) | |
954 | + | let dV = fraction(ai, (dO - ca), ca) | |
955 | + | $Tuple2(nil, dV) | |
956 | + | } | |
903 | 957 | } | |
904 | 958 | ||
905 | 959 | ||
906 | 960 | ||
907 | - | @Callable(dc) | |
908 | - | func exchange (dT,dU) = valueOrElse(au(), if ((size(dc.payments) != 1)) | |
961 | + | @Callable(df) | |
962 | + | func reissueShare (ct) = valueOrElse(ay(df), [Reissue(ah, ct, true)]) | |
963 | + | ||
964 | + | ||
965 | + | ||
966 | + | @Callable(df) | |
967 | + | func getDy (dW,dX,dY,dZ) = { | |
968 | + | let bb = aP() | |
969 | + | let ea = valueOrErrorMessage(indexOf(aq, dW), "unknown token in") | |
970 | + | let eb = valueOrErrorMessage(indexOf(aq, dX), "unknown token out") | |
971 | + | let bz = (bb[ea] + dY) | |
972 | + | let bM = bw(ea, eb, bz, bb) | |
973 | + | let cm = ((bb[eb] - bM) - 1) | |
974 | + | let bX = aD(Address(fromBase58String(dZ))) | |
975 | + | let bY = fraction(fraction(ak, bX, aj, CEILING), cm, aj) | |
976 | + | $Tuple2(nil, $Tuple2((cm - bY), bY)) | |
977 | + | } | |
978 | + | ||
979 | + | ||
980 | + | ||
981 | + | @Callable(df) | |
982 | + | func exchange (ec,ed) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
909 | 983 | then throw("size(payments) != 1") | |
910 | 984 | else { | |
911 | - | let | |
912 | - | if ( | |
913 | - | then ( | |
985 | + | let cM = cI() | |
986 | + | if (cM._1) | |
987 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
914 | 988 | else { | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | if ( | |
989 | + | let cR = df.payments[0] | |
990 | + | let ee = cn(cR.assetId) | |
991 | + | let ef = fromBase58String(ec) | |
992 | + | let dY = cR.amount | |
993 | + | let ea = valueOrErrorMessage(indexOf(aq, ee), "unknown token in") | |
994 | + | let eb = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
995 | + | let bb = aP() | |
996 | + | let bz = (bb[ea] + dY) | |
997 | + | let bM = bw(ea, eb, bz, bb) | |
998 | + | let eg = ((bb[eb] - bM) - 1) | |
999 | + | let bX = aD(df.caller) | |
1000 | + | let bY = fraction(eg, fraction(ak, bX, aj, CEILING), aj) | |
1001 | + | let cm = (eg - bY) | |
1002 | + | let dG = fraction(bY, al, aj) | |
1003 | + | if (aB((cm >= ed))) | |
930 | 1004 | then throw("Exchange resulted in fewer coins than expected") | |
931 | 1005 | else { | |
932 | - | func | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | if (( | |
937 | - | then $Tuple2(( | |
938 | - | else if (( | |
939 | - | then $Tuple2(( | |
940 | - | else $Tuple2(( | |
1006 | + | func eh (aR,ei) = { | |
1007 | + | let ej = aR | |
1008 | + | let cT = ej._1 | |
1009 | + | let ax = ej._2 | |
1010 | + | if ((ax == ea)) | |
1011 | + | then $Tuple2((cT :+ (ei + dY)), (ax + 1)) | |
1012 | + | else if ((ax == eb)) | |
1013 | + | then $Tuple2((cT :+ (ei - eg)), (ax + 1)) | |
1014 | + | else $Tuple2((cT :+ ei), (ax + 1)) | |
941 | 1015 | } | |
942 | 1016 | ||
943 | - | let | |
944 | - | let | |
945 | - | let | |
946 | - | let | |
947 | - | func | |
948 | - | then | |
949 | - | else | |
1017 | + | let ek = { | |
1018 | + | let aT = bb | |
1019 | + | let aU = size(aT) | |
1020 | + | let aV = $Tuple2(nil, 0) | |
1021 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1022 | + | then aX | |
1023 | + | else eh(aX, aT[aY]) | |
950 | 1024 | ||
951 | - | func | |
952 | - | then | |
1025 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1026 | + | then aX | |
953 | 1027 | else throw("List size exceeds 15") | |
954 | 1028 | ||
955 | - | aW( | |
1029 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
956 | 1030 | } | |
957 | - | let | |
958 | - | let | |
959 | - | if ( | |
1031 | + | let cT = ek._1 | |
1032 | + | let ax = ek._2 | |
1033 | + | if (cS(cT)) | |
960 | 1034 | then throw() | |
961 | 1035 | else { | |
962 | - | let | |
963 | - | if (( | |
1036 | + | let dR = cr(cR.amount, cn(cR.assetId)) | |
1037 | + | if ((dR == dR)) | |
964 | 1038 | then { | |
965 | - | let ec = cA(dX, dT) | |
966 | - | if ((ec == ec)) | |
967 | - | then $Tuple2([IntegerEntry((dV + i), bw), IntegerEntry((dT + i), (aY[dS] - dX)), ScriptTransfer(dc.caller, cj, dW), ScriptTransfer(T, dD, dW), ScriptTransfer(Y, (bV - dD), dW)], [cj, dW]) | |
1039 | + | let el = cD(eg, ec) | |
1040 | + | if ((el == el)) | |
1041 | + | then { | |
1042 | + | let dK = (bY - dG) | |
1043 | + | let dM = if ((dK > 0)) | |
1044 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(ef, dK)]) | |
1045 | + | else 0 | |
1046 | + | if ((dM == dM)) | |
1047 | + | then $Tuple2([IntegerEntry((ee + i), bz), IntegerEntry((ec + i), (bb[eb] - eg)), ScriptTransfer(df.caller, cm, ef), ScriptTransfer(U, dG, ef)], [cm, ef]) | |
1048 | + | else throw("Strict value is not equal to itself.") | |
1049 | + | } | |
968 | 1050 | else throw("Strict value is not equal to itself.") | |
969 | 1051 | } | |
970 | 1052 | else throw("Strict value is not equal to itself.") | |
971 | 1053 | } | |
972 | 1054 | } | |
973 | 1055 | } | |
974 | 1056 | }) | |
975 | 1057 | ||
976 | 1058 | ||
977 | 1059 | ||
978 | - | @Callable( | |
979 | - | func withdraw ( | |
1060 | + | @Callable(df) | |
1061 | + | func withdraw (em) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
980 | 1062 | then throw("size(payments) != 1") | |
981 | 1063 | else { | |
982 | - | let | |
983 | - | let | |
984 | - | if (( | |
1064 | + | let en = df.payments[0].amount | |
1065 | + | let eo = df.payments[0].assetId | |
1066 | + | if ((ah != eo)) | |
985 | 1067 | then throw("unknown payment token") | |
986 | 1068 | else { | |
987 | - | let | |
988 | - | if ( | |
989 | - | then ( | |
1069 | + | let cM = cI() | |
1070 | + | if (cM._1) | |
1071 | + | then (cO(cM._2) ++ cP(df.originCaller, df.payments)) | |
990 | 1072 | else { | |
991 | - | func | |
992 | - | let | |
993 | - | let | |
994 | - | let | |
995 | - | let | |
996 | - | if ( | |
1073 | + | func dy (aR,ep) = { | |
1074 | + | let eq = aR | |
1075 | + | let dC = eq._1 | |
1076 | + | let ax = eq._2 | |
1077 | + | let er = fraction(ep, en, ai) | |
1078 | + | if (aB((er >= em[ax]))) | |
997 | 1079 | then throw("Withdrawal resulted in fewer coins than expected") | |
998 | 1080 | else { | |
999 | - | let | |
1000 | - | if (( | |
1001 | - | then $Tuple2(( | |
1081 | + | let el = cD(er, aq[ax]) | |
1082 | + | if ((el == el)) | |
1083 | + | then $Tuple2((dC ++ [IntegerEntry((aq[ax] + i), (ep - er)), ScriptTransfer(df.originCaller, er, fromBase58String(aq[ax]))]), (ax + 1)) | |
1002 | 1084 | else throw("Strict value is not equal to itself.") | |
1003 | 1085 | } | |
1004 | 1086 | } | |
1005 | 1087 | ||
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1010 | - | func | |
1011 | - | then | |
1012 | - | else | |
1088 | + | let es = { | |
1089 | + | let aT = aP() | |
1090 | + | let aU = size(aT) | |
1091 | + | let aV = $Tuple2(nil, 0) | |
1092 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1093 | + | then aX | |
1094 | + | else dy(aX, aT[aY]) | |
1013 | 1095 | ||
1014 | - | func | |
1015 | - | then | |
1096 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1097 | + | then aX | |
1016 | 1098 | else throw("List size exceeds 15") | |
1017 | 1099 | ||
1018 | - | aW( | |
1100 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
1019 | 1101 | } | |
1020 | - | let | |
1021 | - | let | |
1022 | - | ( | |
1102 | + | let dC = es._1 | |
1103 | + | let ax = es._2 | |
1104 | + | (dC ++ [Burn(ah, en), IntegerEntry(m, (ai - en))]) | |
1023 | 1105 | } | |
1024 | 1106 | } | |
1025 | 1107 | }) | |
1026 | 1108 | ||
1027 | 1109 | ||
1028 | 1110 | ||
1029 | - | @Callable( | |
1030 | - | func withdrawWithUnlock ( | |
1111 | + | @Callable(df) | |
1112 | + | func withdrawWithUnlock (em,et) = valueOrElse(av(), if ((0 >= et)) | |
1031 | 1113 | then throw("Unlock amount must be positive") | |
1032 | 1114 | else { | |
1033 | - | let | |
1034 | - | if ( | |
1035 | - | then ( | |
1115 | + | let cM = cI() | |
1116 | + | if (cM._1) | |
1117 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
1036 | 1118 | else { | |
1037 | - | let | |
1038 | - | then if ((size( | |
1119 | + | let en = if ((size(df.payments) > 0)) | |
1120 | + | then if ((size(df.payments) != 1)) | |
1039 | 1121 | then throw("size(payments) != 1") | |
1040 | 1122 | else { | |
1041 | - | let | |
1042 | - | if (( | |
1123 | + | let eo = df.payments[0].assetId | |
1124 | + | if ((ah != eo)) | |
1043 | 1125 | then throw("unknown payment token") | |
1044 | - | else | |
1126 | + | else df.payments[0].amount | |
1045 | 1127 | } | |
1046 | 1128 | else 0 | |
1047 | - | let | |
1048 | - | if (( | |
1129 | + | let eu = invoke(Y, "withdrawShareTokens", [toString(this), et], nil) | |
1130 | + | if ((eu == eu)) | |
1049 | 1131 | then { | |
1050 | - | let | |
1051 | - | let | |
1052 | - | if (( | |
1132 | + | let ev = (en + et) | |
1133 | + | let dL = invoke(this, "withdraw", [em], [AttachedPayment(ah, ev)]) | |
1134 | + | if ((dL == dL)) | |
1053 | 1135 | then nil | |
1054 | 1136 | else throw("Strict value is not equal to itself.") | |
1055 | 1137 | } | |
1056 | 1138 | else throw("Strict value is not equal to itself.") | |
1057 | 1139 | } | |
1058 | 1140 | }) | |
1059 | 1141 | ||
1060 | 1142 | ||
1061 | 1143 | ||
1062 | - | @Callable( | |
1063 | - | func calcWithdrawOneCoin ( | |
1064 | - | let | |
1065 | - | $Tuple2(nil, | |
1144 | + | @Callable(df) | |
1145 | + | func calcWithdrawOneCoin (ew,ec,aF) = { | |
1146 | + | let ax = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
1147 | + | $Tuple2(nil, bU(aP(), ew, ax, Address(fromBase58String(aF)))._1) | |
1066 | 1148 | } | |
1067 | 1149 | ||
1068 | 1150 | ||
1069 | 1151 | ||
1070 | - | @Callable( | |
1071 | - | func withdrawOneCoin ( | |
1152 | + | @Callable(df) | |
1153 | + | func withdrawOneCoin (ec,ex) = valueOrElse(av(), if ((size(df.payments) != 1)) | |
1072 | 1154 | then throw("size(payments) != 1") | |
1073 | 1155 | else { | |
1074 | - | let | |
1075 | - | if ( | |
1076 | - | then ( | |
1156 | + | let cM = cI() | |
1157 | + | if (cM._1) | |
1158 | + | then (cO(cM._2) ++ cP(df.originCaller, df.payments)) | |
1077 | 1159 | else { | |
1078 | - | let | |
1079 | - | let | |
1080 | - | if (( | |
1160 | + | let en = df.payments[0].amount | |
1161 | + | let eo = df.payments[0].assetId | |
1162 | + | if ((eo != ah)) | |
1081 | 1163 | then throw("unknown token") | |
1082 | 1164 | else { | |
1083 | - | let eq = valueOrErrorMessage(indexOf(ap, dT), "unknown token out") | |
1084 | - | let aY = aM() | |
1085 | - | let er = bR(aY, ee, eq, dc.originCaller) | |
1086 | - | let cj = er._1 | |
1087 | - | let es = er._2 | |
1088 | - | if (aA((cj >= ep))) | |
1165 | + | let ey = valueOrErrorMessage(indexOf(aq, ec), "unknown token out") | |
1166 | + | let ef = fromBase58String(ec) | |
1167 | + | let bb = aP() | |
1168 | + | let ez = bU(bb, en, ey, df.originCaller) | |
1169 | + | let cm = ez._1 | |
1170 | + | let eA = ez._2 | |
1171 | + | if (aB((cm >= ex))) | |
1089 | 1172 | then throw("Not enough coins removed") | |
1090 | 1173 | else { | |
1091 | - | let | |
1092 | - | let | |
1093 | - | func | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | if (( | |
1098 | - | then $Tuple2(( | |
1099 | - | else $Tuple2(( | |
1174 | + | let dG = fraction(eA, al, aj) | |
1175 | + | let eB = (cm + eA) | |
1176 | + | func eh (aR,ei) = { | |
1177 | + | let eC = aR | |
1178 | + | let cT = eC._1 | |
1179 | + | let ax = eC._2 | |
1180 | + | if ((ax == ey)) | |
1181 | + | then $Tuple2((cT :+ (ei - eB)), (ax + 1)) | |
1182 | + | else $Tuple2((cT :+ ei), (ax + 1)) | |
1100 | 1183 | } | |
1101 | 1184 | ||
1102 | - | let | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | func | |
1107 | - | then | |
1108 | - | else | |
1185 | + | let eD = { | |
1186 | + | let aT = bb | |
1187 | + | let aU = size(aT) | |
1188 | + | let aV = $Tuple2(nil, 0) | |
1189 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1190 | + | then aX | |
1191 | + | else eh(aX, aT[aY]) | |
1109 | 1192 | ||
1110 | - | func | |
1111 | - | then | |
1193 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1194 | + | then aX | |
1112 | 1195 | else throw("List size exceeds 15") | |
1113 | 1196 | ||
1114 | - | aW( | |
1197 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
1115 | 1198 | } | |
1116 | - | let | |
1117 | - | let | |
1118 | - | if ( | |
1199 | + | let cT = eD._1 | |
1200 | + | let eE = eD._2 | |
1201 | + | if (cS(cT)) | |
1119 | 1202 | then throw() | |
1120 | 1203 | else { | |
1121 | - | let ec = cA(et, dT) | |
1122 | - | if ((ec == ec)) | |
1123 | - | then [ScriptTransfer(dc.originCaller, cj, fromBase58String(dT)), IntegerEntry((ap[eq] + i), (aY[eq] - et)), Burn(ag, ee), ScriptTransfer(T, dD, fromBase58String(dT)), ScriptTransfer(Y, (es - dD), fromBase58String(dT)), IntegerEntry(m, (ah - ee))] | |
1204 | + | let el = cD(eB, ec) | |
1205 | + | if ((el == el)) | |
1206 | + | then { | |
1207 | + | let dK = (eA - dG) | |
1208 | + | let dM = if ((dK > 0)) | |
1209 | + | then invoke(Z, "airDrop", nil, [AttachedPayment(ef, dK)]) | |
1210 | + | else 0 | |
1211 | + | if ((dM == dM)) | |
1212 | + | then [ScriptTransfer(df.originCaller, cm, ef), IntegerEntry((aq[ey] + i), (bb[ey] - eB)), Burn(ah, en), ScriptTransfer(U, dG, ef), IntegerEntry(m, (ai - en))] | |
1213 | + | else throw("Strict value is not equal to itself.") | |
1214 | + | } | |
1124 | 1215 | else throw("Strict value is not equal to itself.") | |
1125 | 1216 | } | |
1126 | 1217 | } | |
1127 | 1218 | } | |
1128 | 1219 | } | |
1129 | 1220 | }) | |
1130 | 1221 | ||
1131 | 1222 | ||
1132 | 1223 | ||
1133 | - | @Callable( | |
1134 | - | func withdrawOneCoinWithUnlock ( | |
1224 | + | @Callable(df) | |
1225 | + | func withdrawOneCoinWithUnlock (ec,ex,et) = valueOrElse(av(), if ((0 >= et)) | |
1135 | 1226 | then throw("Unlock amount must be positive") | |
1136 | 1227 | else { | |
1137 | - | let | |
1138 | - | if ( | |
1139 | - | then ( | |
1228 | + | let cM = cI() | |
1229 | + | if (cM._1) | |
1230 | + | then (cO(cM._2) ++ cP(df.caller, df.payments)) | |
1140 | 1231 | else { | |
1141 | - | let | |
1142 | - | then if ((size( | |
1232 | + | let en = if ((size(df.payments) > 0)) | |
1233 | + | then if ((size(df.payments) != 1)) | |
1143 | 1234 | then throw("size(payments) != 1") | |
1144 | 1235 | else { | |
1145 | - | let | |
1146 | - | if (( | |
1236 | + | let eo = df.payments[0].assetId | |
1237 | + | if ((ah != eo)) | |
1147 | 1238 | then throw("unknown payment token") | |
1148 | - | else | |
1239 | + | else df.payments[0].amount | |
1149 | 1240 | } | |
1150 | 1241 | else 0 | |
1151 | - | let | |
1152 | - | if (( | |
1242 | + | let eu = invoke(Y, "withdrawShareTokens", [toString(this), et], nil) | |
1243 | + | if ((eu == eu)) | |
1153 | 1244 | then { | |
1154 | - | let | |
1155 | - | let | |
1156 | - | if (( | |
1245 | + | let ev = (en + et) | |
1246 | + | let dL = invoke(this, "withdrawOneCoin", [ec, ex], [AttachedPayment(ah, ev)]) | |
1247 | + | if ((dL == dL)) | |
1157 | 1248 | then nil | |
1158 | 1249 | else throw("Strict value is not equal to itself.") | |
1159 | 1250 | } | |
1160 | 1251 | else throw("Strict value is not equal to itself.") | |
1161 | 1252 | } | |
1162 | 1253 | }) | |
1163 | 1254 | ||
1164 | 1255 | ||
1165 | 1256 | ||
1166 | - | @Callable( | |
1167 | - | func A () = $Tuple2(nil, | |
1257 | + | @Callable(df) | |
1258 | + | func A () = $Tuple2(nil, aK()) | |
1168 | 1259 | ||
1169 | 1260 | ||
1170 | 1261 | ||
1171 | - | @Callable( | |
1262 | + | @Callable(df) | |
1172 | 1263 | func getVirtualPrice () = { | |
1173 | - | let | |
1174 | - | $Tuple2(nil, fraction( | |
1264 | + | let bs = be(aP(), aK()) | |
1265 | + | $Tuple2(nil, fraction(bs, a, ai)) | |
1175 | 1266 | } | |
1176 | 1267 | ||
1177 | 1268 | ||
1178 | 1269 | ||
1179 | - | @Callable( | |
1180 | - | func calcTokenAmount ( | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | func | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | then | |
1190 | - | else -( | |
1191 | - | $Tuple2(( | |
1270 | + | @Callable(df) | |
1271 | + | func calcTokenAmount (eF,eG) = { | |
1272 | + | let bf = aK() | |
1273 | + | let eH = aP() | |
1274 | + | let ca = bv(eH, bf) | |
1275 | + | func eI (aR,ep) = { | |
1276 | + | let eJ = aR | |
1277 | + | let cT = eJ._1 | |
1278 | + | let ax = eJ._2 | |
1279 | + | let dz = (ep + (if (eG) | |
1280 | + | then eF[ax] | |
1281 | + | else -(eF[ax]))) | |
1282 | + | $Tuple2((cT :+ dz), (ax + 1)) | |
1192 | 1283 | } | |
1193 | 1284 | ||
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | func | |
1198 | - | then | |
1199 | - | else | |
1285 | + | let cT = ( let aT = eH | |
1286 | + | let aU = size(aT) | |
1287 | + | let aV = $Tuple2(nil, 0) | |
1288 | + | func aW (aX,aY) = if ((aY >= aU)) | |
1289 | + | then aX | |
1290 | + | else eI(aX, aT[aY]) | |
1200 | 1291 | ||
1201 | - | func | |
1202 | - | then | |
1292 | + | func aZ (aX,aY) = if ((aY >= aU)) | |
1293 | + | then aX | |
1203 | 1294 | else throw("List size exceeds 15") | |
1204 | 1295 | ||
1205 | - | aW( | |
1206 | - | let | |
1207 | - | let | |
1208 | - | then ( | |
1209 | - | else ( | |
1210 | - | $Tuple2(nil, fraction( | |
1296 | + | aZ(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aW(aV, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15))._1 | |
1297 | + | let cb = bv(cT, bf) | |
1298 | + | let eK = if (eG) | |
1299 | + | then (cb - ca) | |
1300 | + | else (ca - cb) | |
1301 | + | $Tuple2(nil, fraction(eK, ai, ca)) | |
1211 | 1302 | } | |
1212 | 1303 | ||
1213 | 1304 | ||
1214 | 1305 | ||
1215 | - | @Callable( | |
1216 | - | func rampA ( | |
1306 | + | @Callable(df) | |
1307 | + | func rampA (eL,eM) = valueOrElse(av(), valueOrElse(aw(df), if (aB((aA >= (ao + e)))) | |
1217 | 1308 | then throw("too often") | |
1218 | - | else if ( | |
1309 | + | else if (aB((eM >= (aA + e)))) | |
1219 | 1310 | then throw("insufficient time") | |
1220 | 1311 | else { | |
1221 | - | let | |
1222 | - | if ( | |
1223 | - | then (b > | |
1312 | + | let eN = aK() | |
1313 | + | if (aB(if ((eL > 0)) | |
1314 | + | then (b > eL) | |
1224 | 1315 | else false)) | |
1225 | 1316 | then throw("out of base range") | |
1226 | - | else if ( | |
1227 | - | then (( | |
1317 | + | else if (aB(if (if ((eL >= eN)) | |
1318 | + | then ((eN * c) >= eL) | |
1228 | 1319 | else false) | |
1229 | 1320 | then true | |
1230 | - | else if (( | |
1231 | - | then (( | |
1321 | + | else if ((eN > eL)) | |
1322 | + | then ((eL * c) >= eN) | |
1232 | 1323 | else false)) | |
1233 | 1324 | then throw("out of range") | |
1234 | - | else [IntegerEntry("initial_A", | |
1325 | + | else [IntegerEntry("initial_A", eN), IntegerEntry("future_A", eL), IntegerEntry("initial_A_time", aA), IntegerEntry("future_A_time", eM)] | |
1235 | 1326 | })) | |
1236 | 1327 | ||
1237 | 1328 | ||
1238 | 1329 | ||
1239 | - | @Callable( | |
1240 | - | func stopRampA () = valueOrElse( | |
1241 | - | let | |
1242 | - | [IntegerEntry("initial_A", | |
1330 | + | @Callable(df) | |
1331 | + | func stopRampA () = valueOrElse(av(), valueOrElse(aw(df), { | |
1332 | + | let eO = aK() | |
1333 | + | [IntegerEntry("initial_A", eO), IntegerEntry("future_A", eO), IntegerEntry("initial_A_time", aA), IntegerEntry("future_A_time", aA)] | |
1243 | 1334 | })) | |
1244 | 1335 | ||
1245 | 1336 | ||
1246 | 1337 | ||
1247 | - | @Callable( | |
1248 | - | func shutdown () = valueOrElse( | |
1338 | + | @Callable(df) | |
1339 | + | func shutdown () = valueOrElse(aw(df), if (!(ag)) | |
1249 | 1340 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, k), "the cause wasn't specified"))) | |
1250 | - | else | |
1341 | + | else as("Paused by admin")) | |
1251 | 1342 | ||
1252 | 1343 | ||
1253 | 1344 | ||
1254 | - | @Callable( | |
1255 | - | func activate () = valueOrElse( | |
1256 | - | then | |
1345 | + | @Callable(df) | |
1346 | + | func activate () = valueOrElse(aw(df), if (ag) | |
1347 | + | then au() | |
1257 | 1348 | else [BooleanEntry(j, true), DeleteEntry(k)]) | |
1258 | 1349 | ||
1259 | 1350 | ||
1260 | 1351 | ||
1261 | - | @Callable( | |
1262 | - | func keepLimitForFirstHarvest ( | |
1352 | + | @Callable(df) | |
1353 | + | func keepLimitForFirstHarvest (eP) = valueOrElse(av(), valueOrElse(aw(df), [IntegerEntry(v, eP)])) | |
1263 | 1354 | ||
1264 | 1355 | ||
1265 | - | @Verifier( | |
1266 | - | func | |
1267 | - | let | |
1268 | - | let | |
1356 | + | @Verifier(eQ) | |
1357 | + | func eR () = { | |
1358 | + | let eS = { | |
1359 | + | let eT = if (sigVerify(eQ.bodyBytes, eQ.proofs[0], Q)) | |
1269 | 1360 | then 1 | |
1270 | 1361 | else 0 | |
1271 | - | let | |
1362 | + | let eU = if (sigVerify(eQ.bodyBytes, eQ.proofs[1], R)) | |
1272 | 1363 | then 1 | |
1273 | 1364 | else 0 | |
1274 | - | let | |
1365 | + | let eV = if (sigVerify(eQ.bodyBytes, eQ.proofs[2], S)) | |
1275 | 1366 | then 1 | |
1276 | 1367 | else 0 | |
1277 | - | ((( | |
1368 | + | (((eT + eU) + eV) >= 2) | |
1278 | 1369 | } | |
1279 | - | let | |
1280 | - | if ($isInstanceOf( | |
1370 | + | let N = eQ | |
1371 | + | if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
1281 | 1372 | then { | |
1282 | - | let | |
1283 | - | let | |
1284 | - | then ( | |
1373 | + | let dL = N | |
1374 | + | let eW = if ((dL.dApp == this)) | |
1375 | + | then (dL.function == "takeIntoAccountExtraFunds") | |
1285 | 1376 | else false | |
1286 | - | let | |
1377 | + | let eX = if (if (if (sigVerify(eQ.bodyBytes, eQ.proofs[0], Q)) | |
1287 | 1378 | then true | |
1288 | - | else sigVerify( | |
1379 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], R)) | |
1289 | 1380 | then true | |
1290 | - | else sigVerify( | |
1381 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], S)) | |
1291 | 1382 | then true | |
1292 | - | else sigVerify( | |
1293 | - | if (if ( | |
1294 | - | then | |
1383 | + | else sigVerify(eQ.bodyBytes, eQ.proofs[0], T) | |
1384 | + | if (if (eW) | |
1385 | + | then eX | |
1295 | 1386 | else false) | |
1296 | 1387 | then true | |
1297 | - | else | |
1388 | + | else eS | |
1298 | 1389 | } | |
1299 | - | else | |
1390 | + | else eS | |
1300 | 1391 | } | |
1301 | 1392 |
github/deemru/w8io/169f3d6 546.79 ms ◑