tx · GA2UU9F6mipcYYJXiK8DyuuXwDmb63ccEcor7gfsiL85 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.02900000 Waves 2024.11.29 20:41 [3393031] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "GA2UU9F6mipcYYJXiK8DyuuXwDmb63ccEcor7gfsiL85", "fee": 2900000, "feeAssetId": null, "timestamp": 1732902195603, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "5jQ9VvqVT58SqJSrqfGwvwjEnsvuMtTyraS2oF54z2bLjSo32tvGmJurLzbbf2ASvC6Vus81rcFjXevo87p5wMmq" ], "script": "base64:BgJHCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgB2AANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ3AICt4gQABU1VTFQ4AIDC1y8ACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC1dFRUtfQkxPQ0tTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAOBOAwkAAAIBAVQFByRtYXRjaDAAtAEJAAIBAg1Vbmtub3duIGNoYWluAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duI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AoCCQDNCAIJAM4IAgkAzggCCQDOCAIJAM4IAgUPaXNzdWVOZnRBY3Rpb25zBQtidXJuQWN0aW9ucwUSYnVybkNvdW50ZXJBY3Rpb25zBQ1wcm9sb2dBY3Rpb25zBQ1jaGFuZ2VBY3Rpb25zCQEOU2NyaXB0VHJhbnNmZXIDCQERQGV4dHJOYXRpdmUoMTA2MikBCQERQGV4dHJOYXRpdmUoMTA1MykCBQt3bGdDb250cmFjdAULdGVhbUFkZHJLZXkFB2ZvclRlYW0FCndsZ0Fzc2V0SWQJAJQKAgUKbmZ0QXNzZXRJZAUJd2xnUmVtYWluAWkBDG9wZW5OZnRDaGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCBQNuaWwAAABHCu1C", "height": 3393031, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE Next: BmBgAqaGJ7Qbyxex4qya2KRicGSDoRUa3snWTH9ht4NK Diff:
Old | New | Differences | |
---|---|---|---|
104 | 104 | func J (I) = ("curWeekTxIdByUser_" + I) | |
105 | 105 | ||
106 | 106 | ||
107 | - | let K = " | |
107 | + | let K = "wlg_assetId" | |
108 | 108 | ||
109 | - | let L = " | |
109 | + | let L = valueOrErrorMessage(getBinary(D, K), "WLGOLD is not issued yet") | |
110 | 110 | ||
111 | - | let M = | |
111 | + | let M = "acresIssuedAmount" | |
112 | 112 | ||
113 | - | func N (I) = ("acresStakedTimeByUser_" + I) | |
113 | + | let N = "acresAssetId" | |
114 | + | ||
115 | + | let O = valueOrErrorMessage(getBinary(C, N), "ACRES is not issued yet") | |
116 | + | ||
117 | + | func P (I) = ("acresStakedTimeByUser_" + I) | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func Q (R) = ("stakedLandsByOwner_" + R) | |
117 | 121 | ||
118 | 122 | ||
119 | - | func | |
123 | + | func S (R) = ("stakedDuckByOwner_" + R) | |
120 | 124 | ||
121 | 125 | ||
122 | - | func | |
126 | + | func T (U,I) = ((("st_" + U) + "_") + I) | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func V (R) = ("stakedNFTsByOwner_" + R) | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
129 | - | let j = | |
132 | + | func W (X) = { | |
133 | + | let j = X | |
130 | 134 | if ($isInstanceOf(j, "Int")) | |
131 | 135 | then { | |
132 | - | let | |
133 | - | | |
136 | + | let Y = j | |
137 | + | Y | |
134 | 138 | } | |
135 | 139 | else throw("fail to cast into Int") | |
136 | 140 | } | |
137 | 141 | ||
138 | 142 | ||
139 | - | func | |
140 | - | let j = | |
143 | + | func Z (aa) = { | |
144 | + | let j = aa | |
141 | 145 | if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)")) | |
142 | 146 | then { | |
143 | - | let | |
144 | - | | |
147 | + | let ab = j | |
148 | + | ab | |
145 | 149 | } | |
146 | 150 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
147 | 151 | } | |
148 | 152 | ||
149 | 153 | ||
150 | - | func | |
151 | - | let j = | |
154 | + | func ac (aa) = { | |
155 | + | let j = aa | |
152 | 156 | if ($isInstanceOf(j, "(Int, Int, Int, Int)")) | |
153 | 157 | then { | |
154 | - | let | |
155 | - | | |
158 | + | let ab = j | |
159 | + | ab | |
156 | 160 | } | |
157 | 161 | else throw("fail to cast into (Int, Int, Int, Int)") | |
158 | 162 | } | |
159 | 163 | ||
160 | 164 | ||
161 | - | func | |
162 | - | let j = | |
165 | + | func ad (aa) = { | |
166 | + | let j = aa | |
163 | 167 | if ($isInstanceOf(j, "(Int, Int, Int)")) | |
164 | 168 | then { | |
165 | - | let | |
166 | - | | |
169 | + | let ab = j | |
170 | + | ab | |
167 | 171 | } | |
168 | 172 | else throw("fail to cast into (Int, Int, Int)") | |
169 | 173 | } | |
170 | 174 | ||
171 | 175 | ||
172 | - | func | |
173 | - | let j = | |
176 | + | func ae (aa) = { | |
177 | + | let j = aa | |
174 | 178 | if ($isInstanceOf(j, "(Int, Int)")) | |
175 | 179 | then { | |
176 | - | let | |
177 | - | | |
180 | + | let ab = j | |
181 | + | ab | |
178 | 182 | } | |
179 | 183 | else throw("fail to cast into (Int, Int)") | |
180 | 184 | } | |
181 | 185 | ||
182 | 186 | ||
183 | - | func | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | (((toString(( | |
187 | + | func af (aa,ag) = { | |
188 | + | let ah = pow(10, 0, ag, 0, 0, DOWN) | |
189 | + | let ai = toString((aa % ah)) | |
190 | + | let aj = drop(toString(ah), (1 + size(ai))) | |
191 | + | (((toString((aa / ah)) + ".") + aj) + ai) | |
188 | 192 | } | |
189 | 193 | ||
190 | 194 | ||
191 | - | let | |
195 | + | let ak = 1000000 | |
192 | 196 | ||
193 | - | let | |
197 | + | let al = 100000000 | |
194 | 198 | ||
195 | - | let | |
199 | + | let am = "wlg_issuedAmount" | |
196 | 200 | ||
197 | - | let | |
201 | + | let an = "zbill_issuedAmount" | |
198 | 202 | ||
199 | - | func | |
203 | + | func ao (I) = ("acresStakedAmountByUser_" + I) | |
200 | 204 | ||
201 | 205 | ||
202 | - | func | |
206 | + | func ap (I) = ("farmingPowerByUser_" + I) | |
203 | 207 | ||
204 | 208 | ||
205 | - | let | |
209 | + | let aq = "acresStakedAmountTotal" | |
206 | 210 | ||
207 | - | let | |
211 | + | let ar = "totalFarmingPower" | |
208 | 212 | ||
209 | - | let | |
213 | + | let as = 3 | |
210 | 214 | ||
211 | - | let | |
215 | + | let at = 1 | |
212 | 216 | ||
213 | - | let | |
217 | + | let au = 5000 | |
214 | 218 | ||
215 | - | let | |
219 | + | let av = 4 | |
216 | 220 | ||
217 | - | let | |
221 | + | let aw = "nftTotalIssued" | |
218 | 222 | ||
219 | - | let | |
223 | + | let ax = "nftTotalBurned" | |
220 | 224 | ||
221 | - | let | |
225 | + | let ay = "WlNftTotalStaked" | |
222 | 226 | ||
223 | - | let | |
227 | + | let az = "ArkNftTotalStaked" | |
224 | 228 | ||
225 | - | func | |
229 | + | func aA (U) = ("nftNumberByAssetId_" + U) | |
226 | 230 | ||
227 | 231 | ||
228 | - | func | |
232 | + | func aB (I) = ("userWlNftNumber_" + I) | |
229 | 233 | ||
230 | 234 | ||
231 | - | func | |
235 | + | func aC (I) = ("userArkNftNumber_" + I) | |
232 | 236 | ||
233 | 237 | ||
234 | - | func | |
238 | + | func aD (I) = ("userFullBonus_" + I) | |
235 | 239 | ||
236 | 240 | ||
237 | - | let | |
241 | + | let aE = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
238 | 242 | ||
239 | - | func | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else ( | |
243 | + | func aF (aG) = { | |
244 | + | let aH = ((aG + 99999999) / al) | |
245 | + | func aI (aJ,aK) = if ((aK >= aH)) | |
246 | + | then aJ | |
247 | + | else (aJ + 1) | |
244 | 248 | ||
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | func | |
249 | - | then | |
250 | - | else | |
249 | + | let aL = aE | |
250 | + | let aM = size(aL) | |
251 | + | let aN = 0 | |
252 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
253 | + | then aP | |
254 | + | else aI(aP, aL[aQ]) | |
251 | 255 | ||
252 | - | func | |
253 | - | then | |
256 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
257 | + | then aP | |
254 | 258 | else throw("List size exceeds 10") | |
255 | 259 | ||
256 | - | | |
260 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
257 | 261 | } | |
258 | 262 | ||
259 | 263 | ||
260 | - | func | |
264 | + | func aS (aG) = ((aG * 20) * (aF(aG) + 4)) | |
261 | 265 | ||
262 | 266 | ||
263 | - | func | |
264 | - | let | |
265 | - | $Tuple2(fraction( | |
267 | + | func aT (aG,aU) = { | |
268 | + | let aV = aS(aG) | |
269 | + | $Tuple2(fraction(aV, (ak + aU), ak), aV) | |
266 | 270 | } | |
267 | 271 | ||
268 | 272 | ||
269 | - | func aU (I) = ("lastArbTimeUser_" + I) | |
273 | + | let aW = "teamAddr" | |
274 | + | ||
275 | + | func aX (I) = ("lastArbTimeUser_" + I) | |
270 | 276 | ||
271 | 277 | ||
272 | - | let | |
278 | + | let aY = "lastAcresSellTime" | |
273 | 279 | ||
274 | - | let | |
280 | + | let aZ = "lastLimitLeft" | |
275 | 281 | ||
276 | - | let | |
282 | + | let ba = ["Gold shovel", "Pickaxe"] | |
277 | 283 | ||
278 | - | let | |
284 | + | let bb = ["Reward for early birds", "Increases FarmPower"] | |
279 | 285 | ||
280 | - | let | |
286 | + | let bc = 0 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bd = 1 | |
283 | 289 | ||
284 | - | let | |
290 | + | let be = [5, 10, 20] | |
285 | 291 | ||
286 | - | let | |
292 | + | let bf = 0 | |
287 | 293 | ||
288 | - | let | |
294 | + | let bg = 1 | |
289 | 295 | ||
290 | - | let | |
296 | + | let bh = 2 | |
291 | 297 | ||
292 | - | let bf = ["SHOVEL", "PICKAXE"] | |
293 | - | ||
294 | - | let bg = 0 | |
295 | - | ||
296 | - | let bh = 1 | |
297 | - | ||
298 | - | let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
298 | + | let bi = ["SHOVEL", "PICKAXE"] | |
299 | 299 | ||
300 | 300 | let bj = 0 | |
301 | 301 | ||
302 | - | let bk = | |
302 | + | let bk = 1 | |
303 | 303 | ||
304 | - | let bl = [" | |
304 | + | let bl = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
305 | 305 | ||
306 | 306 | let bm = 0 | |
307 | 307 | ||
308 | 308 | let bn = 4 | |
309 | 309 | ||
310 | - | let bo = [" | |
310 | + | let bo = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
311 | 311 | ||
312 | 312 | let bp = 0 | |
313 | 313 | ||
314 | - | let bq = | |
314 | + | let bq = 1 | |
315 | 315 | ||
316 | - | let br = | |
316 | + | let br = 2 | |
317 | 317 | ||
318 | - | func bs (bt) = if (if ((bt.originCaller != B)) | |
318 | + | let bs = 3 | |
319 | + | ||
320 | + | let bt = 4 | |
321 | + | ||
322 | + | let bu = ["Digging tools"] | |
323 | + | ||
324 | + | let bv = 0 | |
325 | + | ||
326 | + | let bw = ["FarmPower"] | |
327 | + | ||
328 | + | let bx = 0 | |
329 | + | ||
330 | + | func by (bz) = if (if ((bz.originCaller != B)) | |
319 | 331 | then valueOrElse(getBoolean(G()), false) | |
320 | 332 | else false) | |
321 | 333 | then throw("Contracts are under maintenance") | |
322 | 334 | else { | |
323 | - | let I = toString( | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | if (isDefined( | |
335 | + | let I = toString(bz.originCaller) | |
336 | + | let bA = (height / i) | |
337 | + | let bB = H(I) | |
338 | + | let bC = getString(bB) | |
339 | + | let bD = toBase58String(bz.transactionId) | |
340 | + | let bE = ((toString(bA) + "_") + bD) | |
341 | + | let bF = J(I) | |
342 | + | if (isDefined(bC)) | |
331 | 343 | then { | |
332 | - | let | |
333 | - | if (( | |
334 | - | then [StringEntry( | |
335 | - | else if (( | |
336 | - | then [StringEntry( | |
344 | + | let bG = split(value(bC), "_") | |
345 | + | if ((bG[0] == toString(bA))) | |
346 | + | then [StringEntry(bB, bE), StringEntry(bF, bE)] | |
347 | + | else if ((bG[0] == toString((bA - 1)))) | |
348 | + | then [StringEntry(bF, bE)] | |
337 | 349 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (( | |
341 | - | then [StringEntry( | |
342 | - | else [StringEntry( | |
350 | + | let bH = getStringValue(bF) | |
351 | + | let bI = split(bH, "_") | |
352 | + | if ((bI[0] == toString(bA))) | |
353 | + | then [StringEntry(bF, bE)] | |
354 | + | else [StringEntry(bB, bH), StringEntry(bF, bE)] | |
343 | 355 | } | |
344 | 356 | } | |
345 | - | else [StringEntry( | |
357 | + | else [StringEntry(bB, bE), StringEntry(bF, bE)] | |
346 | 358 | } | |
347 | 359 | ||
348 | 360 | ||
349 | - | func | |
361 | + | func bJ (bK,bL,bM,bN,bO,bP,bQ,bR) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bK) + "\", ") + "\"number\": ") + toString(bL)) + ", ") + "\"collection\": \"") + bM) + "\", ") + "\"name\": \"") + bN) + "\", ") + "\"description\": \"") + bO) + "\", ") + "\"rare\": \"") + bP) + "\", ") + "\"bonus\": ") + toString(bQ)) + ", ") + "\"bonusType\": \"") + bR) + "\"}") | |
350 | 362 | ||
351 | 363 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | $Tuple2([ | |
364 | + | func bS (bT,bU,bV,bW,bX,bY,bZ,I) = { | |
365 | + | let bL = valueOrElse(getInteger(aw), 0) | |
366 | + | let bP = bo[bW] | |
367 | + | let bN = (((bi[bT] + "-") + take(bP, 1)) + toString(bX)) | |
368 | + | let ca = Issue(bN, bJ(bl[bU], bL, bu[bV], ba[bT], bb[bY], bo[bW], bX, bw[bZ]), 1, 0, false) | |
369 | + | let cb = calculateAssetId(ca) | |
370 | + | $Tuple2([ca, IntegerEntry(aw, (bL + 1)), IntegerEntry(aA(toBase58String(cb)), bL), ScriptTransfer(I, 1, cb)], cb) | |
359 | 371 | } | |
360 | 372 | ||
361 | 373 | ||
362 | - | func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}") | |
363 | - | ||
364 | - | ||
365 | - | func bY (bX,I) = if ((bX >= size(aY))) | |
366 | - | then throw("nftIndex out of bounds") | |
367 | - | else { | |
368 | - | let bF = valueOrElse(getInteger(au), 0) | |
369 | - | let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false) | |
370 | - | let bV = calculateAssetId(bU) | |
371 | - | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
372 | - | } | |
373 | - | ||
374 | - | ||
375 | - | func bZ (ca,p,cb) = if (if ((ca == 0)) | |
376 | - | then (cb == 0) | |
374 | + | func cc (cd,p,ce) = if (if ((cd == 0)) | |
375 | + | then (ce == 0) | |
377 | 376 | else false) | |
378 | 377 | then throw("Nothing to do") | |
379 | 378 | else { | |
380 | - | let | |
381 | - | if (( | |
379 | + | let cf = invoke(D, "onStakeUnstakeLand", [p], nil) | |
380 | + | if ((cf == cf)) | |
382 | 381 | then { | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | if (if ((0 > | |
388 | - | then (0 > ( | |
382 | + | let cg = lastBlock.timestamp | |
383 | + | let ch = P(p) | |
384 | + | let ci = ao(p) | |
385 | + | let cj = valueOrElse(getInteger(ci), 0) | |
386 | + | if (if ((0 > cd)) | |
387 | + | then (0 > (cj + cd)) | |
389 | 388 | else false) | |
390 | - | then throw(((("You have only " + | |
389 | + | then throw(((("You have only " + af(cj, 8)) + " ACRES staked, tried to unstake ") + af(-(cd), 8))) | |
391 | 390 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (if ((0 > | |
399 | - | then (0 > ( | |
391 | + | let ck = (cj + cd) | |
392 | + | let cl = valueOrElse(getInteger(aq), 0) | |
393 | + | let cm = ap(p) | |
394 | + | let cn = valueOrElse(getInteger(cm), 0) | |
395 | + | let co = aD(p) | |
396 | + | let cp = valueOrElse(getInteger(C, co), 0) | |
397 | + | if (if ((0 > ce)) | |
398 | + | then (0 > (cp + ce)) | |
400 | 399 | else false) | |
401 | - | then throw((((("You have only " + | |
400 | + | then throw((((("You have only " + af(cp, 4)) + "% bonus, and tried to unstake ") + af(-(ce), 4)) + "%")) | |
402 | 401 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
402 | + | let cq = aT(ck, (cp + ce)) | |
403 | + | let cr = cq._1 | |
404 | + | let cs = cq._2 | |
405 | + | let ct = valueOrElse(getInteger(ar), 0) | |
406 | + | let cu = if ((cd == 0)) | |
408 | 407 | then nil | |
409 | - | else [IntegerEntry( | |
410 | - | $Tuple2((((( | |
408 | + | else [IntegerEntry(ci, ck), IntegerEntry(aq, (cl + cd))] | |
409 | + | $Tuple2(((((cu :+ IntegerEntry(ch, lastBlock.timestamp)) :+ IntegerEntry(cm, cr)) :+ IntegerEntry(ar, ((ct + cr) - cn))) :+ IntegerEntry(co, (cp + ce))), cf) | |
411 | 410 | } | |
412 | 411 | } | |
413 | 412 | } | |
415 | 414 | } | |
416 | 415 | ||
417 | 416 | ||
418 | - | func | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | fraction( | |
417 | + | func cv (cw) = { | |
418 | + | let cx = valueOrErrorMessage(getInteger(D, am), "WLGOLD is not issued yet") | |
419 | + | let cy = assetBalance(D, k) | |
420 | + | let cz = (assetBalance(C, k) - cw) | |
421 | + | let cA = (assetBalance(E, k) + valueOrElse(getInteger(E, an), 0)) | |
422 | + | let cB = ((cz + cy) + cA) | |
423 | + | fraction(cB, d, cx) | |
425 | 424 | } | |
426 | 425 | ||
427 | 426 | ||
428 | - | func | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | $Tuple2(IntegerEntry( | |
427 | + | func cC () = { | |
428 | + | let cy = assetBalance(D, k) | |
429 | + | let cz = assetBalance(this, k) | |
430 | + | let cA = (assetBalance(E, k) + valueOrElse(getInteger(E, an), 0)) | |
431 | + | let cD = (((cz + cy) + cA) / g) | |
432 | + | let cE = valueOrElse(getInteger(aZ), cD) | |
433 | + | let cF = valueOrElse(getInteger(aY), 0) | |
434 | + | let cg = lastBlock.timestamp | |
435 | + | let cG = (cE + fraction(cD, (cg - cF), e)) | |
436 | + | let cH = min([cG, cD]) | |
437 | + | $Tuple2(IntegerEntry(aY, cg), cH) | |
439 | 438 | } | |
440 | 439 | ||
441 | 440 | ||
442 | - | let | |
441 | + | let cI = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
443 | 442 | ||
444 | - | let | |
443 | + | let cJ = valueOrElse(getString(cI, "static_incubatorAddress"), "") | |
445 | 444 | ||
446 | - | let | |
445 | + | let cK = valueOrElse(getString(cI, "static_breederAddress"), "") | |
447 | 446 | ||
448 | - | let | |
447 | + | let cL = valueOrElse(getString(cI, "static_turtleIncubatorAddress"), "") | |
449 | 448 | ||
450 | - | let | |
449 | + | let cM = valueOrElse(getString(cI, "static_turtleBreederAddress"), "") | |
451 | 450 | ||
452 | - | let | |
451 | + | let cN = valueOrElse(getString(cI, "static_canineIncubatorAddress"), "") | |
453 | 452 | ||
454 | - | let | |
453 | + | let cO = valueOrElse(getString(cI, "static_canineBreederAddress"), "") | |
455 | 454 | ||
456 | - | let | |
455 | + | let cP = valueOrElse(getString(cI, "static_felineIncubatorAddress"), "") | |
457 | 456 | ||
458 | - | let | |
457 | + | let cQ = valueOrElse(getString(cI, "static_felineBreederAddress"), "") | |
459 | 458 | ||
460 | - | let | |
459 | + | let cR = valueOrElse(getString(cI, "static_mutantIncubatorAddress"), "") | |
461 | 460 | ||
462 | - | func | |
463 | - | let | |
461 | + | func cS (cT) = { | |
462 | + | let cU = toString(cT.issuer) | |
464 | 463 | if (if (if (if (if (if (if (if (if (if ((h == base58'2T')) | |
465 | - | then ( | |
464 | + | then (cU == n) | |
466 | 465 | else false) | |
467 | 466 | then true | |
468 | - | else ( | |
467 | + | else (cU == cJ)) | |
469 | 468 | then true | |
470 | - | else ( | |
469 | + | else (cU == cK)) | |
471 | 470 | then true | |
472 | - | else ( | |
471 | + | else (cU == cL)) | |
473 | 472 | then true | |
474 | - | else ( | |
473 | + | else (cU == cM)) | |
475 | 474 | then true | |
476 | - | else ( | |
475 | + | else (cU == cN)) | |
477 | 476 | then true | |
478 | - | else ( | |
477 | + | else (cU == cO)) | |
479 | 478 | then true | |
480 | - | else ( | |
479 | + | else (cU == cP)) | |
481 | 480 | then true | |
482 | - | else ( | |
483 | - | then | |
484 | - | else if (( | |
485 | - | then | |
481 | + | else (cU == cQ)) | |
482 | + | then cT.name | |
483 | + | else if ((cU == cR)) | |
484 | + | then cT.description | |
486 | 485 | else "" | |
487 | 486 | } | |
488 | 487 | ||
489 | 488 | ||
490 | - | func | |
491 | - | then throw(("NFT is not supported: " + | |
489 | + | func cV (bO) = if (!(contains(bO, "\"bonusType\": \"FarmPower\""))) | |
490 | + | then throw(("NFT is not supported: " + bO)) | |
492 | 491 | else { | |
493 | - | let | |
494 | - | parseIntValue(drop( | |
492 | + | let cW = split_4C(split_4C(bO, "\"bonus\":")[1], ",")[0] | |
493 | + | parseIntValue(drop(cW, (valueOrElse(lastIndexOf(cW, " "), -1) + 1))) | |
495 | 494 | } | |
496 | 495 | ||
497 | 496 | ||
498 | - | func cU (I,cV,aS,cW,cX,cY) = { | |
499 | - | let cZ = valueOrElse(getInteger(cW), 0) | |
500 | - | if ((cZ >= cY)) | |
501 | - | then throw((("You can stake max " + toString(cY)) + " of such NFTs")) | |
497 | + | func cX (bO) = if (!(contains(bO, "\"rare\""))) | |
498 | + | then throw(("NFT is not supported: " + bO)) | |
499 | + | else { | |
500 | + | let cY = split_4C(split_4C(split_4C(bO, "\"rare\"")[1], ",")[0], "\"")[1] | |
501 | + | value(indexOf(bo, cY)) | |
502 | + | } | |
503 | + | ||
504 | + | ||
505 | + | func cZ (I,da,aU,db,dc,dd) = { | |
506 | + | let de = valueOrElse(getInteger(db), 0) | |
507 | + | if ((de >= dd)) | |
508 | + | then throw((("You can stake max " + toString(dd)) + " of such NFTs")) | |
502 | 509 | else { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | $Tuple2(((( | |
510 | + | let df = cc(0, I, aU) | |
511 | + | let dg = df._1 | |
512 | + | let dh = df._2 | |
513 | + | $Tuple2((((dg :+ IntegerEntry(db, (de + 1))) :+ IntegerEntry(dc, (valueOrElse(getInteger(dc), 0) + 1))) :+ IntegerEntry(T(da, I), lastBlock.timestamp)), dh) | |
507 | 514 | } | |
508 | 515 | } | |
509 | 516 | ||
510 | 517 | ||
511 | - | @Callable( | |
512 | - | func saveLastTx () = if (!(containsElement([D], | |
518 | + | @Callable(bz) | |
519 | + | func saveLastTx () = if (!(containsElement([D], bz.caller))) | |
513 | 520 | then throw("Access denied") | |
514 | - | else $Tuple2( | |
521 | + | else $Tuple2(by(bz), 42) | |
515 | 522 | ||
516 | 523 | ||
517 | 524 | ||
518 | - | @Callable( | |
519 | - | func constructorV1 ( | |
525 | + | @Callable(bz) | |
526 | + | func constructorV1 (di,dj) = if ((bz.caller != this)) | |
520 | 527 | then throw("Permission denied") | |
521 | 528 | else { | |
522 | - | let | |
523 | - | [IntegerEntry( | |
529 | + | let dk = addressFromStringValue(dj) | |
530 | + | [IntegerEntry(M, getIntegerValue(dk, M)), BinaryEntry(N, getBinaryValue(dk, N)), StringEntry(v(), di), StringEntry(F, dj)] | |
524 | 531 | } | |
525 | 532 | ||
526 | 533 | ||
527 | 534 | ||
528 | - | @Callable( | |
529 | - | func setBlocked ( | |
535 | + | @Callable(bz) | |
536 | + | func setBlocked (dl) = if ((bz.caller != this)) | |
530 | 537 | then throw("permission denied") | |
531 | - | else [BooleanEntry(G(), | |
538 | + | else [BooleanEntry(G(), dl)] | |
532 | 539 | ||
533 | 540 | ||
534 | 541 | ||
535 | - | @Callable( | |
536 | - | func unstakeAcres ( | |
537 | - | let | |
538 | - | if ((0 >= | |
542 | + | @Callable(bz) | |
543 | + | func unstakeAcres (dm) = { | |
544 | + | let dn = by(bz) | |
545 | + | if ((0 >= dm)) | |
539 | 546 | then throw("Amount should be positive") | |
540 | 547 | else { | |
541 | - | let p = toString( | |
542 | - | if ((size( | |
548 | + | let p = toString(bz.caller) | |
549 | + | if ((size(bz.payments) != 0)) | |
543 | 550 | then throw("No payments required") | |
544 | 551 | else { | |
545 | - | let | |
546 | - | if (( | |
547 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
552 | + | let do = (valueOrElse(getInteger(D, aX(p)), 0) + m) | |
553 | + | if ((do > lastBlock.timestamp)) | |
554 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(do))) | |
548 | 555 | else { | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | $Tuple2((( | |
556 | + | let dp = cc(-(dm), p, 0) | |
557 | + | let dg = dp._1 | |
558 | + | let dh = dp._2 | |
559 | + | $Tuple2(((dg :+ ScriptTransfer(bz.caller, dm, O)) ++ dn), dh) | |
553 | 560 | } | |
554 | 561 | } | |
555 | 562 | } | |
557 | 564 | ||
558 | 565 | ||
559 | 566 | ||
560 | - | @Callable( | |
567 | + | @Callable(bz) | |
561 | 568 | func stakeAcres () = { | |
562 | - | let | |
563 | - | let p = toString( | |
564 | - | if ((size( | |
569 | + | let dn = by(bz) | |
570 | + | let p = toString(bz.caller) | |
571 | + | if ((size(bz.payments) != 1)) | |
565 | 572 | then throw("exactly 1 payment must be attached") | |
566 | 573 | else { | |
567 | - | let | |
568 | - | let | |
569 | - | if (if (!(isDefined( | |
574 | + | let dq = bz.payments[0] | |
575 | + | let cd = dq.amount | |
576 | + | if (if (!(isDefined(dq.assetId))) | |
570 | 577 | then true | |
571 | - | else (value( | |
578 | + | else (value(dq.assetId) != O)) | |
572 | 579 | then throw("ACRES payments only!") | |
573 | 580 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | $Tuple2(( | |
581 | + | let dr = cc(cd, p, 0) | |
582 | + | let dg = dr._1 | |
583 | + | let dh = dr._2 | |
584 | + | $Tuple2((dg ++ dn), dh) | |
578 | 585 | } | |
579 | 586 | } | |
580 | 587 | } | |
581 | 588 | ||
582 | 589 | ||
583 | 590 | ||
584 | - | @Callable( | |
591 | + | @Callable(bz) | |
585 | 592 | func buyAcres () = { | |
586 | - | let | |
587 | - | if ((size( | |
593 | + | let dn = by(bz) | |
594 | + | if ((size(bz.payments) != 1)) | |
588 | 595 | then throw("exactly 1 payment must be attached") | |
589 | 596 | else { | |
590 | - | let | |
591 | - | let | |
592 | - | if (if (!(isDefined( | |
597 | + | let dq = bz.payments[0] | |
598 | + | let ds = dq.amount | |
599 | + | if (if (!(isDefined(dq.assetId))) | |
593 | 600 | then true | |
594 | - | else (value( | |
601 | + | else (value(dq.assetId) != k)) | |
595 | 602 | then throw("USDT payments only!") | |
596 | - | else if ((b > | |
597 | - | then throw((("Min payment should be " + | |
603 | + | else if ((b > ds)) | |
604 | + | then throw((("Min payment should be " + af(b, 6)) + " USDT")) | |
598 | 605 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | if (( | |
606 | + | let dt = (ds * f) | |
607 | + | let du = fraction(ds, d, cv(ds)) | |
608 | + | let dv = addressFromStringValue(getStringValue(F)) | |
609 | + | let dw = invoke(dv, "requestAcresCallback", [dt], nil) | |
610 | + | if ((dw == dw)) | |
604 | 611 | then { | |
605 | - | let | |
606 | - | $Tuple2(([ScriptTransfer( | |
612 | + | let dx = W(invoke(D, "burnWlgold", [du], nil)) | |
613 | + | $Tuple2(([ScriptTransfer(bz.caller, dt, O)] ++ dn), dx) | |
607 | 614 | } | |
608 | 615 | else throw("Strict value is not equal to itself.") | |
609 | 616 | } | |
612 | 619 | ||
613 | 620 | ||
614 | 621 | ||
615 | - | @Callable( | |
616 | - | func buyAcresREADONLY ( | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2(nil, [ | |
622 | + | @Callable(bz) | |
623 | + | func buyAcresREADONLY (ds) = { | |
624 | + | let dt = (ds * f) | |
625 | + | let dy = fraction(ds, d, cv(ds)) | |
626 | + | $Tuple2(nil, [dt, b, dt, dy]) | |
620 | 627 | } | |
621 | 628 | ||
622 | 629 | ||
623 | 630 | ||
624 | - | @Callable( | |
631 | + | @Callable(bz) | |
625 | 632 | func sellAcres () = { | |
626 | - | let | |
627 | - | if ((size( | |
633 | + | let dn = by(bz) | |
634 | + | if ((size(bz.payments) != 1)) | |
628 | 635 | then throw("exactly 1 payment must be attached") | |
629 | 636 | else { | |
630 | - | let | |
631 | - | let | |
632 | - | if (if (!(isDefined( | |
637 | + | let dq = bz.payments[0] | |
638 | + | let dt = dq.amount | |
639 | + | if (if (!(isDefined(dq.assetId))) | |
633 | 640 | then true | |
634 | - | else (value( | |
641 | + | else (value(dq.assetId) != O)) | |
635 | 642 | then throw("ACRES payments only!") | |
636 | - | else if ((c > | |
637 | - | then throw((("Min payment should be " + | |
643 | + | else if ((c > dt)) | |
644 | + | then throw((("Min payment should be " + af(c, 8)) + " ACRES")) | |
638 | 645 | else { | |
639 | - | let I = toString( | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | if (( | |
645 | - | then throw((("You can sell max " + | |
646 | + | let I = toString(bz.caller) | |
647 | + | let dz = cC() | |
648 | + | let dA = dz._1 | |
649 | + | let dB = dz._2 | |
650 | + | let dC = (dB * f) | |
651 | + | if ((dt > dC)) | |
652 | + | then throw((("You can sell max " + af(dC, 8)) + " ACRES")) | |
646 | 653 | else { | |
647 | - | let | |
648 | - | $Tuple2(([ | |
654 | + | let ds = ((dt / f) / 2) | |
655 | + | $Tuple2(([dA, IntegerEntry(aZ, (dB - ds)), ScriptTransfer(bz.caller, ds, k)] ++ dn), ds) | |
649 | 656 | } | |
650 | 657 | } | |
651 | 658 | } | |
653 | 660 | ||
654 | 661 | ||
655 | 662 | ||
656 | - | @Callable( | |
657 | - | func sellAcresREADONLY (p, | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | $Tuple2(nil, [ | |
663 | + | @Callable(bz) | |
664 | + | func sellAcresREADONLY (p,dt) = { | |
665 | + | let dD = cC() | |
666 | + | let dA = dD._1 | |
667 | + | let dB = dD._2 | |
668 | + | let ds = ((dt / f) / 2) | |
669 | + | $Tuple2(nil, [ds, c, (dB * f), 0]) | |
663 | 670 | } | |
664 | 671 | ||
665 | 672 | ||
666 | 673 | ||
667 | - | @Callable( | |
668 | - | func convertOldStakes () = if (( | |
674 | + | @Callable(bz) | |
675 | + | func convertOldStakes () = if ((bz.caller != this)) | |
669 | 676 | then throw("Temporarily disabled") | |
670 | 677 | else { | |
671 | - | let p = toString( | |
672 | - | if ((size( | |
678 | + | let p = toString(bz.caller) | |
679 | + | if ((size(bz.payments) != 0)) | |
673 | 680 | then throw("No payments required") | |
674 | 681 | else { | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | then | |
682 | + | let dv = addressFromStringValue(getStringValue(F)) | |
683 | + | let dm = valueOrElse(getInteger(dv, ao(p)), 0) | |
684 | + | let dE = if ((dm > 0)) | |
685 | + | then ae(invoke(dv, "unstakeAcresCallback", [dm, p], nil)) | |
679 | 686 | else $Tuple2(0, 0) | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
687 | + | let dF = addressFromStringValue(n) | |
688 | + | let dG = getString(dF, Q(p)) | |
689 | + | let dH = if (isDefined(dG)) | |
683 | 690 | then { | |
684 | - | let | |
685 | - | func | |
691 | + | let dI = split_51C(value(dG), "_") | |
692 | + | func dJ (aJ,dK) = if ((dK == "")) | |
686 | 693 | then throw("landAssetId is required") | |
687 | 694 | else { | |
688 | - | let | |
689 | - | $Tuple4(( | |
695 | + | let dL = Z(invoke(dF, "unstakeLandCallback", [dK, p], nil)) | |
696 | + | $Tuple4((aJ._1 + dL._1), (aJ._2 + dL._2), (aJ._3 + dL._3), (aJ._4 + dL._4)) | |
690 | 697 | } | |
691 | 698 | ||
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | func | |
697 | - | then | |
698 | - | else | |
699 | + | let dM = { | |
700 | + | let aL = dI | |
701 | + | let aM = size(aL) | |
702 | + | let aN = $Tuple4(0, 0, 0, 0) | |
703 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
704 | + | then aP | |
705 | + | else dJ(aP, aL[aQ]) | |
699 | 706 | ||
700 | - | func | |
701 | - | then | |
707 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
708 | + | then aP | |
702 | 709 | else throw("List size exceeds 100") | |
703 | 710 | ||
704 | - | | |
711 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 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), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
705 | 712 | } | |
706 | - | let | |
707 | - | if (( | |
713 | + | let dN = invoke(dF, "unstakeLandsFinalizeCallback", [p], nil) | |
714 | + | if ((dN == dN)) | |
708 | 715 | then { | |
709 | - | let | |
710 | - | if (( | |
716 | + | let dw = invoke(dv, "requestAcresCallback", [(((dM._1 + dM._2) + dM._3) + dM._4)], nil) | |
717 | + | if ((dw == dw)) | |
711 | 718 | then { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | $Tuple5( | |
719 | + | let dO = bS(bj, bn, bv, bt, 3, bc, bx, bz.caller) | |
720 | + | let dP = dO._1 | |
721 | + | let cb = dO._2 | |
722 | + | $Tuple5(dM._1, dM._2, dM._3, dM._4, dP) | |
716 | 723 | } | |
717 | 724 | else throw("Strict value is not equal to itself.") | |
718 | 725 | } | |
719 | 726 | else throw("Strict value is not equal to itself.") | |
720 | 727 | } | |
721 | 728 | else $Tuple5(0, 0, 0, 0, nil) | |
722 | - | let | |
723 | - | let | |
724 | - | then | |
729 | + | let dQ = valueOrElse(getString(dF, S(p)), "") | |
730 | + | let dR = if ((dQ != "")) | |
731 | + | then ad(invoke(dF, "unstakeDuckCallback", [dQ, p], nil)) | |
725 | 732 | else $Tuple3(0, 0, 0) | |
726 | - | let | |
727 | - | $Tuple2(( | |
733 | + | let dS = cc((((((((dE._1 + dH._1) + dH._2) + dH._3) + dH._4) + dR._1) + dR._2) + dR._3), p, 0) | |
734 | + | $Tuple2((dH._5 ++ dS._1), dS._2) | |
728 | 735 | } | |
729 | 736 | } | |
730 | 737 | ||
731 | 738 | ||
732 | 739 | ||
733 | - | @Callable( | |
740 | + | @Callable(bz) | |
734 | 741 | func unstakeLandsREADONLY (p) = { | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
742 | + | let dF = addressFromStringValue(n) | |
743 | + | let dG = getString(dF, Q(p)) | |
744 | + | let dH = if (isDefined(dG)) | |
738 | 745 | then { | |
739 | - | let | |
740 | - | func | |
746 | + | let dI = split_51C(value(dG), "_") | |
747 | + | func dJ (aJ,dK) = if ((dK == "")) | |
741 | 748 | then throw("landAssetId is required") | |
742 | 749 | else { | |
743 | - | let | |
744 | - | $Tuple4(( | |
750 | + | let dL = ac(invoke(dF, "unstakeLandREADONLY", [dK, p], nil)) | |
751 | + | $Tuple4((aJ._1 + dL._1), (aJ._2 + dL._2), (aJ._3 + dL._3), (aJ._4 + dL._4)) | |
745 | 752 | } | |
746 | 753 | ||
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | func | |
751 | - | then | |
752 | - | else | |
754 | + | let aL = dI | |
755 | + | let aM = size(aL) | |
756 | + | let aN = $Tuple4(0, 0, 0, 0) | |
757 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
758 | + | then aP | |
759 | + | else dJ(aP, aL[aQ]) | |
753 | 760 | ||
754 | - | func | |
755 | - | then | |
761 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
762 | + | then aP | |
756 | 763 | else throw("List size exceeds 100") | |
757 | 764 | ||
758 | - | | |
765 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 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), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
759 | 766 | } | |
760 | 767 | else $Tuple4(0, 0, 0, 0) | |
761 | - | $Tuple2(nil, | |
768 | + | $Tuple2(nil, dH) | |
762 | 769 | } | |
763 | 770 | ||
764 | 771 | ||
765 | 772 | ||
766 | - | @Callable( | |
767 | - | func stakeAcresCallback (I) = if (( | |
773 | + | @Callable(bz) | |
774 | + | func stakeAcresCallback (I) = if ((bz.caller != addressFromStringValue(n))) | |
768 | 775 | then throw("Permission denied") | |
769 | - | else | |
776 | + | else cc(bz.payments[0].amount, I, 0) | |
770 | 777 | ||
771 | 778 | ||
772 | 779 | ||
773 | - | @Callable( | |
774 | - | func simulateStakeAcresREADONLY (p, | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | $Tuple2(nil, [ | |
780 | + | @Callable(bz) | |
781 | + | func simulateStakeAcresREADONLY (p,dT) = { | |
782 | + | let ci = ao(p) | |
783 | + | let ck = (valueOrElse(getInteger(ci), 0) + dT) | |
784 | + | let cl = valueOrElse(getInteger(aq), 0) | |
785 | + | let cm = ap(p) | |
786 | + | let cn = valueOrElse(getInteger(cm), 0) | |
787 | + | let dU = valueOrElse(getInteger(C, aD(p)), 0) | |
788 | + | let dV = aT(ck, dU) | |
789 | + | let cr = dV._1 | |
790 | + | let cs = dV._2 | |
791 | + | let ct = valueOrElse(getInteger(ar), 0) | |
792 | + | let dW = ((ct + cr) - cn) | |
793 | + | $Tuple2(nil, [cn, cr, ct, dW]) | |
787 | 794 | } | |
788 | 795 | ||
789 | 796 | ||
790 | 797 | ||
791 | - | @Callable( | |
792 | - | func issuePickC1 ( | |
798 | + | @Callable(bz) | |
799 | + | func issuePickC1 (dX) = if ((bz.caller != D)) | |
793 | 800 | then throw("Permission denied") | |
794 | - | else | |
801 | + | else bS(bk, bm, bv, bp, 1, bd, bx, addressFromStringValue(dX)) | |
795 | 802 | ||
796 | 803 | ||
797 | 804 | ||
798 | - | @Callable( | |
805 | + | @Callable(bz) | |
799 | 806 | func stakeNFT () = { | |
800 | - | let | |
801 | - | if ((size( | |
807 | + | let dn = by(bz) | |
808 | + | if ((size(bz.payments) != 1)) | |
802 | 809 | then throw("Exactly one payment required") | |
803 | 810 | else { | |
804 | - | let | |
805 | - | if (( | |
811 | + | let dq = value(bz.payments[0]) | |
812 | + | if ((dq.amount != 1)) | |
806 | 813 | then throw("NFT token should be attached as payment") | |
807 | 814 | else { | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let I = toString( | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | then split_4C(value( | |
815 | + | let U = value(dq.assetId) | |
816 | + | let dY = value(assetInfo(U)) | |
817 | + | let da = toBase58String(U) | |
818 | + | let I = toString(bz.caller) | |
819 | + | let dZ = V(I) | |
820 | + | let ea = getString(dZ) | |
821 | + | let eb = if (isDefined(ea)) | |
822 | + | then split_4C(value(ea), "_") | |
816 | 823 | else nil | |
817 | - | if (containsElement( | |
818 | - | then throw(("Your staked NFTs already contain " + | |
819 | - | else if ((size( | |
820 | - | then throw((("Your already staked max (" + toString( | |
824 | + | if (containsElement(eb, da)) | |
825 | + | then throw(("Your staked NFTs already contain " + da)) | |
826 | + | else if ((size(eb) >= av)) | |
827 | + | then throw((("Your already staked max (" + toString(av)) + ") NFTs")) | |
821 | 828 | else { | |
822 | - | let | |
823 | - | if (( | |
829 | + | let ec = StringEntry(dZ, makeString_2C((eb :+ da), "_")) | |
830 | + | if ((dY.issuer == this)) | |
824 | 831 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | $Tuple2((( | |
832 | + | let ed = cZ(I, da, (cV(value(dY.description)) * 10000), aB(I), ay, as) | |
833 | + | let dg = ed._1 | |
834 | + | let dh = ed._2 | |
835 | + | $Tuple2(((dn ++ dg) :+ ec), dh) | |
829 | 836 | } | |
830 | - | else if (( | |
837 | + | else if ((cS(dY) == "")) | |
831 | 838 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
832 | 839 | else { | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | $Tuple2((( | |
840 | + | let ee = cZ(I, da, au, aC(I), az, at) | |
841 | + | let dg = ee._1 | |
842 | + | let dh = ee._2 | |
843 | + | $Tuple2(((dn ++ dg) :+ ec), dh) | |
837 | 844 | } | |
838 | 845 | } | |
839 | 846 | } | |
842 | 849 | ||
843 | 850 | ||
844 | 851 | ||
845 | - | @Callable( | |
846 | - | func unstakeNFT ( | |
847 | - | let | |
848 | - | if ((size( | |
852 | + | @Callable(bz) | |
853 | + | func unstakeNFT (da) = { | |
854 | + | let dn = by(bz) | |
855 | + | if ((size(bz.payments) != 0)) | |
849 | 856 | then throw("No payments required") | |
850 | 857 | else { | |
851 | - | let | |
852 | - | let I = toString( | |
853 | - | let | |
854 | - | let | |
855 | - | if (!(isDefined(getInteger( | |
856 | - | then throw((("NFT " + | |
858 | + | let U = fromBase58String(da) | |
859 | + | let I = toString(bz.caller) | |
860 | + | let dY = value(assetInfo(U)) | |
861 | + | let ch = T(da, I) | |
862 | + | if (!(isDefined(getInteger(ch)))) | |
863 | + | then throw((("NFT " + dY.name) + " is not staked by you")) | |
857 | 864 | else { | |
858 | - | let | |
859 | - | let | |
860 | - | let A = indexOf( | |
865 | + | let dZ = V(I) | |
866 | + | let eb = split_4C(valueOrElse(getString(dZ), ""), "_") | |
867 | + | let A = indexOf(eb, da) | |
861 | 868 | if (!(isDefined(A))) | |
862 | - | then throw(("Your staked NFTs don't contain " + | |
869 | + | then throw(("Your staked NFTs don't contain " + da)) | |
863 | 870 | else { | |
864 | - | let | |
865 | - | then StringEntry( | |
866 | - | else DeleteEntry( | |
867 | - | let | |
868 | - | if ( | |
871 | + | let ec = if ((size(eb) > 1)) | |
872 | + | then StringEntry(dZ, makeString_2C(removeByIndex(eb, value(A)), "_")) | |
873 | + | else DeleteEntry(dZ) | |
874 | + | let ef = (dY.issuer == this) | |
875 | + | if (ef) | |
869 | 876 | then { | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | $Tuple2((((((( | |
877 | + | let eg = valueOrElse(getInteger(aB(I)), 0) | |
878 | + | let eh = (cV(value(dY.description)) * 10000) | |
879 | + | let ei = cc(0, I, -(eh)) | |
880 | + | let dg = ei._1 | |
881 | + | let dh = ei._2 | |
882 | + | $Tuple2(((((((dg :+ ec) :+ IntegerEntry(aB(I), (eg - 1))) :+ IntegerEntry(ay, max([0, (valueOrElse(getInteger(ay), 0) - 1)]))) :+ DeleteEntry(T(toBase58String(U), I))) :+ ScriptTransfer(bz.caller, 1, U)) ++ dn), dh) | |
876 | 883 | } | |
877 | 884 | else { | |
878 | - | let | |
879 | - | if (( | |
885 | + | let ej = cS(dY) | |
886 | + | if ((ej == "")) | |
880 | 887 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
881 | 888 | else { | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | $Tuple2(((((( | |
889 | + | let ek = valueOrElse(getInteger(aC(I)), 0) | |
890 | + | let el = cc(0, I, -(au)) | |
891 | + | let dg = el._1 | |
892 | + | let dh = el._2 | |
893 | + | $Tuple2((((((dg :+ ec) :+ IntegerEntry(aC(I), (ek - 1))) :+ DeleteEntry(T(toBase58String(U), I))) :+ ScriptTransfer(bz.caller, 1, U)) ++ dn), dh) | |
887 | 894 | } | |
888 | 895 | } | |
889 | 896 | } | |
893 | 900 | ||
894 | 901 | ||
895 | 902 | ||
896 | - | @Callable( | |
897 | - | func exchangeNFTs () = if (( | |
903 | + | @Callable(bz) | |
904 | + | func exchangeNFTs () = if ((bz.caller != this)) | |
898 | 905 | then throw("Temporarily disabled") | |
899 | 906 | else { | |
900 | - | let | |
901 | - | if ((3 > size( | |
902 | - | then throw("Min one | |
903 | - | else if ((size( | |
904 | - | then throw("Max one | |
907 | + | let dn = by(bz) | |
908 | + | if ((3 > size(bz.payments))) | |
909 | + | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
910 | + | else if ((size(bz.payments) > 6)) | |
911 | + | then throw("Max one WLGOLD and 5 NFT payments allowed") | |
905 | 912 | else { | |
906 | - | let I = toString( | |
907 | - | func | |
908 | - | let | |
909 | - | if (( | |
910 | - | then $Tuple3(( | |
913 | + | let I = toString(bz.caller) | |
914 | + | func em (aJ,dq) = { | |
915 | + | let U = valueOrErrorMessage(dq.assetId, "WAVES payments not allowed") | |
916 | + | if ((U == L)) | |
917 | + | then $Tuple3((aJ._1 + dq.amount), aJ._2, aJ._3) | |
911 | 918 | else { | |
912 | - | let | |
913 | - | if (( | |
919 | + | let dY = value(assetInfo(U)) | |
920 | + | if ((dY.issuer != this)) | |
914 | 921 | then throw("Only WL-issued NFTs allowed") | |
915 | 922 | else { | |
916 | - | let bR = cS(value(dT.description)) | |
917 | - | $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1))) | |
923 | + | let en = cX(value(dY.description)) | |
924 | + | if (if ((aJ._4 > 0)) | |
925 | + | then (en != aJ._4) | |
926 | + | else false) | |
927 | + | then throw("You can exchange only NFTs of the same rarity") | |
928 | + | else { | |
929 | + | let bX = cV(value(dY.description)) | |
930 | + | $Tuple4(aJ._1, (aJ._2 + bX), (aJ._3 :+ Burn(U, 1)), en) | |
931 | + | } | |
918 | 932 | } | |
919 | 933 | } | |
920 | 934 | } | |
921 | 935 | ||
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | func | |
927 | - | then | |
928 | - | else | |
936 | + | let eo = { | |
937 | + | let aL = bz.payments | |
938 | + | let aM = size(aL) | |
939 | + | let aN = $Tuple4(0, 0, nil, -1) | |
940 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
941 | + | then aP | |
942 | + | else em(aP, aL[aQ]) | |
929 | 943 | ||
930 | - | func | |
931 | - | then | |
944 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
945 | + | then aP | |
932 | 946 | else throw("List size exceeds 6") | |
933 | 947 | ||
934 | - | | |
948 | + | aR(aO(aO(aO(aO(aO(aO(aN, 0), 1), 2), 3), 4), 5), 6) | |
935 | 949 | } | |
936 | - | let ej = ei._1 | |
937 | - | let ek = ei._2 | |
938 | - | let el = ei._3 | |
939 | - | let bX = if ((ek == 3)) | |
940 | - | then 2 | |
941 | - | else if ((ek == 5)) | |
942 | - | then 3 | |
943 | - | else if ((ek == 10)) | |
944 | - | then 4 | |
945 | - | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
946 | - | let em = (ej - (ek * b)) | |
947 | - | if ((0 > em)) | |
948 | - | then throw((("You need to attach " + toString(ek)) + " USDT as fee")) | |
950 | + | let ep = eo._1 | |
951 | + | let eq = eo._2 | |
952 | + | let er = eo._3 | |
953 | + | let bW = eo._4 | |
954 | + | let es = if ((bW == bp)) | |
955 | + | then if ((be[bf] > eq)) | |
956 | + | then bp | |
957 | + | else if ((be[bg] > eq)) | |
958 | + | then bq | |
959 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(be[bg])) + "%")) | |
960 | + | else if ((bW == bq)) | |
961 | + | then if ((be[bg] > eq)) | |
962 | + | then bq | |
963 | + | else if ((be[bh] > eq)) | |
964 | + | then br | |
965 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(be[bh])) + "%")) | |
966 | + | else if ((bW == br)) | |
967 | + | then if ((be[bh] > eq)) | |
968 | + | then br | |
969 | + | else bs | |
970 | + | else if ((bW == bs)) | |
971 | + | then bs | |
972 | + | else if ((bW == bt)) | |
973 | + | then throw("You can't exchange NFTs of this rarity") | |
974 | + | else throw("Unknown rarity") | |
975 | + | let et = fraction(eq, 100, cv(0)) | |
976 | + | let eu = (ep - et) | |
977 | + | let ev = (et / 2) | |
978 | + | let dx = W(invoke(D, "burnWlgold", [(et - ev)], nil)) | |
979 | + | if ((0 > eu)) | |
980 | + | then throw((("You need to attach " + af(et, 8)) + " WLGOLD as fee")) | |
949 | 981 | else { | |
950 | - | let | |
951 | - | then [ScriptTransfer( | |
982 | + | let ew = if ((eu > 0)) | |
983 | + | then [ScriptTransfer(bz.caller, eu, L)] | |
952 | 984 | else nil | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
985 | + | let ex = bS(bk, es, bv, es, eq, bd, bx, bz.caller) | |
986 | + | let ey = ex._1 | |
987 | + | let cb = ex._2 | |
988 | + | let ez = size(er) | |
989 | + | let eA = if ((ez == 0)) | |
958 | 990 | then nil | |
959 | - | else [IntegerEntry( | |
960 | - | $Tuple2((((( | |
991 | + | else [IntegerEntry(ax, (valueOrElse(getInteger(ax), 0) + ez))] | |
992 | + | $Tuple2((((((ey ++ er) ++ eA) ++ dn) ++ ew) :+ ScriptTransfer(addressFromStringValue(getStringValue(D, aW)), ev, L)), $Tuple2(cb, dx)) | |
961 | 993 | } | |
962 | 994 | } | |
963 | 995 | } | |
964 | 996 | ||
965 | 997 | ||
966 | 998 | ||
967 | - | @Callable( | |
968 | - | func openNftChest () = if (( | |
999 | + | @Callable(bz) | |
1000 | + | func openNftChest () = if ((bz.caller != this)) | |
969 | 1001 | then throw("Permission denied") | |
970 | 1002 | else $Tuple2(nil, 0) | |
971 | 1003 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = 86400000 | |
13 | 13 | ||
14 | 14 | let f = 10 | |
15 | 15 | ||
16 | 16 | let g = 100 | |
17 | 17 | ||
18 | 18 | let h = take(drop(this.bytes, 1), 1) | |
19 | 19 | ||
20 | 20 | let i = { | |
21 | 21 | let j = h | |
22 | 22 | if ((base58'2W' == j)) | |
23 | 23 | then 10080 | |
24 | 24 | else if ((base58'2T' == j)) | |
25 | 25 | then 180 | |
26 | 26 | else throw("Unknown chain") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | let k = { | |
30 | 30 | let j = h | |
31 | 31 | if ((base58'2W' == j)) | |
32 | 32 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
33 | 33 | else if ((base58'2T' == j)) | |
34 | 34 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
35 | 35 | else throw("Unknown chain") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | let l = { | |
39 | 39 | let j = h | |
40 | 40 | if ((base58'2W' == j)) | |
41 | 41 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
42 | 42 | else if ((base58'2T' == j)) | |
43 | 43 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
44 | 44 | else throw("Unknown chain") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | let m = { | |
48 | 48 | let j = h | |
49 | 49 | if ((base58'2W' == j)) | |
50 | 50 | then e | |
51 | 51 | else if ((base58'2T' == j)) | |
52 | 52 | then 60000 | |
53 | 53 | else throw("Unknown chain") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | let n = { | |
57 | 57 | let j = h | |
58 | 58 | if ((base58'2W' == j)) | |
59 | 59 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
60 | 60 | else if ((base58'2T' == j)) | |
61 | 61 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
62 | 62 | else throw("Unknown chain") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | let r = 1 | |
69 | 69 | ||
70 | 70 | let s = 2 | |
71 | 71 | ||
72 | 72 | let t = 5 | |
73 | 73 | ||
74 | 74 | func u () = "%s__restConfig" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func v () = "%s__rest2Addr" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func w (x) = split_4C(o(x, u()), a) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A))) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | let B = addressFromStringValue(valueOrElse(getString(this, v()), l)) | |
87 | 87 | ||
88 | 88 | let z = w(B) | |
89 | 89 | ||
90 | 90 | let C = y(z, r) | |
91 | 91 | ||
92 | 92 | let D = y(z, s) | |
93 | 93 | ||
94 | 94 | let E = y(z, t) | |
95 | 95 | ||
96 | 96 | let F = "oldAcresContract" | |
97 | 97 | ||
98 | 98 | func G () = "contractsBlocked" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func H (I) = ("lastWeekTxIdByUser_" + I) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func J (I) = ("curWeekTxIdByUser_" + I) | |
105 | 105 | ||
106 | 106 | ||
107 | - | let K = " | |
107 | + | let K = "wlg_assetId" | |
108 | 108 | ||
109 | - | let L = " | |
109 | + | let L = valueOrErrorMessage(getBinary(D, K), "WLGOLD is not issued yet") | |
110 | 110 | ||
111 | - | let M = | |
111 | + | let M = "acresIssuedAmount" | |
112 | 112 | ||
113 | - | func N (I) = ("acresStakedTimeByUser_" + I) | |
113 | + | let N = "acresAssetId" | |
114 | + | ||
115 | + | let O = valueOrErrorMessage(getBinary(C, N), "ACRES is not issued yet") | |
116 | + | ||
117 | + | func P (I) = ("acresStakedTimeByUser_" + I) | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func Q (R) = ("stakedLandsByOwner_" + R) | |
117 | 121 | ||
118 | 122 | ||
119 | - | func | |
123 | + | func S (R) = ("stakedDuckByOwner_" + R) | |
120 | 124 | ||
121 | 125 | ||
122 | - | func | |
126 | + | func T (U,I) = ((("st_" + U) + "_") + I) | |
123 | 127 | ||
124 | 128 | ||
125 | - | func | |
129 | + | func V (R) = ("stakedNFTsByOwner_" + R) | |
126 | 130 | ||
127 | 131 | ||
128 | - | func | |
129 | - | let j = | |
132 | + | func W (X) = { | |
133 | + | let j = X | |
130 | 134 | if ($isInstanceOf(j, "Int")) | |
131 | 135 | then { | |
132 | - | let | |
133 | - | | |
136 | + | let Y = j | |
137 | + | Y | |
134 | 138 | } | |
135 | 139 | else throw("fail to cast into Int") | |
136 | 140 | } | |
137 | 141 | ||
138 | 142 | ||
139 | - | func | |
140 | - | let j = | |
143 | + | func Z (aa) = { | |
144 | + | let j = aa | |
141 | 145 | if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)")) | |
142 | 146 | then { | |
143 | - | let | |
144 | - | | |
147 | + | let ab = j | |
148 | + | ab | |
145 | 149 | } | |
146 | 150 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
147 | 151 | } | |
148 | 152 | ||
149 | 153 | ||
150 | - | func | |
151 | - | let j = | |
154 | + | func ac (aa) = { | |
155 | + | let j = aa | |
152 | 156 | if ($isInstanceOf(j, "(Int, Int, Int, Int)")) | |
153 | 157 | then { | |
154 | - | let | |
155 | - | | |
158 | + | let ab = j | |
159 | + | ab | |
156 | 160 | } | |
157 | 161 | else throw("fail to cast into (Int, Int, Int, Int)") | |
158 | 162 | } | |
159 | 163 | ||
160 | 164 | ||
161 | - | func | |
162 | - | let j = | |
165 | + | func ad (aa) = { | |
166 | + | let j = aa | |
163 | 167 | if ($isInstanceOf(j, "(Int, Int, Int)")) | |
164 | 168 | then { | |
165 | - | let | |
166 | - | | |
169 | + | let ab = j | |
170 | + | ab | |
167 | 171 | } | |
168 | 172 | else throw("fail to cast into (Int, Int, Int)") | |
169 | 173 | } | |
170 | 174 | ||
171 | 175 | ||
172 | - | func | |
173 | - | let j = | |
176 | + | func ae (aa) = { | |
177 | + | let j = aa | |
174 | 178 | if ($isInstanceOf(j, "(Int, Int)")) | |
175 | 179 | then { | |
176 | - | let | |
177 | - | | |
180 | + | let ab = j | |
181 | + | ab | |
178 | 182 | } | |
179 | 183 | else throw("fail to cast into (Int, Int)") | |
180 | 184 | } | |
181 | 185 | ||
182 | 186 | ||
183 | - | func | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | (((toString(( | |
187 | + | func af (aa,ag) = { | |
188 | + | let ah = pow(10, 0, ag, 0, 0, DOWN) | |
189 | + | let ai = toString((aa % ah)) | |
190 | + | let aj = drop(toString(ah), (1 + size(ai))) | |
191 | + | (((toString((aa / ah)) + ".") + aj) + ai) | |
188 | 192 | } | |
189 | 193 | ||
190 | 194 | ||
191 | - | let | |
195 | + | let ak = 1000000 | |
192 | 196 | ||
193 | - | let | |
197 | + | let al = 100000000 | |
194 | 198 | ||
195 | - | let | |
199 | + | let am = "wlg_issuedAmount" | |
196 | 200 | ||
197 | - | let | |
201 | + | let an = "zbill_issuedAmount" | |
198 | 202 | ||
199 | - | func | |
203 | + | func ao (I) = ("acresStakedAmountByUser_" + I) | |
200 | 204 | ||
201 | 205 | ||
202 | - | func | |
206 | + | func ap (I) = ("farmingPowerByUser_" + I) | |
203 | 207 | ||
204 | 208 | ||
205 | - | let | |
209 | + | let aq = "acresStakedAmountTotal" | |
206 | 210 | ||
207 | - | let | |
211 | + | let ar = "totalFarmingPower" | |
208 | 212 | ||
209 | - | let | |
213 | + | let as = 3 | |
210 | 214 | ||
211 | - | let | |
215 | + | let at = 1 | |
212 | 216 | ||
213 | - | let | |
217 | + | let au = 5000 | |
214 | 218 | ||
215 | - | let | |
219 | + | let av = 4 | |
216 | 220 | ||
217 | - | let | |
221 | + | let aw = "nftTotalIssued" | |
218 | 222 | ||
219 | - | let | |
223 | + | let ax = "nftTotalBurned" | |
220 | 224 | ||
221 | - | let | |
225 | + | let ay = "WlNftTotalStaked" | |
222 | 226 | ||
223 | - | let | |
227 | + | let az = "ArkNftTotalStaked" | |
224 | 228 | ||
225 | - | func | |
229 | + | func aA (U) = ("nftNumberByAssetId_" + U) | |
226 | 230 | ||
227 | 231 | ||
228 | - | func | |
232 | + | func aB (I) = ("userWlNftNumber_" + I) | |
229 | 233 | ||
230 | 234 | ||
231 | - | func | |
235 | + | func aC (I) = ("userArkNftNumber_" + I) | |
232 | 236 | ||
233 | 237 | ||
234 | - | func | |
238 | + | func aD (I) = ("userFullBonus_" + I) | |
235 | 239 | ||
236 | 240 | ||
237 | - | let | |
241 | + | let aE = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
238 | 242 | ||
239 | - | func | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else ( | |
243 | + | func aF (aG) = { | |
244 | + | let aH = ((aG + 99999999) / al) | |
245 | + | func aI (aJ,aK) = if ((aK >= aH)) | |
246 | + | then aJ | |
247 | + | else (aJ + 1) | |
244 | 248 | ||
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | func | |
249 | - | then | |
250 | - | else | |
249 | + | let aL = aE | |
250 | + | let aM = size(aL) | |
251 | + | let aN = 0 | |
252 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
253 | + | then aP | |
254 | + | else aI(aP, aL[aQ]) | |
251 | 255 | ||
252 | - | func | |
253 | - | then | |
256 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
257 | + | then aP | |
254 | 258 | else throw("List size exceeds 10") | |
255 | 259 | ||
256 | - | | |
260 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
257 | 261 | } | |
258 | 262 | ||
259 | 263 | ||
260 | - | func | |
264 | + | func aS (aG) = ((aG * 20) * (aF(aG) + 4)) | |
261 | 265 | ||
262 | 266 | ||
263 | - | func | |
264 | - | let | |
265 | - | $Tuple2(fraction( | |
267 | + | func aT (aG,aU) = { | |
268 | + | let aV = aS(aG) | |
269 | + | $Tuple2(fraction(aV, (ak + aU), ak), aV) | |
266 | 270 | } | |
267 | 271 | ||
268 | 272 | ||
269 | - | func aU (I) = ("lastArbTimeUser_" + I) | |
273 | + | let aW = "teamAddr" | |
274 | + | ||
275 | + | func aX (I) = ("lastArbTimeUser_" + I) | |
270 | 276 | ||
271 | 277 | ||
272 | - | let | |
278 | + | let aY = "lastAcresSellTime" | |
273 | 279 | ||
274 | - | let | |
280 | + | let aZ = "lastLimitLeft" | |
275 | 281 | ||
276 | - | let | |
282 | + | let ba = ["Gold shovel", "Pickaxe"] | |
277 | 283 | ||
278 | - | let | |
284 | + | let bb = ["Reward for early birds", "Increases FarmPower"] | |
279 | 285 | ||
280 | - | let | |
286 | + | let bc = 0 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bd = 1 | |
283 | 289 | ||
284 | - | let | |
290 | + | let be = [5, 10, 20] | |
285 | 291 | ||
286 | - | let | |
292 | + | let bf = 0 | |
287 | 293 | ||
288 | - | let | |
294 | + | let bg = 1 | |
289 | 295 | ||
290 | - | let | |
296 | + | let bh = 2 | |
291 | 297 | ||
292 | - | let bf = ["SHOVEL", "PICKAXE"] | |
293 | - | ||
294 | - | let bg = 0 | |
295 | - | ||
296 | - | let bh = 1 | |
297 | - | ||
298 | - | let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
298 | + | let bi = ["SHOVEL", "PICKAXE"] | |
299 | 299 | ||
300 | 300 | let bj = 0 | |
301 | 301 | ||
302 | - | let bk = | |
302 | + | let bk = 1 | |
303 | 303 | ||
304 | - | let bl = [" | |
304 | + | let bl = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
305 | 305 | ||
306 | 306 | let bm = 0 | |
307 | 307 | ||
308 | 308 | let bn = 4 | |
309 | 309 | ||
310 | - | let bo = [" | |
310 | + | let bo = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
311 | 311 | ||
312 | 312 | let bp = 0 | |
313 | 313 | ||
314 | - | let bq = | |
314 | + | let bq = 1 | |
315 | 315 | ||
316 | - | let br = | |
316 | + | let br = 2 | |
317 | 317 | ||
318 | - | func bs (bt) = if (if ((bt.originCaller != B)) | |
318 | + | let bs = 3 | |
319 | + | ||
320 | + | let bt = 4 | |
321 | + | ||
322 | + | let bu = ["Digging tools"] | |
323 | + | ||
324 | + | let bv = 0 | |
325 | + | ||
326 | + | let bw = ["FarmPower"] | |
327 | + | ||
328 | + | let bx = 0 | |
329 | + | ||
330 | + | func by (bz) = if (if ((bz.originCaller != B)) | |
319 | 331 | then valueOrElse(getBoolean(G()), false) | |
320 | 332 | else false) | |
321 | 333 | then throw("Contracts are under maintenance") | |
322 | 334 | else { | |
323 | - | let I = toString( | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | if (isDefined( | |
335 | + | let I = toString(bz.originCaller) | |
336 | + | let bA = (height / i) | |
337 | + | let bB = H(I) | |
338 | + | let bC = getString(bB) | |
339 | + | let bD = toBase58String(bz.transactionId) | |
340 | + | let bE = ((toString(bA) + "_") + bD) | |
341 | + | let bF = J(I) | |
342 | + | if (isDefined(bC)) | |
331 | 343 | then { | |
332 | - | let | |
333 | - | if (( | |
334 | - | then [StringEntry( | |
335 | - | else if (( | |
336 | - | then [StringEntry( | |
344 | + | let bG = split(value(bC), "_") | |
345 | + | if ((bG[0] == toString(bA))) | |
346 | + | then [StringEntry(bB, bE), StringEntry(bF, bE)] | |
347 | + | else if ((bG[0] == toString((bA - 1)))) | |
348 | + | then [StringEntry(bF, bE)] | |
337 | 349 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | if (( | |
341 | - | then [StringEntry( | |
342 | - | else [StringEntry( | |
350 | + | let bH = getStringValue(bF) | |
351 | + | let bI = split(bH, "_") | |
352 | + | if ((bI[0] == toString(bA))) | |
353 | + | then [StringEntry(bF, bE)] | |
354 | + | else [StringEntry(bB, bH), StringEntry(bF, bE)] | |
343 | 355 | } | |
344 | 356 | } | |
345 | - | else [StringEntry( | |
357 | + | else [StringEntry(bB, bE), StringEntry(bF, bE)] | |
346 | 358 | } | |
347 | 359 | ||
348 | 360 | ||
349 | - | func | |
361 | + | func bJ (bK,bL,bM,bN,bO,bP,bQ,bR) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bK) + "\", ") + "\"number\": ") + toString(bL)) + ", ") + "\"collection\": \"") + bM) + "\", ") + "\"name\": \"") + bN) + "\", ") + "\"description\": \"") + bO) + "\", ") + "\"rare\": \"") + bP) + "\", ") + "\"bonus\": ") + toString(bQ)) + ", ") + "\"bonusType\": \"") + bR) + "\"}") | |
350 | 362 | ||
351 | 363 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | $Tuple2([ | |
364 | + | func bS (bT,bU,bV,bW,bX,bY,bZ,I) = { | |
365 | + | let bL = valueOrElse(getInteger(aw), 0) | |
366 | + | let bP = bo[bW] | |
367 | + | let bN = (((bi[bT] + "-") + take(bP, 1)) + toString(bX)) | |
368 | + | let ca = Issue(bN, bJ(bl[bU], bL, bu[bV], ba[bT], bb[bY], bo[bW], bX, bw[bZ]), 1, 0, false) | |
369 | + | let cb = calculateAssetId(ca) | |
370 | + | $Tuple2([ca, IntegerEntry(aw, (bL + 1)), IntegerEntry(aA(toBase58String(cb)), bL), ScriptTransfer(I, 1, cb)], cb) | |
359 | 371 | } | |
360 | 372 | ||
361 | 373 | ||
362 | - | func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}") | |
363 | - | ||
364 | - | ||
365 | - | func bY (bX,I) = if ((bX >= size(aY))) | |
366 | - | then throw("nftIndex out of bounds") | |
367 | - | else { | |
368 | - | let bF = valueOrElse(getInteger(au), 0) | |
369 | - | let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false) | |
370 | - | let bV = calculateAssetId(bU) | |
371 | - | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
372 | - | } | |
373 | - | ||
374 | - | ||
375 | - | func bZ (ca,p,cb) = if (if ((ca == 0)) | |
376 | - | then (cb == 0) | |
374 | + | func cc (cd,p,ce) = if (if ((cd == 0)) | |
375 | + | then (ce == 0) | |
377 | 376 | else false) | |
378 | 377 | then throw("Nothing to do") | |
379 | 378 | else { | |
380 | - | let | |
381 | - | if (( | |
379 | + | let cf = invoke(D, "onStakeUnstakeLand", [p], nil) | |
380 | + | if ((cf == cf)) | |
382 | 381 | then { | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | if (if ((0 > | |
388 | - | then (0 > ( | |
382 | + | let cg = lastBlock.timestamp | |
383 | + | let ch = P(p) | |
384 | + | let ci = ao(p) | |
385 | + | let cj = valueOrElse(getInteger(ci), 0) | |
386 | + | if (if ((0 > cd)) | |
387 | + | then (0 > (cj + cd)) | |
389 | 388 | else false) | |
390 | - | then throw(((("You have only " + | |
389 | + | then throw(((("You have only " + af(cj, 8)) + " ACRES staked, tried to unstake ") + af(-(cd), 8))) | |
391 | 390 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | if (if ((0 > | |
399 | - | then (0 > ( | |
391 | + | let ck = (cj + cd) | |
392 | + | let cl = valueOrElse(getInteger(aq), 0) | |
393 | + | let cm = ap(p) | |
394 | + | let cn = valueOrElse(getInteger(cm), 0) | |
395 | + | let co = aD(p) | |
396 | + | let cp = valueOrElse(getInteger(C, co), 0) | |
397 | + | if (if ((0 > ce)) | |
398 | + | then (0 > (cp + ce)) | |
400 | 399 | else false) | |
401 | - | then throw((((("You have only " + | |
400 | + | then throw((((("You have only " + af(cp, 4)) + "% bonus, and tried to unstake ") + af(-(ce), 4)) + "%")) | |
402 | 401 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
402 | + | let cq = aT(ck, (cp + ce)) | |
403 | + | let cr = cq._1 | |
404 | + | let cs = cq._2 | |
405 | + | let ct = valueOrElse(getInteger(ar), 0) | |
406 | + | let cu = if ((cd == 0)) | |
408 | 407 | then nil | |
409 | - | else [IntegerEntry( | |
410 | - | $Tuple2((((( | |
408 | + | else [IntegerEntry(ci, ck), IntegerEntry(aq, (cl + cd))] | |
409 | + | $Tuple2(((((cu :+ IntegerEntry(ch, lastBlock.timestamp)) :+ IntegerEntry(cm, cr)) :+ IntegerEntry(ar, ((ct + cr) - cn))) :+ IntegerEntry(co, (cp + ce))), cf) | |
411 | 410 | } | |
412 | 411 | } | |
413 | 412 | } | |
414 | 413 | else throw("Strict value is not equal to itself.") | |
415 | 414 | } | |
416 | 415 | ||
417 | 416 | ||
418 | - | func | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | fraction( | |
417 | + | func cv (cw) = { | |
418 | + | let cx = valueOrErrorMessage(getInteger(D, am), "WLGOLD is not issued yet") | |
419 | + | let cy = assetBalance(D, k) | |
420 | + | let cz = (assetBalance(C, k) - cw) | |
421 | + | let cA = (assetBalance(E, k) + valueOrElse(getInteger(E, an), 0)) | |
422 | + | let cB = ((cz + cy) + cA) | |
423 | + | fraction(cB, d, cx) | |
425 | 424 | } | |
426 | 425 | ||
427 | 426 | ||
428 | - | func | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | $Tuple2(IntegerEntry( | |
427 | + | func cC () = { | |
428 | + | let cy = assetBalance(D, k) | |
429 | + | let cz = assetBalance(this, k) | |
430 | + | let cA = (assetBalance(E, k) + valueOrElse(getInteger(E, an), 0)) | |
431 | + | let cD = (((cz + cy) + cA) / g) | |
432 | + | let cE = valueOrElse(getInteger(aZ), cD) | |
433 | + | let cF = valueOrElse(getInteger(aY), 0) | |
434 | + | let cg = lastBlock.timestamp | |
435 | + | let cG = (cE + fraction(cD, (cg - cF), e)) | |
436 | + | let cH = min([cG, cD]) | |
437 | + | $Tuple2(IntegerEntry(aY, cg), cH) | |
439 | 438 | } | |
440 | 439 | ||
441 | 440 | ||
442 | - | let | |
441 | + | let cI = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
443 | 442 | ||
444 | - | let | |
443 | + | let cJ = valueOrElse(getString(cI, "static_incubatorAddress"), "") | |
445 | 444 | ||
446 | - | let | |
445 | + | let cK = valueOrElse(getString(cI, "static_breederAddress"), "") | |
447 | 446 | ||
448 | - | let | |
447 | + | let cL = valueOrElse(getString(cI, "static_turtleIncubatorAddress"), "") | |
449 | 448 | ||
450 | - | let | |
449 | + | let cM = valueOrElse(getString(cI, "static_turtleBreederAddress"), "") | |
451 | 450 | ||
452 | - | let | |
451 | + | let cN = valueOrElse(getString(cI, "static_canineIncubatorAddress"), "") | |
453 | 452 | ||
454 | - | let | |
453 | + | let cO = valueOrElse(getString(cI, "static_canineBreederAddress"), "") | |
455 | 454 | ||
456 | - | let | |
455 | + | let cP = valueOrElse(getString(cI, "static_felineIncubatorAddress"), "") | |
457 | 456 | ||
458 | - | let | |
457 | + | let cQ = valueOrElse(getString(cI, "static_felineBreederAddress"), "") | |
459 | 458 | ||
460 | - | let | |
459 | + | let cR = valueOrElse(getString(cI, "static_mutantIncubatorAddress"), "") | |
461 | 460 | ||
462 | - | func | |
463 | - | let | |
461 | + | func cS (cT) = { | |
462 | + | let cU = toString(cT.issuer) | |
464 | 463 | if (if (if (if (if (if (if (if (if (if ((h == base58'2T')) | |
465 | - | then ( | |
464 | + | then (cU == n) | |
466 | 465 | else false) | |
467 | 466 | then true | |
468 | - | else ( | |
467 | + | else (cU == cJ)) | |
469 | 468 | then true | |
470 | - | else ( | |
469 | + | else (cU == cK)) | |
471 | 470 | then true | |
472 | - | else ( | |
471 | + | else (cU == cL)) | |
473 | 472 | then true | |
474 | - | else ( | |
473 | + | else (cU == cM)) | |
475 | 474 | then true | |
476 | - | else ( | |
475 | + | else (cU == cN)) | |
477 | 476 | then true | |
478 | - | else ( | |
477 | + | else (cU == cO)) | |
479 | 478 | then true | |
480 | - | else ( | |
479 | + | else (cU == cP)) | |
481 | 480 | then true | |
482 | - | else ( | |
483 | - | then | |
484 | - | else if (( | |
485 | - | then | |
481 | + | else (cU == cQ)) | |
482 | + | then cT.name | |
483 | + | else if ((cU == cR)) | |
484 | + | then cT.description | |
486 | 485 | else "" | |
487 | 486 | } | |
488 | 487 | ||
489 | 488 | ||
490 | - | func | |
491 | - | then throw(("NFT is not supported: " + | |
489 | + | func cV (bO) = if (!(contains(bO, "\"bonusType\": \"FarmPower\""))) | |
490 | + | then throw(("NFT is not supported: " + bO)) | |
492 | 491 | else { | |
493 | - | let | |
494 | - | parseIntValue(drop( | |
492 | + | let cW = split_4C(split_4C(bO, "\"bonus\":")[1], ",")[0] | |
493 | + | parseIntValue(drop(cW, (valueOrElse(lastIndexOf(cW, " "), -1) + 1))) | |
495 | 494 | } | |
496 | 495 | ||
497 | 496 | ||
498 | - | func cU (I,cV,aS,cW,cX,cY) = { | |
499 | - | let cZ = valueOrElse(getInteger(cW), 0) | |
500 | - | if ((cZ >= cY)) | |
501 | - | then throw((("You can stake max " + toString(cY)) + " of such NFTs")) | |
497 | + | func cX (bO) = if (!(contains(bO, "\"rare\""))) | |
498 | + | then throw(("NFT is not supported: " + bO)) | |
499 | + | else { | |
500 | + | let cY = split_4C(split_4C(split_4C(bO, "\"rare\"")[1], ",")[0], "\"")[1] | |
501 | + | value(indexOf(bo, cY)) | |
502 | + | } | |
503 | + | ||
504 | + | ||
505 | + | func cZ (I,da,aU,db,dc,dd) = { | |
506 | + | let de = valueOrElse(getInteger(db), 0) | |
507 | + | if ((de >= dd)) | |
508 | + | then throw((("You can stake max " + toString(dd)) + " of such NFTs")) | |
502 | 509 | else { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | $Tuple2(((( | |
510 | + | let df = cc(0, I, aU) | |
511 | + | let dg = df._1 | |
512 | + | let dh = df._2 | |
513 | + | $Tuple2((((dg :+ IntegerEntry(db, (de + 1))) :+ IntegerEntry(dc, (valueOrElse(getInteger(dc), 0) + 1))) :+ IntegerEntry(T(da, I), lastBlock.timestamp)), dh) | |
507 | 514 | } | |
508 | 515 | } | |
509 | 516 | ||
510 | 517 | ||
511 | - | @Callable( | |
512 | - | func saveLastTx () = if (!(containsElement([D], | |
518 | + | @Callable(bz) | |
519 | + | func saveLastTx () = if (!(containsElement([D], bz.caller))) | |
513 | 520 | then throw("Access denied") | |
514 | - | else $Tuple2( | |
521 | + | else $Tuple2(by(bz), 42) | |
515 | 522 | ||
516 | 523 | ||
517 | 524 | ||
518 | - | @Callable( | |
519 | - | func constructorV1 ( | |
525 | + | @Callable(bz) | |
526 | + | func constructorV1 (di,dj) = if ((bz.caller != this)) | |
520 | 527 | then throw("Permission denied") | |
521 | 528 | else { | |
522 | - | let | |
523 | - | [IntegerEntry( | |
529 | + | let dk = addressFromStringValue(dj) | |
530 | + | [IntegerEntry(M, getIntegerValue(dk, M)), BinaryEntry(N, getBinaryValue(dk, N)), StringEntry(v(), di), StringEntry(F, dj)] | |
524 | 531 | } | |
525 | 532 | ||
526 | 533 | ||
527 | 534 | ||
528 | - | @Callable( | |
529 | - | func setBlocked ( | |
535 | + | @Callable(bz) | |
536 | + | func setBlocked (dl) = if ((bz.caller != this)) | |
530 | 537 | then throw("permission denied") | |
531 | - | else [BooleanEntry(G(), | |
538 | + | else [BooleanEntry(G(), dl)] | |
532 | 539 | ||
533 | 540 | ||
534 | 541 | ||
535 | - | @Callable( | |
536 | - | func unstakeAcres ( | |
537 | - | let | |
538 | - | if ((0 >= | |
542 | + | @Callable(bz) | |
543 | + | func unstakeAcres (dm) = { | |
544 | + | let dn = by(bz) | |
545 | + | if ((0 >= dm)) | |
539 | 546 | then throw("Amount should be positive") | |
540 | 547 | else { | |
541 | - | let p = toString( | |
542 | - | if ((size( | |
548 | + | let p = toString(bz.caller) | |
549 | + | if ((size(bz.payments) != 0)) | |
543 | 550 | then throw("No payments required") | |
544 | 551 | else { | |
545 | - | let | |
546 | - | if (( | |
547 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
552 | + | let do = (valueOrElse(getInteger(D, aX(p)), 0) + m) | |
553 | + | if ((do > lastBlock.timestamp)) | |
554 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(do))) | |
548 | 555 | else { | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | $Tuple2((( | |
556 | + | let dp = cc(-(dm), p, 0) | |
557 | + | let dg = dp._1 | |
558 | + | let dh = dp._2 | |
559 | + | $Tuple2(((dg :+ ScriptTransfer(bz.caller, dm, O)) ++ dn), dh) | |
553 | 560 | } | |
554 | 561 | } | |
555 | 562 | } | |
556 | 563 | } | |
557 | 564 | ||
558 | 565 | ||
559 | 566 | ||
560 | - | @Callable( | |
567 | + | @Callable(bz) | |
561 | 568 | func stakeAcres () = { | |
562 | - | let | |
563 | - | let p = toString( | |
564 | - | if ((size( | |
569 | + | let dn = by(bz) | |
570 | + | let p = toString(bz.caller) | |
571 | + | if ((size(bz.payments) != 1)) | |
565 | 572 | then throw("exactly 1 payment must be attached") | |
566 | 573 | else { | |
567 | - | let | |
568 | - | let | |
569 | - | if (if (!(isDefined( | |
574 | + | let dq = bz.payments[0] | |
575 | + | let cd = dq.amount | |
576 | + | if (if (!(isDefined(dq.assetId))) | |
570 | 577 | then true | |
571 | - | else (value( | |
578 | + | else (value(dq.assetId) != O)) | |
572 | 579 | then throw("ACRES payments only!") | |
573 | 580 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | $Tuple2(( | |
581 | + | let dr = cc(cd, p, 0) | |
582 | + | let dg = dr._1 | |
583 | + | let dh = dr._2 | |
584 | + | $Tuple2((dg ++ dn), dh) | |
578 | 585 | } | |
579 | 586 | } | |
580 | 587 | } | |
581 | 588 | ||
582 | 589 | ||
583 | 590 | ||
584 | - | @Callable( | |
591 | + | @Callable(bz) | |
585 | 592 | func buyAcres () = { | |
586 | - | let | |
587 | - | if ((size( | |
593 | + | let dn = by(bz) | |
594 | + | if ((size(bz.payments) != 1)) | |
588 | 595 | then throw("exactly 1 payment must be attached") | |
589 | 596 | else { | |
590 | - | let | |
591 | - | let | |
592 | - | if (if (!(isDefined( | |
597 | + | let dq = bz.payments[0] | |
598 | + | let ds = dq.amount | |
599 | + | if (if (!(isDefined(dq.assetId))) | |
593 | 600 | then true | |
594 | - | else (value( | |
601 | + | else (value(dq.assetId) != k)) | |
595 | 602 | then throw("USDT payments only!") | |
596 | - | else if ((b > | |
597 | - | then throw((("Min payment should be " + | |
603 | + | else if ((b > ds)) | |
604 | + | then throw((("Min payment should be " + af(b, 6)) + " USDT")) | |
598 | 605 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | if (( | |
606 | + | let dt = (ds * f) | |
607 | + | let du = fraction(ds, d, cv(ds)) | |
608 | + | let dv = addressFromStringValue(getStringValue(F)) | |
609 | + | let dw = invoke(dv, "requestAcresCallback", [dt], nil) | |
610 | + | if ((dw == dw)) | |
604 | 611 | then { | |
605 | - | let | |
606 | - | $Tuple2(([ScriptTransfer( | |
612 | + | let dx = W(invoke(D, "burnWlgold", [du], nil)) | |
613 | + | $Tuple2(([ScriptTransfer(bz.caller, dt, O)] ++ dn), dx) | |
607 | 614 | } | |
608 | 615 | else throw("Strict value is not equal to itself.") | |
609 | 616 | } | |
610 | 617 | } | |
611 | 618 | } | |
612 | 619 | ||
613 | 620 | ||
614 | 621 | ||
615 | - | @Callable( | |
616 | - | func buyAcresREADONLY ( | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2(nil, [ | |
622 | + | @Callable(bz) | |
623 | + | func buyAcresREADONLY (ds) = { | |
624 | + | let dt = (ds * f) | |
625 | + | let dy = fraction(ds, d, cv(ds)) | |
626 | + | $Tuple2(nil, [dt, b, dt, dy]) | |
620 | 627 | } | |
621 | 628 | ||
622 | 629 | ||
623 | 630 | ||
624 | - | @Callable( | |
631 | + | @Callable(bz) | |
625 | 632 | func sellAcres () = { | |
626 | - | let | |
627 | - | if ((size( | |
633 | + | let dn = by(bz) | |
634 | + | if ((size(bz.payments) != 1)) | |
628 | 635 | then throw("exactly 1 payment must be attached") | |
629 | 636 | else { | |
630 | - | let | |
631 | - | let | |
632 | - | if (if (!(isDefined( | |
637 | + | let dq = bz.payments[0] | |
638 | + | let dt = dq.amount | |
639 | + | if (if (!(isDefined(dq.assetId))) | |
633 | 640 | then true | |
634 | - | else (value( | |
641 | + | else (value(dq.assetId) != O)) | |
635 | 642 | then throw("ACRES payments only!") | |
636 | - | else if ((c > | |
637 | - | then throw((("Min payment should be " + | |
643 | + | else if ((c > dt)) | |
644 | + | then throw((("Min payment should be " + af(c, 8)) + " ACRES")) | |
638 | 645 | else { | |
639 | - | let I = toString( | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | if (( | |
645 | - | then throw((("You can sell max " + | |
646 | + | let I = toString(bz.caller) | |
647 | + | let dz = cC() | |
648 | + | let dA = dz._1 | |
649 | + | let dB = dz._2 | |
650 | + | let dC = (dB * f) | |
651 | + | if ((dt > dC)) | |
652 | + | then throw((("You can sell max " + af(dC, 8)) + " ACRES")) | |
646 | 653 | else { | |
647 | - | let | |
648 | - | $Tuple2(([ | |
654 | + | let ds = ((dt / f) / 2) | |
655 | + | $Tuple2(([dA, IntegerEntry(aZ, (dB - ds)), ScriptTransfer(bz.caller, ds, k)] ++ dn), ds) | |
649 | 656 | } | |
650 | 657 | } | |
651 | 658 | } | |
652 | 659 | } | |
653 | 660 | ||
654 | 661 | ||
655 | 662 | ||
656 | - | @Callable( | |
657 | - | func sellAcresREADONLY (p, | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | $Tuple2(nil, [ | |
663 | + | @Callable(bz) | |
664 | + | func sellAcresREADONLY (p,dt) = { | |
665 | + | let dD = cC() | |
666 | + | let dA = dD._1 | |
667 | + | let dB = dD._2 | |
668 | + | let ds = ((dt / f) / 2) | |
669 | + | $Tuple2(nil, [ds, c, (dB * f), 0]) | |
663 | 670 | } | |
664 | 671 | ||
665 | 672 | ||
666 | 673 | ||
667 | - | @Callable( | |
668 | - | func convertOldStakes () = if (( | |
674 | + | @Callable(bz) | |
675 | + | func convertOldStakes () = if ((bz.caller != this)) | |
669 | 676 | then throw("Temporarily disabled") | |
670 | 677 | else { | |
671 | - | let p = toString( | |
672 | - | if ((size( | |
678 | + | let p = toString(bz.caller) | |
679 | + | if ((size(bz.payments) != 0)) | |
673 | 680 | then throw("No payments required") | |
674 | 681 | else { | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | then | |
682 | + | let dv = addressFromStringValue(getStringValue(F)) | |
683 | + | let dm = valueOrElse(getInteger(dv, ao(p)), 0) | |
684 | + | let dE = if ((dm > 0)) | |
685 | + | then ae(invoke(dv, "unstakeAcresCallback", [dm, p], nil)) | |
679 | 686 | else $Tuple2(0, 0) | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
687 | + | let dF = addressFromStringValue(n) | |
688 | + | let dG = getString(dF, Q(p)) | |
689 | + | let dH = if (isDefined(dG)) | |
683 | 690 | then { | |
684 | - | let | |
685 | - | func | |
691 | + | let dI = split_51C(value(dG), "_") | |
692 | + | func dJ (aJ,dK) = if ((dK == "")) | |
686 | 693 | then throw("landAssetId is required") | |
687 | 694 | else { | |
688 | - | let | |
689 | - | $Tuple4(( | |
695 | + | let dL = Z(invoke(dF, "unstakeLandCallback", [dK, p], nil)) | |
696 | + | $Tuple4((aJ._1 + dL._1), (aJ._2 + dL._2), (aJ._3 + dL._3), (aJ._4 + dL._4)) | |
690 | 697 | } | |
691 | 698 | ||
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | func | |
697 | - | then | |
698 | - | else | |
699 | + | let dM = { | |
700 | + | let aL = dI | |
701 | + | let aM = size(aL) | |
702 | + | let aN = $Tuple4(0, 0, 0, 0) | |
703 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
704 | + | then aP | |
705 | + | else dJ(aP, aL[aQ]) | |
699 | 706 | ||
700 | - | func | |
701 | - | then | |
707 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
708 | + | then aP | |
702 | 709 | else throw("List size exceeds 100") | |
703 | 710 | ||
704 | - | | |
711 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 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), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
705 | 712 | } | |
706 | - | let | |
707 | - | if (( | |
713 | + | let dN = invoke(dF, "unstakeLandsFinalizeCallback", [p], nil) | |
714 | + | if ((dN == dN)) | |
708 | 715 | then { | |
709 | - | let | |
710 | - | if (( | |
716 | + | let dw = invoke(dv, "requestAcresCallback", [(((dM._1 + dM._2) + dM._3) + dM._4)], nil) | |
717 | + | if ((dw == dw)) | |
711 | 718 | then { | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | $Tuple5( | |
719 | + | let dO = bS(bj, bn, bv, bt, 3, bc, bx, bz.caller) | |
720 | + | let dP = dO._1 | |
721 | + | let cb = dO._2 | |
722 | + | $Tuple5(dM._1, dM._2, dM._3, dM._4, dP) | |
716 | 723 | } | |
717 | 724 | else throw("Strict value is not equal to itself.") | |
718 | 725 | } | |
719 | 726 | else throw("Strict value is not equal to itself.") | |
720 | 727 | } | |
721 | 728 | else $Tuple5(0, 0, 0, 0, nil) | |
722 | - | let | |
723 | - | let | |
724 | - | then | |
729 | + | let dQ = valueOrElse(getString(dF, S(p)), "") | |
730 | + | let dR = if ((dQ != "")) | |
731 | + | then ad(invoke(dF, "unstakeDuckCallback", [dQ, p], nil)) | |
725 | 732 | else $Tuple3(0, 0, 0) | |
726 | - | let | |
727 | - | $Tuple2(( | |
733 | + | let dS = cc((((((((dE._1 + dH._1) + dH._2) + dH._3) + dH._4) + dR._1) + dR._2) + dR._3), p, 0) | |
734 | + | $Tuple2((dH._5 ++ dS._1), dS._2) | |
728 | 735 | } | |
729 | 736 | } | |
730 | 737 | ||
731 | 738 | ||
732 | 739 | ||
733 | - | @Callable( | |
740 | + | @Callable(bz) | |
734 | 741 | func unstakeLandsREADONLY (p) = { | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
742 | + | let dF = addressFromStringValue(n) | |
743 | + | let dG = getString(dF, Q(p)) | |
744 | + | let dH = if (isDefined(dG)) | |
738 | 745 | then { | |
739 | - | let | |
740 | - | func | |
746 | + | let dI = split_51C(value(dG), "_") | |
747 | + | func dJ (aJ,dK) = if ((dK == "")) | |
741 | 748 | then throw("landAssetId is required") | |
742 | 749 | else { | |
743 | - | let | |
744 | - | $Tuple4(( | |
750 | + | let dL = ac(invoke(dF, "unstakeLandREADONLY", [dK, p], nil)) | |
751 | + | $Tuple4((aJ._1 + dL._1), (aJ._2 + dL._2), (aJ._3 + dL._3), (aJ._4 + dL._4)) | |
745 | 752 | } | |
746 | 753 | ||
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | func | |
751 | - | then | |
752 | - | else | |
754 | + | let aL = dI | |
755 | + | let aM = size(aL) | |
756 | + | let aN = $Tuple4(0, 0, 0, 0) | |
757 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
758 | + | then aP | |
759 | + | else dJ(aP, aL[aQ]) | |
753 | 760 | ||
754 | - | func | |
755 | - | then | |
761 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
762 | + | then aP | |
756 | 763 | else throw("List size exceeds 100") | |
757 | 764 | ||
758 | - | | |
765 | + | aR(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aO(aN, 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), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
759 | 766 | } | |
760 | 767 | else $Tuple4(0, 0, 0, 0) | |
761 | - | $Tuple2(nil, | |
768 | + | $Tuple2(nil, dH) | |
762 | 769 | } | |
763 | 770 | ||
764 | 771 | ||
765 | 772 | ||
766 | - | @Callable( | |
767 | - | func stakeAcresCallback (I) = if (( | |
773 | + | @Callable(bz) | |
774 | + | func stakeAcresCallback (I) = if ((bz.caller != addressFromStringValue(n))) | |
768 | 775 | then throw("Permission denied") | |
769 | - | else | |
776 | + | else cc(bz.payments[0].amount, I, 0) | |
770 | 777 | ||
771 | 778 | ||
772 | 779 | ||
773 | - | @Callable( | |
774 | - | func simulateStakeAcresREADONLY (p, | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | $Tuple2(nil, [ | |
780 | + | @Callable(bz) | |
781 | + | func simulateStakeAcresREADONLY (p,dT) = { | |
782 | + | let ci = ao(p) | |
783 | + | let ck = (valueOrElse(getInteger(ci), 0) + dT) | |
784 | + | let cl = valueOrElse(getInteger(aq), 0) | |
785 | + | let cm = ap(p) | |
786 | + | let cn = valueOrElse(getInteger(cm), 0) | |
787 | + | let dU = valueOrElse(getInteger(C, aD(p)), 0) | |
788 | + | let dV = aT(ck, dU) | |
789 | + | let cr = dV._1 | |
790 | + | let cs = dV._2 | |
791 | + | let ct = valueOrElse(getInteger(ar), 0) | |
792 | + | let dW = ((ct + cr) - cn) | |
793 | + | $Tuple2(nil, [cn, cr, ct, dW]) | |
787 | 794 | } | |
788 | 795 | ||
789 | 796 | ||
790 | 797 | ||
791 | - | @Callable( | |
792 | - | func issuePickC1 ( | |
798 | + | @Callable(bz) | |
799 | + | func issuePickC1 (dX) = if ((bz.caller != D)) | |
793 | 800 | then throw("Permission denied") | |
794 | - | else | |
801 | + | else bS(bk, bm, bv, bp, 1, bd, bx, addressFromStringValue(dX)) | |
795 | 802 | ||
796 | 803 | ||
797 | 804 | ||
798 | - | @Callable( | |
805 | + | @Callable(bz) | |
799 | 806 | func stakeNFT () = { | |
800 | - | let | |
801 | - | if ((size( | |
807 | + | let dn = by(bz) | |
808 | + | if ((size(bz.payments) != 1)) | |
802 | 809 | then throw("Exactly one payment required") | |
803 | 810 | else { | |
804 | - | let | |
805 | - | if (( | |
811 | + | let dq = value(bz.payments[0]) | |
812 | + | if ((dq.amount != 1)) | |
806 | 813 | then throw("NFT token should be attached as payment") | |
807 | 814 | else { | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let I = toString( | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | then split_4C(value( | |
815 | + | let U = value(dq.assetId) | |
816 | + | let dY = value(assetInfo(U)) | |
817 | + | let da = toBase58String(U) | |
818 | + | let I = toString(bz.caller) | |
819 | + | let dZ = V(I) | |
820 | + | let ea = getString(dZ) | |
821 | + | let eb = if (isDefined(ea)) | |
822 | + | then split_4C(value(ea), "_") | |
816 | 823 | else nil | |
817 | - | if (containsElement( | |
818 | - | then throw(("Your staked NFTs already contain " + | |
819 | - | else if ((size( | |
820 | - | then throw((("Your already staked max (" + toString( | |
824 | + | if (containsElement(eb, da)) | |
825 | + | then throw(("Your staked NFTs already contain " + da)) | |
826 | + | else if ((size(eb) >= av)) | |
827 | + | then throw((("Your already staked max (" + toString(av)) + ") NFTs")) | |
821 | 828 | else { | |
822 | - | let | |
823 | - | if (( | |
829 | + | let ec = StringEntry(dZ, makeString_2C((eb :+ da), "_")) | |
830 | + | if ((dY.issuer == this)) | |
824 | 831 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | $Tuple2((( | |
832 | + | let ed = cZ(I, da, (cV(value(dY.description)) * 10000), aB(I), ay, as) | |
833 | + | let dg = ed._1 | |
834 | + | let dh = ed._2 | |
835 | + | $Tuple2(((dn ++ dg) :+ ec), dh) | |
829 | 836 | } | |
830 | - | else if (( | |
837 | + | else if ((cS(dY) == "")) | |
831 | 838 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
832 | 839 | else { | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | $Tuple2((( | |
840 | + | let ee = cZ(I, da, au, aC(I), az, at) | |
841 | + | let dg = ee._1 | |
842 | + | let dh = ee._2 | |
843 | + | $Tuple2(((dn ++ dg) :+ ec), dh) | |
837 | 844 | } | |
838 | 845 | } | |
839 | 846 | } | |
840 | 847 | } | |
841 | 848 | } | |
842 | 849 | ||
843 | 850 | ||
844 | 851 | ||
845 | - | @Callable( | |
846 | - | func unstakeNFT ( | |
847 | - | let | |
848 | - | if ((size( | |
852 | + | @Callable(bz) | |
853 | + | func unstakeNFT (da) = { | |
854 | + | let dn = by(bz) | |
855 | + | if ((size(bz.payments) != 0)) | |
849 | 856 | then throw("No payments required") | |
850 | 857 | else { | |
851 | - | let | |
852 | - | let I = toString( | |
853 | - | let | |
854 | - | let | |
855 | - | if (!(isDefined(getInteger( | |
856 | - | then throw((("NFT " + | |
858 | + | let U = fromBase58String(da) | |
859 | + | let I = toString(bz.caller) | |
860 | + | let dY = value(assetInfo(U)) | |
861 | + | let ch = T(da, I) | |
862 | + | if (!(isDefined(getInteger(ch)))) | |
863 | + | then throw((("NFT " + dY.name) + " is not staked by you")) | |
857 | 864 | else { | |
858 | - | let | |
859 | - | let | |
860 | - | let A = indexOf( | |
865 | + | let dZ = V(I) | |
866 | + | let eb = split_4C(valueOrElse(getString(dZ), ""), "_") | |
867 | + | let A = indexOf(eb, da) | |
861 | 868 | if (!(isDefined(A))) | |
862 | - | then throw(("Your staked NFTs don't contain " + | |
869 | + | then throw(("Your staked NFTs don't contain " + da)) | |
863 | 870 | else { | |
864 | - | let | |
865 | - | then StringEntry( | |
866 | - | else DeleteEntry( | |
867 | - | let | |
868 | - | if ( | |
871 | + | let ec = if ((size(eb) > 1)) | |
872 | + | then StringEntry(dZ, makeString_2C(removeByIndex(eb, value(A)), "_")) | |
873 | + | else DeleteEntry(dZ) | |
874 | + | let ef = (dY.issuer == this) | |
875 | + | if (ef) | |
869 | 876 | then { | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | $Tuple2((((((( | |
877 | + | let eg = valueOrElse(getInteger(aB(I)), 0) | |
878 | + | let eh = (cV(value(dY.description)) * 10000) | |
879 | + | let ei = cc(0, I, -(eh)) | |
880 | + | let dg = ei._1 | |
881 | + | let dh = ei._2 | |
882 | + | $Tuple2(((((((dg :+ ec) :+ IntegerEntry(aB(I), (eg - 1))) :+ IntegerEntry(ay, max([0, (valueOrElse(getInteger(ay), 0) - 1)]))) :+ DeleteEntry(T(toBase58String(U), I))) :+ ScriptTransfer(bz.caller, 1, U)) ++ dn), dh) | |
876 | 883 | } | |
877 | 884 | else { | |
878 | - | let | |
879 | - | if (( | |
885 | + | let ej = cS(dY) | |
886 | + | if ((ej == "")) | |
880 | 887 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
881 | 888 | else { | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | $Tuple2(((((( | |
889 | + | let ek = valueOrElse(getInteger(aC(I)), 0) | |
890 | + | let el = cc(0, I, -(au)) | |
891 | + | let dg = el._1 | |
892 | + | let dh = el._2 | |
893 | + | $Tuple2((((((dg :+ ec) :+ IntegerEntry(aC(I), (ek - 1))) :+ DeleteEntry(T(toBase58String(U), I))) :+ ScriptTransfer(bz.caller, 1, U)) ++ dn), dh) | |
887 | 894 | } | |
888 | 895 | } | |
889 | 896 | } | |
890 | 897 | } | |
891 | 898 | } | |
892 | 899 | } | |
893 | 900 | ||
894 | 901 | ||
895 | 902 | ||
896 | - | @Callable( | |
897 | - | func exchangeNFTs () = if (( | |
903 | + | @Callable(bz) | |
904 | + | func exchangeNFTs () = if ((bz.caller != this)) | |
898 | 905 | then throw("Temporarily disabled") | |
899 | 906 | else { | |
900 | - | let | |
901 | - | if ((3 > size( | |
902 | - | then throw("Min one | |
903 | - | else if ((size( | |
904 | - | then throw("Max one | |
907 | + | let dn = by(bz) | |
908 | + | if ((3 > size(bz.payments))) | |
909 | + | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
910 | + | else if ((size(bz.payments) > 6)) | |
911 | + | then throw("Max one WLGOLD and 5 NFT payments allowed") | |
905 | 912 | else { | |
906 | - | let I = toString( | |
907 | - | func | |
908 | - | let | |
909 | - | if (( | |
910 | - | then $Tuple3(( | |
913 | + | let I = toString(bz.caller) | |
914 | + | func em (aJ,dq) = { | |
915 | + | let U = valueOrErrorMessage(dq.assetId, "WAVES payments not allowed") | |
916 | + | if ((U == L)) | |
917 | + | then $Tuple3((aJ._1 + dq.amount), aJ._2, aJ._3) | |
911 | 918 | else { | |
912 | - | let | |
913 | - | if (( | |
919 | + | let dY = value(assetInfo(U)) | |
920 | + | if ((dY.issuer != this)) | |
914 | 921 | then throw("Only WL-issued NFTs allowed") | |
915 | 922 | else { | |
916 | - | let bR = cS(value(dT.description)) | |
917 | - | $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1))) | |
923 | + | let en = cX(value(dY.description)) | |
924 | + | if (if ((aJ._4 > 0)) | |
925 | + | then (en != aJ._4) | |
926 | + | else false) | |
927 | + | then throw("You can exchange only NFTs of the same rarity") | |
928 | + | else { | |
929 | + | let bX = cV(value(dY.description)) | |
930 | + | $Tuple4(aJ._1, (aJ._2 + bX), (aJ._3 :+ Burn(U, 1)), en) | |
931 | + | } | |
918 | 932 | } | |
919 | 933 | } | |
920 | 934 | } | |
921 | 935 | ||
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | func | |
927 | - | then | |
928 | - | else | |
936 | + | let eo = { | |
937 | + | let aL = bz.payments | |
938 | + | let aM = size(aL) | |
939 | + | let aN = $Tuple4(0, 0, nil, -1) | |
940 | + | func aO (aP,aQ) = if ((aQ >= aM)) | |
941 | + | then aP | |
942 | + | else em(aP, aL[aQ]) | |
929 | 943 | ||
930 | - | func | |
931 | - | then | |
944 | + | func aR (aP,aQ) = if ((aQ >= aM)) | |
945 | + | then aP | |
932 | 946 | else throw("List size exceeds 6") | |
933 | 947 | ||
934 | - | | |
948 | + | aR(aO(aO(aO(aO(aO(aO(aN, 0), 1), 2), 3), 4), 5), 6) | |
935 | 949 | } | |
936 | - | let ej = ei._1 | |
937 | - | let ek = ei._2 | |
938 | - | let el = ei._3 | |
939 | - | let bX = if ((ek == 3)) | |
940 | - | then 2 | |
941 | - | else if ((ek == 5)) | |
942 | - | then 3 | |
943 | - | else if ((ek == 10)) | |
944 | - | then 4 | |
945 | - | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
946 | - | let em = (ej - (ek * b)) | |
947 | - | if ((0 > em)) | |
948 | - | then throw((("You need to attach " + toString(ek)) + " USDT as fee")) | |
950 | + | let ep = eo._1 | |
951 | + | let eq = eo._2 | |
952 | + | let er = eo._3 | |
953 | + | let bW = eo._4 | |
954 | + | let es = if ((bW == bp)) | |
955 | + | then if ((be[bf] > eq)) | |
956 | + | then bp | |
957 | + | else if ((be[bg] > eq)) | |
958 | + | then bq | |
959 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(be[bg])) + "%")) | |
960 | + | else if ((bW == bq)) | |
961 | + | then if ((be[bg] > eq)) | |
962 | + | then bq | |
963 | + | else if ((be[bh] > eq)) | |
964 | + | then br | |
965 | + | else throw((("You can advance only one level of rarity, max total bonus " + toString(be[bh])) + "%")) | |
966 | + | else if ((bW == br)) | |
967 | + | then if ((be[bh] > eq)) | |
968 | + | then br | |
969 | + | else bs | |
970 | + | else if ((bW == bs)) | |
971 | + | then bs | |
972 | + | else if ((bW == bt)) | |
973 | + | then throw("You can't exchange NFTs of this rarity") | |
974 | + | else throw("Unknown rarity") | |
975 | + | let et = fraction(eq, 100, cv(0)) | |
976 | + | let eu = (ep - et) | |
977 | + | let ev = (et / 2) | |
978 | + | let dx = W(invoke(D, "burnWlgold", [(et - ev)], nil)) | |
979 | + | if ((0 > eu)) | |
980 | + | then throw((("You need to attach " + af(et, 8)) + " WLGOLD as fee")) | |
949 | 981 | else { | |
950 | - | let | |
951 | - | then [ScriptTransfer( | |
982 | + | let ew = if ((eu > 0)) | |
983 | + | then [ScriptTransfer(bz.caller, eu, L)] | |
952 | 984 | else nil | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
985 | + | let ex = bS(bk, es, bv, es, eq, bd, bx, bz.caller) | |
986 | + | let ey = ex._1 | |
987 | + | let cb = ex._2 | |
988 | + | let ez = size(er) | |
989 | + | let eA = if ((ez == 0)) | |
958 | 990 | then nil | |
959 | - | else [IntegerEntry( | |
960 | - | $Tuple2((((( | |
991 | + | else [IntegerEntry(ax, (valueOrElse(getInteger(ax), 0) + ez))] | |
992 | + | $Tuple2((((((ey ++ er) ++ eA) ++ dn) ++ ew) :+ ScriptTransfer(addressFromStringValue(getStringValue(D, aW)), ev, L)), $Tuple2(cb, dx)) | |
961 | 993 | } | |
962 | 994 | } | |
963 | 995 | } | |
964 | 996 | ||
965 | 997 | ||
966 | 998 | ||
967 | - | @Callable( | |
968 | - | func openNftChest () = if (( | |
999 | + | @Callable(bz) | |
1000 | + | func openNftChest () = if ((bz.caller != this)) | |
969 | 1001 | then throw("Permission denied") | |
970 | 1002 | else $Tuple2(nil, 0) | |
971 | 1003 | ||
972 | 1004 |
github/deemru/w8io/026f985 523.95 ms ◑