tx · CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.04200000 Waves 2023.08.17 13:53 [2714503] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF", "fee": 4200000, "feeAssetId": null, "timestamp": 1692269700893, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "4BHbHauboSGcq3AtpbCAM68FG6PFKtc7F79j3EFrdNYnAPda36h2A9MbD7Lyw1futiZa2cPXqZRReuBmXYNCKr6Z", "4idwa6B9b9ZevuiZ3X5t6Pt3NthTRQmeLd1f1eUPwvp6ySYHrG8ARGDwVbN19ryPuX7noTvxTXzNq7voE1KKBoYL" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBpAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZWln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aQMFBmFjdGl2ZQkAAgECFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUJAMwIAgkBDEJvb2xlYW5FbnRyeQIFB2tBY3RpdmUGCQDMCAIJAQtEZWxldGVFbnRyeQEFBmtDYXVzZQUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAl7Za14=", "height": 2714503, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5uVntR9kpZ69bPn5GWmWVsVgFkoycLi1R5wH4UdgpUvv Next: 3hHUTTcJbRMnH3YvGipvoZgsiKJW4T6gZW8vks7fbrpw Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | ||
94 | 94 | let T = "farming_treasure" | |
95 | 95 | ||
96 | - | let U = | |
96 | + | let U = "axly_farming" | |
97 | 97 | ||
98 | - | let V = | |
98 | + | let V = "axly_lp_id" | |
99 | 99 | ||
100 | - | let W = | |
100 | + | let W = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
101 | 101 | ||
102 | - | let X = | |
102 | + | let X = 10000000000 | |
103 | 103 | ||
104 | - | let Y = | |
104 | + | let Y = 100000000 | |
105 | 105 | ||
106 | - | let Z = | |
106 | + | let Z = 1000000 | |
107 | 107 | ||
108 | - | let aa = | |
108 | + | let aa = 1000 | |
109 | 109 | ||
110 | - | let ab = | |
110 | + | let ab = 500 | |
111 | 111 | ||
112 | - | let ac = | |
112 | + | let ac = 2976848 | |
113 | 113 | ||
114 | - | let ad = | |
114 | + | let ad = 100000000000000 | |
115 | 115 | ||
116 | - | func ae (af) = { | |
117 | - | let ag = getString(U, af) | |
118 | - | if ($isInstanceOf(ag, "String")) | |
116 | + | let ae = 526330 | |
117 | + | ||
118 | + | let af = 25 | |
119 | + | ||
120 | + | func ag (ah) = { | |
121 | + | let ai = getString(W, ah) | |
122 | + | if ($isInstanceOf(ai, "String")) | |
119 | 123 | then { | |
120 | - | let | |
121 | - | fromBase58String( | |
124 | + | let aj = ai | |
125 | + | fromBase58String(aj) | |
122 | 126 | } | |
123 | 127 | else { | |
124 | - | let | |
125 | - | throw(( | |
128 | + | let ak = ai | |
129 | + | throw((ah + "is empty")) | |
126 | 130 | } | |
127 | 131 | } | |
128 | 132 | ||
129 | 133 | ||
130 | - | let | |
134 | + | let al = ag(K) | |
131 | 135 | ||
132 | - | let | |
136 | + | let am = ag(L) | |
133 | 137 | ||
134 | - | let | |
138 | + | let an = ag(M) | |
135 | 139 | ||
136 | - | let | |
140 | + | let ao = Address(ag(O)) | |
137 | 141 | ||
138 | - | let | |
142 | + | let ap = Address(ag(P)) | |
139 | 143 | ||
140 | - | let | |
144 | + | let aq = Address(ag(Q)) | |
141 | 145 | ||
142 | - | let | |
146 | + | let ar = Address(ag(R)) | |
143 | 147 | ||
144 | - | let | |
148 | + | let as = ag(N) | |
145 | 149 | ||
146 | - | let | |
150 | + | let at = Address(ag(S)) | |
147 | 151 | ||
148 | - | let | |
152 | + | let au = Address(ag(T)) | |
149 | 153 | ||
150 | - | let | |
154 | + | let av = Address(ag(J)) | |
151 | 155 | ||
152 | - | let | |
156 | + | let aw = Address(ag(U)) | |
153 | 157 | ||
154 | - | let | |
158 | + | let ax = ag(V) | |
155 | 159 | ||
156 | - | let | |
160 | + | let ay = getBooleanValue(this, a) | |
157 | 161 | ||
158 | - | func ax () = { | |
159 | - | let ay = ((height - aa) / ac) | |
160 | - | func az (aA,aB) = { | |
161 | - | let aC = aA | |
162 | - | let aD = aC._1 | |
163 | - | let aE = aC._2 | |
164 | - | if ((ay > aB)) | |
165 | - | then $Tuple2(fraction(aD, 75, 100), aD) | |
166 | - | else $Tuple2(aD, aE) | |
162 | + | let az = valueOrElse(getBoolean(W, b), true) | |
163 | + | ||
164 | + | let aA = fromBase58String(getStringValue(this, x)) | |
165 | + | ||
166 | + | func aB () = { | |
167 | + | let aC = ((height - ac) / ae) | |
168 | + | func aD (aE,aF) = { | |
169 | + | let aG = aE | |
170 | + | let aH = aG._1 | |
171 | + | let aI = aG._2 | |
172 | + | if ((aC > aF)) | |
173 | + | then $Tuple2(fraction(aH, 75, 100), aH) | |
174 | + | else $Tuple2(aH, aI) | |
167 | 175 | } | |
168 | 176 | ||
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | func | |
174 | - | then | |
175 | - | else | |
177 | + | let aJ = { | |
178 | + | let aK = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
179 | + | let aL = size(aK) | |
180 | + | let aM = $Tuple2(ad, ad) | |
181 | + | func aN (aO,aP) = if ((aP >= aL)) | |
182 | + | then aO | |
183 | + | else aD(aO, aK[aP]) | |
176 | 184 | ||
177 | - | func | |
178 | - | then | |
185 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
186 | + | then aO | |
179 | 187 | else throw("List size exceeds 20") | |
180 | 188 | ||
181 | - | aM | |
189 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
182 | 190 | } | |
183 | - | let | |
184 | - | let | |
185 | - | $Tuple3(( | |
191 | + | let aH = aJ._1 | |
192 | + | let aI = aJ._2 | |
193 | + | $Tuple3((aH / ae), (aI / ae), (ac + (ae * aC))) | |
186 | 194 | } | |
187 | 195 | ||
188 | 196 | ||
189 | - | func | |
197 | + | func aR (aS) = valueOrElse(getInteger(Address(fromBase58String(aS)), F), 0) | |
190 | 198 | ||
191 | 199 | ||
192 | - | func | |
200 | + | func aT (aS) = valueOrErrorMessage(getInteger(aS, G), ("No data on the key: " + G)) | |
193 | 201 | ||
194 | 202 | ||
195 | - | func | |
203 | + | func aU (aS) = valueOrErrorMessage(getInteger(this, (aS + n)), (("No data on the key: " + aS) + n)) | |
196 | 204 | ||
197 | 205 | ||
198 | - | func | |
206 | + | func aV (aS) = valueOrElse(getInteger(aq, (aS + A)), valueOrElse(parseInt(split(valueOrElse(getString(aq, (aS + C)), ""), "_")[0]), 0)) | |
199 | 207 | ||
200 | 208 | ||
201 | - | func | |
209 | + | func aW (aS,aX) = valueOrElse(getInteger(aq, (((aX + "_") + aS) + B)), valueOrElse(parseInt(split(valueOrElse(getString(aq, (((aX + "_") + aS) + D)), ""), "_")[0]), 0)) | |
202 | 210 | ||
203 | 211 | ||
204 | - | func | |
212 | + | func aY (aS) = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
205 | 213 | ||
206 | 214 | ||
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
215 | + | func aZ (ba) = { | |
216 | + | let ai = ba | |
217 | + | if ($isInstanceOf(ai, "ByteVector")) | |
210 | 218 | then { | |
211 | - | let | |
212 | - | assetBalance(this, | |
219 | + | let bb = ai | |
220 | + | assetBalance(this, bb) | |
213 | 221 | } | |
214 | - | else if ($isInstanceOf( | |
222 | + | else if ($isInstanceOf(ai, "Unit")) | |
215 | 223 | then { | |
216 | - | let | |
224 | + | let bc = ai | |
217 | 225 | wavesBalance(this).available | |
218 | 226 | } | |
219 | 227 | else throw("Match error") | |
220 | 228 | } | |
221 | 229 | ||
222 | 230 | ||
223 | - | func | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | pow(10, 0, | |
231 | + | func bd (be,bf) = { | |
232 | + | let bg = value(assetInfo(be)).decimals | |
233 | + | let bh = value(assetInfo(bf)).decimals | |
234 | + | let bi = ((bh - bg) + 8) | |
235 | + | pow(10, 0, bi, 0, 0, DOWN) | |
228 | 236 | } | |
229 | 237 | ||
230 | 238 | ||
231 | - | func | |
239 | + | func bj (aS,aX) = valueOrElse(getInteger(this, (((aS + "_") + aX) + y)), 0) | |
232 | 240 | ||
233 | 241 | ||
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | if (if (( | |
242 | + | func bk (aS) = { | |
243 | + | let bl = aB() | |
244 | + | let bm = bl._1 | |
245 | + | let bn = bl._2 | |
246 | + | let bo = bl._3 | |
247 | + | let bp = valueOrErrorMessage(getInteger(ar, (aS + e)), (((("No data on the key: " + aS) + e) + " at address ") + toString(ar))) | |
248 | + | let bq = valueOrErrorMessage(getInteger(ar, h), ((("No data on the key: " + h) + " at address ") + toString(ar))) | |
249 | + | let br = valueOrElse(getInteger(ar, (aS + g)), bq) | |
250 | + | let bs = valueOrErrorMessage(getInteger(ar, (aS + f)), (((("No data on the key: " + aS) + f) + " at address ") + toString(ar))) | |
251 | + | let bt = fraction(bm, bp, X) | |
252 | + | let bu = fraction(bm, bs, X) | |
253 | + | let bv = fraction(bn, bp, X) | |
254 | + | let bw = fraction(bn, bs, X) | |
255 | + | if (if ((bt > bm)) | |
248 | 256 | then true | |
249 | - | else ( | |
257 | + | else (bu > bn)) | |
250 | 258 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
251 | - | else $Tuple7( | |
259 | + | else $Tuple7(bt, bq, bu, br, bo, bv, bw) | |
252 | 260 | } | |
253 | 261 | ||
254 | 262 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | $Tuple3( | |
263 | + | func bx (aS) = { | |
264 | + | let by = valueOrErrorMessage(getInteger(this, (aS + s)), (("No data on the key: " + aS) + s)) | |
265 | + | let bz = valueOrElse(getInteger(this, (aS + u)), 0) | |
266 | + | let bA = valueOrElse(getInteger(this, (aS + w)), height) | |
267 | + | $Tuple3(bA, by, bz) | |
260 | 268 | } | |
261 | 269 | ||
262 | 270 | ||
263 | - | func | |
264 | - | let | |
265 | - | fraction( | |
271 | + | func bB (aS,bC) = { | |
272 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
273 | + | fraction(bC, aa, (bD + aa)) | |
266 | 274 | } | |
267 | 275 | ||
268 | 276 | ||
269 | - | func | |
270 | - | let | |
271 | - | fraction( | |
277 | + | func bE (aS,bC) = { | |
278 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
279 | + | fraction(bC, bD, (bD + aa)) | |
272 | 280 | } | |
273 | 281 | ||
274 | 282 | ||
275 | - | func | |
276 | - | let | |
277 | - | then ( | |
283 | + | func bF (aS,bA,bq,br,by,bz,bG,bH,bI,bJ,bK,bL) = { | |
284 | + | let bM = if (if (if ((bq > bL)) | |
285 | + | then (bq == br) | |
278 | 286 | else false) | |
279 | 287 | then true | |
280 | - | else if (( | |
281 | - | then ( | |
288 | + | else if ((bL > bq)) | |
289 | + | then (bq != br) | |
282 | 290 | else false) | |
283 | 291 | then { | |
284 | - | let | |
285 | - | $Tuple3( | |
292 | + | let bN = (bJ * (bL - bA)) | |
293 | + | $Tuple3(bN, by, bz) | |
286 | 294 | } | |
287 | - | else if (if (if (( | |
288 | - | then ( | |
295 | + | else if (if (if ((bL > bq)) | |
296 | + | then (bq == br) | |
289 | 297 | else false) | |
290 | - | then ( | |
298 | + | then (bA > bq) | |
291 | 299 | else false) | |
292 | 300 | then { | |
293 | - | let | |
294 | - | $Tuple3( | |
301 | + | let bN = (bH * (bL - bA)) | |
302 | + | $Tuple3(bN, by, bz) | |
295 | 303 | } | |
296 | 304 | else { | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then fraction( | |
305 | + | let bO = (bJ * (bq - bA)) | |
306 | + | let bP = (by + fraction(bB(aS, bO), bK, bI)) | |
307 | + | let bQ = (bz + (if ((bG > 0)) | |
308 | + | then fraction(bE(aS, bO), Y, bG) | |
301 | 309 | else 0)) | |
302 | - | let | |
303 | - | $Tuple3( | |
310 | + | let bR = (bH * (bL - bq)) | |
311 | + | $Tuple3(bR, bP, bQ) | |
304 | 312 | } | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | then fraction( | |
313 | + | let bS = bM._1 | |
314 | + | let bT = bM._2 | |
315 | + | let bU = bM._3 | |
316 | + | let bV = (bT + fraction(bB(aS, bS), bK, bI)) | |
317 | + | let bW = (bU + (if ((bG > 0)) | |
318 | + | then fraction(bE(aS, bS), Y, bG) | |
311 | 319 | else 0)) | |
312 | - | $Tuple2( | |
320 | + | $Tuple2(bV, bW) | |
313 | 321 | } | |
314 | 322 | ||
315 | 323 | ||
316 | - | func | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | then ( | |
324 | + | func bX (aS,aX) = { | |
325 | + | let bK = bd(aA, aY(aS)) | |
326 | + | let bG = aV(aS) | |
327 | + | let bY = aW(aS, aX) | |
328 | + | let bZ = aU(aS) | |
329 | + | let ca = valueOrElse(getInteger(this, (aS + o)), bZ) | |
330 | + | let cb = valueOrElse(getInteger(this, (aS + H)), 0) | |
331 | + | let cc = bx(aS) | |
332 | + | let bA = cc._1 | |
333 | + | let by = cc._2 | |
334 | + | let bz = cc._3 | |
335 | + | let cd = bk(aS) | |
336 | + | let bH = cd._1 | |
337 | + | let bq = cd._2 | |
338 | + | let bJ = cd._3 | |
339 | + | let br = cd._4 | |
340 | + | let ce = cd._5 | |
341 | + | let cf = cd._6 | |
342 | + | let cg = cd._7 | |
343 | + | let ch = valueOrElse(getInteger(this, (((aS + "_") + aX) + t)), by) | |
344 | + | let ci = valueOrElse(getInteger(this, (((aS + "_") + aX) + v)), if (if ((cb > ch)) | |
345 | + | then (bY > 0) | |
338 | 346 | else false) | |
339 | 347 | then 0 | |
340 | - | else | |
341 | - | let | |
342 | - | let | |
343 | - | if (( | |
348 | + | else bz) | |
349 | + | let cj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
350 | + | let ck = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), cj) | |
351 | + | if ((ca == 0)) | |
344 | 352 | then { | |
345 | - | let | |
346 | - | then (( | |
347 | - | else ( | |
348 | - | let | |
349 | - | $Tuple5( | |
353 | + | let cl = if ((ce > bA)) | |
354 | + | then ((cf * (ce - bA)) + (bH * (height - ce))) | |
355 | + | else (bH * (height - bA)) | |
356 | + | let cm = fraction(cl, af, 100) | |
357 | + | $Tuple5(by, bz, 0, (cl - cm), cm) | |
350 | 358 | } | |
351 | 359 | else { | |
352 | - | let | |
360 | + | let cn = if ((ce > bA)) | |
353 | 361 | then { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple3( | |
362 | + | let co = bF(aS, bA, bq, br, by, bz, bG, cf, ca, cg, bK, ce) | |
363 | + | let cp = co._1 | |
364 | + | let cq = co._2 | |
365 | + | $Tuple3(cp, cq, ce) | |
358 | 366 | } | |
359 | - | else $Tuple3( | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ((0 > | |
367 | + | else $Tuple3(by, bz, bA) | |
368 | + | let cr = cn._1 | |
369 | + | let cs = cn._2 | |
370 | + | let ct = cn._3 | |
371 | + | let cu = bF(aS, ct, bq, br, cr, cs, bG, bH, ca, bJ, bK, height) | |
372 | + | let bV = cu._1 | |
373 | + | let bW = cu._2 | |
374 | + | let cv = fraction(ck, (bV - ch), bK) | |
375 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
376 | + | let cw = fraction(fraction(ck, (bV - max([ch, cb])), bK), bD, aa) | |
377 | + | let cx = fraction((bW - ci), bY, Y) | |
378 | + | let cy = min([cw, cx]) | |
379 | + | let cl = (cw - cy) | |
380 | + | let cm = fraction(cl, af, 100) | |
381 | + | if ((0 > cl)) | |
374 | 382 | then throw("toTreasury < 0") | |
375 | - | else $Tuple5( | |
383 | + | else $Tuple5(bV, bW, (cv + cy), (cl - cm), cm) | |
376 | 384 | } | |
377 | 385 | } | |
378 | 386 | ||
379 | 387 | ||
380 | - | func | |
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | $Tuple2(( | |
388 | + | func cz (cA,aX) = { | |
389 | + | func cB (aE,aS) = { | |
390 | + | let cC = aE | |
391 | + | let cD = cC._1 | |
392 | + | let cE = cC._2 | |
393 | + | let cF = bX(aS, aX) | |
394 | + | let cG = cF._1 | |
395 | + | let cH = cF._2 | |
396 | + | let cI = cF._3 | |
397 | + | let cJ = cF._4 | |
398 | + | let cK = (bj(aS, aX) + cI) | |
399 | + | $Tuple2((cD :+ aS), (cE :+ cK)) | |
392 | 400 | } | |
393 | 401 | ||
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | func | |
398 | - | then | |
399 | - | else | |
402 | + | let aK = cA | |
403 | + | let aL = size(aK) | |
404 | + | let aM = $Tuple2(nil, nil) | |
405 | + | func aN (aO,aP) = if ((aP >= aL)) | |
406 | + | then aO | |
407 | + | else cB(aO, aK[aP]) | |
400 | 408 | ||
401 | - | func | |
402 | - | then | |
409 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
410 | + | then aO | |
403 | 411 | else throw("List size exceeds 60") | |
404 | 412 | ||
405 | - | aM | |
413 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
406 | 414 | } | |
407 | 415 | ||
408 | 416 | ||
409 | - | func | |
417 | + | func cL (aS,aX,cM,cN,cO) = if ((aR(aS) > height)) | |
410 | 418 | then { | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | if (( | |
419 | + | let cP = valueOrElse(getInteger(aq, (aS + z)), 0) | |
420 | + | let cQ = valueOrElse(getInteger(aq, (((aX + "_") + aS) + E)), 0) | |
421 | + | let cR = aT(addressFromStringValue(aS)) | |
422 | + | let cS = (fraction(cR, cQ, cP) - cM) | |
423 | + | if ((cO > 0)) | |
416 | 424 | then throw("You can't lock shareTokens till first harvest end.") | |
417 | - | else if (( | |
425 | + | else if ((cQ == 0)) | |
418 | 426 | then throw("You can't lock shareTokens. You didn't vote for pool in first week.") | |
419 | - | else if (( | |
420 | - | then ( | |
427 | + | else if ((cN >= cS)) | |
428 | + | then (cN - cS) | |
421 | 429 | else 0 | |
422 | 430 | } | |
423 | 431 | else 0 | |
424 | 432 | ||
425 | 433 | ||
426 | - | func | |
427 | - | let | |
428 | - | $Tuple2(parseIntValue( | |
434 | + | func cT (cU) = { | |
435 | + | let cV = split(valueOrErrorMessage(getString(this, (toString(cU) + p)), ("There are no key for lock type" + toString(cU))), "_") | |
436 | + | $Tuple2(parseIntValue(cV[0]), parseIntValue(cV[1])) | |
429 | 437 | } | |
430 | 438 | ||
431 | 439 | ||
432 | - | func | |
440 | + | func cW (cX) = [BooleanEntry(a, false), StringEntry(d, cX)] | |
433 | 441 | ||
434 | 442 | ||
435 | - | func | |
436 | - | then | |
443 | + | func cY () = if (if (ay) | |
444 | + | then az | |
437 | 445 | else false) | |
438 | 446 | then unit | |
439 | 447 | else throw("DApp is inactive at this moment") | |
440 | 448 | ||
441 | 449 | ||
442 | - | func | |
450 | + | func cZ (aF) = if (containsElement([al, am, an], aF.callerPublicKey)) | |
443 | 451 | then unit | |
444 | 452 | else throw("Only admin can call this function") | |
445 | 453 | ||
446 | 454 | ||
447 | - | func | |
455 | + | func da (aF,aS) = if (if ((toString(aF.caller) == aS)) | |
448 | 456 | then true | |
449 | - | else ( | |
457 | + | else (aF.caller == av)) | |
450 | 458 | then unit | |
451 | 459 | else throw("Only pool can call this function") | |
452 | 460 | ||
453 | 461 | ||
454 | - | func | |
462 | + | func db (aS) = valueOrElse(getBoolean(W, (c + aS)), false) | |
455 | 463 | ||
456 | 464 | ||
457 | - | func | |
465 | + | func dc (aS) = if (!(db(aS))) | |
458 | 466 | then unit | |
459 | 467 | else throw("Pool is deprecated. Only unlock action allowed.") | |
460 | 468 | ||
461 | 469 | ||
462 | - | func | |
470 | + | func dd (aF) = if ((aF.caller == this)) | |
463 | 471 | then unit | |
464 | 472 | else throw("Only contract itself can call this function") | |
465 | 473 | ||
466 | 474 | ||
467 | - | func da (aB,db,aO,cK) = { | |
468 | - | let dc = aU(aO) | |
469 | - | let aT = toString(db) | |
470 | - | let dd = aQ(aO) | |
471 | - | let bW = valueOrElse(getInteger(this, (aO + o)), dd) | |
472 | - | let de = valueOrElse(getInteger(this, (((aO + "_") + aT) + i)), 0) | |
473 | - | let df = valueOrElse(getInteger(this, (((aO + "_") + aT) + l)), 0) | |
474 | - | let dg = valueOrElse(getInteger(this, (((aO + "_") + aT) + j)), 0) | |
475 | - | let dh = valueOrElse(getInteger(this, (((aO + "_") + aT) + m)), de) | |
476 | - | let di = ((de + dg) + aB.payments[0].amount) | |
477 | - | let dj = cP(cK) | |
478 | - | let dk = dj._1 | |
479 | - | let dl = dj._2 | |
480 | - | let dm = getIntegerValue(this, q) | |
481 | - | if ((aB.payments[0].assetId != dc)) | |
475 | + | func de (aF,df,aS,cO) = { | |
476 | + | let dg = if ((aF.payments[0].assetId == ax)) | |
477 | + | then invoke(aw, "lpAction", nil, nil) | |
478 | + | else nil | |
479 | + | let dh = aY(aS) | |
480 | + | let aX = toString(df) | |
481 | + | let di = aU(aS) | |
482 | + | let ca = valueOrElse(getInteger(this, (aS + o)), di) | |
483 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
484 | + | let dk = valueOrElse(getInteger(this, (((aS + "_") + aX) + l)), 0) | |
485 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
486 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
487 | + | let dn = ((dj + dl) + aF.payments[0].amount) | |
488 | + | let do = cT(cO) | |
489 | + | let dp = do._1 | |
490 | + | let dq = do._2 | |
491 | + | let dr = getIntegerValue(this, q) | |
492 | + | if ((aF.payments[0].assetId != dh)) | |
482 | 493 | then throw("Wrong sharetoken in payment") | |
483 | - | else if ((0 >= | |
494 | + | else if ((0 >= aF.payments[0].amount)) | |
484 | 495 | then throw("Payment amount must be greater than 0") | |
485 | - | else if ((0 > | |
496 | + | else if ((0 > cO)) | |
486 | 497 | then throw("lockType must be >= 0") | |
487 | 498 | else { | |
488 | - | let | |
489 | - | if (( | |
499 | + | let ds = cL(aS, aX, dj, aF.payments[0].amount, cO) | |
500 | + | if ((ds == ds)) | |
490 | 501 | then { | |
491 | - | let | |
502 | + | let dt = if ((cO == 0)) | |
492 | 503 | then { | |
493 | - | let | |
494 | - | $Tuple2([IntegerEntry(((( | |
504 | + | let du = ((dm + aF.payments[0].amount) - ds) | |
505 | + | $Tuple2([IntegerEntry((((aS + "_") + aX) + i), ((dj + aF.payments[0].amount) - ds)), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca + aF.payments[0].amount) - ds)), ScriptTransfer(df, ds, aF.payments[0].assetId)], ((di + aF.payments[0].amount) - ds)) | |
495 | 506 | } | |
496 | - | else if (if (( | |
497 | - | then if (if ((2 > size( | |
507 | + | else if (if ((dk == 0)) | |
508 | + | then if (if ((2 > size(aF.payments))) | |
498 | 509 | then true | |
499 | - | else ( | |
510 | + | else (aF.payments[1].assetId != unit)) | |
500 | 511 | then true | |
501 | - | else ( | |
512 | + | else (dr > aF.payments[1].amount) | |
502 | 513 | else false) | |
503 | - | then throw((("You need to pay additional waves comission " + toString( | |
504 | - | else if (( | |
514 | + | then throw((("You need to pay additional waves comission " + toString(dr)) + "WAVES")) | |
515 | + | else if ((dk > (height + dp))) | |
505 | 516 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
506 | 517 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2([IntegerEntry(((( | |
518 | + | let dv = (dl + aF.payments[0].amount) | |
519 | + | let dw = (height + dp) | |
520 | + | let du = (fraction(dv, dq, aa) + dj) | |
521 | + | $Tuple2([IntegerEntry((((aS + "_") + aX) + j), dv), IntegerEntry((((aS + "_") + aX) + l), dw), IntegerEntry((((aS + "_") + aX) + k), cO), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca - dm) + du))], (di + aF.payments[0].amount)) | |
511 | 522 | } | |
512 | - | let | |
513 | - | let | |
514 | - | if (( | |
523 | + | let dx = dt._1 | |
524 | + | let dy = dt._2 | |
525 | + | if ((dy > aZ(dh))) | |
515 | 526 | then throw("Balance of share-token is lower than totalAmount") | |
516 | 527 | else { | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then invoke( | |
528 | + | let dz = bX(aS, aX) | |
529 | + | let by = dz._1 | |
530 | + | let bz = dz._2 | |
531 | + | let cI = dz._3 | |
532 | + | let dA = dz._4 | |
533 | + | let cm = dz._5 | |
534 | + | let dB = (bj(aS, aX) + cI) | |
535 | + | let dC = if ((getString(Address(fromBase58String(aS)), "version") == "3.0.0")) | |
536 | + | then invoke(at, "updateUserInterest", [aX, aS, dn], nil) | |
526 | 537 | else 0 | |
527 | - | if (( | |
528 | - | then ([IntegerEntry(((( | |
538 | + | if ((dC == dC)) | |
539 | + | then ([IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((aS + n), dy), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] ++ dx) | |
529 | 540 | else throw("Strict value is not equal to itself.") | |
530 | 541 | } | |
531 | 542 | } | |
534 | 545 | } | |
535 | 546 | ||
536 | 547 | ||
537 | - | func | |
538 | - | let | |
539 | - | then invoke(this, "unlockUserLockDeprecated", [ | |
548 | + | func dD (aF,df,aS,dE) = { | |
549 | + | let dg = if (db(aS)) | |
550 | + | then invoke(this, "unlockUserLockDeprecated", [aS, toString(df)], nil) | |
540 | 551 | else 0 | |
541 | - | if (( | |
552 | + | if ((dg == dg)) | |
542 | 553 | then { | |
543 | - | let dB = fromBase58String(getStringValue(value(addressFromString(aO)), "share_asset_id")) | |
544 | - | let aT = toString(db) | |
545 | - | let dC = bT(aO, aT) | |
546 | - | let bu = dC._1 | |
547 | - | let bv = dC._2 | |
548 | - | let cE = dC._3 | |
549 | - | let dv = dC._4 | |
550 | - | let ci = dC._5 | |
551 | - | let de = valueOrElse(getInteger(this, (((aO + "_") + aT) + i)), 0) | |
552 | - | let dg = valueOrElse(getInteger(this, (((aO + "_") + aT) + j)), 0) | |
553 | - | let dh = valueOrElse(getInteger(this, (((aO + "_") + aT) + m)), de) | |
554 | - | let dD = (de - dz) | |
555 | - | let dw = (bf(aO, aT) + cE) | |
556 | - | let dE = aQ(aO) | |
557 | - | let bW = valueOrElse(getInteger(this, (aO + o)), dE) | |
558 | - | let dF = (dE - dz) | |
559 | - | let dG = (bW - dz) | |
560 | - | let dp = (dh - dz) | |
561 | - | if ((dz > de)) | |
554 | + | let dF = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
555 | + | let dG = if ((dF == ax)) | |
556 | + | then invoke(aw, "lpAction", nil, nil) | |
557 | + | else nil | |
558 | + | let aX = toString(df) | |
559 | + | let dH = bX(aS, aX) | |
560 | + | let by = dH._1 | |
561 | + | let bz = dH._2 | |
562 | + | let cI = dH._3 | |
563 | + | let dA = dH._4 | |
564 | + | let cm = dH._5 | |
565 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
566 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
567 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
568 | + | let dI = (dj - dE) | |
569 | + | let dB = (bj(aS, aX) + cI) | |
570 | + | let dJ = aU(aS) | |
571 | + | let ca = valueOrElse(getInteger(this, (aS + o)), dJ) | |
572 | + | let dK = (dJ - dE) | |
573 | + | let dL = (ca - dE) | |
574 | + | let du = (dm - dE) | |
575 | + | if ((dE > dj)) | |
562 | 576 | then throw("Withdraw amount more then user locked amount") | |
563 | - | else if (( | |
577 | + | else if ((aZ(dF) > dJ)) | |
564 | 578 | then throw("Balance of share-token is lower than totalAmount") | |
565 | 579 | else { | |
566 | - | let | |
567 | - | then invoke( | |
580 | + | let dC = if ((getString(Address(fromBase58String(aS)), "version") == "3.0.0")) | |
581 | + | then invoke(at, "updateUserInterest", [aX, aS, (dj + dl)], nil) | |
568 | 582 | else 0 | |
569 | - | if (( | |
570 | - | then [IntegerEntry(((( | |
583 | + | if ((dC == dC)) | |
584 | + | then [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + n), dK), IntegerEntry((aS + o), dL), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, dA, true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA), ScriptTransfer(aF.caller, dE, dF)] | |
571 | 585 | else throw("Strict value is not equal to itself.") | |
572 | 586 | } | |
573 | 587 | } | |
575 | 589 | } | |
576 | 590 | ||
577 | 591 | ||
578 | - | func | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | if (( | |
592 | + | func dM (aF,aS,df) = { | |
593 | + | let dF = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
594 | + | let aX = toString(df) | |
595 | + | let bI = aU(aS) | |
596 | + | let dN = bX(aS, aX) | |
597 | + | let by = dN._1 | |
598 | + | let bz = dN._2 | |
599 | + | let cI = dN._3 | |
600 | + | let dA = dN._4 | |
601 | + | let cm = dN._5 | |
602 | + | let cK = (bj(aS, aX) + cI) | |
603 | + | if ((aZ(dF) > bI)) | |
590 | 604 | then throw("Balance of share-token is lower than totalAmount") | |
591 | 605 | else { | |
592 | - | let | |
593 | - | then [ScriptTransfer( | |
606 | + | let dO = if ((aF.caller != this)) | |
607 | + | then [ScriptTransfer(aF.caller, cK, aA)] | |
594 | 608 | else nil | |
595 | - | $Tuple2(([IntegerEntry(((( | |
609 | + | $Tuple2(([IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), 0), Reissue(aA, ((dA + cK) + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] ++ dO), cK) | |
596 | 610 | } | |
597 | 611 | } | |
598 | 612 | ||
599 | 613 | ||
600 | - | func | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | [IntegerEntry(((( | |
614 | + | func dP (aF,aS,aX) = { | |
615 | + | let ca = getIntegerValue(this, (aS + o)) | |
616 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
617 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
618 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
619 | + | let dI = (dj + dl) | |
620 | + | let dQ = bX(aS, aX) | |
621 | + | let by = dQ._1 | |
622 | + | let bz = dQ._2 | |
623 | + | let cI = dQ._3 | |
624 | + | let dA = dQ._4 | |
625 | + | let cm = dQ._5 | |
626 | + | let dB = (bj(aS, aX) + cI) | |
627 | + | [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + m), dI), IntegerEntry((aS + o), ((ca - dm) + dI)), IntegerEntry((((aS + "_") + aX) + y), dB), DeleteEntry((((aS + "_") + aX) + j)), DeleteEntry((((aS + "_") + aX) + l)), DeleteEntry((((aS + "_") + aX) + k)), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
614 | 628 | } | |
615 | 629 | ||
616 | 630 | ||
617 | - | @Callable( | |
618 | - | func init ( | |
631 | + | @Callable(aF) | |
632 | + | func init (dR) = if (isDefined(getString(this, x))) | |
619 | 633 | then throw("SWOP already initialized") | |
620 | 634 | else { | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
635 | + | let dS = 100000000000000 | |
636 | + | let dT = Issue("SWOP", "SWOP protocol token", dS, 8, true) | |
637 | + | let dU = calculateAssetId(dT) | |
638 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", dS, 8, true), StringEntry(x, toBase58String(dU))] | |
625 | 639 | } | |
626 | 640 | ||
627 | 641 | ||
628 | 642 | ||
629 | - | @Callable( | |
630 | - | func initPoolShareFarming ( | |
643 | + | @Callable(aF) | |
644 | + | func initPoolShareFarming (aS) = valueOrElse(cZ(aF), if (!(isDefined(getString(W, (I + aS))))) | |
631 | 645 | then throw("Pool is not in oracle") | |
632 | - | else if (isDefined(getInteger(this, ( | |
646 | + | else if (isDefined(getInteger(this, (aS + n)))) | |
633 | 647 | then throw("Pool already inited") | |
634 | - | else [IntegerEntry(( | |
648 | + | else [IntegerEntry((aS + n), 0), IntegerEntry((aS + s), 0), IntegerEntry((aS + u), 0), IntegerEntry((aS + w), height)]) | |
635 | 649 | ||
636 | 650 | ||
637 | 651 | ||
638 | - | @Callable( | |
639 | - | func updatePoolInterest ( | |
652 | + | @Callable(aF) | |
653 | + | func updatePoolInterest (aS) = valueOrElse(cY(), if ((aF.caller != ar)) | |
640 | 654 | then throw("Only Governance can call this function") | |
641 | 655 | else { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | [IntegerEntry(( | |
656 | + | let aX = toString(addressFromPublicKey(as)) | |
657 | + | let dV = bX(aS, aX) | |
658 | + | let by = dV._1 | |
659 | + | let bz = dV._2 | |
660 | + | let dW = dV._3 | |
661 | + | [IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height)] | |
648 | 662 | }) | |
649 | 663 | ||
650 | 664 | ||
651 | 665 | ||
652 | - | @Callable( | |
653 | - | func lockShareTokens ( | |
666 | + | @Callable(aF) | |
667 | + | func lockShareTokens (aS,cO) = valueOrElse(dc(aS), valueOrElse(cY(), de(aF, aF.caller, aS, cO))) | |
654 | 668 | ||
655 | 669 | ||
656 | 670 | ||
657 | - | @Callable( | |
658 | - | func lockShareTokensFromPool ( | |
671 | + | @Callable(aF) | |
672 | + | func lockShareTokensFromPool (dX,aS,cO) = valueOrElse(dc(aS), valueOrElse(cY(), valueOrElse(da(aF, aS), de(aF, Address(dX), aS, cO)))) | |
659 | 673 | ||
660 | 674 | ||
661 | 675 | ||
662 | - | @Callable( | |
663 | - | func lockStakedShareTokens ( | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | if (( | |
676 | + | @Callable(aF) | |
677 | + | func lockStakedShareTokens (aS,cO,dY) = valueOrElse(dc(aS), valueOrElse(cY(), { | |
678 | + | let dh = aY(aS) | |
679 | + | let aX = toString(aF.caller) | |
680 | + | let di = aU(aS) | |
681 | + | let ca = valueOrElse(getInteger(this, (aS + o)), di) | |
682 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
683 | + | let dk = valueOrElse(getInteger(this, (((aS + "_") + aX) + l)), 0) | |
684 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
685 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
686 | + | let dn = (dj + dl) | |
687 | + | let dZ = cT(cO) | |
688 | + | let dp = dZ._1 | |
689 | + | let dq = dZ._2 | |
690 | + | let dr = getIntegerValue(this, q) | |
691 | + | if ((aR(aS) > height)) | |
678 | 692 | then throw("You can't lock shareTokens till first harvest end.") | |
679 | - | else if ((0 >= | |
693 | + | else if ((0 >= cO)) | |
680 | 694 | then throw("lockType must be > 0") | |
681 | - | else if (( | |
682 | - | then throw(("You can't lock more than " + toString( | |
683 | - | else if (( | |
695 | + | else if ((dY > dj)) | |
696 | + | then throw(("You can't lock more than " + toString(dj))) | |
697 | + | else if ((aZ(dh) > di)) | |
684 | 698 | then throw("Balance of share-token is lower than totalAmount") | |
685 | - | else if (if (( | |
686 | - | then if (if ((1 > size( | |
699 | + | else if (if ((dk == 0)) | |
700 | + | then if (if ((1 > size(aF.payments))) | |
687 | 701 | then true | |
688 | - | else ( | |
702 | + | else (aF.payments[0].assetId != unit)) | |
689 | 703 | then true | |
690 | - | else ( | |
704 | + | else (dr > aF.payments[0].amount) | |
691 | 705 | else false) | |
692 | - | then throw((("You need to pay additional waves comission " + toString( | |
693 | - | else if (if (( | |
694 | - | then (0 >= | |
706 | + | then throw((("You need to pay additional waves comission " + toString(dr)) + "WAVES")) | |
707 | + | else if (if ((dk == 0)) | |
708 | + | then (0 >= dY) | |
695 | 709 | else false) | |
696 | 710 | then throw("lockAmount must be greater than 0") | |
697 | - | else if ((0 > | |
711 | + | else if ((0 > dY)) | |
698 | 712 | then throw("lockAmount must be positive") | |
699 | - | else if (( | |
713 | + | else if ((dk > (height + dp))) | |
700 | 714 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
701 | 715 | else { | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | [IntegerEntry(((( | |
716 | + | let dv = (dl + dY) | |
717 | + | let dI = (dj - dY) | |
718 | + | let dw = (height + dp) | |
719 | + | let du = (fraction(dv, dq, aa) + dI) | |
720 | + | let ea = bX(aS, aX) | |
721 | + | let by = ea._1 | |
722 | + | let bz = ea._2 | |
723 | + | let cI = ea._3 | |
724 | + | let dA = ea._4 | |
725 | + | let cm = ea._5 | |
726 | + | let dB = (bj(aS, aX) + cI) | |
727 | + | [IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + j), dv), IntegerEntry((((aS + "_") + aX) + l), dw), IntegerEntry((((aS + "_") + aX) + k), cO), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca - dm) + du)), IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
714 | 728 | } | |
715 | 729 | })) | |
716 | 730 | ||
717 | 731 | ||
718 | 732 | ||
719 | - | @Callable( | |
720 | - | func unlockUserLock ( | |
721 | - | let | |
722 | - | if (( | |
723 | - | then throw(("You can't unlock sharetokens till " + toString( | |
724 | - | else ( | |
733 | + | @Callable(aF) | |
734 | + | func unlockUserLock (aS,aX) = valueOrElse(cY(), { | |
735 | + | let dk = valueOrErrorMessage(getInteger(this, (((aS + "_") + aX) + l)), (((("There is no pool " + aS) + " or user ") + aX) + "with lock")) | |
736 | + | if ((dk > height)) | |
737 | + | then throw(("You can't unlock sharetokens till " + toString(dk))) | |
738 | + | else (dP(aF, aS, aX) ++ [ScriptTransfer(aF.caller, getIntegerValue(this, q), unit)]) | |
725 | 739 | }) | |
726 | 740 | ||
727 | 741 | ||
728 | 742 | ||
729 | - | @Callable( | |
730 | - | func unlockUserLockDeprecated ( | |
743 | + | @Callable(aF) | |
744 | + | func unlockUserLockDeprecated (aS,aX) = valueOrElse(cY(), valueOrElse(dd(aF), if (!(db(aS))) | |
731 | 745 | then throw("Pool must be deprecated") | |
732 | - | else if (isDefined(getInteger(this, ((( | |
733 | - | then ( | |
746 | + | else if (isDefined(getInteger(this, (((aS + "_") + aX) + l)))) | |
747 | + | then (dP(aF, aS, aX) ++ [ScriptTransfer(ao, getIntegerValue(this, q), unit)]) | |
734 | 748 | else nil)) | |
735 | 749 | ||
736 | 750 | ||
737 | 751 | ||
738 | - | @Callable( | |
739 | - | func withdrawShareTokens ( | |
752 | + | @Callable(aF) | |
753 | + | func withdrawShareTokens (aS,dE) = valueOrElse(cY(), dD(aF, aF.caller, aS, dE)) | |
740 | 754 | ||
741 | 755 | ||
742 | 756 | ||
743 | - | @Callable( | |
744 | - | func withdrawShareTokensFromPool ( | |
757 | + | @Callable(aF) | |
758 | + | func withdrawShareTokensFromPool (dX,aS,dE) = valueOrElse(cY(), valueOrElse(da(aF, aS), dD(aF, Address(dX), aS, dE))) | |
745 | 759 | ||
746 | 760 | ||
747 | 761 | ||
748 | - | @Callable( | |
749 | - | func claim ( | |
750 | - | let | |
751 | - | if (( | |
762 | + | @Callable(aF) | |
763 | + | func claim (aS) = valueOrElse(cY(), { | |
764 | + | let bN = dM(aF, aS, aF.caller) | |
765 | + | if ((bN._2 == 0)) | |
752 | 766 | then throw("You have 0 available SWOP") | |
753 | - | else | |
767 | + | else bN | |
754 | 768 | }) | |
755 | 769 | ||
756 | 770 | ||
757 | 771 | ||
758 | - | @Callable( | |
759 | - | func claimInternal ( | |
772 | + | @Callable(aF) | |
773 | + | func claimInternal (aS,df) = valueOrElse(cY(), valueOrElse(dd(aF), dM(aF, aS, Address(df)))) | |
760 | 774 | ||
761 | 775 | ||
762 | 776 | ||
763 | - | @Callable( | |
764 | - | func claimAndStake ( | |
765 | - | let | |
766 | - | let | |
767 | - | if ($isInstanceOf( | |
768 | - | then | |
769 | - | else throw(($getType( | |
777 | + | @Callable(aF) | |
778 | + | func claimAndStake (aS) = valueOrElse(cY(), { | |
779 | + | let cI = { | |
780 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
781 | + | if ($isInstanceOf(eb, "Int")) | |
782 | + | then eb | |
783 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
770 | 784 | } | |
771 | - | if (( | |
772 | - | then if (( | |
785 | + | if ((cI == cI)) | |
786 | + | then if ((cI == 0)) | |
773 | 787 | then throw("You have 0 available SWOP") | |
774 | 788 | else { | |
775 | - | let | |
776 | - | if (( | |
789 | + | let ec = invoke(ar, "lockSWOPFromFarming", nil, [AttachedPayment(aA, cI)]) | |
790 | + | if ((ec == ec)) | |
777 | 791 | then nil | |
778 | 792 | else throw("Strict value is not equal to itself.") | |
779 | 793 | } | |
782 | 796 | ||
783 | 797 | ||
784 | 798 | ||
785 | - | @Callable( | |
786 | - | func claimAll ( | |
787 | - | func | |
788 | - | let | |
789 | - | let | |
790 | - | if ($isInstanceOf( | |
791 | - | then | |
792 | - | else throw(($getType( | |
799 | + | @Callable(aF) | |
800 | + | func claimAll (cA) = valueOrElse(cY(), { | |
801 | + | func ed (ee,aS) = { | |
802 | + | let cI = { | |
803 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
804 | + | if ($isInstanceOf(eb, "Int")) | |
805 | + | then eb | |
806 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
793 | 807 | } | |
794 | - | if (( | |
795 | - | then ( | |
808 | + | if ((cI == cI)) | |
809 | + | then (ee + cI) | |
796 | 810 | else throw("Strict value is not equal to itself.") | |
797 | 811 | } | |
798 | 812 | ||
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | func | |
804 | - | then | |
805 | - | else | |
813 | + | let ee = { | |
814 | + | let aK = cA | |
815 | + | let aL = size(aK) | |
816 | + | let aM = 0 | |
817 | + | func aN (aO,aP) = if ((aP >= aL)) | |
818 | + | then aO | |
819 | + | else ed(aO, aK[aP]) | |
806 | 820 | ||
807 | - | func | |
808 | - | then | |
821 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
822 | + | then aO | |
809 | 823 | else throw("List size exceeds 60") | |
810 | 824 | ||
811 | - | aM | |
825 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
812 | 826 | } | |
813 | - | if (( | |
827 | + | if ((ee == 0)) | |
814 | 828 | then throw("You have 0 available SWOP") | |
815 | - | else [ScriptTransfer( | |
829 | + | else [ScriptTransfer(aF.caller, ee, aA)] | |
816 | 830 | }) | |
817 | 831 | ||
818 | 832 | ||
819 | 833 | ||
820 | - | @Callable( | |
821 | - | func claimAllAndStake ( | |
822 | - | func | |
823 | - | let | |
824 | - | let | |
825 | - | if ($isInstanceOf( | |
826 | - | then | |
827 | - | else throw(($getType( | |
834 | + | @Callable(aF) | |
835 | + | func claimAllAndStake (cA) = valueOrElse(cY(), { | |
836 | + | func ed (ee,aS) = { | |
837 | + | let cI = { | |
838 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
839 | + | if ($isInstanceOf(eb, "Int")) | |
840 | + | then eb | |
841 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
828 | 842 | } | |
829 | - | if (( | |
830 | - | then ( | |
843 | + | if ((cI == cI)) | |
844 | + | then (ee + cI) | |
831 | 845 | else throw("Strict value is not equal to itself.") | |
832 | 846 | } | |
833 | 847 | ||
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | func | |
839 | - | then | |
840 | - | else | |
848 | + | let ee = { | |
849 | + | let aK = cA | |
850 | + | let aL = size(aK) | |
851 | + | let aM = 0 | |
852 | + | func aN (aO,aP) = if ((aP >= aL)) | |
853 | + | then aO | |
854 | + | else ed(aO, aK[aP]) | |
841 | 855 | ||
842 | - | func | |
843 | - | then | |
856 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
857 | + | then aO | |
844 | 858 | else throw("List size exceeds 60") | |
845 | 859 | ||
846 | - | aM | |
860 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
847 | 861 | } | |
848 | - | if (( | |
862 | + | if ((ee == 0)) | |
849 | 863 | then throw("You have 0 available SWOP") | |
850 | 864 | else { | |
851 | - | let | |
852 | - | if (( | |
865 | + | let ec = invoke(ar, "lockSWOPFromFarming", nil, [AttachedPayment(aA, ee)]) | |
866 | + | if ((ec == ec)) | |
853 | 867 | then nil | |
854 | 868 | else throw("Strict value is not equal to itself.") | |
855 | 869 | } | |
857 | 871 | ||
858 | 872 | ||
859 | 873 | ||
860 | - | @Callable( | |
861 | - | func updateUserBoostInterest ( | |
874 | + | @Callable(aF) | |
875 | + | func updateUserBoostInterest (aS,aX) = valueOrElse(cY(), if ((aF.caller != aq)) | |
862 | 876 | then throw("Only voiting can call this function") | |
863 | 877 | else { | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | [IntegerEntry(((( | |
878 | + | let ef = bX(aS, aX) | |
879 | + | let by = ef._1 | |
880 | + | let bz = ef._2 | |
881 | + | let cI = ef._3 | |
882 | + | let dA = ef._4 | |
883 | + | let cm = ef._5 | |
884 | + | let dB = (bj(aS, aX) + cI) | |
885 | + | [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
872 | 886 | }) | |
873 | 887 | ||
874 | 888 | ||
875 | 889 | ||
876 | - | @Callable( | |
877 | - | func shutdown () = valueOrElse( | |
890 | + | @Callable(aF) | |
891 | + | func shutdown () = valueOrElse(cZ(aF), if (!(ay)) | |
878 | 892 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, d), "the cause wasn't specified"))) | |
879 | - | else | |
893 | + | else cW("Paused by admin")) | |
880 | 894 | ||
881 | 895 | ||
882 | 896 | ||
883 | - | @Callable( | |
884 | - | func activate () = valueOrElse( | |
897 | + | @Callable(aF) | |
898 | + | func activate () = valueOrElse(cZ(aF), if (ay) | |
885 | 899 | then throw("DApp is already active") | |
886 | 900 | else [BooleanEntry(a, true), DeleteEntry(d)]) | |
887 | 901 | ||
888 | 902 | ||
889 | - | @Verifier( | |
890 | - | func | |
891 | - | let | |
892 | - | let | |
903 | + | @Verifier(eg) | |
904 | + | func eh () = { | |
905 | + | let ai = eg | |
906 | + | let ei = if (sigVerify(eg.bodyBytes, eg.proofs[0], al)) | |
893 | 907 | then 1 | |
894 | 908 | else 0 | |
895 | - | let | |
909 | + | let ej = if (sigVerify(eg.bodyBytes, eg.proofs[1], am)) | |
896 | 910 | then 1 | |
897 | 911 | else 0 | |
898 | - | let | |
912 | + | let ek = if (sigVerify(eg.bodyBytes, eg.proofs[2], an)) | |
899 | 913 | then 1 | |
900 | 914 | else 0 | |
901 | - | ((( | |
915 | + | (((ei + ej) + ek) >= 2) | |
902 | 916 | } | |
903 | 917 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "deprecated_" | |
9 | 9 | ||
10 | 10 | let d = "shutdown_cause" | |
11 | 11 | ||
12 | 12 | let e = "_current_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let f = "_previous_pool_fraction_reward" | |
15 | 15 | ||
16 | 16 | let g = "_pool_reward_update_height" | |
17 | 17 | ||
18 | 18 | let h = "reward_update_height" | |
19 | 19 | ||
20 | 20 | let i = "_share_tokens_locked" | |
21 | 21 | ||
22 | 22 | let j = "_share_tokens_blocked" | |
23 | 23 | ||
24 | 24 | let k = "_share_tokens_blocked_type" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_blocked_height" | |
27 | 27 | ||
28 | 28 | let m = "_share_tokens_virtual" | |
29 | 29 | ||
30 | 30 | let n = "_total_share_tokens_locked" | |
31 | 31 | ||
32 | 32 | let o = "_total_share_tokens_virtual" | |
33 | 33 | ||
34 | 34 | let p = "_lock_params" | |
35 | 35 | ||
36 | 36 | let q = "lock_waves_fee" | |
37 | 37 | ||
38 | 38 | let r = "_boost_coef" | |
39 | 39 | ||
40 | 40 | let s = "_last_interest" | |
41 | 41 | ||
42 | 42 | let t = "_last_interest" | |
43 | 43 | ||
44 | 44 | let u = "_last_interest_b" | |
45 | 45 | ||
46 | 46 | let v = "_last_interest_u_b" | |
47 | 47 | ||
48 | 48 | let w = "_last_interest_height" | |
49 | 49 | ||
50 | 50 | let x = "SWOP_id" | |
51 | 51 | ||
52 | 52 | let y = "_available_SWOP" | |
53 | 53 | ||
54 | 54 | let z = "_harvest_pool_vote_gSWOP" | |
55 | 55 | ||
56 | 56 | let A = "_pool_vote_gSWOP" | |
57 | 57 | ||
58 | 58 | let B = "_user_vote_gSWOP" | |
59 | 59 | ||
60 | 60 | let C = "_pool_struc" | |
61 | 61 | ||
62 | 62 | let D = "_user_pool_struc" | |
63 | 63 | ||
64 | 64 | let E = "_harvest_user_pool_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let F = "first_harvest_height" | |
67 | 67 | ||
68 | 68 | let G = "share_limit_on_first_harvest" | |
69 | 69 | ||
70 | 70 | let H = "_strat_b_farm_interest" | |
71 | 71 | ||
72 | 72 | let I = "pool_" | |
73 | 73 | ||
74 | 74 | let J = "cpmm_contract" | |
75 | 75 | ||
76 | 76 | let K = "admin_pub_1" | |
77 | 77 | ||
78 | 78 | let L = "admin_pub_2" | |
79 | 79 | ||
80 | 80 | let M = "admin_pub_3" | |
81 | 81 | ||
82 | 82 | let N = "admin_invoke_pub" | |
83 | 83 | ||
84 | 84 | let O = "money_box_address" | |
85 | 85 | ||
86 | 86 | let P = "team_box_address" | |
87 | 87 | ||
88 | 88 | let Q = "voting_address" | |
89 | 89 | ||
90 | 90 | let R = "governance_address" | |
91 | 91 | ||
92 | 92 | let S = "lp_farming" | |
93 | 93 | ||
94 | 94 | let T = "farming_treasure" | |
95 | 95 | ||
96 | - | let U = | |
96 | + | let U = "axly_farming" | |
97 | 97 | ||
98 | - | let V = | |
98 | + | let V = "axly_lp_id" | |
99 | 99 | ||
100 | - | let W = | |
100 | + | let W = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
101 | 101 | ||
102 | - | let X = | |
102 | + | let X = 10000000000 | |
103 | 103 | ||
104 | - | let Y = | |
104 | + | let Y = 100000000 | |
105 | 105 | ||
106 | - | let Z = | |
106 | + | let Z = 1000000 | |
107 | 107 | ||
108 | - | let aa = | |
108 | + | let aa = 1000 | |
109 | 109 | ||
110 | - | let ab = | |
110 | + | let ab = 500 | |
111 | 111 | ||
112 | - | let ac = | |
112 | + | let ac = 2976848 | |
113 | 113 | ||
114 | - | let ad = | |
114 | + | let ad = 100000000000000 | |
115 | 115 | ||
116 | - | func ae (af) = { | |
117 | - | let ag = getString(U, af) | |
118 | - | if ($isInstanceOf(ag, "String")) | |
116 | + | let ae = 526330 | |
117 | + | ||
118 | + | let af = 25 | |
119 | + | ||
120 | + | func ag (ah) = { | |
121 | + | let ai = getString(W, ah) | |
122 | + | if ($isInstanceOf(ai, "String")) | |
119 | 123 | then { | |
120 | - | let | |
121 | - | fromBase58String( | |
124 | + | let aj = ai | |
125 | + | fromBase58String(aj) | |
122 | 126 | } | |
123 | 127 | else { | |
124 | - | let | |
125 | - | throw(( | |
128 | + | let ak = ai | |
129 | + | throw((ah + "is empty")) | |
126 | 130 | } | |
127 | 131 | } | |
128 | 132 | ||
129 | 133 | ||
130 | - | let | |
134 | + | let al = ag(K) | |
131 | 135 | ||
132 | - | let | |
136 | + | let am = ag(L) | |
133 | 137 | ||
134 | - | let | |
138 | + | let an = ag(M) | |
135 | 139 | ||
136 | - | let | |
140 | + | let ao = Address(ag(O)) | |
137 | 141 | ||
138 | - | let | |
142 | + | let ap = Address(ag(P)) | |
139 | 143 | ||
140 | - | let | |
144 | + | let aq = Address(ag(Q)) | |
141 | 145 | ||
142 | - | let | |
146 | + | let ar = Address(ag(R)) | |
143 | 147 | ||
144 | - | let | |
148 | + | let as = ag(N) | |
145 | 149 | ||
146 | - | let | |
150 | + | let at = Address(ag(S)) | |
147 | 151 | ||
148 | - | let | |
152 | + | let au = Address(ag(T)) | |
149 | 153 | ||
150 | - | let | |
154 | + | let av = Address(ag(J)) | |
151 | 155 | ||
152 | - | let | |
156 | + | let aw = Address(ag(U)) | |
153 | 157 | ||
154 | - | let | |
158 | + | let ax = ag(V) | |
155 | 159 | ||
156 | - | let | |
160 | + | let ay = getBooleanValue(this, a) | |
157 | 161 | ||
158 | - | func ax () = { | |
159 | - | let ay = ((height - aa) / ac) | |
160 | - | func az (aA,aB) = { | |
161 | - | let aC = aA | |
162 | - | let aD = aC._1 | |
163 | - | let aE = aC._2 | |
164 | - | if ((ay > aB)) | |
165 | - | then $Tuple2(fraction(aD, 75, 100), aD) | |
166 | - | else $Tuple2(aD, aE) | |
162 | + | let az = valueOrElse(getBoolean(W, b), true) | |
163 | + | ||
164 | + | let aA = fromBase58String(getStringValue(this, x)) | |
165 | + | ||
166 | + | func aB () = { | |
167 | + | let aC = ((height - ac) / ae) | |
168 | + | func aD (aE,aF) = { | |
169 | + | let aG = aE | |
170 | + | let aH = aG._1 | |
171 | + | let aI = aG._2 | |
172 | + | if ((aC > aF)) | |
173 | + | then $Tuple2(fraction(aH, 75, 100), aH) | |
174 | + | else $Tuple2(aH, aI) | |
167 | 175 | } | |
168 | 176 | ||
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | func | |
174 | - | then | |
175 | - | else | |
177 | + | let aJ = { | |
178 | + | let aK = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
179 | + | let aL = size(aK) | |
180 | + | let aM = $Tuple2(ad, ad) | |
181 | + | func aN (aO,aP) = if ((aP >= aL)) | |
182 | + | then aO | |
183 | + | else aD(aO, aK[aP]) | |
176 | 184 | ||
177 | - | func | |
178 | - | then | |
185 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
186 | + | then aO | |
179 | 187 | else throw("List size exceeds 20") | |
180 | 188 | ||
181 | - | aM | |
189 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
182 | 190 | } | |
183 | - | let | |
184 | - | let | |
185 | - | $Tuple3(( | |
191 | + | let aH = aJ._1 | |
192 | + | let aI = aJ._2 | |
193 | + | $Tuple3((aH / ae), (aI / ae), (ac + (ae * aC))) | |
186 | 194 | } | |
187 | 195 | ||
188 | 196 | ||
189 | - | func | |
197 | + | func aR (aS) = valueOrElse(getInteger(Address(fromBase58String(aS)), F), 0) | |
190 | 198 | ||
191 | 199 | ||
192 | - | func | |
200 | + | func aT (aS) = valueOrErrorMessage(getInteger(aS, G), ("No data on the key: " + G)) | |
193 | 201 | ||
194 | 202 | ||
195 | - | func | |
203 | + | func aU (aS) = valueOrErrorMessage(getInteger(this, (aS + n)), (("No data on the key: " + aS) + n)) | |
196 | 204 | ||
197 | 205 | ||
198 | - | func | |
206 | + | func aV (aS) = valueOrElse(getInteger(aq, (aS + A)), valueOrElse(parseInt(split(valueOrElse(getString(aq, (aS + C)), ""), "_")[0]), 0)) | |
199 | 207 | ||
200 | 208 | ||
201 | - | func | |
209 | + | func aW (aS,aX) = valueOrElse(getInteger(aq, (((aX + "_") + aS) + B)), valueOrElse(parseInt(split(valueOrElse(getString(aq, (((aX + "_") + aS) + D)), ""), "_")[0]), 0)) | |
202 | 210 | ||
203 | 211 | ||
204 | - | func | |
212 | + | func aY (aS) = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
205 | 213 | ||
206 | 214 | ||
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
215 | + | func aZ (ba) = { | |
216 | + | let ai = ba | |
217 | + | if ($isInstanceOf(ai, "ByteVector")) | |
210 | 218 | then { | |
211 | - | let | |
212 | - | assetBalance(this, | |
219 | + | let bb = ai | |
220 | + | assetBalance(this, bb) | |
213 | 221 | } | |
214 | - | else if ($isInstanceOf( | |
222 | + | else if ($isInstanceOf(ai, "Unit")) | |
215 | 223 | then { | |
216 | - | let | |
224 | + | let bc = ai | |
217 | 225 | wavesBalance(this).available | |
218 | 226 | } | |
219 | 227 | else throw("Match error") | |
220 | 228 | } | |
221 | 229 | ||
222 | 230 | ||
223 | - | func | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | pow(10, 0, | |
231 | + | func bd (be,bf) = { | |
232 | + | let bg = value(assetInfo(be)).decimals | |
233 | + | let bh = value(assetInfo(bf)).decimals | |
234 | + | let bi = ((bh - bg) + 8) | |
235 | + | pow(10, 0, bi, 0, 0, DOWN) | |
228 | 236 | } | |
229 | 237 | ||
230 | 238 | ||
231 | - | func | |
239 | + | func bj (aS,aX) = valueOrElse(getInteger(this, (((aS + "_") + aX) + y)), 0) | |
232 | 240 | ||
233 | 241 | ||
234 | - | func | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | if (if (( | |
242 | + | func bk (aS) = { | |
243 | + | let bl = aB() | |
244 | + | let bm = bl._1 | |
245 | + | let bn = bl._2 | |
246 | + | let bo = bl._3 | |
247 | + | let bp = valueOrErrorMessage(getInteger(ar, (aS + e)), (((("No data on the key: " + aS) + e) + " at address ") + toString(ar))) | |
248 | + | let bq = valueOrErrorMessage(getInteger(ar, h), ((("No data on the key: " + h) + " at address ") + toString(ar))) | |
249 | + | let br = valueOrElse(getInteger(ar, (aS + g)), bq) | |
250 | + | let bs = valueOrErrorMessage(getInteger(ar, (aS + f)), (((("No data on the key: " + aS) + f) + " at address ") + toString(ar))) | |
251 | + | let bt = fraction(bm, bp, X) | |
252 | + | let bu = fraction(bm, bs, X) | |
253 | + | let bv = fraction(bn, bp, X) | |
254 | + | let bw = fraction(bn, bs, X) | |
255 | + | if (if ((bt > bm)) | |
248 | 256 | then true | |
249 | - | else ( | |
257 | + | else (bu > bn)) | |
250 | 258 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
251 | - | else $Tuple7( | |
259 | + | else $Tuple7(bt, bq, bu, br, bo, bv, bw) | |
252 | 260 | } | |
253 | 261 | ||
254 | 262 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | $Tuple3( | |
263 | + | func bx (aS) = { | |
264 | + | let by = valueOrErrorMessage(getInteger(this, (aS + s)), (("No data on the key: " + aS) + s)) | |
265 | + | let bz = valueOrElse(getInteger(this, (aS + u)), 0) | |
266 | + | let bA = valueOrElse(getInteger(this, (aS + w)), height) | |
267 | + | $Tuple3(bA, by, bz) | |
260 | 268 | } | |
261 | 269 | ||
262 | 270 | ||
263 | - | func | |
264 | - | let | |
265 | - | fraction( | |
271 | + | func bB (aS,bC) = { | |
272 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
273 | + | fraction(bC, aa, (bD + aa)) | |
266 | 274 | } | |
267 | 275 | ||
268 | 276 | ||
269 | - | func | |
270 | - | let | |
271 | - | fraction( | |
277 | + | func bE (aS,bC) = { | |
278 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
279 | + | fraction(bC, bD, (bD + aa)) | |
272 | 280 | } | |
273 | 281 | ||
274 | 282 | ||
275 | - | func | |
276 | - | let | |
277 | - | then ( | |
283 | + | func bF (aS,bA,bq,br,by,bz,bG,bH,bI,bJ,bK,bL) = { | |
284 | + | let bM = if (if (if ((bq > bL)) | |
285 | + | then (bq == br) | |
278 | 286 | else false) | |
279 | 287 | then true | |
280 | - | else if (( | |
281 | - | then ( | |
288 | + | else if ((bL > bq)) | |
289 | + | then (bq != br) | |
282 | 290 | else false) | |
283 | 291 | then { | |
284 | - | let | |
285 | - | $Tuple3( | |
292 | + | let bN = (bJ * (bL - bA)) | |
293 | + | $Tuple3(bN, by, bz) | |
286 | 294 | } | |
287 | - | else if (if (if (( | |
288 | - | then ( | |
295 | + | else if (if (if ((bL > bq)) | |
296 | + | then (bq == br) | |
289 | 297 | else false) | |
290 | - | then ( | |
298 | + | then (bA > bq) | |
291 | 299 | else false) | |
292 | 300 | then { | |
293 | - | let | |
294 | - | $Tuple3( | |
301 | + | let bN = (bH * (bL - bA)) | |
302 | + | $Tuple3(bN, by, bz) | |
295 | 303 | } | |
296 | 304 | else { | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then fraction( | |
305 | + | let bO = (bJ * (bq - bA)) | |
306 | + | let bP = (by + fraction(bB(aS, bO), bK, bI)) | |
307 | + | let bQ = (bz + (if ((bG > 0)) | |
308 | + | then fraction(bE(aS, bO), Y, bG) | |
301 | 309 | else 0)) | |
302 | - | let | |
303 | - | $Tuple3( | |
310 | + | let bR = (bH * (bL - bq)) | |
311 | + | $Tuple3(bR, bP, bQ) | |
304 | 312 | } | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | then fraction( | |
313 | + | let bS = bM._1 | |
314 | + | let bT = bM._2 | |
315 | + | let bU = bM._3 | |
316 | + | let bV = (bT + fraction(bB(aS, bS), bK, bI)) | |
317 | + | let bW = (bU + (if ((bG > 0)) | |
318 | + | then fraction(bE(aS, bS), Y, bG) | |
311 | 319 | else 0)) | |
312 | - | $Tuple2( | |
320 | + | $Tuple2(bV, bW) | |
313 | 321 | } | |
314 | 322 | ||
315 | 323 | ||
316 | - | func | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | then ( | |
324 | + | func bX (aS,aX) = { | |
325 | + | let bK = bd(aA, aY(aS)) | |
326 | + | let bG = aV(aS) | |
327 | + | let bY = aW(aS, aX) | |
328 | + | let bZ = aU(aS) | |
329 | + | let ca = valueOrElse(getInteger(this, (aS + o)), bZ) | |
330 | + | let cb = valueOrElse(getInteger(this, (aS + H)), 0) | |
331 | + | let cc = bx(aS) | |
332 | + | let bA = cc._1 | |
333 | + | let by = cc._2 | |
334 | + | let bz = cc._3 | |
335 | + | let cd = bk(aS) | |
336 | + | let bH = cd._1 | |
337 | + | let bq = cd._2 | |
338 | + | let bJ = cd._3 | |
339 | + | let br = cd._4 | |
340 | + | let ce = cd._5 | |
341 | + | let cf = cd._6 | |
342 | + | let cg = cd._7 | |
343 | + | let ch = valueOrElse(getInteger(this, (((aS + "_") + aX) + t)), by) | |
344 | + | let ci = valueOrElse(getInteger(this, (((aS + "_") + aX) + v)), if (if ((cb > ch)) | |
345 | + | then (bY > 0) | |
338 | 346 | else false) | |
339 | 347 | then 0 | |
340 | - | else | |
341 | - | let | |
342 | - | let | |
343 | - | if (( | |
348 | + | else bz) | |
349 | + | let cj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
350 | + | let ck = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), cj) | |
351 | + | if ((ca == 0)) | |
344 | 352 | then { | |
345 | - | let | |
346 | - | then (( | |
347 | - | else ( | |
348 | - | let | |
349 | - | $Tuple5( | |
353 | + | let cl = if ((ce > bA)) | |
354 | + | then ((cf * (ce - bA)) + (bH * (height - ce))) | |
355 | + | else (bH * (height - bA)) | |
356 | + | let cm = fraction(cl, af, 100) | |
357 | + | $Tuple5(by, bz, 0, (cl - cm), cm) | |
350 | 358 | } | |
351 | 359 | else { | |
352 | - | let | |
360 | + | let cn = if ((ce > bA)) | |
353 | 361 | then { | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple3( | |
362 | + | let co = bF(aS, bA, bq, br, by, bz, bG, cf, ca, cg, bK, ce) | |
363 | + | let cp = co._1 | |
364 | + | let cq = co._2 | |
365 | + | $Tuple3(cp, cq, ce) | |
358 | 366 | } | |
359 | - | else $Tuple3( | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ((0 > | |
367 | + | else $Tuple3(by, bz, bA) | |
368 | + | let cr = cn._1 | |
369 | + | let cs = cn._2 | |
370 | + | let ct = cn._3 | |
371 | + | let cu = bF(aS, ct, bq, br, cr, cs, bG, bH, ca, bJ, bK, height) | |
372 | + | let bV = cu._1 | |
373 | + | let bW = cu._2 | |
374 | + | let cv = fraction(ck, (bV - ch), bK) | |
375 | + | let bD = valueOrElse(getInteger(this, (aS + r)), ab) | |
376 | + | let cw = fraction(fraction(ck, (bV - max([ch, cb])), bK), bD, aa) | |
377 | + | let cx = fraction((bW - ci), bY, Y) | |
378 | + | let cy = min([cw, cx]) | |
379 | + | let cl = (cw - cy) | |
380 | + | let cm = fraction(cl, af, 100) | |
381 | + | if ((0 > cl)) | |
374 | 382 | then throw("toTreasury < 0") | |
375 | - | else $Tuple5( | |
383 | + | else $Tuple5(bV, bW, (cv + cy), (cl - cm), cm) | |
376 | 384 | } | |
377 | 385 | } | |
378 | 386 | ||
379 | 387 | ||
380 | - | func | |
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | $Tuple2(( | |
388 | + | func cz (cA,aX) = { | |
389 | + | func cB (aE,aS) = { | |
390 | + | let cC = aE | |
391 | + | let cD = cC._1 | |
392 | + | let cE = cC._2 | |
393 | + | let cF = bX(aS, aX) | |
394 | + | let cG = cF._1 | |
395 | + | let cH = cF._2 | |
396 | + | let cI = cF._3 | |
397 | + | let cJ = cF._4 | |
398 | + | let cK = (bj(aS, aX) + cI) | |
399 | + | $Tuple2((cD :+ aS), (cE :+ cK)) | |
392 | 400 | } | |
393 | 401 | ||
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | func | |
398 | - | then | |
399 | - | else | |
402 | + | let aK = cA | |
403 | + | let aL = size(aK) | |
404 | + | let aM = $Tuple2(nil, nil) | |
405 | + | func aN (aO,aP) = if ((aP >= aL)) | |
406 | + | then aO | |
407 | + | else cB(aO, aK[aP]) | |
400 | 408 | ||
401 | - | func | |
402 | - | then | |
409 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
410 | + | then aO | |
403 | 411 | else throw("List size exceeds 60") | |
404 | 412 | ||
405 | - | aM | |
413 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
406 | 414 | } | |
407 | 415 | ||
408 | 416 | ||
409 | - | func | |
417 | + | func cL (aS,aX,cM,cN,cO) = if ((aR(aS) > height)) | |
410 | 418 | then { | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | if (( | |
419 | + | let cP = valueOrElse(getInteger(aq, (aS + z)), 0) | |
420 | + | let cQ = valueOrElse(getInteger(aq, (((aX + "_") + aS) + E)), 0) | |
421 | + | let cR = aT(addressFromStringValue(aS)) | |
422 | + | let cS = (fraction(cR, cQ, cP) - cM) | |
423 | + | if ((cO > 0)) | |
416 | 424 | then throw("You can't lock shareTokens till first harvest end.") | |
417 | - | else if (( | |
425 | + | else if ((cQ == 0)) | |
418 | 426 | then throw("You can't lock shareTokens. You didn't vote for pool in first week.") | |
419 | - | else if (( | |
420 | - | then ( | |
427 | + | else if ((cN >= cS)) | |
428 | + | then (cN - cS) | |
421 | 429 | else 0 | |
422 | 430 | } | |
423 | 431 | else 0 | |
424 | 432 | ||
425 | 433 | ||
426 | - | func | |
427 | - | let | |
428 | - | $Tuple2(parseIntValue( | |
434 | + | func cT (cU) = { | |
435 | + | let cV = split(valueOrErrorMessage(getString(this, (toString(cU) + p)), ("There are no key for lock type" + toString(cU))), "_") | |
436 | + | $Tuple2(parseIntValue(cV[0]), parseIntValue(cV[1])) | |
429 | 437 | } | |
430 | 438 | ||
431 | 439 | ||
432 | - | func | |
440 | + | func cW (cX) = [BooleanEntry(a, false), StringEntry(d, cX)] | |
433 | 441 | ||
434 | 442 | ||
435 | - | func | |
436 | - | then | |
443 | + | func cY () = if (if (ay) | |
444 | + | then az | |
437 | 445 | else false) | |
438 | 446 | then unit | |
439 | 447 | else throw("DApp is inactive at this moment") | |
440 | 448 | ||
441 | 449 | ||
442 | - | func | |
450 | + | func cZ (aF) = if (containsElement([al, am, an], aF.callerPublicKey)) | |
443 | 451 | then unit | |
444 | 452 | else throw("Only admin can call this function") | |
445 | 453 | ||
446 | 454 | ||
447 | - | func | |
455 | + | func da (aF,aS) = if (if ((toString(aF.caller) == aS)) | |
448 | 456 | then true | |
449 | - | else ( | |
457 | + | else (aF.caller == av)) | |
450 | 458 | then unit | |
451 | 459 | else throw("Only pool can call this function") | |
452 | 460 | ||
453 | 461 | ||
454 | - | func | |
462 | + | func db (aS) = valueOrElse(getBoolean(W, (c + aS)), false) | |
455 | 463 | ||
456 | 464 | ||
457 | - | func | |
465 | + | func dc (aS) = if (!(db(aS))) | |
458 | 466 | then unit | |
459 | 467 | else throw("Pool is deprecated. Only unlock action allowed.") | |
460 | 468 | ||
461 | 469 | ||
462 | - | func | |
470 | + | func dd (aF) = if ((aF.caller == this)) | |
463 | 471 | then unit | |
464 | 472 | else throw("Only contract itself can call this function") | |
465 | 473 | ||
466 | 474 | ||
467 | - | func da (aB,db,aO,cK) = { | |
468 | - | let dc = aU(aO) | |
469 | - | let aT = toString(db) | |
470 | - | let dd = aQ(aO) | |
471 | - | let bW = valueOrElse(getInteger(this, (aO + o)), dd) | |
472 | - | let de = valueOrElse(getInteger(this, (((aO + "_") + aT) + i)), 0) | |
473 | - | let df = valueOrElse(getInteger(this, (((aO + "_") + aT) + l)), 0) | |
474 | - | let dg = valueOrElse(getInteger(this, (((aO + "_") + aT) + j)), 0) | |
475 | - | let dh = valueOrElse(getInteger(this, (((aO + "_") + aT) + m)), de) | |
476 | - | let di = ((de + dg) + aB.payments[0].amount) | |
477 | - | let dj = cP(cK) | |
478 | - | let dk = dj._1 | |
479 | - | let dl = dj._2 | |
480 | - | let dm = getIntegerValue(this, q) | |
481 | - | if ((aB.payments[0].assetId != dc)) | |
475 | + | func de (aF,df,aS,cO) = { | |
476 | + | let dg = if ((aF.payments[0].assetId == ax)) | |
477 | + | then invoke(aw, "lpAction", nil, nil) | |
478 | + | else nil | |
479 | + | let dh = aY(aS) | |
480 | + | let aX = toString(df) | |
481 | + | let di = aU(aS) | |
482 | + | let ca = valueOrElse(getInteger(this, (aS + o)), di) | |
483 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
484 | + | let dk = valueOrElse(getInteger(this, (((aS + "_") + aX) + l)), 0) | |
485 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
486 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
487 | + | let dn = ((dj + dl) + aF.payments[0].amount) | |
488 | + | let do = cT(cO) | |
489 | + | let dp = do._1 | |
490 | + | let dq = do._2 | |
491 | + | let dr = getIntegerValue(this, q) | |
492 | + | if ((aF.payments[0].assetId != dh)) | |
482 | 493 | then throw("Wrong sharetoken in payment") | |
483 | - | else if ((0 >= | |
494 | + | else if ((0 >= aF.payments[0].amount)) | |
484 | 495 | then throw("Payment amount must be greater than 0") | |
485 | - | else if ((0 > | |
496 | + | else if ((0 > cO)) | |
486 | 497 | then throw("lockType must be >= 0") | |
487 | 498 | else { | |
488 | - | let | |
489 | - | if (( | |
499 | + | let ds = cL(aS, aX, dj, aF.payments[0].amount, cO) | |
500 | + | if ((ds == ds)) | |
490 | 501 | then { | |
491 | - | let | |
502 | + | let dt = if ((cO == 0)) | |
492 | 503 | then { | |
493 | - | let | |
494 | - | $Tuple2([IntegerEntry(((( | |
504 | + | let du = ((dm + aF.payments[0].amount) - ds) | |
505 | + | $Tuple2([IntegerEntry((((aS + "_") + aX) + i), ((dj + aF.payments[0].amount) - ds)), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca + aF.payments[0].amount) - ds)), ScriptTransfer(df, ds, aF.payments[0].assetId)], ((di + aF.payments[0].amount) - ds)) | |
495 | 506 | } | |
496 | - | else if (if (( | |
497 | - | then if (if ((2 > size( | |
507 | + | else if (if ((dk == 0)) | |
508 | + | then if (if ((2 > size(aF.payments))) | |
498 | 509 | then true | |
499 | - | else ( | |
510 | + | else (aF.payments[1].assetId != unit)) | |
500 | 511 | then true | |
501 | - | else ( | |
512 | + | else (dr > aF.payments[1].amount) | |
502 | 513 | else false) | |
503 | - | then throw((("You need to pay additional waves comission " + toString( | |
504 | - | else if (( | |
514 | + | then throw((("You need to pay additional waves comission " + toString(dr)) + "WAVES")) | |
515 | + | else if ((dk > (height + dp))) | |
505 | 516 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
506 | 517 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2([IntegerEntry(((( | |
518 | + | let dv = (dl + aF.payments[0].amount) | |
519 | + | let dw = (height + dp) | |
520 | + | let du = (fraction(dv, dq, aa) + dj) | |
521 | + | $Tuple2([IntegerEntry((((aS + "_") + aX) + j), dv), IntegerEntry((((aS + "_") + aX) + l), dw), IntegerEntry((((aS + "_") + aX) + k), cO), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca - dm) + du))], (di + aF.payments[0].amount)) | |
511 | 522 | } | |
512 | - | let | |
513 | - | let | |
514 | - | if (( | |
523 | + | let dx = dt._1 | |
524 | + | let dy = dt._2 | |
525 | + | if ((dy > aZ(dh))) | |
515 | 526 | then throw("Balance of share-token is lower than totalAmount") | |
516 | 527 | else { | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | then invoke( | |
528 | + | let dz = bX(aS, aX) | |
529 | + | let by = dz._1 | |
530 | + | let bz = dz._2 | |
531 | + | let cI = dz._3 | |
532 | + | let dA = dz._4 | |
533 | + | let cm = dz._5 | |
534 | + | let dB = (bj(aS, aX) + cI) | |
535 | + | let dC = if ((getString(Address(fromBase58String(aS)), "version") == "3.0.0")) | |
536 | + | then invoke(at, "updateUserInterest", [aX, aS, dn], nil) | |
526 | 537 | else 0 | |
527 | - | if (( | |
528 | - | then ([IntegerEntry(((( | |
538 | + | if ((dC == dC)) | |
539 | + | then ([IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((aS + n), dy), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] ++ dx) | |
529 | 540 | else throw("Strict value is not equal to itself.") | |
530 | 541 | } | |
531 | 542 | } | |
532 | 543 | else throw("Strict value is not equal to itself.") | |
533 | 544 | } | |
534 | 545 | } | |
535 | 546 | ||
536 | 547 | ||
537 | - | func | |
538 | - | let | |
539 | - | then invoke(this, "unlockUserLockDeprecated", [ | |
548 | + | func dD (aF,df,aS,dE) = { | |
549 | + | let dg = if (db(aS)) | |
550 | + | then invoke(this, "unlockUserLockDeprecated", [aS, toString(df)], nil) | |
540 | 551 | else 0 | |
541 | - | if (( | |
552 | + | if ((dg == dg)) | |
542 | 553 | then { | |
543 | - | let dB = fromBase58String(getStringValue(value(addressFromString(aO)), "share_asset_id")) | |
544 | - | let aT = toString(db) | |
545 | - | let dC = bT(aO, aT) | |
546 | - | let bu = dC._1 | |
547 | - | let bv = dC._2 | |
548 | - | let cE = dC._3 | |
549 | - | let dv = dC._4 | |
550 | - | let ci = dC._5 | |
551 | - | let de = valueOrElse(getInteger(this, (((aO + "_") + aT) + i)), 0) | |
552 | - | let dg = valueOrElse(getInteger(this, (((aO + "_") + aT) + j)), 0) | |
553 | - | let dh = valueOrElse(getInteger(this, (((aO + "_") + aT) + m)), de) | |
554 | - | let dD = (de - dz) | |
555 | - | let dw = (bf(aO, aT) + cE) | |
556 | - | let dE = aQ(aO) | |
557 | - | let bW = valueOrElse(getInteger(this, (aO + o)), dE) | |
558 | - | let dF = (dE - dz) | |
559 | - | let dG = (bW - dz) | |
560 | - | let dp = (dh - dz) | |
561 | - | if ((dz > de)) | |
554 | + | let dF = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
555 | + | let dG = if ((dF == ax)) | |
556 | + | then invoke(aw, "lpAction", nil, nil) | |
557 | + | else nil | |
558 | + | let aX = toString(df) | |
559 | + | let dH = bX(aS, aX) | |
560 | + | let by = dH._1 | |
561 | + | let bz = dH._2 | |
562 | + | let cI = dH._3 | |
563 | + | let dA = dH._4 | |
564 | + | let cm = dH._5 | |
565 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
566 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
567 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
568 | + | let dI = (dj - dE) | |
569 | + | let dB = (bj(aS, aX) + cI) | |
570 | + | let dJ = aU(aS) | |
571 | + | let ca = valueOrElse(getInteger(this, (aS + o)), dJ) | |
572 | + | let dK = (dJ - dE) | |
573 | + | let dL = (ca - dE) | |
574 | + | let du = (dm - dE) | |
575 | + | if ((dE > dj)) | |
562 | 576 | then throw("Withdraw amount more then user locked amount") | |
563 | - | else if (( | |
577 | + | else if ((aZ(dF) > dJ)) | |
564 | 578 | then throw("Balance of share-token is lower than totalAmount") | |
565 | 579 | else { | |
566 | - | let | |
567 | - | then invoke( | |
580 | + | let dC = if ((getString(Address(fromBase58String(aS)), "version") == "3.0.0")) | |
581 | + | then invoke(at, "updateUserInterest", [aX, aS, (dj + dl)], nil) | |
568 | 582 | else 0 | |
569 | - | if (( | |
570 | - | then [IntegerEntry(((( | |
583 | + | if ((dC == dC)) | |
584 | + | then [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + n), dK), IntegerEntry((aS + o), dL), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, dA, true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA), ScriptTransfer(aF.caller, dE, dF)] | |
571 | 585 | else throw("Strict value is not equal to itself.") | |
572 | 586 | } | |
573 | 587 | } | |
574 | 588 | else throw("Strict value is not equal to itself.") | |
575 | 589 | } | |
576 | 590 | ||
577 | 591 | ||
578 | - | func | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | if (( | |
592 | + | func dM (aF,aS,df) = { | |
593 | + | let dF = fromBase58String(getStringValue(value(addressFromString(aS)), "share_asset_id")) | |
594 | + | let aX = toString(df) | |
595 | + | let bI = aU(aS) | |
596 | + | let dN = bX(aS, aX) | |
597 | + | let by = dN._1 | |
598 | + | let bz = dN._2 | |
599 | + | let cI = dN._3 | |
600 | + | let dA = dN._4 | |
601 | + | let cm = dN._5 | |
602 | + | let cK = (bj(aS, aX) + cI) | |
603 | + | if ((aZ(dF) > bI)) | |
590 | 604 | then throw("Balance of share-token is lower than totalAmount") | |
591 | 605 | else { | |
592 | - | let | |
593 | - | then [ScriptTransfer( | |
606 | + | let dO = if ((aF.caller != this)) | |
607 | + | then [ScriptTransfer(aF.caller, cK, aA)] | |
594 | 608 | else nil | |
595 | - | $Tuple2(([IntegerEntry(((( | |
609 | + | $Tuple2(([IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), 0), Reissue(aA, ((dA + cK) + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] ++ dO), cK) | |
596 | 610 | } | |
597 | 611 | } | |
598 | 612 | ||
599 | 613 | ||
600 | - | func | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | [IntegerEntry(((( | |
614 | + | func dP (aF,aS,aX) = { | |
615 | + | let ca = getIntegerValue(this, (aS + o)) | |
616 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
617 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
618 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
619 | + | let dI = (dj + dl) | |
620 | + | let dQ = bX(aS, aX) | |
621 | + | let by = dQ._1 | |
622 | + | let bz = dQ._2 | |
623 | + | let cI = dQ._3 | |
624 | + | let dA = dQ._4 | |
625 | + | let cm = dQ._5 | |
626 | + | let dB = (bj(aS, aX) + cI) | |
627 | + | [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + m), dI), IntegerEntry((aS + o), ((ca - dm) + dI)), IntegerEntry((((aS + "_") + aX) + y), dB), DeleteEntry((((aS + "_") + aX) + j)), DeleteEntry((((aS + "_") + aX) + l)), DeleteEntry((((aS + "_") + aX) + k)), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
614 | 628 | } | |
615 | 629 | ||
616 | 630 | ||
617 | - | @Callable( | |
618 | - | func init ( | |
631 | + | @Callable(aF) | |
632 | + | func init (dR) = if (isDefined(getString(this, x))) | |
619 | 633 | then throw("SWOP already initialized") | |
620 | 634 | else { | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", | |
635 | + | let dS = 100000000000000 | |
636 | + | let dT = Issue("SWOP", "SWOP protocol token", dS, 8, true) | |
637 | + | let dU = calculateAssetId(dT) | |
638 | + | [BooleanEntry(a, true), Issue("SWOP", "SWOP protocol token", dS, 8, true), StringEntry(x, toBase58String(dU))] | |
625 | 639 | } | |
626 | 640 | ||
627 | 641 | ||
628 | 642 | ||
629 | - | @Callable( | |
630 | - | func initPoolShareFarming ( | |
643 | + | @Callable(aF) | |
644 | + | func initPoolShareFarming (aS) = valueOrElse(cZ(aF), if (!(isDefined(getString(W, (I + aS))))) | |
631 | 645 | then throw("Pool is not in oracle") | |
632 | - | else if (isDefined(getInteger(this, ( | |
646 | + | else if (isDefined(getInteger(this, (aS + n)))) | |
633 | 647 | then throw("Pool already inited") | |
634 | - | else [IntegerEntry(( | |
648 | + | else [IntegerEntry((aS + n), 0), IntegerEntry((aS + s), 0), IntegerEntry((aS + u), 0), IntegerEntry((aS + w), height)]) | |
635 | 649 | ||
636 | 650 | ||
637 | 651 | ||
638 | - | @Callable( | |
639 | - | func updatePoolInterest ( | |
652 | + | @Callable(aF) | |
653 | + | func updatePoolInterest (aS) = valueOrElse(cY(), if ((aF.caller != ar)) | |
640 | 654 | then throw("Only Governance can call this function") | |
641 | 655 | else { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | [IntegerEntry(( | |
656 | + | let aX = toString(addressFromPublicKey(as)) | |
657 | + | let dV = bX(aS, aX) | |
658 | + | let by = dV._1 | |
659 | + | let bz = dV._2 | |
660 | + | let dW = dV._3 | |
661 | + | [IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height)] | |
648 | 662 | }) | |
649 | 663 | ||
650 | 664 | ||
651 | 665 | ||
652 | - | @Callable( | |
653 | - | func lockShareTokens ( | |
666 | + | @Callable(aF) | |
667 | + | func lockShareTokens (aS,cO) = valueOrElse(dc(aS), valueOrElse(cY(), de(aF, aF.caller, aS, cO))) | |
654 | 668 | ||
655 | 669 | ||
656 | 670 | ||
657 | - | @Callable( | |
658 | - | func lockShareTokensFromPool ( | |
671 | + | @Callable(aF) | |
672 | + | func lockShareTokensFromPool (dX,aS,cO) = valueOrElse(dc(aS), valueOrElse(cY(), valueOrElse(da(aF, aS), de(aF, Address(dX), aS, cO)))) | |
659 | 673 | ||
660 | 674 | ||
661 | 675 | ||
662 | - | @Callable( | |
663 | - | func lockStakedShareTokens ( | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | if (( | |
676 | + | @Callable(aF) | |
677 | + | func lockStakedShareTokens (aS,cO,dY) = valueOrElse(dc(aS), valueOrElse(cY(), { | |
678 | + | let dh = aY(aS) | |
679 | + | let aX = toString(aF.caller) | |
680 | + | let di = aU(aS) | |
681 | + | let ca = valueOrElse(getInteger(this, (aS + o)), di) | |
682 | + | let dj = valueOrElse(getInteger(this, (((aS + "_") + aX) + i)), 0) | |
683 | + | let dk = valueOrElse(getInteger(this, (((aS + "_") + aX) + l)), 0) | |
684 | + | let dl = valueOrElse(getInteger(this, (((aS + "_") + aX) + j)), 0) | |
685 | + | let dm = valueOrElse(getInteger(this, (((aS + "_") + aX) + m)), dj) | |
686 | + | let dn = (dj + dl) | |
687 | + | let dZ = cT(cO) | |
688 | + | let dp = dZ._1 | |
689 | + | let dq = dZ._2 | |
690 | + | let dr = getIntegerValue(this, q) | |
691 | + | if ((aR(aS) > height)) | |
678 | 692 | then throw("You can't lock shareTokens till first harvest end.") | |
679 | - | else if ((0 >= | |
693 | + | else if ((0 >= cO)) | |
680 | 694 | then throw("lockType must be > 0") | |
681 | - | else if (( | |
682 | - | then throw(("You can't lock more than " + toString( | |
683 | - | else if (( | |
695 | + | else if ((dY > dj)) | |
696 | + | then throw(("You can't lock more than " + toString(dj))) | |
697 | + | else if ((aZ(dh) > di)) | |
684 | 698 | then throw("Balance of share-token is lower than totalAmount") | |
685 | - | else if (if (( | |
686 | - | then if (if ((1 > size( | |
699 | + | else if (if ((dk == 0)) | |
700 | + | then if (if ((1 > size(aF.payments))) | |
687 | 701 | then true | |
688 | - | else ( | |
702 | + | else (aF.payments[0].assetId != unit)) | |
689 | 703 | then true | |
690 | - | else ( | |
704 | + | else (dr > aF.payments[0].amount) | |
691 | 705 | else false) | |
692 | - | then throw((("You need to pay additional waves comission " + toString( | |
693 | - | else if (if (( | |
694 | - | then (0 >= | |
706 | + | then throw((("You need to pay additional waves comission " + toString(dr)) + "WAVES")) | |
707 | + | else if (if ((dk == 0)) | |
708 | + | then (0 >= dY) | |
695 | 709 | else false) | |
696 | 710 | then throw("lockAmount must be greater than 0") | |
697 | - | else if ((0 > | |
711 | + | else if ((0 > dY)) | |
698 | 712 | then throw("lockAmount must be positive") | |
699 | - | else if (( | |
713 | + | else if ((dk > (height + dp))) | |
700 | 714 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
701 | 715 | else { | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | [IntegerEntry(((( | |
716 | + | let dv = (dl + dY) | |
717 | + | let dI = (dj - dY) | |
718 | + | let dw = (height + dp) | |
719 | + | let du = (fraction(dv, dq, aa) + dI) | |
720 | + | let ea = bX(aS, aX) | |
721 | + | let by = ea._1 | |
722 | + | let bz = ea._2 | |
723 | + | let cI = ea._3 | |
724 | + | let dA = ea._4 | |
725 | + | let cm = ea._5 | |
726 | + | let dB = (bj(aS, aX) + cI) | |
727 | + | [IntegerEntry((((aS + "_") + aX) + i), dI), IntegerEntry((((aS + "_") + aX) + j), dv), IntegerEntry((((aS + "_") + aX) + l), dw), IntegerEntry((((aS + "_") + aX) + k), cO), IntegerEntry((((aS + "_") + aX) + m), du), IntegerEntry((aS + o), ((ca - dm) + du)), IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
714 | 728 | } | |
715 | 729 | })) | |
716 | 730 | ||
717 | 731 | ||
718 | 732 | ||
719 | - | @Callable( | |
720 | - | func unlockUserLock ( | |
721 | - | let | |
722 | - | if (( | |
723 | - | then throw(("You can't unlock sharetokens till " + toString( | |
724 | - | else ( | |
733 | + | @Callable(aF) | |
734 | + | func unlockUserLock (aS,aX) = valueOrElse(cY(), { | |
735 | + | let dk = valueOrErrorMessage(getInteger(this, (((aS + "_") + aX) + l)), (((("There is no pool " + aS) + " or user ") + aX) + "with lock")) | |
736 | + | if ((dk > height)) | |
737 | + | then throw(("You can't unlock sharetokens till " + toString(dk))) | |
738 | + | else (dP(aF, aS, aX) ++ [ScriptTransfer(aF.caller, getIntegerValue(this, q), unit)]) | |
725 | 739 | }) | |
726 | 740 | ||
727 | 741 | ||
728 | 742 | ||
729 | - | @Callable( | |
730 | - | func unlockUserLockDeprecated ( | |
743 | + | @Callable(aF) | |
744 | + | func unlockUserLockDeprecated (aS,aX) = valueOrElse(cY(), valueOrElse(dd(aF), if (!(db(aS))) | |
731 | 745 | then throw("Pool must be deprecated") | |
732 | - | else if (isDefined(getInteger(this, ((( | |
733 | - | then ( | |
746 | + | else if (isDefined(getInteger(this, (((aS + "_") + aX) + l)))) | |
747 | + | then (dP(aF, aS, aX) ++ [ScriptTransfer(ao, getIntegerValue(this, q), unit)]) | |
734 | 748 | else nil)) | |
735 | 749 | ||
736 | 750 | ||
737 | 751 | ||
738 | - | @Callable( | |
739 | - | func withdrawShareTokens ( | |
752 | + | @Callable(aF) | |
753 | + | func withdrawShareTokens (aS,dE) = valueOrElse(cY(), dD(aF, aF.caller, aS, dE)) | |
740 | 754 | ||
741 | 755 | ||
742 | 756 | ||
743 | - | @Callable( | |
744 | - | func withdrawShareTokensFromPool ( | |
757 | + | @Callable(aF) | |
758 | + | func withdrawShareTokensFromPool (dX,aS,dE) = valueOrElse(cY(), valueOrElse(da(aF, aS), dD(aF, Address(dX), aS, dE))) | |
745 | 759 | ||
746 | 760 | ||
747 | 761 | ||
748 | - | @Callable( | |
749 | - | func claim ( | |
750 | - | let | |
751 | - | if (( | |
762 | + | @Callable(aF) | |
763 | + | func claim (aS) = valueOrElse(cY(), { | |
764 | + | let bN = dM(aF, aS, aF.caller) | |
765 | + | if ((bN._2 == 0)) | |
752 | 766 | then throw("You have 0 available SWOP") | |
753 | - | else | |
767 | + | else bN | |
754 | 768 | }) | |
755 | 769 | ||
756 | 770 | ||
757 | 771 | ||
758 | - | @Callable( | |
759 | - | func claimInternal ( | |
772 | + | @Callable(aF) | |
773 | + | func claimInternal (aS,df) = valueOrElse(cY(), valueOrElse(dd(aF), dM(aF, aS, Address(df)))) | |
760 | 774 | ||
761 | 775 | ||
762 | 776 | ||
763 | - | @Callable( | |
764 | - | func claimAndStake ( | |
765 | - | let | |
766 | - | let | |
767 | - | if ($isInstanceOf( | |
768 | - | then | |
769 | - | else throw(($getType( | |
777 | + | @Callable(aF) | |
778 | + | func claimAndStake (aS) = valueOrElse(cY(), { | |
779 | + | let cI = { | |
780 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
781 | + | if ($isInstanceOf(eb, "Int")) | |
782 | + | then eb | |
783 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
770 | 784 | } | |
771 | - | if (( | |
772 | - | then if (( | |
785 | + | if ((cI == cI)) | |
786 | + | then if ((cI == 0)) | |
773 | 787 | then throw("You have 0 available SWOP") | |
774 | 788 | else { | |
775 | - | let | |
776 | - | if (( | |
789 | + | let ec = invoke(ar, "lockSWOPFromFarming", nil, [AttachedPayment(aA, cI)]) | |
790 | + | if ((ec == ec)) | |
777 | 791 | then nil | |
778 | 792 | else throw("Strict value is not equal to itself.") | |
779 | 793 | } | |
780 | 794 | else throw("Strict value is not equal to itself.") | |
781 | 795 | }) | |
782 | 796 | ||
783 | 797 | ||
784 | 798 | ||
785 | - | @Callable( | |
786 | - | func claimAll ( | |
787 | - | func | |
788 | - | let | |
789 | - | let | |
790 | - | if ($isInstanceOf( | |
791 | - | then | |
792 | - | else throw(($getType( | |
799 | + | @Callable(aF) | |
800 | + | func claimAll (cA) = valueOrElse(cY(), { | |
801 | + | func ed (ee,aS) = { | |
802 | + | let cI = { | |
803 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
804 | + | if ($isInstanceOf(eb, "Int")) | |
805 | + | then eb | |
806 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
793 | 807 | } | |
794 | - | if (( | |
795 | - | then ( | |
808 | + | if ((cI == cI)) | |
809 | + | then (ee + cI) | |
796 | 810 | else throw("Strict value is not equal to itself.") | |
797 | 811 | } | |
798 | 812 | ||
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | func | |
804 | - | then | |
805 | - | else | |
813 | + | let ee = { | |
814 | + | let aK = cA | |
815 | + | let aL = size(aK) | |
816 | + | let aM = 0 | |
817 | + | func aN (aO,aP) = if ((aP >= aL)) | |
818 | + | then aO | |
819 | + | else ed(aO, aK[aP]) | |
806 | 820 | ||
807 | - | func | |
808 | - | then | |
821 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
822 | + | then aO | |
809 | 823 | else throw("List size exceeds 60") | |
810 | 824 | ||
811 | - | aM | |
825 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
812 | 826 | } | |
813 | - | if (( | |
827 | + | if ((ee == 0)) | |
814 | 828 | then throw("You have 0 available SWOP") | |
815 | - | else [ScriptTransfer( | |
829 | + | else [ScriptTransfer(aF.caller, ee, aA)] | |
816 | 830 | }) | |
817 | 831 | ||
818 | 832 | ||
819 | 833 | ||
820 | - | @Callable( | |
821 | - | func claimAllAndStake ( | |
822 | - | func | |
823 | - | let | |
824 | - | let | |
825 | - | if ($isInstanceOf( | |
826 | - | then | |
827 | - | else throw(($getType( | |
834 | + | @Callable(aF) | |
835 | + | func claimAllAndStake (cA) = valueOrElse(cY(), { | |
836 | + | func ed (ee,aS) = { | |
837 | + | let cI = { | |
838 | + | let eb = invoke(this, "claimInternal", [aS, aF.caller.bytes], nil) | |
839 | + | if ($isInstanceOf(eb, "Int")) | |
840 | + | then eb | |
841 | + | else throw(($getType(eb) + " couldn't be cast to Int")) | |
828 | 842 | } | |
829 | - | if (( | |
830 | - | then ( | |
843 | + | if ((cI == cI)) | |
844 | + | then (ee + cI) | |
831 | 845 | else throw("Strict value is not equal to itself.") | |
832 | 846 | } | |
833 | 847 | ||
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | func | |
839 | - | then | |
840 | - | else | |
848 | + | let ee = { | |
849 | + | let aK = cA | |
850 | + | let aL = size(aK) | |
851 | + | let aM = 0 | |
852 | + | func aN (aO,aP) = if ((aP >= aL)) | |
853 | + | then aO | |
854 | + | else ed(aO, aK[aP]) | |
841 | 855 | ||
842 | - | func | |
843 | - | then | |
856 | + | func aQ (aO,aP) = if ((aP >= aL)) | |
857 | + | then aO | |
844 | 858 | else throw("List size exceeds 60") | |
845 | 859 | ||
846 | - | aM | |
860 | + | aQ(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aN(aM, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
847 | 861 | } | |
848 | - | if (( | |
862 | + | if ((ee == 0)) | |
849 | 863 | then throw("You have 0 available SWOP") | |
850 | 864 | else { | |
851 | - | let | |
852 | - | if (( | |
865 | + | let ec = invoke(ar, "lockSWOPFromFarming", nil, [AttachedPayment(aA, ee)]) | |
866 | + | if ((ec == ec)) | |
853 | 867 | then nil | |
854 | 868 | else throw("Strict value is not equal to itself.") | |
855 | 869 | } | |
856 | 870 | }) | |
857 | 871 | ||
858 | 872 | ||
859 | 873 | ||
860 | - | @Callable( | |
861 | - | func updateUserBoostInterest ( | |
874 | + | @Callable(aF) | |
875 | + | func updateUserBoostInterest (aS,aX) = valueOrElse(cY(), if ((aF.caller != aq)) | |
862 | 876 | then throw("Only voiting can call this function") | |
863 | 877 | else { | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | [IntegerEntry(((( | |
878 | + | let ef = bX(aS, aX) | |
879 | + | let by = ef._1 | |
880 | + | let bz = ef._2 | |
881 | + | let cI = ef._3 | |
882 | + | let dA = ef._4 | |
883 | + | let cm = ef._5 | |
884 | + | let dB = (bj(aS, aX) + cI) | |
885 | + | [IntegerEntry((((aS + "_") + aX) + t), by), IntegerEntry((((aS + "_") + aX) + v), bz), IntegerEntry((aS + s), by), IntegerEntry((aS + u), bz), IntegerEntry((aS + w), height), IntegerEntry((((aS + "_") + aX) + y), dB), Reissue(aA, (dA + cm), true), ScriptTransfer(au, dA, aA), ScriptTransfer(ap, cm, aA)] | |
872 | 886 | }) | |
873 | 887 | ||
874 | 888 | ||
875 | 889 | ||
876 | - | @Callable( | |
877 | - | func shutdown () = valueOrElse( | |
890 | + | @Callable(aF) | |
891 | + | func shutdown () = valueOrElse(cZ(aF), if (!(ay)) | |
878 | 892 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, d), "the cause wasn't specified"))) | |
879 | - | else | |
893 | + | else cW("Paused by admin")) | |
880 | 894 | ||
881 | 895 | ||
882 | 896 | ||
883 | - | @Callable( | |
884 | - | func activate () = valueOrElse( | |
897 | + | @Callable(aF) | |
898 | + | func activate () = valueOrElse(cZ(aF), if (ay) | |
885 | 899 | then throw("DApp is already active") | |
886 | 900 | else [BooleanEntry(a, true), DeleteEntry(d)]) | |
887 | 901 | ||
888 | 902 | ||
889 | - | @Verifier( | |
890 | - | func | |
891 | - | let | |
892 | - | let | |
903 | + | @Verifier(eg) | |
904 | + | func eh () = { | |
905 | + | let ai = eg | |
906 | + | let ei = if (sigVerify(eg.bodyBytes, eg.proofs[0], al)) | |
893 | 907 | then 1 | |
894 | 908 | else 0 | |
895 | - | let | |
909 | + | let ej = if (sigVerify(eg.bodyBytes, eg.proofs[1], am)) | |
896 | 910 | then 1 | |
897 | 911 | else 0 | |
898 | - | let | |
912 | + | let ek = if (sigVerify(eg.bodyBytes, eg.proofs[2], an)) | |
899 | 913 | then 1 | |
900 | 914 | else 0 | |
901 | - | ((( | |
915 | + | (((ei + ej) + ek) >= 2) | |
902 | 916 | } | |
903 | 917 |
github/deemru/w8io/169f3d6 430.24 ms ◑