tx · Zk8XVMXX2T4gnc1TS89DCtaVdPYNeAdvdfDtTJBfRyu

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.02700000 Waves

2024.11.26 20:09 [3388666] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "Zk8XVMXX2T4gnc1TS89DCtaVdPYNeAdvdfDtTJBfRyu", "fee": 2700000, "feeAssetId": null, "timestamp": 1732641023621, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "2YThhuY4boZbh8tnXqqiSSrNU3VSeXxvSTpgGCnrf4yUV2KQYLpvBHJqz9v6yRwzsxhTKHmoESY5nhNBpH8GXdx6" ], "script": "base64:BgJGCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIARIAEgMKAQgSAFoAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFmRlZ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I1MTczCQEQaXNzdWVORlRpbnRlcm5hbAIFCG5mdEluZGV4CAUBaQZjYWxsZXIECm5mdEFjdGlvbnMIBQ0kdDAyNTEwNjI1MTczAl8xBApuZnRBc3NldElkCAUNJHQwMjUxMDYyNTE3MwJfMgkAlAoCCQDNCAIJAM4IAgkAzggCCQDOCAIFCm5mdEFjdGlvbnMFC2J1cm5BY3Rpb25zBQ1wcm9sb2dBY3Rpb25zBQ1jaGFuZ2VBY3Rpb25zCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIAAQUKbmZ0QXNzZXRJZAUKbmZ0QXNzZXRJZACeqF7h", "height": 3388666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2C6DWP1ZvbN5KeNym6RcL48zZpGVBp7DutgdY6PzTHk9 Next: FWNooDxrfSJk7KEin1oH5RYHccUKiimv4XXtUK3d3Jkg Diff:
OldNewDifferences
254254
255255 let keyLastLimitLeft = "lastLimitLeft"
256256
257-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\"}"]
257+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\"}"]
258258
259-let nftNames = ["SHOVEL-P3", "PICKAXE-C1"]
259+let nftNames = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
260260
261-let contentKeys = ["contentShovelP3", "contentPickaxeC1"]
261+let contentKeys = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
262262
263263 let URL = "\"url\": \"https://waveslands.com\", "
264264
329329 else false)
330330 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
331331 else {
332- let $t054285527 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
333- let newBonusedFp = $t054285527._1
334- let ignored = $t054285527._2
332+ let $t059586057 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
333+ let newBonusedFp = $t059586057._1
334+ let ignored = $t059586057._2
335335 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
336336 let acresActions = if ((amt == 0))
337337 then nil
413413
414414
415415 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
416- then throw("NFT is not supported yet")
416+ then throw(("NFT is not supported: " + descr))
417417 else {
418418 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
419- (parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) * 10000)
419+ parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
420420 }
421421
422422
458458 if ((arbReleaseTime > lastBlock.timestamp))
459459 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
460460 else {
461- let $t01102411104 = stakeUnstakeAcresInternal(-(amount), address, 0)
462- let actions = $t01102411104._1
463- let wlgClaimedAmount = $t01102411104._2
461+ let $t01155211632 = stakeUnstakeAcresInternal(-(amount), address, 0)
462+ let actions = $t01155211632._1
463+ let wlgClaimedAmount = $t01155211632._2
464464 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
465465 }
466466 }
483483 else (value(pmt.assetId) != acresAssetId))
484484 then throw("ACRES payments only!")
485485 else {
486- let $t01155511631 = stakeUnstakeAcresInternal(amt, address, 0)
487- let actions = $t01155511631._1
488- let wlgClaimedAmount = $t01155511631._2
486+ let $t01208312159 = stakeUnstakeAcresInternal(amt, address, 0)
487+ let actions = $t01208312159._1
488+ let wlgClaimedAmount = $t01208312159._2
489489 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
490490 }
491491 }
549549 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
550550 else {
551551 let addr = toString(i.caller)
552- let $t01348813536 = getSwapLimitAcres()
553- let limitAction = $t01348813536._1
554- let maxUsdt = $t01348813536._2
552+ let $t01401614064 = getSwapLimitAcres()
553+ let limitAction = $t01401614064._1
554+ let maxUsdt = $t01401614064._2
555555 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
556556 if ((acresAmount > maxAcres))
557557 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
567567
568568 @Callable(i)
569569 func sellAcresREADONLY (address,acresAmount) = {
570- let $t01403214080 = getSwapLimitAcres()
571- let limitAction = $t01403214080._1
572- let maxUsdt = $t01403214080._2
570+ let $t01456014608 = getSwapLimitAcres()
571+ let limitAction = $t01456014608._1
572+ let maxUsdt = $t01456014608._2
573573 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
574574 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
575575 }
621621 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
622622 if ((req == req))
623623 then {
624- let $t01595216032 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
625- let nftActions = $t01595216032._1
626- let nftAssetId = $t01595216032._2
624+ let $t01648016560 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
625+ let nftActions = $t01648016560._1
626+ let nftAssetId = $t01648016560._2
627627 $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
628628 }
629629 else throw("Strict value is not equal to itself.")
690690 let userFpKey = keyFarmingPowerByUser(address)
691691 let oldFp = valueOrElse(getInteger(userFpKey), 0)
692692 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
693- let $t01819718284 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
694- let newBonusedFp = $t01819718284._1
695- let ignored = $t01819718284._2
693+ let $t01872518812 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
694+ let newBonusedFp = $t01872518812._1
695+ let ignored = $t01872518812._2
696696 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
697697 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
698698 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
727727 then split_4C(value(nftsStr), "_")
728728 else nil
729729 if (containsElement(nfts, assetIdStr))
730- then throw(("Your staked lands already contain " + assetIdStr))
730+ then throw(("Your staked NFTs already contain " + assetIdStr))
731731 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
732732 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
733733 else {
739739 if ((wlNftNumber >= MAX_WL_NFTS))
740740 then throw((("You can stake max " + toString(MAX_WL_NFTS)) + " of WavesLands NFTs"))
741741 else {
742- let bonusVal = bonusByDescription(value(asset.description))
743- let $t02005220130 = stakeUnstakeAcresInternal(0, addr, bonusVal)
744- let actions = $t02005220130._1
745- let wlgClaimedAmount = $t02005220130._2
742+ let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
743+ let $t02058720665 = stakeUnstakeAcresInternal(0, addr, bonusVal)
744+ let actions = $t02058720665._1
745+ let wlgClaimedAmount = $t02058720665._2
746746 $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
747747 }
748748 }
755755 if ((arkNftNumber >= MAX_ARK_NFTS))
756756 then throw((("You can stake max " + toString(MAX_ARK_NFTS)) + " of Arkimals NFTs"))
757757 else {
758- let $t02077220855 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS)
759- let actions = $t02077220855._1
760- let wlgClaimedAmount = $t02077220855._2
758+ let $t02130721390 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS)
759+ let actions = $t02130721390._1
760+ let wlgClaimedAmount = $t02130721390._2
761761 $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
762762 }
763763 }
796796 then {
797797 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
798798 let bonusVal = bonusByDescription(value(asset.description))
799- let $t02216822247 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
800- let actions = $t02216822247._1
801- let wlgClaimedAmount = $t02216822247._2
799+ let $t02270322782 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
800+ let actions = $t02270322782._1
801+ let wlgClaimedAmount = $t02270322782._2
802802 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
803803 }
804804 else {
807807 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
808808 else {
809809 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
810- let $t02280422888 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
811- let actions = $t02280422888._1
812- let wlgClaimedAmount = $t02280422888._2
810+ let $t02333923423 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
811+ let actions = $t02333923423._1
812+ let wlgClaimedAmount = $t02333923423._2
813813 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
814814 }
815815 }
819819 }
820820
821821
822+
823+@Callable(i)
824+func exchangeNFTs () = {
825+ let prologActions = prolog(i)
826+ if ((3 > size(i.payments)))
827+ then throw("Min one USDT and 2 NFT payments allowed")
828+ else if ((size(i.payments) > 6))
829+ then throw("Max one USDT and 5 NFT payments allowed")
830+ else {
831+ let addr = toString(i.caller)
832+ func addUp (acc,pmt) = {
833+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
834+ if ((assetId == usdtAssetId))
835+ then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
836+ else {
837+ let asset = value(assetInfo(assetId))
838+ if ((asset.issuer != this))
839+ then throw("Only WL-issued NFTs allowed")
840+ else {
841+ let bonusPerc = bonusByDescription(value(asset.description))
842+ $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
843+ }
844+ }
845+ }
846+
847+ let $t02457124650 = {
848+ let $l = i.payments
849+ let $s = size($l)
850+ let $acc0 = $Tuple3(0, 0, nil)
851+ func $f0_1 ($a,$i) = if (($i >= $s))
852+ then $a
853+ else addUp($a, $l[$i])
854+
855+ func $f0_2 ($a,$i) = if (($i >= $s))
856+ then $a
857+ else throw("List size exceeds 6")
858+
859+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
860+ }
861+ let usdtFee = $t02457124650._1
862+ let totalBonus = $t02457124650._2
863+ let burnActions = $t02457124650._3
864+ let nftIndex = if ((totalBonus == 3))
865+ then 2
866+ else if ((totalBonus == 5))
867+ then 3
868+ else if ((totalBonus == 10))
869+ then 4
870+ else throw("Only bonuses of 3%, 5% or 10% are supported")
871+ let change = ((totalBonus * MULT6) - usdtFee)
872+ if ((0 > change))
873+ then throw((("You need to attach " + fixedPoint(usdtFee, 6)) + "USDT as fee"))
874+ else {
875+ let changeActions = if ((change > 0))
876+ then [ScriptTransfer(i.caller, change, usdtAssetId)]
877+ else nil
878+ let $t02510625173 = issueNFTinternal(nftIndex, i.caller)
879+ let nftActions = $t02510625173._1
880+ let nftAssetId = $t02510625173._2
881+ $Tuple2(((((nftActions ++ burnActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(i.caller, 1, nftAssetId)), nftAssetId)
882+ }
883+ }
884+ }
885+
886+
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 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
207207
208208
209209 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
210210
211211
212212 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
213213
214214
215215 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
216216
217217
218218 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
219219
220220 func getLevelByAcres (acres) = {
221221 let acr = ((acres + 99999999) / M8_)
222222 func checker (acc,item) = if ((item >= acr))
223223 then acc
224224 else (acc + 1)
225225
226226 let $l = levelAcres
227227 let $s = size($l)
228228 let $acc0 = 0
229229 func $f0_1 ($a,$i) = if (($i >= $s))
230230 then $a
231231 else checker($a, $l[$i])
232232
233233 func $f0_2 ($a,$i) = if (($i >= $s))
234234 then $a
235235 else throw("List size exceeds 10")
236236
237237 $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)
238238 }
239239
240240
241241 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
242242
243243
244244 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
245245 let notBonused = getFarmingPowerByAcres(acres)
246246 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
247247 }
248248
249249
250250 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
251251
252252
253253 let keyLastAcresSellTime = "lastAcresSellTime"
254254
255255 let keyLastLimitLeft = "lastLimitLeft"
256256
257-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\"}"]
257+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\"}"]
258258
259-let nftNames = ["SHOVEL-P3", "PICKAXE-C1"]
259+let nftNames = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
260260
261-let contentKeys = ["contentShovelP3", "contentPickaxeC1"]
261+let contentKeys = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
262262
263263 let URL = "\"url\": \"https://waveslands.com\", "
264264
265265 func prolog (i) = if (if ((i.originCaller != rest2Contract))
266266 then valueOrElse(getBoolean(keyBlocked()), false)
267267 else false)
268268 then throw("Contracts are under maintenance")
269269 else {
270270 let addr = toString(i.originCaller)
271271 let week = (height / WEEK_BLOCKS)
272272 let lastWeekTxIdByUser = getString(keyLastWeekTxIdByUser(addr))
273273 let txId = toBase58String(i.transactionId)
274274 let wtx = ((toString(week) + "_") + txId)
275275 if (isDefined(lastWeekTxIdByUser))
276276 then {
277277 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
278278 if ((lastWeekTx[0] == toString(week)))
279279 then [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
280280 else if ((lastWeekTx[0] == toString((week - 1))))
281281 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
282282 else {
283283 let curWeekTxIdByUser = getStringValue(keyLastWeekTxIdByUser(addr))
284284 let curWeekTx = split(curWeekTxIdByUser, "_")
285285 if ((curWeekTx[0] == toString(week)))
286286 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
287287 else [StringEntry(keyLastWeekTxIdByUser(addr), curWeekTxIdByUser), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
288288 }
289289 }
290290 else [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
291291 }
292292
293293
294294 func issueNFTinternal (nftIndex,addr) = if ((nftIndex >= size(contentKeys)))
295295 then throw("nftIndex out of bounds")
296296 else {
297297 let nftSerial = (valueOrElse(getInteger(keyNftTotalIssued), -1) + 1)
298298 let issue = Issue(nftNames[nftIndex], (((((("{" + URL) + "\"contentKey\": \"") + contentKeys[nftIndex]) + "\", \"number\": ") + toString(nftSerial)) + nftDescriptions[nftIndex]), 1, 0, false)
299299 let nftAssetId = calculateAssetId(issue)
300300 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, nftSerial), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
301301 }
302302
303303
304304 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
305305 then (bonusDelta == 0)
306306 else false)
307307 then throw("Nothing to do")
308308 else {
309309 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
310310 if ((wlgResult == wlgResult))
311311 then {
312312 let now = lastBlock.timestamp
313313 let timeKey = keyAcresStakedTimeByUser(address)
314314 let amountKey = keyAcresStakedAmtByUser(address)
315315 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
316316 if (if ((0 > amt))
317317 then (0 > (oldAcresAmount + amt))
318318 else false)
319319 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
320320 else {
321321 let newAcresAmount = (oldAcresAmount + amt)
322322 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
323323 let userFpKey = keyFarmingPowerByUser(address)
324324 let oldFp = valueOrElse(getInteger(userFpKey), 0)
325325 let bonusKey = keyUserFullBonus(address)
326326 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
327327 if (if ((0 > bonusDelta))
328328 then (0 > (oldBonus + bonusDelta))
329329 else false)
330330 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
331331 else {
332- let $t054285527 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
333- let newBonusedFp = $t054285527._1
334- let ignored = $t054285527._2
332+ let $t059586057 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
333+ let newBonusedFp = $t059586057._1
334+ let ignored = $t059586057._2
335335 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
336336 let acresActions = if ((amt == 0))
337337 then nil
338338 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
339339 $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult)
340340 }
341341 }
342342 }
343343 else throw("Strict value is not equal to itself.")
344344 }
345345
346346
347347 func getWlgPrice (usdtBalanceCorrection) = {
348348 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
349349 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
350350 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
351351 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
352352 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
353353 fraction(totalFundsUsd, MULT8, issuedAmount)
354354 }
355355
356356
357357 func getSwapLimitAcres () = {
358358 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
359359 let acres2Usd = assetBalance(this, usdtAssetId)
360360 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
361361 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
362362 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
363363 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
364364 let now = lastBlock.timestamp
365365 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
366366 let limitLeftUsdt = min([currentLimit, defaultLimit])
367367 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
368368 }
369369
370370
371371 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
372372
373373 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
374374
375375 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
376376
377377 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
378378
379379 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
380380
381381 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
382382
383383 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
384384
385385 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
386386
387387 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
388388
389389 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
390390
391391 func isArkimalIssued (nfo) = {
392392 let issuer = toString(nfo.issuer)
393393 if (if (if (if (if (if (if (if ((issuer == incubator))
394394 then true
395395 else (issuer == breeder))
396396 then true
397397 else (issuer == turtleIncubator))
398398 then true
399399 else (issuer == turtleBreeder))
400400 then true
401401 else (issuer == canineIncubator))
402402 then true
403403 else (issuer == canineBreeder))
404404 then true
405405 else (issuer == felineIncubator))
406406 then true
407407 else (issuer == felineBreeder))
408408 then nfo.name
409409 else if ((issuer == mutantBreeder))
410410 then nfo.description
411411 else ""
412412 }
413413
414414
415415 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
416- then throw("NFT is not supported yet")
416+ then throw(("NFT is not supported: " + descr))
417417 else {
418418 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
419- (parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) * 10000)
419+ parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
420420 }
421421
422422
423423 @Callable(i)
424424 func saveLastTx () = if (!(containsElement([wlgContract], i.caller)))
425425 then throw("Access denied")
426426 else $Tuple2(prolog(i), 42)
427427
428428
429429
430430 @Callable(i)
431431 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
432432 then throw("Permission denied")
433433 else {
434434 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
435435 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
436436 }
437437
438438
439439
440440 @Callable(i)
441441 func setBlocked (isBlocked) = if ((i.caller != this))
442442 then throw("permission denied")
443443 else [BooleanEntry(keyBlocked(), isBlocked)]
444444
445445
446446
447447 @Callable(i)
448448 func unstakeAcres (amount) = {
449449 let prologActions = prolog(i)
450450 if ((0 >= amount))
451451 then throw("Amount should be positive")
452452 else {
453453 let address = toString(i.caller)
454454 if ((size(i.payments) != 0))
455455 then throw("No payments required")
456456 else {
457457 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
458458 if ((arbReleaseTime > lastBlock.timestamp))
459459 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
460460 else {
461- let $t01102411104 = stakeUnstakeAcresInternal(-(amount), address, 0)
462- let actions = $t01102411104._1
463- let wlgClaimedAmount = $t01102411104._2
461+ let $t01155211632 = stakeUnstakeAcresInternal(-(amount), address, 0)
462+ let actions = $t01155211632._1
463+ let wlgClaimedAmount = $t01155211632._2
464464 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
465465 }
466466 }
467467 }
468468 }
469469
470470
471471
472472 @Callable(i)
473473 func stakeAcres () = {
474474 let prologActions = prolog(i)
475475 let address = toString(i.caller)
476476 if ((size(i.payments) != 1))
477477 then throw("exactly 1 payment must be attached")
478478 else {
479479 let pmt = i.payments[0]
480480 let amt = pmt.amount
481481 if (if (!(isDefined(pmt.assetId)))
482482 then true
483483 else (value(pmt.assetId) != acresAssetId))
484484 then throw("ACRES payments only!")
485485 else {
486- let $t01155511631 = stakeUnstakeAcresInternal(amt, address, 0)
487- let actions = $t01155511631._1
488- let wlgClaimedAmount = $t01155511631._2
486+ let $t01208312159 = stakeUnstakeAcresInternal(amt, address, 0)
487+ let actions = $t01208312159._1
488+ let wlgClaimedAmount = $t01208312159._2
489489 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
490490 }
491491 }
492492 }
493493
494494
495495
496496 @Callable(i)
497497 func buyAcres () = {
498498 let prologActions = prolog(i)
499499 if ((size(i.payments) != 1))
500500 then throw("exactly 1 payment must be attached")
501501 else {
502502 let pmt = i.payments[0]
503503 let usdtAmount = pmt.amount
504504 if (if (!(isDefined(pmt.assetId)))
505505 then true
506506 else (value(pmt.assetId) != usdtAssetId))
507507 then throw("USDT payments only!")
508508 else if ((MULT6 > usdtAmount))
509509 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
510510 else {
511511 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
512512 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
513513 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
514514 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
515515 if ((req == req))
516516 then {
517517 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
518518 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
519519 }
520520 else throw("Strict value is not equal to itself.")
521521 }
522522 }
523523 }
524524
525525
526526
527527 @Callable(i)
528528 func buyAcresREADONLY (usdtAmount) = {
529529 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
530530 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
531531 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
532532 }
533533
534534
535535
536536 @Callable(i)
537537 func sellAcres () = {
538538 let prologActions = prolog(i)
539539 if ((size(i.payments) != 1))
540540 then throw("exactly 1 payment must be attached")
541541 else {
542542 let pmt = i.payments[0]
543543 let acresAmount = pmt.amount
544544 if (if (!(isDefined(pmt.assetId)))
545545 then true
546546 else (value(pmt.assetId) != acresAssetId))
547547 then throw("ACRES payments only!")
548548 else if ((MULT7 > acresAmount))
549549 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
550550 else {
551551 let addr = toString(i.caller)
552- let $t01348813536 = getSwapLimitAcres()
553- let limitAction = $t01348813536._1
554- let maxUsdt = $t01348813536._2
552+ let $t01401614064 = getSwapLimitAcres()
553+ let limitAction = $t01401614064._1
554+ let maxUsdt = $t01401614064._2
555555 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
556556 if ((acresAmount > maxAcres))
557557 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
558558 else {
559559 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
560560 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
561561 }
562562 }
563563 }
564564 }
565565
566566
567567
568568 @Callable(i)
569569 func sellAcresREADONLY (address,acresAmount) = {
570- let $t01403214080 = getSwapLimitAcres()
571- let limitAction = $t01403214080._1
572- let maxUsdt = $t01403214080._2
570+ let $t01456014608 = getSwapLimitAcres()
571+ let limitAction = $t01456014608._1
572+ let maxUsdt = $t01456014608._2
573573 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
574574 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
575575 }
576576
577577
578578
579579 @Callable(i)
580580 func convertOldStakes () = if ((i.caller != this))
581581 then throw("Temporarily disabled")
582582 else {
583583 let address = toString(i.caller)
584584 if ((size(i.payments) != 0))
585585 then throw("No payments required")
586586 else {
587587 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
588588 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
589589 let gotAcres0 = if ((amount > 0))
590590 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
591591 else $Tuple2(0, 0)
592592 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
593593 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
594594 let landsResult = if (isDefined(landsStr))
595595 then {
596596 let lands = split_51C(value(landsStr), "_")
597597 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
598598 then throw("landAssetId is required")
599599 else {
600600 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
601601 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
602602 }
603603
604604 let rr = {
605605 let $l = lands
606606 let $s = size($l)
607607 let $acc0 = $Tuple4(0, 0, 0, 0)
608608 func $f0_1 ($a,$i) = if (($i >= $s))
609609 then $a
610610 else oneLand($a, $l[$i])
611611
612612 func $f0_2 ($a,$i) = if (($i >= $s))
613613 then $a
614614 else throw("List size exceeds 100")
615615
616616 $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)
617617 }
618618 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
619619 if ((finalize == finalize))
620620 then {
621621 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
622622 if ((req == req))
623623 then {
624- let $t01595216032 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
625- let nftActions = $t01595216032._1
626- let nftAssetId = $t01595216032._2
624+ let $t01648016560 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
625+ let nftActions = $t01648016560._1
626+ let nftAssetId = $t01648016560._2
627627 $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
628628 }
629629 else throw("Strict value is not equal to itself.")
630630 }
631631 else throw("Strict value is not equal to itself.")
632632 }
633633 else $Tuple5(0, 0, 0, 0, nil)
634634 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
635635 let duckResult = if ((duckAssetId != ""))
636636 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
637637 else $Tuple3(0, 0, 0)
638638 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
639639 $Tuple2((landsResult._5 ++ x._1), x._2)
640640 }
641641 }
642642
643643
644644
645645 @Callable(i)
646646 func unstakeLandsREADONLY (address) = {
647647 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
648648 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
649649 let landsResult = if (isDefined(landsStr))
650650 then {
651651 let lands = split_51C(value(landsStr), "_")
652652 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
653653 then throw("landAssetId is required")
654654 else {
655655 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
656656 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
657657 }
658658
659659 let $l = lands
660660 let $s = size($l)
661661 let $acc0 = $Tuple4(0, 0, 0, 0)
662662 func $f0_1 ($a,$i) = if (($i >= $s))
663663 then $a
664664 else oneLand($a, $l[$i])
665665
666666 func $f0_2 ($a,$i) = if (($i >= $s))
667667 then $a
668668 else throw("List size exceeds 100")
669669
670670 $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)
671671 }
672672 else $Tuple4(0, 0, 0, 0)
673673 $Tuple2(nil, landsResult)
674674 }
675675
676676
677677
678678 @Callable(i)
679679 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
680680 then throw("Permission denied")
681681 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
682682
683683
684684
685685 @Callable(i)
686686 func simulateStakeAcresREADONLY (address,addedAmount) = {
687687 let amountKey = keyAcresStakedAmtByUser(address)
688688 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
689689 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
690690 let userFpKey = keyFarmingPowerByUser(address)
691691 let oldFp = valueOrElse(getInteger(userFpKey), 0)
692692 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
693- let $t01819718284 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
694- let newBonusedFp = $t01819718284._1
695- let ignored = $t01819718284._2
693+ let $t01872518812 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
694+ let newBonusedFp = $t01872518812._1
695+ let ignored = $t01872518812._2
696696 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
697697 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
698698 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
699699 }
700700
701701
702702
703703 @Callable(i)
704704 func issueNFT (forAddress,nftIndex) = if ((i.caller != wlgContract))
705705 then throw("Permission denied")
706706 else issueNFTinternal(nftIndex, addressFromStringValue(forAddress))
707707
708708
709709
710710 @Callable(i)
711711 func stakeNFT () = {
712712 let prologActions = prolog(i)
713713 if ((size(i.payments) != 1))
714714 then throw("Exactly one payment required")
715715 else {
716716 let pmt = value(i.payments[0])
717717 if ((pmt.amount != 1))
718718 then throw("NFT token should be attached as payment")
719719 else {
720720 let assetId = value(pmt.assetId)
721721 let asset = value(assetInfo(assetId))
722722 let assetIdStr = toBase58String(assetId)
723723 let addr = toString(i.caller)
724724 let nftsKey = keyStakedNFTsByOwner(addr)
725725 let nftsStr = getString(nftsKey)
726726 let nfts = if (isDefined(nftsStr))
727727 then split_4C(value(nftsStr), "_")
728728 else nil
729729 if (containsElement(nfts, assetIdStr))
730- then throw(("Your staked lands already contain " + assetIdStr))
730+ then throw(("Your staked NFTs already contain " + assetIdStr))
731731 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
732732 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
733733 else {
734734 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
735735 let isWL = (asset.issuer == this)
736736 if (isWL)
737737 then {
738738 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
739739 if ((wlNftNumber >= MAX_WL_NFTS))
740740 then throw((("You can stake max " + toString(MAX_WL_NFTS)) + " of WavesLands NFTs"))
741741 else {
742- let bonusVal = bonusByDescription(value(asset.description))
743- let $t02005220130 = stakeUnstakeAcresInternal(0, addr, bonusVal)
744- let actions = $t02005220130._1
745- let wlgClaimedAmount = $t02005220130._2
742+ let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
743+ let $t02058720665 = stakeUnstakeAcresInternal(0, addr, bonusVal)
744+ let actions = $t02058720665._1
745+ let wlgClaimedAmount = $t02058720665._2
746746 $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
747747 }
748748 }
749749 else {
750750 let arkimalName = isArkimalIssued(asset)
751751 if ((arkimalName == ""))
752752 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
753753 else {
754754 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
755755 if ((arkNftNumber >= MAX_ARK_NFTS))
756756 then throw((("You can stake max " + toString(MAX_ARK_NFTS)) + " of Arkimals NFTs"))
757757 else {
758- let $t02077220855 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS)
759- let actions = $t02077220855._1
760- let wlgClaimedAmount = $t02077220855._2
758+ let $t02130721390 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS)
759+ let actions = $t02130721390._1
760+ let wlgClaimedAmount = $t02130721390._2
761761 $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount)
762762 }
763763 }
764764 }
765765 }
766766 }
767767 }
768768 }
769769
770770
771771
772772 @Callable(i)
773773 func unstakeNFT (assetIdStr) = {
774774 let prologActions = prolog(i)
775775 if ((size(i.payments) != 0))
776776 then throw("No payments required")
777777 else {
778778 let assetId = fromBase58String(assetIdStr)
779779 let addr = toString(i.caller)
780780 let asset = value(assetInfo(assetId))
781781 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
782782 if (!(isDefined(getInteger(timeKey))))
783783 then throw((("NFT " + asset.name) + " is not staked by you"))
784784 else {
785785 let nftsKey = keyStakedNFTsByOwner(addr)
786786 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
787787 let idx = indexOf(nfts, assetIdStr)
788788 if (!(isDefined(idx)))
789789 then throw(("Your staked NFTs don't contain " + assetIdStr))
790790 else {
791791 let listAction = if ((size(nfts) > 1))
792792 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
793793 else DeleteEntry(nftsKey)
794794 let isWL = (asset.issuer == this)
795795 if (isWL)
796796 then {
797797 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
798798 let bonusVal = bonusByDescription(value(asset.description))
799- let $t02216822247 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
800- let actions = $t02216822247._1
801- let wlgClaimedAmount = $t02216822247._2
799+ let $t02270322782 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
800+ let actions = $t02270322782._1
801+ let wlgClaimedAmount = $t02270322782._2
802802 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
803803 }
804804 else {
805805 let arkimalName = isArkimalIssued(asset)
806806 if ((arkimalName == ""))
807807 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
808808 else {
809809 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
810- let $t02280422888 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
811- let actions = $t02280422888._1
812- let wlgClaimedAmount = $t02280422888._2
810+ let $t02333923423 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
811+ let actions = $t02333923423._1
812+ let wlgClaimedAmount = $t02333923423._2
813813 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
814814 }
815815 }
816816 }
817817 }
818818 }
819819 }
820820
821821
822+
823+@Callable(i)
824+func exchangeNFTs () = {
825+ let prologActions = prolog(i)
826+ if ((3 > size(i.payments)))
827+ then throw("Min one USDT and 2 NFT payments allowed")
828+ else if ((size(i.payments) > 6))
829+ then throw("Max one USDT and 5 NFT payments allowed")
830+ else {
831+ let addr = toString(i.caller)
832+ func addUp (acc,pmt) = {
833+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
834+ if ((assetId == usdtAssetId))
835+ then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
836+ else {
837+ let asset = value(assetInfo(assetId))
838+ if ((asset.issuer != this))
839+ then throw("Only WL-issued NFTs allowed")
840+ else {
841+ let bonusPerc = bonusByDescription(value(asset.description))
842+ $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
843+ }
844+ }
845+ }
846+
847+ let $t02457124650 = {
848+ let $l = i.payments
849+ let $s = size($l)
850+ let $acc0 = $Tuple3(0, 0, nil)
851+ func $f0_1 ($a,$i) = if (($i >= $s))
852+ then $a
853+ else addUp($a, $l[$i])
854+
855+ func $f0_2 ($a,$i) = if (($i >= $s))
856+ then $a
857+ else throw("List size exceeds 6")
858+
859+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
860+ }
861+ let usdtFee = $t02457124650._1
862+ let totalBonus = $t02457124650._2
863+ let burnActions = $t02457124650._3
864+ let nftIndex = if ((totalBonus == 3))
865+ then 2
866+ else if ((totalBonus == 5))
867+ then 3
868+ else if ((totalBonus == 10))
869+ then 4
870+ else throw("Only bonuses of 3%, 5% or 10% are supported")
871+ let change = ((totalBonus * MULT6) - usdtFee)
872+ if ((0 > change))
873+ then throw((("You need to attach " + fixedPoint(usdtFee, 6)) + "USDT as fee"))
874+ else {
875+ let changeActions = if ((change > 0))
876+ then [ScriptTransfer(i.caller, change, usdtAssetId)]
877+ else nil
878+ let $t02510625173 = issueNFTinternal(nftIndex, i.caller)
879+ let nftActions = $t02510625173._1
880+ let nftAssetId = $t02510625173._2
881+ $Tuple2(((((nftActions ++ burnActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(i.caller, 1, nftAssetId)), nftAssetId)
882+ }
883+ }
884+ }
885+
886+

github/deemru/w8io/169f3d6 
112.27 ms