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