tx · 3paaK7hWixdLRkKk2eiTRBE8vf6JMZ8AudVeszJV51mx 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.01800000 Waves 2024.11.22 16:58 [3382763] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "3paaK7hWixdLRkKk2eiTRBE8vf6JMZ8AudVeszJV51mx", "fee": 1800000, "feeAssetId": null, "timestamp": 1732283941093, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "3gnHWjb2zehZxgKLiWLGuwdvqYRVHZw5mRSaxT4Uq9ZLFzgS1GHmoK3EXaH5iu2mWgDbLKCcpGTqSatauvGStNTF" ], "script": "base64:BgI9CAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIAUIAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAWZGVmYXVsdFJlc3QyQWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BGd1l0YThiaUV6MzF6cGVGZTVESks4d0U1dHJTcFFWRjgDCQAAAgE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FWtleUZhcm1pbmdQb3dlckJ5VXNlcgEFB2FkZHJlc3MEBW9sZEZwCQELdmFsdWVPckVsc2UCCQCfCAEFCXVzZXJGcEtleQAABAVuZXdGcAkBFmdldEZhcm1pbmdQb3dlckJ5QWNyZXMBBQ5uZXdBY3Jlc0Ftb3VudAQKb2xkVG90YWxGcAkBC3ZhbHVlT3JFbHNlAgkAnwgBBRR0b3RhbEZhcm1pbmdQb3dlcktleQAABApuZXdUb3RhbEZwCQBkAgkAZQIFCm9sZFRvdGFsRnAFBW9sZEZwBQVuZXdGcAkAlAoCBQNuaWwJAMwIAgUFb2xkRnAJAMwIAgUFbmV3RnAJAMwIAgUKb2xkVG90YWxGcAkAzAgCBQpuZXdUb3RhbEZwBQNuaWwBaQEIaXNzdWVORlQCCmZvckFkZHJlc3MIbmZ0SW5kZXgDCQECIT0CCAUBaQZjYWxsZXIFC3dsZ0NvbnRyYWN0CQACAQIRUGVybWlzc2lvbiBkZW5pZWQJARBpc3N1ZU5GVGludGVybmFsAgUIbmZ0SW5kZXgJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCmZvckFkZHJlc3MAMeAvIw==", "height": 3382763, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: b9pot6JkR7Qxo98BvwKAy32KiVhCG3eC6i34CPByJuF Next: Hr2KEJ7XcawRiWrsfsnDxKjocAURw7wixBjzGyXyfAsH Diff:
Old | New | Differences | |
---|---|---|---|
89 | 89 | func F () = "contractsBlocked" | |
90 | 90 | ||
91 | 91 | ||
92 | - | func G (H) = (" | |
92 | + | func G (H) = ("lastWeekTxIdByUser_" + H) | |
93 | 93 | ||
94 | 94 | ||
95 | - | let I = "acresIssuedAmount" | |
96 | - | ||
97 | - | let J = "acresAssetId" | |
98 | - | ||
99 | - | let K = valueOrErrorMessage(getBinary(B, J), "ACRES is not issued yet") | |
100 | - | ||
101 | - | func L (H) = ("acresStakedTimeByUser_" + H) | |
95 | + | func I (H) = ("curWeekTxIdByUser_" + H) | |
102 | 96 | ||
103 | 97 | ||
104 | - | func M (N) = ("stakedLandsByOwner_" + N) | |
98 | + | let J = "acresIssuedAmount" | |
99 | + | ||
100 | + | let K = "acresAssetId" | |
101 | + | ||
102 | + | let L = valueOrErrorMessage(getBinary(B, K), "ACRES is not issued yet") | |
103 | + | ||
104 | + | func M (H) = ("acresStakedTimeByUser_" + H) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func | |
107 | + | func N (O) = ("stakedLandsByOwner_" + O) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P (Q) = { | |
111 | - | let j = Q | |
110 | + | func P (O) = ("stakedDuckByOwner_" + O) | |
111 | + | ||
112 | + | ||
113 | + | func Q (R) = { | |
114 | + | let j = R | |
112 | 115 | if ($isInstanceOf(j, "Int")) | |
113 | 116 | then { | |
114 | - | let | |
115 | - | | |
117 | + | let S = j | |
118 | + | S | |
116 | 119 | } | |
117 | 120 | else throw("fail to cast into Int") | |
118 | 121 | } | |
119 | 122 | ||
120 | 123 | ||
121 | - | func | |
122 | - | let j = | |
124 | + | func T (U) = { | |
125 | + | let j = U | |
123 | 126 | if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)")) | |
124 | 127 | then { | |
125 | - | let | |
126 | - | | |
128 | + | let V = j | |
129 | + | V | |
127 | 130 | } | |
128 | 131 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
129 | 132 | } | |
130 | 133 | ||
131 | 134 | ||
132 | - | func | |
133 | - | let j = | |
135 | + | func W (U) = { | |
136 | + | let j = U | |
134 | 137 | if ($isInstanceOf(j, "(Int, Int, Int, Int)")) | |
135 | 138 | then { | |
136 | - | let | |
137 | - | | |
139 | + | let V = j | |
140 | + | V | |
138 | 141 | } | |
139 | 142 | else throw("fail to cast into (Int, Int, Int, Int)") | |
140 | 143 | } | |
141 | 144 | ||
142 | 145 | ||
143 | - | func | |
144 | - | let j = | |
146 | + | func X (U) = { | |
147 | + | let j = U | |
145 | 148 | if ($isInstanceOf(j, "(Int, Int, Int)")) | |
146 | 149 | then { | |
147 | - | let | |
148 | - | | |
150 | + | let V = j | |
151 | + | V | |
149 | 152 | } | |
150 | 153 | else throw("fail to cast into (Int, Int, Int)") | |
151 | 154 | } | |
152 | 155 | ||
153 | 156 | ||
154 | - | func | |
155 | - | let j = | |
157 | + | func Y (U) = { | |
158 | + | let j = U | |
156 | 159 | if ($isInstanceOf(j, "(Int, Int)")) | |
157 | 160 | then { | |
158 | - | let | |
159 | - | | |
161 | + | let V = j | |
162 | + | V | |
160 | 163 | } | |
161 | 164 | else throw("fail to cast into (Int, Int)") | |
162 | 165 | } | |
163 | 166 | ||
164 | 167 | ||
165 | - | func | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | (((toString(( | |
168 | + | func Z (U,aa) = { | |
169 | + | let ab = pow(10, 0, aa, 0, 0, DOWN) | |
170 | + | let ac = toString((U % ab)) | |
171 | + | let ad = drop(toString(ab), (1 + size(ac))) | |
172 | + | (((toString((U / ab)) + ".") + ad) + ac) | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 | ||
173 | - | let | |
176 | + | let ae = 100000000 | |
174 | 177 | ||
175 | - | let | |
178 | + | let af = 10080 | |
176 | 179 | ||
177 | - | let | |
180 | + | let ag = "wlg_issuedAmount" | |
178 | 181 | ||
179 | - | func ag (H) = ("acresStakedAmountByUser_" + H) | |
182 | + | let ah = "zbill_issuedAmount" | |
183 | + | ||
184 | + | func ai (H) = ("acresStakedAmountByUser_" + H) | |
180 | 185 | ||
181 | 186 | ||
182 | - | func | |
187 | + | func aj (H) = ("farmingPowerByUser_" + H) | |
183 | 188 | ||
184 | 189 | ||
185 | - | let | |
190 | + | let ak = "acresStakedAmountTotal" | |
186 | 191 | ||
187 | - | let | |
192 | + | let al = "totalFarmingPower" | |
188 | 193 | ||
189 | - | let | |
194 | + | let am = 0 | |
190 | 195 | ||
191 | - | let | |
196 | + | let an = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
192 | 197 | ||
193 | - | func | |
194 | - | let | |
195 | - | func | |
196 | - | then | |
197 | - | else ( | |
198 | + | func ao (ap) = { | |
199 | + | let aq = ((ap + 99999999) / ae) | |
200 | + | func ar (as,at) = if ((at >= aq)) | |
201 | + | then as | |
202 | + | else (as + 1) | |
198 | 203 | ||
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | func | |
203 | - | then | |
204 | - | else | |
204 | + | let au = an | |
205 | + | let av = size(au) | |
206 | + | let aw = 0 | |
207 | + | func ax (ay,az) = if ((az >= av)) | |
208 | + | then ay | |
209 | + | else ar(ay, au[az]) | |
205 | 210 | ||
206 | - | func | |
207 | - | then | |
211 | + | func aA (ay,az) = if ((az >= av)) | |
212 | + | then ay | |
208 | 213 | else throw("List size exceeds 10") | |
209 | 214 | ||
210 | - | | |
215 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
211 | 216 | } | |
212 | 217 | ||
213 | 218 | ||
214 | - | func | |
219 | + | func aB (ap) = ((ap * 20) * (ao(ap) + 4)) | |
215 | 220 | ||
216 | 221 | ||
217 | - | func aA (H) = ("lastArbTimeUser_" + H) | |
222 | + | let aC = "nftTotalIssued" | |
223 | + | ||
224 | + | func aD (aE) = ("nftNumberByAssetId_" + aE) | |
218 | 225 | ||
219 | 226 | ||
220 | - | ||
227 | + | func aF (H) = ("lastArbTimeUser_" + H) | |
221 | 228 | ||
222 | - | let aC = "lastLimitLeft" | |
223 | 229 | ||
224 | - | let aD = { | |
230 | + | let aG = "lastAcresSellTime" | |
231 | + | ||
232 | + | let aH = "lastLimitLeft" | |
233 | + | ||
234 | + | let aI = { | |
225 | 235 | let j = h | |
226 | 236 | if ((base58'2W' == j)) | |
227 | 237 | then nil | |
228 | 238 | else if ((base58'2T' == j)) | |
229 | - | then | |
239 | + | then ["Cy1b1cu6E5Vx67Mo2wvWi2pvJzT28exsb81maoyYPmvu", "6GEyPU5H2giZahjKnUfZ4djSMacEhSWswVp23Xr8B7wy"] | |
230 | 240 | else throw("Unknown chain") | |
231 | 241 | } | |
232 | 242 | ||
233 | - | let | |
243 | + | let aJ = ["{\"name\": \"Gold shovel\", \"description\": \"Reward for early birds\", \"rare\": \"Promo\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", "{\"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 1, \"bonusType\": \"FarmPower\"}"] | |
234 | 244 | ||
235 | - | let | |
245 | + | let aK = ["SHOVEL-P3", "PICKAXE-C1"] | |
236 | 246 | ||
237 | - | func | |
247 | + | func aL (aM) = if (if ((aM.originCaller != A)) | |
238 | 248 | then valueOrElse(getBoolean(F()), false) | |
239 | 249 | else false) | |
240 | 250 | then throw("Contracts are under maintenance") | |
241 | - | else [StringEntry(G(toString(aH.originCaller)), toBase58String(aH.transactionId))] | |
242 | - | ||
243 | - | ||
244 | - | func aI (aJ) = if ((aJ >= size(aD))) | |
245 | - | then throw("nftIndex out of bounds") | |
246 | 251 | else { | |
247 | - | let aK = Issue(aF[aJ], ((aD[aJ] + a) + aE[aJ]), 1, 0, false) | |
248 | - | $Tuple2(aK, calculateAssetId(aK)) | |
252 | + | let H = toString(aM.originCaller) | |
253 | + | let aN = (height / af) | |
254 | + | let aO = getString(G(H)) | |
255 | + | let aP = toBase58String(aM.transactionId) | |
256 | + | let aQ = ((toString(aN) + "_") + aP) | |
257 | + | if (isDefined(aO)) | |
258 | + | then { | |
259 | + | let aR = split(value(aO), "_") | |
260 | + | if ((aR[0] == toString(aN))) | |
261 | + | then [StringEntry(G(H), aQ), StringEntry(I(H), aQ)] | |
262 | + | else if ((aR[0] == toString((aN - 1)))) | |
263 | + | then [StringEntry(I(H), aQ)] | |
264 | + | else { | |
265 | + | let aS = getStringValue(G(H)) | |
266 | + | let aT = split(aS, "_") | |
267 | + | if ((aT[0] == toString(aN))) | |
268 | + | then [StringEntry(I(H), aQ)] | |
269 | + | else [StringEntry(G(H), aS), StringEntry(I(H), aQ)] | |
270 | + | } | |
271 | + | } | |
272 | + | else [StringEntry(G(H), aQ), StringEntry(I(H), aQ)] | |
249 | 273 | } | |
250 | 274 | ||
251 | 275 | ||
252 | - | func aL (aM,o) = { | |
253 | - | let aN = invoke(C, "onStakeUnstakeLand", [o], nil) | |
254 | - | if ((aN == aN)) | |
276 | + | func aU (aV,H) = if ((aV >= size(aI))) | |
277 | + | then throw("nftIndex out of bounds") | |
278 | + | else { | |
279 | + | let aW = (valueOrElse(getInteger(aC), -1) + 1) | |
280 | + | let aX = Issue(aK[aV], makeString_2C([aI[aV], toString(aW), aJ[aV]], a), 1, 0, false) | |
281 | + | let aY = calculateAssetId(aX) | |
282 | + | $Tuple2([aX, IntegerEntry(aC, aW), IntegerEntry(aD(toBase58String(aY)), aW), ScriptTransfer(H, 1, aY)], aY) | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | func aZ (ba,o) = { | |
287 | + | let bb = invoke(C, "onStakeUnstakeLand", [o], nil) | |
288 | + | if ((bb == bb)) | |
255 | 289 | then { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if (if ((0 > | |
261 | - | then (0 > ( | |
290 | + | let bc = lastBlock.timestamp | |
291 | + | let bd = M(o) | |
292 | + | let be = ai(o) | |
293 | + | let bf = valueOrElse(getInteger(be), 0) | |
294 | + | if (if ((0 > ba)) | |
295 | + | then (0 > (bf + ba)) | |
262 | 296 | else false) | |
263 | - | then throw(((("You have only " + | |
297 | + | then throw(((("You have only " + Z(bf, 8)) + " ACRES staked, tried to unstake ") + Z(-(ba), 8))) | |
264 | 298 | else { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple2([IntegerEntry( | |
299 | + | let bg = (bf + ba) | |
300 | + | let bh = valueOrElse(getInteger(ak), 0) | |
301 | + | let bi = aj(o) | |
302 | + | let bj = valueOrElse(getInteger(bi), 0) | |
303 | + | let bk = aB(bg) | |
304 | + | let bl = valueOrElse(getInteger(al), 0) | |
305 | + | $Tuple2([IntegerEntry(bd, lastBlock.timestamp), IntegerEntry(be, bg), IntegerEntry(ak, (bh + ba)), IntegerEntry(bi, bk), IntegerEntry(al, ((bl - bj) + bk))], bb) | |
272 | 306 | } | |
273 | 307 | } | |
274 | 308 | else throw("Strict value is not equal to itself.") | |
275 | 309 | } | |
276 | 310 | ||
277 | 311 | ||
278 | - | func | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | fraction( | |
312 | + | func bm (bn) = { | |
313 | + | let bo = valueOrErrorMessage(getInteger(C, ag), "WLGOLD is not issued yet") | |
314 | + | let bp = assetBalance(C, i) | |
315 | + | let bq = (assetBalance(B, i) - bn) | |
316 | + | let br = (assetBalance(D, i) + valueOrElse(getInteger(D, ah), 0)) | |
317 | + | let bs = ((bq + bp) + br) | |
318 | + | fraction(bs, d, bo) | |
285 | 319 | } | |
286 | 320 | ||
287 | 321 | ||
288 | - | func | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | $Tuple2(IntegerEntry( | |
322 | + | func bt () = { | |
323 | + | let bp = assetBalance(C, i) | |
324 | + | let bq = assetBalance(this, i) | |
325 | + | let br = (assetBalance(D, i) + valueOrElse(getInteger(D, ah), 0)) | |
326 | + | let bu = (((bq + bp) + br) / g) | |
327 | + | let bv = valueOrElse(getInteger(aH), bu) | |
328 | + | let bw = valueOrElse(getInteger(aG), 0) | |
329 | + | let bc = lastBlock.timestamp | |
330 | + | let bx = (bv + fraction(bu, (bc - bw), e)) | |
331 | + | let by = min([bx, bu]) | |
332 | + | $Tuple2(IntegerEntry(aG, bc), by) | |
299 | 333 | } | |
300 | 334 | ||
301 | 335 | ||
302 | - | @Callable( | |
303 | - | func saveLastTx () = if (!(containsElement([C], | |
336 | + | @Callable(aM) | |
337 | + | func saveLastTx () = if (!(containsElement([C], aM.caller))) | |
304 | 338 | then throw("Access denied") | |
305 | - | else $Tuple2( | |
339 | + | else $Tuple2(aL(aM), 42) | |
306 | 340 | ||
307 | 341 | ||
308 | 342 | ||
309 | - | @Callable( | |
310 | - | func constructorV1 ( | |
343 | + | @Callable(aM) | |
344 | + | func constructorV1 (bz,bA) = if ((aM.caller != this)) | |
311 | 345 | then throw("Permission denied") | |
312 | 346 | else { | |
313 | - | let | |
314 | - | [IntegerEntry( | |
347 | + | let bB = addressFromStringValue(bA) | |
348 | + | [IntegerEntry(J, getIntegerValue(bB, J)), BinaryEntry(K, getBinaryValue(bB, K)), StringEntry(u(), bz), StringEntry(E, bA)] | |
315 | 349 | } | |
316 | 350 | ||
317 | 351 | ||
318 | 352 | ||
319 | - | @Callable( | |
320 | - | func setBlocked ( | |
353 | + | @Callable(aM) | |
354 | + | func setBlocked (bC) = if ((aM.caller != this)) | |
321 | 355 | then throw("permission denied") | |
322 | - | else [BooleanEntry(F(), | |
356 | + | else [BooleanEntry(F(), bC)] | |
323 | 357 | ||
324 | 358 | ||
325 | 359 | ||
326 | - | @Callable( | |
327 | - | func unstakeAcres ( | |
328 | - | let | |
329 | - | if ((0 >= | |
360 | + | @Callable(aM) | |
361 | + | func unstakeAcres (bD) = { | |
362 | + | let bE = aL(aM) | |
363 | + | if ((0 >= bD)) | |
330 | 364 | then throw("Amount should be positive") | |
331 | 365 | else { | |
332 | - | let o = toString( | |
333 | - | if ((size( | |
366 | + | let o = toString(aM.caller) | |
367 | + | if ((size(aM.payments) != 0)) | |
334 | 368 | then throw("No payments required") | |
335 | 369 | else { | |
336 | - | let | |
337 | - | if (( | |
338 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
370 | + | let bF = (valueOrElse(getInteger(C, aF(o)), 0) + l) | |
371 | + | if ((bF > lastBlock.timestamp)) | |
372 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(bF))) | |
339 | 373 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple2((( | |
374 | + | let bG = aZ(-(bD), o) | |
375 | + | let bH = bG._1 | |
376 | + | let bI = bG._2 | |
377 | + | $Tuple2(((bH :+ ScriptTransfer(aM.caller, bD, L)) ++ bE), bI) | |
344 | 378 | } | |
345 | 379 | } | |
346 | 380 | } | |
348 | 382 | ||
349 | 383 | ||
350 | 384 | ||
351 | - | @Callable( | |
385 | + | @Callable(aM) | |
352 | 386 | func stakeAcres () = { | |
353 | - | let | |
354 | - | let o = toString( | |
355 | - | if ((size( | |
387 | + | let bE = aL(aM) | |
388 | + | let o = toString(aM.caller) | |
389 | + | if ((size(aM.payments) != 1)) | |
356 | 390 | then throw("exactly 1 payment must be attached") | |
357 | 391 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | if (if (!(isDefined( | |
392 | + | let bJ = aM.payments[0] | |
393 | + | let ba = bJ.amount | |
394 | + | if (if (!(isDefined(bJ.assetId))) | |
361 | 395 | then true | |
362 | - | else (value( | |
396 | + | else (value(bJ.assetId) != L)) | |
363 | 397 | then throw("ACRES payments only!") | |
364 | 398 | else { | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | $Tuple2(( | |
399 | + | let bK = aZ(ba, o) | |
400 | + | let bH = bK._1 | |
401 | + | let bI = bK._2 | |
402 | + | $Tuple2((bH ++ bE), bI) | |
369 | 403 | } | |
370 | 404 | } | |
371 | 405 | } | |
372 | 406 | ||
373 | 407 | ||
374 | 408 | ||
375 | - | @Callable( | |
409 | + | @Callable(aM) | |
376 | 410 | func buyAcres () = { | |
377 | - | let | |
378 | - | if ((size( | |
411 | + | let bE = aL(aM) | |
412 | + | if ((size(aM.payments) != 1)) | |
379 | 413 | then throw("exactly 1 payment must be attached") | |
380 | 414 | else { | |
381 | - | let | |
382 | - | let | |
383 | - | if (if (!(isDefined( | |
415 | + | let bJ = aM.payments[0] | |
416 | + | let bL = bJ.amount | |
417 | + | if (if (!(isDefined(bJ.assetId))) | |
384 | 418 | then true | |
385 | - | else (value( | |
419 | + | else (value(bJ.assetId) != i)) | |
386 | 420 | then throw("USDT payments only!") | |
387 | - | else if ((b > | |
388 | - | then throw((("Min payment should be " + | |
421 | + | else if ((b > bL)) | |
422 | + | then throw((("Min payment should be " + Z(b, 6)) + " USDT")) | |
389 | 423 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | if (( | |
424 | + | let bM = (bL * f) | |
425 | + | let bN = fraction(bL, d, bm(bL)) | |
426 | + | let bO = addressFromStringValue(getStringValue(E)) | |
427 | + | let bP = invoke(bO, "requestAcresCallback", [bM], nil) | |
428 | + | if ((bP == bP)) | |
395 | 429 | then { | |
396 | - | let | |
397 | - | $Tuple2(([ScriptTransfer( | |
430 | + | let bQ = Q(invoke(C, "burnWlgold", [bN], nil)) | |
431 | + | $Tuple2(([ScriptTransfer(aM.caller, bM, L)] ++ bE), bQ) | |
398 | 432 | } | |
399 | 433 | else throw("Strict value is not equal to itself.") | |
400 | 434 | } | |
403 | 437 | ||
404 | 438 | ||
405 | 439 | ||
406 | - | @Callable( | |
407 | - | func buyAcresREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple2(nil, [ | |
440 | + | @Callable(aM) | |
441 | + | func buyAcresREADONLY (bL) = { | |
442 | + | let bM = (bL * f) | |
443 | + | let bR = fraction(bL, d, bm(bL)) | |
444 | + | $Tuple2(nil, [bM, b, bM, bR]) | |
411 | 445 | } | |
412 | 446 | ||
413 | 447 | ||
414 | 448 | ||
415 | - | @Callable( | |
449 | + | @Callable(aM) | |
416 | 450 | func sellAcres () = { | |
417 | - | let | |
418 | - | if ((size( | |
451 | + | let bE = aL(aM) | |
452 | + | if ((size(aM.payments) != 1)) | |
419 | 453 | then throw("exactly 1 payment must be attached") | |
420 | 454 | else { | |
421 | - | let | |
422 | - | let | |
423 | - | if (if (!(isDefined( | |
455 | + | let bJ = aM.payments[0] | |
456 | + | let bM = bJ.amount | |
457 | + | if (if (!(isDefined(bJ.assetId))) | |
424 | 458 | then true | |
425 | - | else (value( | |
459 | + | else (value(bJ.assetId) != L)) | |
426 | 460 | then throw("ACRES payments only!") | |
427 | - | else if ((c > | |
428 | - | then throw((("Min payment should be " + | |
461 | + | else if ((c > bM)) | |
462 | + | then throw((("Min payment should be " + Z(c, 8)) + " ACRES")) | |
429 | 463 | else { | |
430 | - | let H = toString( | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | if (( | |
436 | - | then throw((("You can sell max " + | |
464 | + | let H = toString(aM.caller) | |
465 | + | let bS = bt() | |
466 | + | let bT = bS._1 | |
467 | + | let bU = bS._2 | |
468 | + | let bV = (bU * f) | |
469 | + | if ((bM > bV)) | |
470 | + | then throw((("You can sell max " + Z(bV, 8)) + " ACRES")) | |
437 | 471 | else { | |
438 | - | let | |
439 | - | $Tuple2(([ | |
472 | + | let bL = ((bM / f) / 2) | |
473 | + | $Tuple2(([bT, IntegerEntry(aH, (bU - bL)), ScriptTransfer(aM.caller, bL, i)] ++ bE), bL) | |
440 | 474 | } | |
441 | 475 | } | |
442 | 476 | } | |
444 | 478 | ||
445 | 479 | ||
446 | 480 | ||
447 | - | @Callable( | |
448 | - | func sellAcresREADONLY (o, | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | $Tuple2(nil, [ | |
481 | + | @Callable(aM) | |
482 | + | func sellAcresREADONLY (o,bM) = { | |
483 | + | let bW = bt() | |
484 | + | let bT = bW._1 | |
485 | + | let bU = bW._2 | |
486 | + | let bL = ((bM / f) / 2) | |
487 | + | $Tuple2(nil, [bL, c, (bU * f), 0]) | |
454 | 488 | } | |
455 | 489 | ||
456 | 490 | ||
457 | 491 | ||
458 | - | @Callable( | |
459 | - | func convertOldStakes () = if (( | |
492 | + | @Callable(aM) | |
493 | + | func convertOldStakes () = if ((aM.caller != this)) | |
460 | 494 | then throw("Temporarily disabled") | |
461 | 495 | else { | |
462 | - | let o = toString( | |
463 | - | if ((size( | |
496 | + | let o = toString(aM.caller) | |
497 | + | if ((size(aM.payments) != 0)) | |
464 | 498 | then throw("No payments required") | |
465 | 499 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | then | |
500 | + | let bO = addressFromStringValue(getStringValue(E)) | |
501 | + | let bD = valueOrElse(getInteger(bO, ai(o)), 0) | |
502 | + | let bX = if ((bD > 0)) | |
503 | + | then Y(invoke(bO, "unstakeAcresCallback", [bD, o], nil)) | |
470 | 504 | else $Tuple2(0, 0) | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
505 | + | let bY = addressFromStringValue(m) | |
506 | + | let bZ = getString(bY, N(o)) | |
507 | + | let ca = if (isDefined(bZ)) | |
474 | 508 | then { | |
475 | - | let | |
476 | - | func | |
509 | + | let cb = split_51C(value(bZ), "_") | |
510 | + | func cc (as,cd) = if ((cd == "")) | |
477 | 511 | then throw("landAssetId is required") | |
478 | 512 | else { | |
479 | - | let | |
480 | - | $Tuple4(( | |
513 | + | let ce = T(invoke(bY, "unstakeLandCallback", [cd, o], nil)) | |
514 | + | $Tuple4((as._1 + ce._1), (as._2 + ce._2), (as._3 + ce._3), (as._4 + ce._4)) | |
481 | 515 | } | |
482 | 516 | ||
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | func | |
488 | - | then | |
489 | - | else | |
517 | + | let cf = { | |
518 | + | let au = cb | |
519 | + | let av = size(au) | |
520 | + | let aw = $Tuple4(0, 0, 0, 0) | |
521 | + | func ax (ay,az) = if ((az >= av)) | |
522 | + | then ay | |
523 | + | else cc(ay, au[az]) | |
490 | 524 | ||
491 | - | func | |
492 | - | then | |
525 | + | func aA (ay,az) = if ((az >= av)) | |
526 | + | then ay | |
493 | 527 | else throw("List size exceeds 100") | |
494 | 528 | ||
495 | - | | |
529 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 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) | |
496 | 530 | } | |
497 | - | let | |
498 | - | if (( | |
531 | + | let cg = invoke(bY, "unstakeLandsFinalizeCallback", [o], nil) | |
532 | + | if ((cg == cg)) | |
499 | 533 | then { | |
500 | - | let | |
501 | - | if (( | |
534 | + | let bP = invoke(bO, "requestAcresCallback", [(((cf._1 + cf._2) + cf._3) + cf._4)], nil) | |
535 | + | if ((bP == bP)) | |
502 | 536 | then { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | $Tuple5( | |
537 | + | let ch = aU(am, aM.caller) | |
538 | + | let ci = ch._1 | |
539 | + | let aY = ch._2 | |
540 | + | $Tuple5(cf._1, cf._2, cf._3, cf._4, ci) | |
507 | 541 | } | |
508 | 542 | else throw("Strict value is not equal to itself.") | |
509 | 543 | } | |
510 | 544 | else throw("Strict value is not equal to itself.") | |
511 | 545 | } | |
512 | 546 | else $Tuple5(0, 0, 0, 0, nil) | |
513 | - | let | |
514 | - | let | |
515 | - | then | |
547 | + | let cj = valueOrElse(getString(bY, P(o)), "") | |
548 | + | let ck = if ((cj != "")) | |
549 | + | then X(invoke(bY, "unstakeDuckCallback", [cj, o], nil)) | |
516 | 550 | else $Tuple3(0, 0, 0) | |
517 | - | let | |
518 | - | $Tuple2(( | |
551 | + | let cl = aZ((((((((bX._1 + ca._1) + ca._2) + ca._3) + ca._4) + ck._1) + ck._2) + ck._3), o) | |
552 | + | $Tuple2((ca._5 ++ cl._1), cl._2) | |
519 | 553 | } | |
520 | 554 | } | |
521 | 555 | ||
522 | 556 | ||
523 | 557 | ||
524 | - | @Callable( | |
558 | + | @Callable(aM) | |
525 | 559 | func unstakeLandsREADONLY (o) = { | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
560 | + | let bY = addressFromStringValue(m) | |
561 | + | let bZ = getString(bY, N(o)) | |
562 | + | let ca = if (isDefined(bZ)) | |
529 | 563 | then { | |
530 | - | let | |
531 | - | func | |
564 | + | let cb = split_51C(value(bZ), "_") | |
565 | + | func cc (as,cd) = if ((cd == "")) | |
532 | 566 | then throw("landAssetId is required") | |
533 | 567 | else { | |
534 | - | let | |
535 | - | $Tuple4(( | |
568 | + | let ce = W(invoke(bY, "unstakeLandREADONLY", [cd, o], nil)) | |
569 | + | $Tuple4((as._1 + ce._1), (as._2 + ce._2), (as._3 + ce._3), (as._4 + ce._4)) | |
536 | 570 | } | |
537 | 571 | ||
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | func | |
542 | - | then | |
543 | - | else | |
572 | + | let au = cb | |
573 | + | let av = size(au) | |
574 | + | let aw = $Tuple4(0, 0, 0, 0) | |
575 | + | func ax (ay,az) = if ((az >= av)) | |
576 | + | then ay | |
577 | + | else cc(ay, au[az]) | |
544 | 578 | ||
545 | - | func | |
546 | - | then | |
579 | + | func aA (ay,az) = if ((az >= av)) | |
580 | + | then ay | |
547 | 581 | else throw("List size exceeds 100") | |
548 | 582 | ||
549 | - | | |
583 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 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) | |
550 | 584 | } | |
551 | 585 | else $Tuple4(0, 0, 0, 0) | |
552 | - | $Tuple2(nil, | |
586 | + | $Tuple2(nil, ca) | |
553 | 587 | } | |
554 | 588 | ||
555 | 589 | ||
556 | 590 | ||
557 | - | @Callable( | |
558 | - | func stakeAcresCallback (H) = if (( | |
591 | + | @Callable(aM) | |
592 | + | func stakeAcresCallback (H) = if ((aM.caller != addressFromStringValue(m))) | |
559 | 593 | then throw("Permission denied") | |
560 | - | else | |
594 | + | else aZ(aM.payments[0].amount, H) | |
561 | 595 | ||
562 | 596 | ||
563 | 597 | ||
564 | - | @Callable( | |
565 | - | func simulateStakeAcresREADONLY (o, | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple2(nil, [ | |
598 | + | @Callable(aM) | |
599 | + | func simulateStakeAcresREADONLY (o,cm) = { | |
600 | + | let be = ai(o) | |
601 | + | let bg = (valueOrElse(getInteger(be), 0) + cm) | |
602 | + | let bh = valueOrElse(getInteger(ak), 0) | |
603 | + | let bi = aj(o) | |
604 | + | let bj = valueOrElse(getInteger(bi), 0) | |
605 | + | let bk = aB(bg) | |
606 | + | let bl = valueOrElse(getInteger(al), 0) | |
607 | + | let cn = ((bl - bj) + bk) | |
608 | + | $Tuple2(nil, [bj, bk, bl, cn]) | |
575 | 609 | } | |
576 | 610 | ||
577 | 611 | ||
578 | 612 | ||
579 | - | @Callable( | |
580 | - | func issueNFT ( | |
613 | + | @Callable(aM) | |
614 | + | func issueNFT (co,aV) = if ((aM.caller != C)) | |
581 | 615 | then throw("Permission denied") | |
582 | - | else { | |
583 | - | let cb = aI(aJ) | |
584 | - | let aK = cb._1 | |
585 | - | let bU = cb._2 | |
586 | - | $Tuple2([aK, ScriptTransfer(addressFromStringValue(ca), 1, bU)], bU) | |
587 | - | } | |
616 | + | else aU(aV, addressFromStringValue(co)) | |
588 | 617 | ||
589 | 618 |
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 base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
24 | 24 | else if ((base58'2T' == j)) | |
25 | 25 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
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 "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
33 | 33 | else if ((base58'2T' == j)) | |
34 | 34 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
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 e | |
42 | 42 | else if ((base58'2T' == j)) | |
43 | 43 | then 60000 | |
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 "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
51 | 51 | else if ((base58'2T' == j)) | |
52 | 52 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
53 | 53 | else throw("Unknown chain") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | func n (o,p) = valueOrErrorMessage(getString(o, p), makeString(["mandatory ", toString(o), ".", p, " is not defined"], "")) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | let q = 1 | |
60 | 60 | ||
61 | 61 | let r = 2 | |
62 | 62 | ||
63 | 63 | let s = 5 | |
64 | 64 | ||
65 | 65 | func t () = "%s__restConfig" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func u () = "%s__rest2Addr" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func v (w) = split_4C(n(w, t()), a) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func x (y,z) = valueOrErrorMessage(addressFromString(y[z]), ("Rest cfg doesn't contain address at index " + toString(z))) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | let A = addressFromStringValue(valueOrElse(getString(this, u()), k)) | |
78 | 78 | ||
79 | 79 | let y = v(A) | |
80 | 80 | ||
81 | 81 | let B = x(y, q) | |
82 | 82 | ||
83 | 83 | let C = x(y, r) | |
84 | 84 | ||
85 | 85 | let D = x(y, s) | |
86 | 86 | ||
87 | 87 | let E = "oldAcresContract" | |
88 | 88 | ||
89 | 89 | func F () = "contractsBlocked" | |
90 | 90 | ||
91 | 91 | ||
92 | - | func G (H) = (" | |
92 | + | func G (H) = ("lastWeekTxIdByUser_" + H) | |
93 | 93 | ||
94 | 94 | ||
95 | - | let I = "acresIssuedAmount" | |
96 | - | ||
97 | - | let J = "acresAssetId" | |
98 | - | ||
99 | - | let K = valueOrErrorMessage(getBinary(B, J), "ACRES is not issued yet") | |
100 | - | ||
101 | - | func L (H) = ("acresStakedTimeByUser_" + H) | |
95 | + | func I (H) = ("curWeekTxIdByUser_" + H) | |
102 | 96 | ||
103 | 97 | ||
104 | - | func M (N) = ("stakedLandsByOwner_" + N) | |
98 | + | let J = "acresIssuedAmount" | |
99 | + | ||
100 | + | let K = "acresAssetId" | |
101 | + | ||
102 | + | let L = valueOrErrorMessage(getBinary(B, K), "ACRES is not issued yet") | |
103 | + | ||
104 | + | func M (H) = ("acresStakedTimeByUser_" + H) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func | |
107 | + | func N (O) = ("stakedLandsByOwner_" + O) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P (Q) = { | |
111 | - | let j = Q | |
110 | + | func P (O) = ("stakedDuckByOwner_" + O) | |
111 | + | ||
112 | + | ||
113 | + | func Q (R) = { | |
114 | + | let j = R | |
112 | 115 | if ($isInstanceOf(j, "Int")) | |
113 | 116 | then { | |
114 | - | let | |
115 | - | | |
117 | + | let S = j | |
118 | + | S | |
116 | 119 | } | |
117 | 120 | else throw("fail to cast into Int") | |
118 | 121 | } | |
119 | 122 | ||
120 | 123 | ||
121 | - | func | |
122 | - | let j = | |
124 | + | func T (U) = { | |
125 | + | let j = U | |
123 | 126 | if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)")) | |
124 | 127 | then { | |
125 | - | let | |
126 | - | | |
128 | + | let V = j | |
129 | + | V | |
127 | 130 | } | |
128 | 131 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
129 | 132 | } | |
130 | 133 | ||
131 | 134 | ||
132 | - | func | |
133 | - | let j = | |
135 | + | func W (U) = { | |
136 | + | let j = U | |
134 | 137 | if ($isInstanceOf(j, "(Int, Int, Int, Int)")) | |
135 | 138 | then { | |
136 | - | let | |
137 | - | | |
139 | + | let V = j | |
140 | + | V | |
138 | 141 | } | |
139 | 142 | else throw("fail to cast into (Int, Int, Int, Int)") | |
140 | 143 | } | |
141 | 144 | ||
142 | 145 | ||
143 | - | func | |
144 | - | let j = | |
146 | + | func X (U) = { | |
147 | + | let j = U | |
145 | 148 | if ($isInstanceOf(j, "(Int, Int, Int)")) | |
146 | 149 | then { | |
147 | - | let | |
148 | - | | |
150 | + | let V = j | |
151 | + | V | |
149 | 152 | } | |
150 | 153 | else throw("fail to cast into (Int, Int, Int)") | |
151 | 154 | } | |
152 | 155 | ||
153 | 156 | ||
154 | - | func | |
155 | - | let j = | |
157 | + | func Y (U) = { | |
158 | + | let j = U | |
156 | 159 | if ($isInstanceOf(j, "(Int, Int)")) | |
157 | 160 | then { | |
158 | - | let | |
159 | - | | |
161 | + | let V = j | |
162 | + | V | |
160 | 163 | } | |
161 | 164 | else throw("fail to cast into (Int, Int)") | |
162 | 165 | } | |
163 | 166 | ||
164 | 167 | ||
165 | - | func | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | (((toString(( | |
168 | + | func Z (U,aa) = { | |
169 | + | let ab = pow(10, 0, aa, 0, 0, DOWN) | |
170 | + | let ac = toString((U % ab)) | |
171 | + | let ad = drop(toString(ab), (1 + size(ac))) | |
172 | + | (((toString((U / ab)) + ".") + ad) + ac) | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 | ||
173 | - | let | |
176 | + | let ae = 100000000 | |
174 | 177 | ||
175 | - | let | |
178 | + | let af = 10080 | |
176 | 179 | ||
177 | - | let | |
180 | + | let ag = "wlg_issuedAmount" | |
178 | 181 | ||
179 | - | func ag (H) = ("acresStakedAmountByUser_" + H) | |
182 | + | let ah = "zbill_issuedAmount" | |
183 | + | ||
184 | + | func ai (H) = ("acresStakedAmountByUser_" + H) | |
180 | 185 | ||
181 | 186 | ||
182 | - | func | |
187 | + | func aj (H) = ("farmingPowerByUser_" + H) | |
183 | 188 | ||
184 | 189 | ||
185 | - | let | |
190 | + | let ak = "acresStakedAmountTotal" | |
186 | 191 | ||
187 | - | let | |
192 | + | let al = "totalFarmingPower" | |
188 | 193 | ||
189 | - | let | |
194 | + | let am = 0 | |
190 | 195 | ||
191 | - | let | |
196 | + | let an = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
192 | 197 | ||
193 | - | func | |
194 | - | let | |
195 | - | func | |
196 | - | then | |
197 | - | else ( | |
198 | + | func ao (ap) = { | |
199 | + | let aq = ((ap + 99999999) / ae) | |
200 | + | func ar (as,at) = if ((at >= aq)) | |
201 | + | then as | |
202 | + | else (as + 1) | |
198 | 203 | ||
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | func | |
203 | - | then | |
204 | - | else | |
204 | + | let au = an | |
205 | + | let av = size(au) | |
206 | + | let aw = 0 | |
207 | + | func ax (ay,az) = if ((az >= av)) | |
208 | + | then ay | |
209 | + | else ar(ay, au[az]) | |
205 | 210 | ||
206 | - | func | |
207 | - | then | |
211 | + | func aA (ay,az) = if ((az >= av)) | |
212 | + | then ay | |
208 | 213 | else throw("List size exceeds 10") | |
209 | 214 | ||
210 | - | | |
215 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
211 | 216 | } | |
212 | 217 | ||
213 | 218 | ||
214 | - | func | |
219 | + | func aB (ap) = ((ap * 20) * (ao(ap) + 4)) | |
215 | 220 | ||
216 | 221 | ||
217 | - | func aA (H) = ("lastArbTimeUser_" + H) | |
222 | + | let aC = "nftTotalIssued" | |
223 | + | ||
224 | + | func aD (aE) = ("nftNumberByAssetId_" + aE) | |
218 | 225 | ||
219 | 226 | ||
220 | - | ||
227 | + | func aF (H) = ("lastArbTimeUser_" + H) | |
221 | 228 | ||
222 | - | let aC = "lastLimitLeft" | |
223 | 229 | ||
224 | - | let aD = { | |
230 | + | let aG = "lastAcresSellTime" | |
231 | + | ||
232 | + | let aH = "lastLimitLeft" | |
233 | + | ||
234 | + | let aI = { | |
225 | 235 | let j = h | |
226 | 236 | if ((base58'2W' == j)) | |
227 | 237 | then nil | |
228 | 238 | else if ((base58'2T' == j)) | |
229 | - | then | |
239 | + | then ["Cy1b1cu6E5Vx67Mo2wvWi2pvJzT28exsb81maoyYPmvu", "6GEyPU5H2giZahjKnUfZ4djSMacEhSWswVp23Xr8B7wy"] | |
230 | 240 | else throw("Unknown chain") | |
231 | 241 | } | |
232 | 242 | ||
233 | - | let | |
243 | + | let aJ = ["{\"name\": \"Gold shovel\", \"description\": \"Reward for early birds\", \"rare\": \"Promo\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", "{\"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 1, \"bonusType\": \"FarmPower\"}"] | |
234 | 244 | ||
235 | - | let | |
245 | + | let aK = ["SHOVEL-P3", "PICKAXE-C1"] | |
236 | 246 | ||
237 | - | func | |
247 | + | func aL (aM) = if (if ((aM.originCaller != A)) | |
238 | 248 | then valueOrElse(getBoolean(F()), false) | |
239 | 249 | else false) | |
240 | 250 | then throw("Contracts are under maintenance") | |
241 | - | else [StringEntry(G(toString(aH.originCaller)), toBase58String(aH.transactionId))] | |
242 | - | ||
243 | - | ||
244 | - | func aI (aJ) = if ((aJ >= size(aD))) | |
245 | - | then throw("nftIndex out of bounds") | |
246 | 251 | else { | |
247 | - | let aK = Issue(aF[aJ], ((aD[aJ] + a) + aE[aJ]), 1, 0, false) | |
248 | - | $Tuple2(aK, calculateAssetId(aK)) | |
252 | + | let H = toString(aM.originCaller) | |
253 | + | let aN = (height / af) | |
254 | + | let aO = getString(G(H)) | |
255 | + | let aP = toBase58String(aM.transactionId) | |
256 | + | let aQ = ((toString(aN) + "_") + aP) | |
257 | + | if (isDefined(aO)) | |
258 | + | then { | |
259 | + | let aR = split(value(aO), "_") | |
260 | + | if ((aR[0] == toString(aN))) | |
261 | + | then [StringEntry(G(H), aQ), StringEntry(I(H), aQ)] | |
262 | + | else if ((aR[0] == toString((aN - 1)))) | |
263 | + | then [StringEntry(I(H), aQ)] | |
264 | + | else { | |
265 | + | let aS = getStringValue(G(H)) | |
266 | + | let aT = split(aS, "_") | |
267 | + | if ((aT[0] == toString(aN))) | |
268 | + | then [StringEntry(I(H), aQ)] | |
269 | + | else [StringEntry(G(H), aS), StringEntry(I(H), aQ)] | |
270 | + | } | |
271 | + | } | |
272 | + | else [StringEntry(G(H), aQ), StringEntry(I(H), aQ)] | |
249 | 273 | } | |
250 | 274 | ||
251 | 275 | ||
252 | - | func aL (aM,o) = { | |
253 | - | let aN = invoke(C, "onStakeUnstakeLand", [o], nil) | |
254 | - | if ((aN == aN)) | |
276 | + | func aU (aV,H) = if ((aV >= size(aI))) | |
277 | + | then throw("nftIndex out of bounds") | |
278 | + | else { | |
279 | + | let aW = (valueOrElse(getInteger(aC), -1) + 1) | |
280 | + | let aX = Issue(aK[aV], makeString_2C([aI[aV], toString(aW), aJ[aV]], a), 1, 0, false) | |
281 | + | let aY = calculateAssetId(aX) | |
282 | + | $Tuple2([aX, IntegerEntry(aC, aW), IntegerEntry(aD(toBase58String(aY)), aW), ScriptTransfer(H, 1, aY)], aY) | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | func aZ (ba,o) = { | |
287 | + | let bb = invoke(C, "onStakeUnstakeLand", [o], nil) | |
288 | + | if ((bb == bb)) | |
255 | 289 | then { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if (if ((0 > | |
261 | - | then (0 > ( | |
290 | + | let bc = lastBlock.timestamp | |
291 | + | let bd = M(o) | |
292 | + | let be = ai(o) | |
293 | + | let bf = valueOrElse(getInteger(be), 0) | |
294 | + | if (if ((0 > ba)) | |
295 | + | then (0 > (bf + ba)) | |
262 | 296 | else false) | |
263 | - | then throw(((("You have only " + | |
297 | + | then throw(((("You have only " + Z(bf, 8)) + " ACRES staked, tried to unstake ") + Z(-(ba), 8))) | |
264 | 298 | else { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple2([IntegerEntry( | |
299 | + | let bg = (bf + ba) | |
300 | + | let bh = valueOrElse(getInteger(ak), 0) | |
301 | + | let bi = aj(o) | |
302 | + | let bj = valueOrElse(getInteger(bi), 0) | |
303 | + | let bk = aB(bg) | |
304 | + | let bl = valueOrElse(getInteger(al), 0) | |
305 | + | $Tuple2([IntegerEntry(bd, lastBlock.timestamp), IntegerEntry(be, bg), IntegerEntry(ak, (bh + ba)), IntegerEntry(bi, bk), IntegerEntry(al, ((bl - bj) + bk))], bb) | |
272 | 306 | } | |
273 | 307 | } | |
274 | 308 | else throw("Strict value is not equal to itself.") | |
275 | 309 | } | |
276 | 310 | ||
277 | 311 | ||
278 | - | func | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | fraction( | |
312 | + | func bm (bn) = { | |
313 | + | let bo = valueOrErrorMessage(getInteger(C, ag), "WLGOLD is not issued yet") | |
314 | + | let bp = assetBalance(C, i) | |
315 | + | let bq = (assetBalance(B, i) - bn) | |
316 | + | let br = (assetBalance(D, i) + valueOrElse(getInteger(D, ah), 0)) | |
317 | + | let bs = ((bq + bp) + br) | |
318 | + | fraction(bs, d, bo) | |
285 | 319 | } | |
286 | 320 | ||
287 | 321 | ||
288 | - | func | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | $Tuple2(IntegerEntry( | |
322 | + | func bt () = { | |
323 | + | let bp = assetBalance(C, i) | |
324 | + | let bq = assetBalance(this, i) | |
325 | + | let br = (assetBalance(D, i) + valueOrElse(getInteger(D, ah), 0)) | |
326 | + | let bu = (((bq + bp) + br) / g) | |
327 | + | let bv = valueOrElse(getInteger(aH), bu) | |
328 | + | let bw = valueOrElse(getInteger(aG), 0) | |
329 | + | let bc = lastBlock.timestamp | |
330 | + | let bx = (bv + fraction(bu, (bc - bw), e)) | |
331 | + | let by = min([bx, bu]) | |
332 | + | $Tuple2(IntegerEntry(aG, bc), by) | |
299 | 333 | } | |
300 | 334 | ||
301 | 335 | ||
302 | - | @Callable( | |
303 | - | func saveLastTx () = if (!(containsElement([C], | |
336 | + | @Callable(aM) | |
337 | + | func saveLastTx () = if (!(containsElement([C], aM.caller))) | |
304 | 338 | then throw("Access denied") | |
305 | - | else $Tuple2( | |
339 | + | else $Tuple2(aL(aM), 42) | |
306 | 340 | ||
307 | 341 | ||
308 | 342 | ||
309 | - | @Callable( | |
310 | - | func constructorV1 ( | |
343 | + | @Callable(aM) | |
344 | + | func constructorV1 (bz,bA) = if ((aM.caller != this)) | |
311 | 345 | then throw("Permission denied") | |
312 | 346 | else { | |
313 | - | let | |
314 | - | [IntegerEntry( | |
347 | + | let bB = addressFromStringValue(bA) | |
348 | + | [IntegerEntry(J, getIntegerValue(bB, J)), BinaryEntry(K, getBinaryValue(bB, K)), StringEntry(u(), bz), StringEntry(E, bA)] | |
315 | 349 | } | |
316 | 350 | ||
317 | 351 | ||
318 | 352 | ||
319 | - | @Callable( | |
320 | - | func setBlocked ( | |
353 | + | @Callable(aM) | |
354 | + | func setBlocked (bC) = if ((aM.caller != this)) | |
321 | 355 | then throw("permission denied") | |
322 | - | else [BooleanEntry(F(), | |
356 | + | else [BooleanEntry(F(), bC)] | |
323 | 357 | ||
324 | 358 | ||
325 | 359 | ||
326 | - | @Callable( | |
327 | - | func unstakeAcres ( | |
328 | - | let | |
329 | - | if ((0 >= | |
360 | + | @Callable(aM) | |
361 | + | func unstakeAcres (bD) = { | |
362 | + | let bE = aL(aM) | |
363 | + | if ((0 >= bD)) | |
330 | 364 | then throw("Amount should be positive") | |
331 | 365 | else { | |
332 | - | let o = toString( | |
333 | - | if ((size( | |
366 | + | let o = toString(aM.caller) | |
367 | + | if ((size(aM.payments) != 0)) | |
334 | 368 | then throw("No payments required") | |
335 | 369 | else { | |
336 | - | let | |
337 | - | if (( | |
338 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
370 | + | let bF = (valueOrElse(getInteger(C, aF(o)), 0) + l) | |
371 | + | if ((bF > lastBlock.timestamp)) | |
372 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(bF))) | |
339 | 373 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple2((( | |
374 | + | let bG = aZ(-(bD), o) | |
375 | + | let bH = bG._1 | |
376 | + | let bI = bG._2 | |
377 | + | $Tuple2(((bH :+ ScriptTransfer(aM.caller, bD, L)) ++ bE), bI) | |
344 | 378 | } | |
345 | 379 | } | |
346 | 380 | } | |
347 | 381 | } | |
348 | 382 | ||
349 | 383 | ||
350 | 384 | ||
351 | - | @Callable( | |
385 | + | @Callable(aM) | |
352 | 386 | func stakeAcres () = { | |
353 | - | let | |
354 | - | let o = toString( | |
355 | - | if ((size( | |
387 | + | let bE = aL(aM) | |
388 | + | let o = toString(aM.caller) | |
389 | + | if ((size(aM.payments) != 1)) | |
356 | 390 | then throw("exactly 1 payment must be attached") | |
357 | 391 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | if (if (!(isDefined( | |
392 | + | let bJ = aM.payments[0] | |
393 | + | let ba = bJ.amount | |
394 | + | if (if (!(isDefined(bJ.assetId))) | |
361 | 395 | then true | |
362 | - | else (value( | |
396 | + | else (value(bJ.assetId) != L)) | |
363 | 397 | then throw("ACRES payments only!") | |
364 | 398 | else { | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | $Tuple2(( | |
399 | + | let bK = aZ(ba, o) | |
400 | + | let bH = bK._1 | |
401 | + | let bI = bK._2 | |
402 | + | $Tuple2((bH ++ bE), bI) | |
369 | 403 | } | |
370 | 404 | } | |
371 | 405 | } | |
372 | 406 | ||
373 | 407 | ||
374 | 408 | ||
375 | - | @Callable( | |
409 | + | @Callable(aM) | |
376 | 410 | func buyAcres () = { | |
377 | - | let | |
378 | - | if ((size( | |
411 | + | let bE = aL(aM) | |
412 | + | if ((size(aM.payments) != 1)) | |
379 | 413 | then throw("exactly 1 payment must be attached") | |
380 | 414 | else { | |
381 | - | let | |
382 | - | let | |
383 | - | if (if (!(isDefined( | |
415 | + | let bJ = aM.payments[0] | |
416 | + | let bL = bJ.amount | |
417 | + | if (if (!(isDefined(bJ.assetId))) | |
384 | 418 | then true | |
385 | - | else (value( | |
419 | + | else (value(bJ.assetId) != i)) | |
386 | 420 | then throw("USDT payments only!") | |
387 | - | else if ((b > | |
388 | - | then throw((("Min payment should be " + | |
421 | + | else if ((b > bL)) | |
422 | + | then throw((("Min payment should be " + Z(b, 6)) + " USDT")) | |
389 | 423 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | if (( | |
424 | + | let bM = (bL * f) | |
425 | + | let bN = fraction(bL, d, bm(bL)) | |
426 | + | let bO = addressFromStringValue(getStringValue(E)) | |
427 | + | let bP = invoke(bO, "requestAcresCallback", [bM], nil) | |
428 | + | if ((bP == bP)) | |
395 | 429 | then { | |
396 | - | let | |
397 | - | $Tuple2(([ScriptTransfer( | |
430 | + | let bQ = Q(invoke(C, "burnWlgold", [bN], nil)) | |
431 | + | $Tuple2(([ScriptTransfer(aM.caller, bM, L)] ++ bE), bQ) | |
398 | 432 | } | |
399 | 433 | else throw("Strict value is not equal to itself.") | |
400 | 434 | } | |
401 | 435 | } | |
402 | 436 | } | |
403 | 437 | ||
404 | 438 | ||
405 | 439 | ||
406 | - | @Callable( | |
407 | - | func buyAcresREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple2(nil, [ | |
440 | + | @Callable(aM) | |
441 | + | func buyAcresREADONLY (bL) = { | |
442 | + | let bM = (bL * f) | |
443 | + | let bR = fraction(bL, d, bm(bL)) | |
444 | + | $Tuple2(nil, [bM, b, bM, bR]) | |
411 | 445 | } | |
412 | 446 | ||
413 | 447 | ||
414 | 448 | ||
415 | - | @Callable( | |
449 | + | @Callable(aM) | |
416 | 450 | func sellAcres () = { | |
417 | - | let | |
418 | - | if ((size( | |
451 | + | let bE = aL(aM) | |
452 | + | if ((size(aM.payments) != 1)) | |
419 | 453 | then throw("exactly 1 payment must be attached") | |
420 | 454 | else { | |
421 | - | let | |
422 | - | let | |
423 | - | if (if (!(isDefined( | |
455 | + | let bJ = aM.payments[0] | |
456 | + | let bM = bJ.amount | |
457 | + | if (if (!(isDefined(bJ.assetId))) | |
424 | 458 | then true | |
425 | - | else (value( | |
459 | + | else (value(bJ.assetId) != L)) | |
426 | 460 | then throw("ACRES payments only!") | |
427 | - | else if ((c > | |
428 | - | then throw((("Min payment should be " + | |
461 | + | else if ((c > bM)) | |
462 | + | then throw((("Min payment should be " + Z(c, 8)) + " ACRES")) | |
429 | 463 | else { | |
430 | - | let H = toString( | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | if (( | |
436 | - | then throw((("You can sell max " + | |
464 | + | let H = toString(aM.caller) | |
465 | + | let bS = bt() | |
466 | + | let bT = bS._1 | |
467 | + | let bU = bS._2 | |
468 | + | let bV = (bU * f) | |
469 | + | if ((bM > bV)) | |
470 | + | then throw((("You can sell max " + Z(bV, 8)) + " ACRES")) | |
437 | 471 | else { | |
438 | - | let | |
439 | - | $Tuple2(([ | |
472 | + | let bL = ((bM / f) / 2) | |
473 | + | $Tuple2(([bT, IntegerEntry(aH, (bU - bL)), ScriptTransfer(aM.caller, bL, i)] ++ bE), bL) | |
440 | 474 | } | |
441 | 475 | } | |
442 | 476 | } | |
443 | 477 | } | |
444 | 478 | ||
445 | 479 | ||
446 | 480 | ||
447 | - | @Callable( | |
448 | - | func sellAcresREADONLY (o, | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | $Tuple2(nil, [ | |
481 | + | @Callable(aM) | |
482 | + | func sellAcresREADONLY (o,bM) = { | |
483 | + | let bW = bt() | |
484 | + | let bT = bW._1 | |
485 | + | let bU = bW._2 | |
486 | + | let bL = ((bM / f) / 2) | |
487 | + | $Tuple2(nil, [bL, c, (bU * f), 0]) | |
454 | 488 | } | |
455 | 489 | ||
456 | 490 | ||
457 | 491 | ||
458 | - | @Callable( | |
459 | - | func convertOldStakes () = if (( | |
492 | + | @Callable(aM) | |
493 | + | func convertOldStakes () = if ((aM.caller != this)) | |
460 | 494 | then throw("Temporarily disabled") | |
461 | 495 | else { | |
462 | - | let o = toString( | |
463 | - | if ((size( | |
496 | + | let o = toString(aM.caller) | |
497 | + | if ((size(aM.payments) != 0)) | |
464 | 498 | then throw("No payments required") | |
465 | 499 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | then | |
500 | + | let bO = addressFromStringValue(getStringValue(E)) | |
501 | + | let bD = valueOrElse(getInteger(bO, ai(o)), 0) | |
502 | + | let bX = if ((bD > 0)) | |
503 | + | then Y(invoke(bO, "unstakeAcresCallback", [bD, o], nil)) | |
470 | 504 | else $Tuple2(0, 0) | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
505 | + | let bY = addressFromStringValue(m) | |
506 | + | let bZ = getString(bY, N(o)) | |
507 | + | let ca = if (isDefined(bZ)) | |
474 | 508 | then { | |
475 | - | let | |
476 | - | func | |
509 | + | let cb = split_51C(value(bZ), "_") | |
510 | + | func cc (as,cd) = if ((cd == "")) | |
477 | 511 | then throw("landAssetId is required") | |
478 | 512 | else { | |
479 | - | let | |
480 | - | $Tuple4(( | |
513 | + | let ce = T(invoke(bY, "unstakeLandCallback", [cd, o], nil)) | |
514 | + | $Tuple4((as._1 + ce._1), (as._2 + ce._2), (as._3 + ce._3), (as._4 + ce._4)) | |
481 | 515 | } | |
482 | 516 | ||
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | func | |
488 | - | then | |
489 | - | else | |
517 | + | let cf = { | |
518 | + | let au = cb | |
519 | + | let av = size(au) | |
520 | + | let aw = $Tuple4(0, 0, 0, 0) | |
521 | + | func ax (ay,az) = if ((az >= av)) | |
522 | + | then ay | |
523 | + | else cc(ay, au[az]) | |
490 | 524 | ||
491 | - | func | |
492 | - | then | |
525 | + | func aA (ay,az) = if ((az >= av)) | |
526 | + | then ay | |
493 | 527 | else throw("List size exceeds 100") | |
494 | 528 | ||
495 | - | | |
529 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 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) | |
496 | 530 | } | |
497 | - | let | |
498 | - | if (( | |
531 | + | let cg = invoke(bY, "unstakeLandsFinalizeCallback", [o], nil) | |
532 | + | if ((cg == cg)) | |
499 | 533 | then { | |
500 | - | let | |
501 | - | if (( | |
534 | + | let bP = invoke(bO, "requestAcresCallback", [(((cf._1 + cf._2) + cf._3) + cf._4)], nil) | |
535 | + | if ((bP == bP)) | |
502 | 536 | then { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | $Tuple5( | |
537 | + | let ch = aU(am, aM.caller) | |
538 | + | let ci = ch._1 | |
539 | + | let aY = ch._2 | |
540 | + | $Tuple5(cf._1, cf._2, cf._3, cf._4, ci) | |
507 | 541 | } | |
508 | 542 | else throw("Strict value is not equal to itself.") | |
509 | 543 | } | |
510 | 544 | else throw("Strict value is not equal to itself.") | |
511 | 545 | } | |
512 | 546 | else $Tuple5(0, 0, 0, 0, nil) | |
513 | - | let | |
514 | - | let | |
515 | - | then | |
547 | + | let cj = valueOrElse(getString(bY, P(o)), "") | |
548 | + | let ck = if ((cj != "")) | |
549 | + | then X(invoke(bY, "unstakeDuckCallback", [cj, o], nil)) | |
516 | 550 | else $Tuple3(0, 0, 0) | |
517 | - | let | |
518 | - | $Tuple2(( | |
551 | + | let cl = aZ((((((((bX._1 + ca._1) + ca._2) + ca._3) + ca._4) + ck._1) + ck._2) + ck._3), o) | |
552 | + | $Tuple2((ca._5 ++ cl._1), cl._2) | |
519 | 553 | } | |
520 | 554 | } | |
521 | 555 | ||
522 | 556 | ||
523 | 557 | ||
524 | - | @Callable( | |
558 | + | @Callable(aM) | |
525 | 559 | func unstakeLandsREADONLY (o) = { | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
560 | + | let bY = addressFromStringValue(m) | |
561 | + | let bZ = getString(bY, N(o)) | |
562 | + | let ca = if (isDefined(bZ)) | |
529 | 563 | then { | |
530 | - | let | |
531 | - | func | |
564 | + | let cb = split_51C(value(bZ), "_") | |
565 | + | func cc (as,cd) = if ((cd == "")) | |
532 | 566 | then throw("landAssetId is required") | |
533 | 567 | else { | |
534 | - | let | |
535 | - | $Tuple4(( | |
568 | + | let ce = W(invoke(bY, "unstakeLandREADONLY", [cd, o], nil)) | |
569 | + | $Tuple4((as._1 + ce._1), (as._2 + ce._2), (as._3 + ce._3), (as._4 + ce._4)) | |
536 | 570 | } | |
537 | 571 | ||
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | func | |
542 | - | then | |
543 | - | else | |
572 | + | let au = cb | |
573 | + | let av = size(au) | |
574 | + | let aw = $Tuple4(0, 0, 0, 0) | |
575 | + | func ax (ay,az) = if ((az >= av)) | |
576 | + | then ay | |
577 | + | else cc(ay, au[az]) | |
544 | 578 | ||
545 | - | func | |
546 | - | then | |
579 | + | func aA (ay,az) = if ((az >= av)) | |
580 | + | then ay | |
547 | 581 | else throw("List size exceeds 100") | |
548 | 582 | ||
549 | - | | |
583 | + | aA(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(ax(aw, 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) | |
550 | 584 | } | |
551 | 585 | else $Tuple4(0, 0, 0, 0) | |
552 | - | $Tuple2(nil, | |
586 | + | $Tuple2(nil, ca) | |
553 | 587 | } | |
554 | 588 | ||
555 | 589 | ||
556 | 590 | ||
557 | - | @Callable( | |
558 | - | func stakeAcresCallback (H) = if (( | |
591 | + | @Callable(aM) | |
592 | + | func stakeAcresCallback (H) = if ((aM.caller != addressFromStringValue(m))) | |
559 | 593 | then throw("Permission denied") | |
560 | - | else | |
594 | + | else aZ(aM.payments[0].amount, H) | |
561 | 595 | ||
562 | 596 | ||
563 | 597 | ||
564 | - | @Callable( | |
565 | - | func simulateStakeAcresREADONLY (o, | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple2(nil, [ | |
598 | + | @Callable(aM) | |
599 | + | func simulateStakeAcresREADONLY (o,cm) = { | |
600 | + | let be = ai(o) | |
601 | + | let bg = (valueOrElse(getInteger(be), 0) + cm) | |
602 | + | let bh = valueOrElse(getInteger(ak), 0) | |
603 | + | let bi = aj(o) | |
604 | + | let bj = valueOrElse(getInteger(bi), 0) | |
605 | + | let bk = aB(bg) | |
606 | + | let bl = valueOrElse(getInteger(al), 0) | |
607 | + | let cn = ((bl - bj) + bk) | |
608 | + | $Tuple2(nil, [bj, bk, bl, cn]) | |
575 | 609 | } | |
576 | 610 | ||
577 | 611 | ||
578 | 612 | ||
579 | - | @Callable( | |
580 | - | func issueNFT ( | |
613 | + | @Callable(aM) | |
614 | + | func issueNFT (co,aV) = if ((aM.caller != C)) | |
581 | 615 | then throw("Permission denied") | |
582 | - | else { | |
583 | - | let cb = aI(aJ) | |
584 | - | let aK = cb._1 | |
585 | - | let bU = cb._2 | |
586 | - | $Tuple2([aK, ScriptTransfer(addressFromStringValue(ca), 1, bU)], bU) | |
587 | - | } | |
616 | + | else aU(aV, addressFromStringValue(co)) | |
588 | 617 | ||
589 | 618 |
github/deemru/w8io/026f985 349.32 ms ◑