tx · 3eBv7G3dZH3x5CCrig5BdUvVBSBWAX6YLpDWb1H9tHEf

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.02700000 Waves

2024.11.26 23:13 [3388851] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "3eBv7G3dZH3x5CCrig5BdUvVBSBWAX6YLpDWb1H9tHEf", "fee": 2700000, "feeAssetId": null, "timestamp": 1732652028770, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "4ntjx3nGtrZ9Sb9iMMPa7bsx4Dc1QZPKSFsSKPoyRRbCZ4VZEFyQ9ybho9756JePHiq6w3xoZ1t9cU7Xw6E5wntK" ], "script": "base64:BgJGCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIARIAEgMKAQgSAFwAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4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succeeded", "spentComplexity": 0 } View: original | compacted Prev: 88a7etqjeSGTwfAYdoJDuqJsrGxzQYX1E3BUNubzbE1c Next: A7ZdxZ895MU6GEHkV9ZRtM7K3PbknVEMwnecSGNqWbTk Diff:
OldNewDifferences
886886 let burnCounterActions = if ((burned == 0))
887887 then nil
888888 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
889- $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(i.caller, 1, nftAssetId)), nftAssetId)
889+ $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
890890 }
891891 }
892892 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let MULT6 = 1000000
77
88 let MULT7 = 10000000
99
1010 let MULT8 = 100000000
1111
1212 let DAY_MILLIS = 86400000
1313
1414 let USDT2ACRES_MULTIPLIER = 10
1515
1616 let ONE_PERCENT_DIVISOR = 100
1717
1818 let chain = take(drop(this.bytes, 1), 1)
1919
2020 let WEEK_BLOCKS = match chain {
2121 case _ =>
2222 if ((base58'2W' == $match0))
2323 then 10080
2424 else if ((base58'2T' == $match0))
2525 then 180
2626 else throw("Unknown chain")
2727 }
2828
2929 let usdtAssetId = match chain {
3030 case _ =>
3131 if ((base58'2W' == $match0))
3232 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3333 else if ((base58'2T' == $match0))
3434 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
3535 else throw("Unknown chain")
3636 }
3737
3838 let defaultRest2AddressStr = match chain {
3939 case _ =>
4040 if ((base58'2W' == $match0))
4141 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4242 else if ((base58'2T' == $match0))
4343 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
4444 else throw("Unknown chain")
4545 }
4646
4747 let arbitrageDelay = match chain {
4848 case _ =>
4949 if ((base58'2W' == $match0))
5050 then DAY_MILLIS
5151 else if ((base58'2T' == $match0))
5252 then 60000
5353 else throw("Unknown chain")
5454 }
5555
5656 let oldStakingContractStr = match chain {
5757 case _ =>
5858 if ((base58'2W' == $match0))
5959 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6060 else if ((base58'2T' == $match0))
6161 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6262 else throw("Unknown chain")
6363 }
6464
6565 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
6666
6767
6868 let IdxCfgAcres2Dapp = 1
6969
7070 let IdxCfgWlgDapp = 2
7171
7272 let IdxCfgInvestFundDapp = 5
7373
7474 func keyRestCfg () = "%s__restConfig"
7575
7676
7777 func keyRest2Address () = "%s__rest2Addr"
7878
7979
8080 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8181
8282
8383 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
8484
8585
8686 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
8787
8888 let rest2Cfg = readRestCfgOrFail(rest2Contract)
8989
9090 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9191
9292 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9393
9494 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
9595
9696 let oldAcresContractKey = "oldAcresContract"
9797
9898 func keyBlocked () = "contractsBlocked"
9999
100100
101101 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
102102
103103
104104 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
105105
106106
107107 let acresIssuedAmountKey = "acresIssuedAmount"
108108
109109 let acresAssetIdKey = "acresAssetId"
110110
111111 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
112112
113113 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
114114
115115
116116 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
117117
118118
119119 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
120120
121121
122122 func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr)
123123
124124
125125 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
126126
127127
128128 func asInt (v) = match v {
129129 case n: Int =>
130130 n
131131 case _ =>
132132 throw("fail to cast into Int")
133133 }
134134
135135
136136 func asTuple5Ints (val) = match val {
137137 case t: (Int, Int, Int, Int, Int) =>
138138 t
139139 case _ =>
140140 throw("fail to cast into (Int, Int, Int, Int, Int)")
141141 }
142142
143143
144144 func asTuple4Ints (val) = match val {
145145 case t: (Int, Int, Int, Int) =>
146146 t
147147 case _ =>
148148 throw("fail to cast into (Int, Int, Int, Int)")
149149 }
150150
151151
152152 func asTuple3Ints (val) = match val {
153153 case t: (Int, Int, Int) =>
154154 t
155155 case _ =>
156156 throw("fail to cast into (Int, Int, Int)")
157157 }
158158
159159
160160 func asTuple2Ints (val) = match val {
161161 case t: (Int, Int) =>
162162 t
163163 case _ =>
164164 throw("fail to cast into (Int, Int)")
165165 }
166166
167167
168168 func fixedPoint (val,decimals) = {
169169 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
170170 let lowPart = toString((val % tenPow))
171171 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
172172 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
173173 }
174174
175175
176176 let M6_ = 1000000
177177
178178 let M8_ = 100000000
179179
180180 let wlgIssuedAmtKey = "wlg_issuedAmount"
181181
182182 let zbIssuedAmtKey = "zbill_issuedAmount"
183183
184184 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
185185
186186
187187 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
188188
189189
190190 let acresStakdTotalKey = "acresStakedAmountTotal"
191191
192192 let totalFarmingPowerKey = "totalFarmingPower"
193193
194194 let IdxDtx3PercConversion = 0
195195
196196 let MAX_WL_NFTS = 3
197197
198198 let MAX_ARK_NFTS = 1
199199
200200 let ARK_NFT_BONUS = 5000
201201
202202 let MAX_NFTS_STAKED_BY_USER = 4
203203
204204 let keyNftTotalIssued = "nftTotalIssued"
205205
206206 let keyNftTotalBurned = "nftTotalBurned"
207207
208208 let keyWlNftTotalStaked = "WlNftTotalStaked"
209209
210210 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
211211
212212
213213 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
214214
215215
216216 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
217217
218218
219219 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
220220
221221
222222 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
223223
224224 func getLevelByAcres (acres) = {
225225 let acr = ((acres + 99999999) / M8_)
226226 func checker (acc,item) = if ((item >= acr))
227227 then acc
228228 else (acc + 1)
229229
230230 let $l = levelAcres
231231 let $s = size($l)
232232 let $acc0 = 0
233233 func $f0_1 ($a,$i) = if (($i >= $s))
234234 then $a
235235 else checker($a, $l[$i])
236236
237237 func $f0_2 ($a,$i) = if (($i >= $s))
238238 then $a
239239 else throw("List size exceeds 10")
240240
241241 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
242242 }
243243
244244
245245 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
246246
247247
248248 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
249249 let notBonused = getFarmingPowerByAcres(acres)
250250 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
251251 }
252252
253253
254254 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
255255
256256
257257 let keyLastAcresSellTime = "lastAcresSellTime"
258258
259259 let keyLastLimitLeft = "lastLimitLeft"
260260
261261 let nftDescriptions = [", \"collection\": \"Digging tools\", \"name\": \"Gold shovel\", \"description\": \"Reward for early birds\", \"rare\": \"Promo\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 1, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 5, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 10, \"bonusType\": \"FarmPower\"}"]
262262
263263 let nftNames = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
264264
265265 let contentKeys = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
266266
267267 let URL = "\"url\": \"https://waveslands.com\", "
268268
269269 func prolog (i) = if (if ((i.originCaller != rest2Contract))
270270 then valueOrElse(getBoolean(keyBlocked()), false)
271271 else false)
272272 then throw("Contracts are under maintenance")
273273 else {
274274 let addr = toString(i.originCaller)
275275 let week = (height / WEEK_BLOCKS)
276276 let lastWeekTxIdByUser = getString(keyLastWeekTxIdByUser(addr))
277277 let txId = toBase58String(i.transactionId)
278278 let wtx = ((toString(week) + "_") + txId)
279279 if (isDefined(lastWeekTxIdByUser))
280280 then {
281281 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
282282 if ((lastWeekTx[0] == toString(week)))
283283 then [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
284284 else if ((lastWeekTx[0] == toString((week - 1))))
285285 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
286286 else {
287287 let curWeekTxIdByUser = getStringValue(keyLastWeekTxIdByUser(addr))
288288 let curWeekTx = split(curWeekTxIdByUser, "_")
289289 if ((curWeekTx[0] == toString(week)))
290290 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
291291 else [StringEntry(keyLastWeekTxIdByUser(addr), curWeekTxIdByUser), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
292292 }
293293 }
294294 else [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
295295 }
296296
297297
298298 func issueNFTinternal (nftIndex,addr) = if ((nftIndex >= size(contentKeys)))
299299 then throw("nftIndex out of bounds")
300300 else {
301301 let nftSerial = (valueOrElse(getInteger(keyNftTotalIssued), -1) + 1)
302302 let issue = Issue(nftNames[nftIndex], (((((("{" + URL) + "\"contentKey\": \"") + contentKeys[nftIndex]) + "\", \"number\": ") + toString(nftSerial)) + nftDescriptions[nftIndex]), 1, 0, false)
303303 let nftAssetId = calculateAssetId(issue)
304304 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, nftSerial), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
305305 }
306306
307307
308308 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
309309 then (bonusDelta == 0)
310310 else false)
311311 then throw("Nothing to do")
312312 else {
313313 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
314314 if ((wlgResult == wlgResult))
315315 then {
316316 let now = lastBlock.timestamp
317317 let timeKey = keyAcresStakedTimeByUser(address)
318318 let amountKey = keyAcresStakedAmtByUser(address)
319319 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
320320 if (if ((0 > amt))
321321 then (0 > (oldAcresAmount + amt))
322322 else false)
323323 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
324324 else {
325325 let newAcresAmount = (oldAcresAmount + amt)
326326 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
327327 let userFpKey = keyFarmingPowerByUser(address)
328328 let oldFp = valueOrElse(getInteger(userFpKey), 0)
329329 let bonusKey = keyUserFullBonus(address)
330330 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
331331 if (if ((0 > bonusDelta))
332332 then (0 > (oldBonus + bonusDelta))
333333 else false)
334334 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
335335 else {
336336 let $t059586057 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
337337 let newBonusedFp = $t059586057._1
338338 let ignored = $t059586057._2
339339 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
340340 let acresActions = if ((amt == 0))
341341 then nil
342342 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
343343 $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult)
344344 }
345345 }
346346 }
347347 else throw("Strict value is not equal to itself.")
348348 }
349349
350350
351351 func getWlgPrice (usdtBalanceCorrection) = {
352352 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
353353 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
354354 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
355355 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
356356 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
357357 fraction(totalFundsUsd, MULT8, issuedAmount)
358358 }
359359
360360
361361 func getSwapLimitAcres () = {
362362 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
363363 let acres2Usd = assetBalance(this, usdtAssetId)
364364 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
365365 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
366366 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
367367 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
368368 let now = lastBlock.timestamp
369369 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
370370 let limitLeftUsdt = min([currentLimit, defaultLimit])
371371 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
372372 }
373373
374374
375375 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
376376
377377 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
378378
379379 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
380380
381381 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
382382
383383 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
384384
385385 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
386386
387387 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
388388
389389 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
390390
391391 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
392392
393393 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
394394
395395 func isArkimalIssued (nfo) = {
396396 let issuer = toString(nfo.issuer)
397397 if (if (if (if (if (if (if (if ((issuer == incubator))
398398 then true
399399 else (issuer == breeder))
400400 then true
401401 else (issuer == turtleIncubator))
402402 then true
403403 else (issuer == turtleBreeder))
404404 then true
405405 else (issuer == canineIncubator))
406406 then true
407407 else (issuer == canineBreeder))
408408 then true
409409 else (issuer == felineIncubator))
410410 then true
411411 else (issuer == felineBreeder))
412412 then nfo.name
413413 else if ((issuer == mutantBreeder))
414414 then nfo.description
415415 else ""
416416 }
417417
418418
419419 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
420420 then throw(("NFT is not supported: " + descr))
421421 else {
422422 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
423423 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
424424 }
425425
426426
427427 @Callable(i)
428428 func saveLastTx () = if (!(containsElement([wlgContract], i.caller)))
429429 then throw("Access denied")
430430 else $Tuple2(prolog(i), 42)
431431
432432
433433
434434 @Callable(i)
435435 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
436436 then throw("Permission denied")
437437 else {
438438 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
439439 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
440440 }
441441
442442
443443
444444 @Callable(i)
445445 func setBlocked (isBlocked) = if ((i.caller != this))
446446 then throw("permission denied")
447447 else [BooleanEntry(keyBlocked(), isBlocked)]
448448
449449
450450
451451 @Callable(i)
452452 func unstakeAcres (amount) = {
453453 let prologActions = prolog(i)
454454 if ((0 >= amount))
455455 then throw("Amount should be positive")
456456 else {
457457 let address = toString(i.caller)
458458 if ((size(i.payments) != 0))
459459 then throw("No payments required")
460460 else {
461461 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
462462 if ((arbReleaseTime > lastBlock.timestamp))
463463 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
464464 else {
465465 let $t01155211632 = stakeUnstakeAcresInternal(-(amount), address, 0)
466466 let actions = $t01155211632._1
467467 let wlgClaimedAmount = $t01155211632._2
468468 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
469469 }
470470 }
471471 }
472472 }
473473
474474
475475
476476 @Callable(i)
477477 func stakeAcres () = {
478478 let prologActions = prolog(i)
479479 let address = toString(i.caller)
480480 if ((size(i.payments) != 1))
481481 then throw("exactly 1 payment must be attached")
482482 else {
483483 let pmt = i.payments[0]
484484 let amt = pmt.amount
485485 if (if (!(isDefined(pmt.assetId)))
486486 then true
487487 else (value(pmt.assetId) != acresAssetId))
488488 then throw("ACRES payments only!")
489489 else {
490490 let $t01208312159 = stakeUnstakeAcresInternal(amt, address, 0)
491491 let actions = $t01208312159._1
492492 let wlgClaimedAmount = $t01208312159._2
493493 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
494494 }
495495 }
496496 }
497497
498498
499499
500500 @Callable(i)
501501 func buyAcres () = {
502502 let prologActions = prolog(i)
503503 if ((size(i.payments) != 1))
504504 then throw("exactly 1 payment must be attached")
505505 else {
506506 let pmt = i.payments[0]
507507 let usdtAmount = pmt.amount
508508 if (if (!(isDefined(pmt.assetId)))
509509 then true
510510 else (value(pmt.assetId) != usdtAssetId))
511511 then throw("USDT payments only!")
512512 else if ((MULT6 > usdtAmount))
513513 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
514514 else {
515515 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
516516 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
517517 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
518518 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
519519 if ((req == req))
520520 then {
521521 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
522522 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
523523 }
524524 else throw("Strict value is not equal to itself.")
525525 }
526526 }
527527 }
528528
529529
530530
531531 @Callable(i)
532532 func buyAcresREADONLY (usdtAmount) = {
533533 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
534534 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
535535 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
536536 }
537537
538538
539539
540540 @Callable(i)
541541 func sellAcres () = {
542542 let prologActions = prolog(i)
543543 if ((size(i.payments) != 1))
544544 then throw("exactly 1 payment must be attached")
545545 else {
546546 let pmt = i.payments[0]
547547 let acresAmount = pmt.amount
548548 if (if (!(isDefined(pmt.assetId)))
549549 then true
550550 else (value(pmt.assetId) != acresAssetId))
551551 then throw("ACRES payments only!")
552552 else if ((MULT7 > acresAmount))
553553 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
554554 else {
555555 let addr = toString(i.caller)
556556 let $t01401614064 = getSwapLimitAcres()
557557 let limitAction = $t01401614064._1
558558 let maxUsdt = $t01401614064._2
559559 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
560560 if ((acresAmount > maxAcres))
561561 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
562562 else {
563563 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
564564 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
565565 }
566566 }
567567 }
568568 }
569569
570570
571571
572572 @Callable(i)
573573 func sellAcresREADONLY (address,acresAmount) = {
574574 let $t01456014608 = getSwapLimitAcres()
575575 let limitAction = $t01456014608._1
576576 let maxUsdt = $t01456014608._2
577577 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
578578 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
579579 }
580580
581581
582582
583583 @Callable(i)
584584 func convertOldStakes () = if ((i.caller != this))
585585 then throw("Temporarily disabled")
586586 else {
587587 let address = toString(i.caller)
588588 if ((size(i.payments) != 0))
589589 then throw("No payments required")
590590 else {
591591 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
592592 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
593593 let gotAcres0 = if ((amount > 0))
594594 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
595595 else $Tuple2(0, 0)
596596 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
597597 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
598598 let landsResult = if (isDefined(landsStr))
599599 then {
600600 let lands = split_51C(value(landsStr), "_")
601601 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
602602 then throw("landAssetId is required")
603603 else {
604604 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
605605 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
606606 }
607607
608608 let rr = {
609609 let $l = lands
610610 let $s = size($l)
611611 let $acc0 = $Tuple4(0, 0, 0, 0)
612612 func $f0_1 ($a,$i) = if (($i >= $s))
613613 then $a
614614 else oneLand($a, $l[$i])
615615
616616 func $f0_2 ($a,$i) = if (($i >= $s))
617617 then $a
618618 else throw("List size exceeds 100")
619619
620620 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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)
621621 }
622622 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
623623 if ((finalize == finalize))
624624 then {
625625 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
626626 if ((req == req))
627627 then {
628628 let $t01648016560 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
629629 let nftActions = $t01648016560._1
630630 let nftAssetId = $t01648016560._2
631631 $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
632632 }
633633 else throw("Strict value is not equal to itself.")
634634 }
635635 else throw("Strict value is not equal to itself.")
636636 }
637637 else $Tuple5(0, 0, 0, 0, nil)
638638 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
639639 let duckResult = if ((duckAssetId != ""))
640640 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
641641 else $Tuple3(0, 0, 0)
642642 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
643643 $Tuple2((landsResult._5 ++ x._1), x._2)
644644 }
645645 }
646646
647647
648648
649649 @Callable(i)
650650 func unstakeLandsREADONLY (address) = {
651651 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
652652 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
653653 let landsResult = if (isDefined(landsStr))
654654 then {
655655 let lands = split_51C(value(landsStr), "_")
656656 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
657657 then throw("landAssetId is required")
658658 else {
659659 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
660660 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
661661 }
662662
663663 let $l = lands
664664 let $s = size($l)
665665 let $acc0 = $Tuple4(0, 0, 0, 0)
666666 func $f0_1 ($a,$i) = if (($i >= $s))
667667 then $a
668668 else oneLand($a, $l[$i])
669669
670670 func $f0_2 ($a,$i) = if (($i >= $s))
671671 then $a
672672 else throw("List size exceeds 100")
673673
674674 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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)
675675 }
676676 else $Tuple4(0, 0, 0, 0)
677677 $Tuple2(nil, landsResult)
678678 }
679679
680680
681681
682682 @Callable(i)
683683 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
684684 then throw("Permission denied")
685685 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
686686
687687
688688
689689 @Callable(i)
690690 func simulateStakeAcresREADONLY (address,addedAmount) = {
691691 let amountKey = keyAcresStakedAmtByUser(address)
692692 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
693693 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
694694 let userFpKey = keyFarmingPowerByUser(address)
695695 let oldFp = valueOrElse(getInteger(userFpKey), 0)
696696 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
697697 let $t01872518812 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
698698 let newBonusedFp = $t01872518812._1
699699 let ignored = $t01872518812._2
700700 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
701701 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
702702 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
703703 }
704704
705705
706706
707707 @Callable(i)
708708 func issueNFT (forAddress,nftIndex) = if ((i.caller != wlgContract))
709709 then throw("Permission denied")
710710 else issueNFTinternal(nftIndex, addressFromStringValue(forAddress))
711711
712712
713713
714714 @Callable(i)
715715 func stakeNFT () = {
716716 let prologActions = prolog(i)
717717 if ((size(i.payments) != 1))
718718 then throw("Exactly one payment required")
719719 else {
720720 let pmt = value(i.payments[0])
721721 if ((pmt.amount != 1))
722722 then throw("NFT token should be attached as payment")
723723 else {
724724 let assetId = value(pmt.assetId)
725725 let asset = value(assetInfo(assetId))
726726 let assetIdStr = toBase58String(assetId)
727727 let addr = toString(i.caller)
728728 let nftsKey = keyStakedNFTsByOwner(addr)
729729 let nftsStr = getString(nftsKey)
730730 let nfts = if (isDefined(nftsStr))
731731 then split_4C(value(nftsStr), "_")
732732 else nil
733733 if (containsElement(nfts, assetIdStr))
734734 then throw(("Your staked NFTs already contain " + assetIdStr))
735735 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
736736 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
737737 else {
738738 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
739739 let isWL = (asset.issuer == this)
740740 if (isWL)
741741 then {
742742 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
743743 if ((wlNftNumber >= MAX_WL_NFTS))
744744 then throw((("You can stake max " + toString(MAX_WL_NFTS)) + " of WavesLands NFTs"))
745745 else {
746746 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
747747 let $t02058720665 = stakeUnstakeAcresInternal(0, addr, bonusVal)
748748 let actions = $t02058720665._1
749749 let wlgClaimedAmount = $t02058720665._2
750750 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber + 1))) :+ IntegerEntry(keyWlNftTotalStaked, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
751751 }
752752 }
753753 else {
754754 let arkimalName = isArkimalIssued(asset)
755755 if ((arkimalName == ""))
756756 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
757757 else {
758758 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
759759 if ((arkNftNumber >= MAX_ARK_NFTS))
760760 then throw((("You can stake max " + toString(MAX_ARK_NFTS)) + " of Arkimals NFTs"))
761761 else {
762762 let $t02140021483 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS)
763763 let actions = $t02140021483._1
764764 let wlgClaimedAmount = $t02140021483._2
765765 $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
766766 }
767767 }
768768 }
769769 }
770770 }
771771 }
772772 }
773773
774774
775775
776776 @Callable(i)
777777 func unstakeNFT (assetIdStr) = {
778778 let prologActions = prolog(i)
779779 if ((size(i.payments) != 0))
780780 then throw("No payments required")
781781 else {
782782 let assetId = fromBase58String(assetIdStr)
783783 let addr = toString(i.caller)
784784 let asset = value(assetInfo(assetId))
785785 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
786786 if (!(isDefined(getInteger(timeKey))))
787787 then throw((("NFT " + asset.name) + " is not staked by you"))
788788 else {
789789 let nftsKey = keyStakedNFTsByOwner(addr)
790790 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
791791 let idx = indexOf(nfts, assetIdStr)
792792 if (!(isDefined(idx)))
793793 then throw(("Your staked NFTs don't contain " + assetIdStr))
794794 else {
795795 let listAction = if ((size(nfts) > 1))
796796 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
797797 else DeleteEntry(nftsKey)
798798 let isWL = (asset.issuer == this)
799799 if (isWL)
800800 then {
801801 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
802802 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
803803 let $t02280422883 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
804804 let actions = $t02280422883._1
805805 let wlgClaimedAmount = $t02280422883._2
806806 $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
807807 }
808808 else {
809809 let arkimalName = isArkimalIssued(asset)
810810 if ((arkimalName == ""))
811811 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
812812 else {
813813 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
814814 let $t02354323627 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
815815 let actions = $t02354323627._1
816816 let wlgClaimedAmount = $t02354323627._2
817817 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
818818 }
819819 }
820820 }
821821 }
822822 }
823823 }
824824
825825
826826
827827 @Callable(i)
828828 func exchangeNFTs () = {
829829 let prologActions = prolog(i)
830830 if ((3 > size(i.payments)))
831831 then throw("Min one USDT and 2 NFT payments allowed")
832832 else if ((size(i.payments) > 6))
833833 then throw("Max one USDT and 5 NFT payments allowed")
834834 else {
835835 let addr = toString(i.caller)
836836 func addUp (acc,pmt) = {
837837 let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
838838 if ((assetId == usdtAssetId))
839839 then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
840840 else {
841841 let asset = value(assetInfo(assetId))
842842 if ((asset.issuer != this))
843843 then throw("Only WL-issued NFTs allowed")
844844 else {
845845 let bonusPerc = bonusByDescription(value(asset.description))
846846 $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
847847 }
848848 }
849849 }
850850
851851 let $t02477524854 = {
852852 let $l = i.payments
853853 let $s = size($l)
854854 let $acc0 = $Tuple3(0, 0, nil)
855855 func $f0_1 ($a,$i) = if (($i >= $s))
856856 then $a
857857 else addUp($a, $l[$i])
858858
859859 func $f0_2 ($a,$i) = if (($i >= $s))
860860 then $a
861861 else throw("List size exceeds 6")
862862
863863 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
864864 }
865865 let usdtFee = $t02477524854._1
866866 let totalBonus = $t02477524854._2
867867 let burnActions = $t02477524854._3
868868 let nftIndex = if ((totalBonus == 3))
869869 then 2
870870 else if ((totalBonus == 5))
871871 then 3
872872 else if ((totalBonus == 10))
873873 then 4
874874 else throw("Only bonuses of 3%, 5% or 10% are supported")
875875 let change = (usdtFee - (totalBonus * MULT6))
876876 if ((0 > change))
877877 then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee"))
878878 else {
879879 let changeActions = if ((change > 0))
880880 then [ScriptTransfer(i.caller, change, usdtAssetId)]
881881 else nil
882882 let $t02531125383 = issueNFTinternal(nftIndex, i.caller)
883883 let issueNftActions = $t02531125383._1
884884 let nftAssetId = $t02531125383._2
885885 let burned = size(burnActions)
886886 let burnCounterActions = if ((burned == 0))
887887 then nil
888888 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
889- $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(i.caller, 1, nftAssetId)), nftAssetId)
889+ $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
890890 }
891891 }
892892 }
893893
894894

github/deemru/w8io/026f985 
236.95 ms