tx · BeTbcFqWJNuXKu2LCgdaeDwhtbcZsk9cvx4S2o4Zrac5

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.03100000 Waves

2024.12.01 17:16 [3395710] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "BeTbcFqWJNuXKu2LCgdaeDwhtbcZsk9cvx4S2o4Zrac5", "fee": 3100000, "feeAssetId": null, "timestamp": 1733062571099, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "3PBbj1ZRoohEWDBg58GEtqnDfc4zam8ybcHPqXx9m7zKArbB6hRvaLz2bviK3WE9R5PAQZ8xhbuXCEyMRVuaCKKd" ], "script": "base64:BgJJCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAHsAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5Awk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QCUCgIJAM4IAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJZmluaXNoS2V5BQtmaW5pc2hCbG9jawUDbmlsBQ1wcm9sb2dBY3Rpb25zBQtmaW5pc2hCbG9jawB/eVxe", "height": 3395710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YBXcX16chMvGgc4RSeDFsaEgqUZeT6rJHhA1VzT8A6L Next: FCbvV9qw52vDasvM8ahxWEGNyjFSmD8nTjYtfr6svVBR Diff:
OldNewDifferences
674674
675675
676676 @Callable(i)
677-func convertOldStakes () = if ((i.caller != this))
678- then throw("Temporarily disabled")
679- else {
680- let address = toString(i.caller)
681- if ((size(i.payments) != 0))
682- then throw("No payments required")
683- else {
684- let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
685- let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
686- let gotAcres0 = if ((amount > 0))
687- then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
688- else $Tuple2(0, 0)
689- let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
690- let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
691- let landsResult = if (isDefined(landsStr))
692- then {
693- let lands = split_51C(value(landsStr), "_")
694- func oneLand (acc,landAssetId) = if ((landAssetId == ""))
695- then throw("landAssetId is required")
696- else {
697- let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
698- $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
699- }
677+func convertOldStakes () = {
678+ let prologActions = prolog(i)
679+ let address = toString(i.caller)
680+ if ((size(i.payments) != 0))
681+ then throw("No payments required")
682+ else {
683+ let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
684+ let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
685+ let gotAcres0 = if ((amount > 0))
686+ then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
687+ else $Tuple2(0, 0)
688+ let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
689+ let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
690+ let landsResult = if (isDefined(landsStr))
691+ then {
692+ let lands = split_51C(value(landsStr), "_")
693+ func oneLand (acc,landAssetId) = if ((landAssetId == ""))
694+ then throw("landAssetId is required")
695+ else {
696+ let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
697+ $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
698+ }
700699
701- let rr = {
702- let $l = lands
703- let $s = size($l)
704- let $acc0 = $Tuple4(0, 0, 0, 0)
705- func $f0_1 ($a,$i) = if (($i >= $s))
706- then $a
707- else oneLand($a, $l[$i])
700+ let rr = {
701+ let $l = lands
702+ let $s = size($l)
703+ let $acc0 = $Tuple4(0, 0, 0, 0)
704+ func $f0_1 ($a,$i) = if (($i >= $s))
705+ then $a
706+ else oneLand($a, $l[$i])
708707
709- func $f0_2 ($a,$i) = if (($i >= $s))
710- then $a
711- else throw("List size exceeds 100")
708+ func $f0_2 ($a,$i) = if (($i >= $s))
709+ then $a
710+ else throw("List size exceeds 100")
712711
713- $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)
712+ $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)
713+ }
714+ let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
715+ if ((finalize == finalize))
716+ then {
717+ let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
718+ if ((req == req))
719+ then {
720+ let $t01710617244 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
721+ let nftActions = $t01710617244._1
722+ let nftAssetId = $t01710617244._2
723+ $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
724+ }
725+ else throw("Strict value is not equal to itself.")
714726 }
715- let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
716- if ((finalize == finalize))
717- then {
718- let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
719- if ((req == req))
720- then {
721- let $t01713817276 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
722- let nftActions = $t01713817276._1
723- let nftAssetId = $t01713817276._2
724- $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
725- }
726- else throw("Strict value is not equal to itself.")
727- }
728- else throw("Strict value is not equal to itself.")
729- }
730- else $Tuple5(0, 0, 0, 0, nil)
731- let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
732- let duckResult = if ((duckAssetId != ""))
733- then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
734- else $Tuple3(0, 0, 0)
735- let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
736- $Tuple2((landsResult._5 ++ x._1), x._2)
737- }
738- }
727+ else throw("Strict value is not equal to itself.")
728+ }
729+ else $Tuple5(0, 0, 0, 0, nil)
730+ let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
731+ let duckResult = if ((duckAssetId != ""))
732+ then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
733+ else $Tuple3(0, 0, 0)
734+ let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
735+ $Tuple2(((landsResult._5 ++ x._1) ++ prologActions), x._2)
736+ }
737+ }
739738
740739
741740
787786 let userFpKey = keyFarmingPowerByUser(address)
788787 let oldFp = valueOrElse(getInteger(userFpKey), 0)
789788 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
790- let $t01944119528 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
791- let newBonusedFp = $t01944119528._1
792- let ignored = $t01944119528._2
789+ let $t01942619513 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
790+ let newBonusedFp = $t01942619513._1
791+ let ignored = $t01942619513._2
793792 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
794793 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
795794 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
831830 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
832831 if ((asset.issuer == this))
833832 then {
834- let $t02093721127 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
835- let actions = $t02093721127._1
836- let wlgClaimedAmount = $t02093721127._2
833+ let $t02092221112 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
834+ let actions = $t02092221112._1
835+ let wlgClaimedAmount = $t02092221112._2
837836 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
838837 }
839838 else if ((isArkimalIssued(asset) == ""))
840839 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
841840 else {
842- let $t02130821459 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
843- let actions = $t02130821459._1
844- let wlgClaimedAmount = $t02130821459._2
841+ let $t02129321444 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
842+ let actions = $t02129321444._1
843+ let wlgClaimedAmount = $t02129321444._2
845844 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
846845 }
847846 }
878877 then {
879878 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
880879 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
881- let $t02262422703 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
882- let actions = $t02262422703._1
883- let wlgClaimedAmount = $t02262422703._2
880+ let $t02260922688 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
881+ let actions = $t02260922688._1
882+ let wlgClaimedAmount = $t02260922688._2
884883 $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)
885884 }
886885 else {
889888 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
890889 else {
891890 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
892- let $t02336323447 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
893- let actions = $t02336323447._1
894- let wlgClaimedAmount = $t02336323447._2
891+ let $t02334823432 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
892+ let actions = $t02334823432._1
893+ let wlgClaimedAmount = $t02334823432._2
895894 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
896895 }
897896 }
933932 }
934933 }
935934
936- let $t02483625052 = {
935+ let $t02482125037 = {
937936 let $l = i.payments
938937 let $s = size($l)
939938 let $acc0 = $Tuple4(0, 0, nil, -1)
947946
948947 $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)
949948 }
950- let wlgFee = $t02483625052._1
951- let totalBonus = $t02483625052._2
952- let burnActions = $t02483625052._3
953- let rarityIdx = $t02483625052._4
949+ let wlgFee = $t02482125037._1
950+ let totalBonus = $t02482125037._2
951+ let burnActions = $t02482125037._3
952+ let rarityIdx = $t02482125037._4
954953 let newRarityIdx = if ((rarityIdx == idxRarityC))
955954 then if ((rarityThresholds[idxThresholdC] > totalBonus))
956955 then idxRarityC
982981 let changeActions = if ((change > 0))
983982 then [ScriptTransfer(i.caller, change, wlgAssetId)]
984983 else nil
985- let $t02658926750 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
986- let issueNftActions = $t02658926750._1
987- let nftAssetId = $t02658926750._2
984+ let $t02657426735 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
985+ let issueNftActions = $t02657426735._1
986+ let nftAssetId = $t02657426735._2
988987 let burned = size(burnActions)
989988 let burnCounterActions = if ((burned == 0))
990989 then nil
10281027 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
10291028 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
10301029 let rand = getRandomNumber(100, salt, entropy)
1031- let $t02876929041 = if ((84 > rand))
1030+ let $t02875429026 = if ((84 > rand))
10321031 then $Tuple2(1, idxRarityC)
10331032 else if ((98 > rand))
10341033 then $Tuple2(5, idxRarityU)
10351034 else $Tuple2(10, idxRarityL)
1036- let bonus = $t02876929041._1
1037- let rarityIdx = $t02876929041._2
1038- let $t02904429194 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1039- let issueNftActions = $t02904429194._1
1040- let nftAssetId = $t02904429194._2
1035+ let bonus = $t02875429026._1
1036+ let rarityIdx = $t02875429026._2
1037+ let $t02902929179 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1038+ let issueNftActions = $t02902929179._1
1039+ let nftAssetId = $t02902929179._2
10411040 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
10421041 }
10431042 }
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 MULT14 = 100000000000000
1313
1414 let DAY_MILLIS = 86400000
1515
1616 let USDT2ACRES_MULTIPLIER = 10
1717
1818 let ONE_PERCENT_DIVISOR = 100
1919
2020 let RANDOM_DELAY = 2
2121
2222 let NFT_CHEST_PRICE_USDT = 5000000
2323
2424 let chain = take(drop(this.bytes, 1), 1)
2525
2626 let WEEK_BLOCKS = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then 10080
3030 else if ((base58'2T' == $match0))
3131 then 180
3232 else throw("Unknown chain")
3333 }
3434
3535 let usdtAssetId = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3939 else if ((base58'2T' == $match0))
4040 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4141 else throw("Unknown chain")
4242 }
4343
4444 let defaultRest2AddressStr = match chain {
4545 case _ =>
4646 if ((base58'2W' == $match0))
4747 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4848 else if ((base58'2T' == $match0))
4949 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
5050 else throw("Unknown chain")
5151 }
5252
5353 let arbitrageDelay = match chain {
5454 case _ =>
5555 if ((base58'2W' == $match0))
5656 then DAY_MILLIS
5757 else if ((base58'2T' == $match0))
5858 then 60000
5959 else throw("Unknown chain")
6060 }
6161
6262 let oldStakingContractStr = match chain {
6363 case _ =>
6464 if ((base58'2W' == $match0))
6565 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6666 else if ((base58'2T' == $match0))
6767 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6868 else throw("Unknown chain")
6969 }
7070
7171 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
7272
7373
7474 let IdxCfgAcres2Dapp = 1
7575
7676 let IdxCfgWlgDapp = 2
7777
7878 let IdxCfgInvestFundDapp = 5
7979
8080 func keyRestCfg () = "%s__restConfig"
8181
8282
8383 func keyRest2Address () = "%s__rest2Addr"
8484
8585
8686 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8787
8888
8989 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
9090
9191
9292 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
9393
9494 let rest2Cfg = readRestCfgOrFail(rest2Contract)
9595
9696 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9797
9898 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9999
100100 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
101101
102102 let oldAcresContractKey = "oldAcresContract"
103103
104104 func keyBlocked () = "contractsBlocked"
105105
106106
107107 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
108108
109109
110110 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
111111
112112
113113 func keyCommit (address) = ("finishBlockFor_" + address)
114114
115115
116116 let wlgAssetIdKey = "wlg_assetId"
117117
118118 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
119119
120120 let acresIssuedAmountKey = "acresIssuedAmount"
121121
122122 let acresAssetIdKey = "acresAssetId"
123123
124124 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
125125
126126 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
127127
128128
129129 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
130130
131131
132132 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
133133
134134
135135 func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr)
136136
137137
138138 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
139139
140140
141141 func asInt (v) = match v {
142142 case n: Int =>
143143 n
144144 case _ =>
145145 throw("fail to cast into Int")
146146 }
147147
148148
149149 func asTuple5Ints (val) = match val {
150150 case t: (Int, Int, Int, Int, Int) =>
151151 t
152152 case _ =>
153153 throw("fail to cast into (Int, Int, Int, Int, Int)")
154154 }
155155
156156
157157 func asTuple4Ints (val) = match val {
158158 case t: (Int, Int, Int, Int) =>
159159 t
160160 case _ =>
161161 throw("fail to cast into (Int, Int, Int, Int)")
162162 }
163163
164164
165165 func asTuple3Ints (val) = match val {
166166 case t: (Int, Int, Int) =>
167167 t
168168 case _ =>
169169 throw("fail to cast into (Int, Int, Int)")
170170 }
171171
172172
173173 func asTuple2Ints (val) = match val {
174174 case t: (Int, Int) =>
175175 t
176176 case _ =>
177177 throw("fail to cast into (Int, Int)")
178178 }
179179
180180
181181 func fixedPoint (val,decimals) = {
182182 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
183183 let lowPart = toString((val % tenPow))
184184 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
185185 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
186186 }
187187
188188
189189 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
190190 then throw("maxValue should be > 0")
191191 else {
192192 let randomHash = sha256_16Kb((salt + entropy))
193193 (toInt(randomHash) % maxValue)
194194 }
195195
196196
197197 let M6_ = 1000000
198198
199199 let M8_ = 100000000
200200
201201 let wlgIssuedAmtKey = "wlg_issuedAmount"
202202
203203 let zbIssuedAmtKey = "zbill_issuedAmount"
204204
205205 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
206206
207207
208208 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
209209
210210
211211 let acresStakdTotalKey = "acresStakedAmountTotal"
212212
213213 let totalFarmingPowerKey = "totalFarmingPower"
214214
215215 let MAX_WL_NFTS = 3
216216
217217 let MAX_ARK_NFTS = 1
218218
219219 let ARK_NFT_BONUS = 5000
220220
221221 let MAX_NFTS_STAKED_BY_USER = 4
222222
223223 let keyNftTotalIssued = "nftTotalIssued"
224224
225225 let keyNftTotalBurned = "nftTotalBurned"
226226
227227 let keyWlNftTotalStaked = "WlNftTotalStaked"
228228
229229 let keyArkNftTotalStaked = "ArkNftTotalStaked"
230230
231231 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
232232
233233
234234 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
235235
236236
237237 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
238238
239239
240240 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
241241
242242
243243 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
244244
245245 func getLevelByAcres (acres) = {
246246 let acr = ((acres + 99999999) / M8_)
247247 func checker (acc,item) = if ((item >= acr))
248248 then acc
249249 else (acc + 1)
250250
251251 let $l = levelAcres
252252 let $s = size($l)
253253 let $acc0 = 0
254254 func $f0_1 ($a,$i) = if (($i >= $s))
255255 then $a
256256 else checker($a, $l[$i])
257257
258258 func $f0_2 ($a,$i) = if (($i >= $s))
259259 then $a
260260 else throw("List size exceeds 10")
261261
262262 $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)
263263 }
264264
265265
266266 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
267267
268268
269269 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
270270 let notBonused = getFarmingPowerByAcres(acres)
271271 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
272272 }
273273
274274
275275 let teamAddrKey = "teamAddr"
276276
277277 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
278278
279279
280280 let keyLastAcresSellTime = "lastAcresSellTime"
281281
282282 let keyLastLimitLeft = "lastLimitLeft"
283283
284284 let names = ["Gold shovel", "Pickaxe"]
285285
286286 let descriptions = ["Reward for early birds", "Increases FarmPower"]
287287
288288 let idxDescrShovel = 0
289289
290290 let idxDescrPickaxe = 1
291291
292292 let rarityThresholds = [5, 10, 20]
293293
294294 let idxThresholdC = 0
295295
296296 let idxThresholdU = 1
297297
298298 let idxThresholdL = 2
299299
300300 let namez = ["SHOVEL", "PICKAXE"]
301301
302302 let idxNameShovel = 0
303303
304304 let idxNamePickaxe = 1
305305
306306 let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
307307
308308 let idxKeyC = 0
309309
310310 let idxKeyP = 4
311311
312312 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
313313
314314 let idxRarityC = 0
315315
316316 let idxRarityU = 1
317317
318318 let idxRarityL = 2
319319
320320 let idxRarityE = 3
321321
322322 let idxRarityP = 4
323323
324324 let collectionz = ["Digging tools"]
325325
326326 let idxCollDig = 0
327327
328328 let bonusTypez = ["FarmPower"]
329329
330330 let idxBonusTypeFp = 0
331331
332332 func prolog (i) = if (if ((i.originCaller != rest2Contract))
333333 then valueOrElse(getBoolean(keyBlocked()), false)
334334 else false)
335335 then throw("Contracts are under maintenance")
336336 else {
337337 let addr = toString(i.originCaller)
338338 let week = (height / WEEK_BLOCKS)
339339 let lastWeekKey = keyLastWeekTxIdByUser(addr)
340340 let lastWeekTxIdByUser = getString(lastWeekKey)
341341 let txId = toBase58String(i.transactionId)
342342 let wtx = ((toString(week) + "_") + txId)
343343 let curWeekKey = keyCurWeekTxIdByUser(addr)
344344 if (isDefined(lastWeekTxIdByUser))
345345 then {
346346 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
347347 if ((lastWeekTx[0] == toString(week)))
348348 then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
349349 else if ((lastWeekTx[0] == toString((week - 1))))
350350 then [StringEntry(curWeekKey, wtx)]
351351 else {
352352 let curWeekTxIdByUser = getStringValue(curWeekKey)
353353 let curWeekTx = split(curWeekTxIdByUser, "_")
354354 if ((curWeekTx[0] == toString(week)))
355355 then [StringEntry(curWeekKey, wtx)]
356356 else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)]
357357 }
358358 }
359359 else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
360360 }
361361
362362
363363 func createNftDescrCustom (contKey,nftSerial,collection,name,descr,rarity,bonus,bonusType) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + contKey) + "\", ") + "\"number\": ") + toString(nftSerial)) + ", ") + "\"collection\": \"") + collection) + "\", ") + "\"name\": \"") + name) + "\", ") + "\"description\": \"") + descr) + "\", ") + "\"rare\": \"") + rarity) + "\", ") + "\"bonus\": ") + toString(bonus)) + ", ") + "\"bonusType\": \"") + bonusType) + "\"}")
364364
365365
366366 func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = {
367367 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
368368 let rarity = rarityNames[rarityIdx]
369369 let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc))
370370 let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false)
371371 let nftAssetId = calculateAssetId(issue)
372372 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
373373 }
374374
375375
376376 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
377377 then throw(("NFT is not supported: " + descr))
378378 else {
379379 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
380380 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
381381 }
382382
383383
384384 func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\"")))
385385 then throw(("NFT is not supported: " + descr))
386386 else {
387387 let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1]
388388 value(indexOf(rarityNames, rarityStr))
389389 }
390390
391391
392392 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
393393 then (bonusDelta == 0)
394394 else false)
395395 then throw("Nothing to do")
396396 else {
397397 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
398398 if ((wlgResult == wlgResult))
399399 then {
400400 let now = lastBlock.timestamp
401401 let timeKey = keyAcresStakedTimeByUser(address)
402402 let amountKey = keyAcresStakedAmtByUser(address)
403403 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
404404 if (if ((0 > amt))
405405 then (0 > (oldAcresAmount + amt))
406406 else false)
407407 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
408408 else {
409409 let newAcresAmount = (oldAcresAmount + amt)
410410 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
411411 let userFpKey = keyFarmingPowerByUser(address)
412412 let oldFp = valueOrElse(getInteger(userFpKey), 0)
413413 let bonusKey = keyUserFullBonus(address)
414414 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
415415 if (if ((0 > bonusDelta))
416416 then (0 > (oldBonus + bonusDelta))
417417 else false)
418418 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
419419 else {
420420 let $t062526351 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
421421 let newBonusedFp = $t062526351._1
422422 let ignored = $t062526351._2
423423 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
424424 let acresActions = if ((amt == 0))
425425 then nil
426426 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
427427 $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult)
428428 }
429429 }
430430 }
431431 else throw("Strict value is not equal to itself.")
432432 }
433433
434434
435435 func getWlgPrice (usdtBalanceCorrection) = {
436436 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
437437 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
438438 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
439439 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
440440 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
441441 fraction(totalFundsUsd, MULT8, issuedAmount)
442442 }
443443
444444
445445 func getSwapLimitAcres () = {
446446 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
447447 let acres2Usd = assetBalance(this, usdtAssetId)
448448 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
449449 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
450450 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
451451 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
452452 let now = lastBlock.timestamp
453453 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
454454 let limitLeftUsdt = min([currentLimit, defaultLimit])
455455 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
456456 }
457457
458458
459459 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
460460
461461 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
462462
463463 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
464464
465465 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
466466
467467 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
468468
469469 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
470470
471471 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
472472
473473 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
474474
475475 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
476476
477477 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
478478
479479 func isArkimalIssued (nfo) = {
480480 let issuer = toString(nfo.issuer)
481481 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
482482 then (issuer == oldStakingContractStr)
483483 else false)
484484 then true
485485 else (issuer == incubator))
486486 then true
487487 else (issuer == breeder))
488488 then true
489489 else (issuer == turtleIncubator))
490490 then true
491491 else (issuer == turtleBreeder))
492492 then true
493493 else (issuer == canineIncubator))
494494 then true
495495 else (issuer == canineBreeder))
496496 then true
497497 else (issuer == felineIncubator))
498498 then true
499499 else (issuer == felineBreeder))
500500 then nfo.name
501501 else if ((issuer == mutantBreeder))
502502 then nfo.description
503503 else ""
504504 }
505505
506506
507507 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
508508 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
509509 if ((nftNumber >= limit))
510510 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
511511 else {
512512 let $t01056310639 = stakeUnstakeAcresInternal(0, addr, bonus6)
513513 let actions = $t01056310639._1
514514 let wlgClaimedAmount = $t01056310639._2
515515 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
516516 }
517517 }
518518
519519
520520 @Callable(i)
521521 func saveLastTx () = if (!(containsElement([wlgContract], i.caller)))
522522 then throw("Access denied")
523523 else $Tuple2(prolog(i), 42)
524524
525525
526526
527527 @Callable(i)
528528 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
529529 then throw("Permission denied")
530530 else {
531531 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
532532 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
533533 }
534534
535535
536536
537537 @Callable(i)
538538 func setBlocked (isBlocked) = if ((i.caller != this))
539539 then throw("permission denied")
540540 else [BooleanEntry(keyBlocked(), isBlocked)]
541541
542542
543543
544544 @Callable(i)
545545 func unstakeAcres (amount) = {
546546 let prologActions = prolog(i)
547547 if ((0 >= amount))
548548 then throw("Amount should be positive")
549549 else {
550550 let address = toString(i.caller)
551551 if ((size(i.payments) != 0))
552552 then throw("No payments required")
553553 else {
554554 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
555555 if ((arbReleaseTime > lastBlock.timestamp))
556556 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
557557 else {
558558 let $t01221312293 = stakeUnstakeAcresInternal(-(amount), address, 0)
559559 let actions = $t01221312293._1
560560 let wlgClaimedAmount = $t01221312293._2
561561 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
562562 }
563563 }
564564 }
565565 }
566566
567567
568568
569569 @Callable(i)
570570 func stakeAcres () = {
571571 let prologActions = prolog(i)
572572 let address = toString(i.caller)
573573 if ((size(i.payments) != 1))
574574 then throw("exactly 1 payment must be attached")
575575 else {
576576 let pmt = i.payments[0]
577577 let amt = pmt.amount
578578 if (if (!(isDefined(pmt.assetId)))
579579 then true
580580 else (value(pmt.assetId) != acresAssetId))
581581 then throw("ACRES payments only!")
582582 else {
583583 let $t01274412820 = stakeUnstakeAcresInternal(amt, address, 0)
584584 let actions = $t01274412820._1
585585 let wlgClaimedAmount = $t01274412820._2
586586 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
587587 }
588588 }
589589 }
590590
591591
592592
593593 @Callable(i)
594594 func buyAcres () = {
595595 let prologActions = prolog(i)
596596 if ((size(i.payments) != 1))
597597 then throw("exactly 1 payment must be attached")
598598 else {
599599 let pmt = i.payments[0]
600600 let usdtAmount = pmt.amount
601601 if (if (!(isDefined(pmt.assetId)))
602602 then true
603603 else (value(pmt.assetId) != usdtAssetId))
604604 then throw("USDT payments only!")
605605 else if ((MULT6 > usdtAmount))
606606 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
607607 else {
608608 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
609609 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
610610 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
611611 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
612612 if ((req == req))
613613 then {
614614 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
615615 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
616616 }
617617 else throw("Strict value is not equal to itself.")
618618 }
619619 }
620620 }
621621
622622
623623
624624 @Callable(i)
625625 func buyAcresREADONLY (usdtAmount) = {
626626 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
627627 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
628628 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
629629 }
630630
631631
632632
633633 @Callable(i)
634634 func sellAcres () = {
635635 let prologActions = prolog(i)
636636 if ((size(i.payments) != 1))
637637 then throw("exactly 1 payment must be attached")
638638 else {
639639 let pmt = i.payments[0]
640640 let acresAmount = pmt.amount
641641 if (if (!(isDefined(pmt.assetId)))
642642 then true
643643 else (value(pmt.assetId) != acresAssetId))
644644 then throw("ACRES payments only!")
645645 else if ((MULT7 > acresAmount))
646646 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
647647 else {
648648 let addr = toString(i.caller)
649649 let $t01467714725 = getSwapLimitAcres()
650650 let limitAction = $t01467714725._1
651651 let maxUsdt = $t01467714725._2
652652 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
653653 if ((acresAmount > maxAcres))
654654 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
655655 else {
656656 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
657657 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
658658 }
659659 }
660660 }
661661 }
662662
663663
664664
665665 @Callable(i)
666666 func sellAcresREADONLY (address,acresAmount) = {
667667 let $t01522115269 = getSwapLimitAcres()
668668 let limitAction = $t01522115269._1
669669 let maxUsdt = $t01522115269._2
670670 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
671671 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
672672 }
673673
674674
675675
676676 @Callable(i)
677-func convertOldStakes () = if ((i.caller != this))
678- then throw("Temporarily disabled")
679- else {
680- let address = toString(i.caller)
681- if ((size(i.payments) != 0))
682- then throw("No payments required")
683- else {
684- let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
685- let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
686- let gotAcres0 = if ((amount > 0))
687- then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
688- else $Tuple2(0, 0)
689- let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
690- let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
691- let landsResult = if (isDefined(landsStr))
692- then {
693- let lands = split_51C(value(landsStr), "_")
694- func oneLand (acc,landAssetId) = if ((landAssetId == ""))
695- then throw("landAssetId is required")
696- else {
697- let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
698- $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
699- }
677+func convertOldStakes () = {
678+ let prologActions = prolog(i)
679+ let address = toString(i.caller)
680+ if ((size(i.payments) != 0))
681+ then throw("No payments required")
682+ else {
683+ let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
684+ let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
685+ let gotAcres0 = if ((amount > 0))
686+ then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
687+ else $Tuple2(0, 0)
688+ let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
689+ let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
690+ let landsResult = if (isDefined(landsStr))
691+ then {
692+ let lands = split_51C(value(landsStr), "_")
693+ func oneLand (acc,landAssetId) = if ((landAssetId == ""))
694+ then throw("landAssetId is required")
695+ else {
696+ let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
697+ $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
698+ }
700699
701- let rr = {
702- let $l = lands
703- let $s = size($l)
704- let $acc0 = $Tuple4(0, 0, 0, 0)
705- func $f0_1 ($a,$i) = if (($i >= $s))
706- then $a
707- else oneLand($a, $l[$i])
700+ let rr = {
701+ let $l = lands
702+ let $s = size($l)
703+ let $acc0 = $Tuple4(0, 0, 0, 0)
704+ func $f0_1 ($a,$i) = if (($i >= $s))
705+ then $a
706+ else oneLand($a, $l[$i])
708707
709- func $f0_2 ($a,$i) = if (($i >= $s))
710- then $a
711- else throw("List size exceeds 100")
708+ func $f0_2 ($a,$i) = if (($i >= $s))
709+ then $a
710+ else throw("List size exceeds 100")
712711
713- $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)
712+ $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)
713+ }
714+ let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
715+ if ((finalize == finalize))
716+ then {
717+ let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
718+ if ((req == req))
719+ then {
720+ let $t01710617244 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
721+ let nftActions = $t01710617244._1
722+ let nftAssetId = $t01710617244._2
723+ $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
724+ }
725+ else throw("Strict value is not equal to itself.")
714726 }
715- let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
716- if ((finalize == finalize))
717- then {
718- let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
719- if ((req == req))
720- then {
721- let $t01713817276 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
722- let nftActions = $t01713817276._1
723- let nftAssetId = $t01713817276._2
724- $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
725- }
726- else throw("Strict value is not equal to itself.")
727- }
728- else throw("Strict value is not equal to itself.")
729- }
730- else $Tuple5(0, 0, 0, 0, nil)
731- let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
732- let duckResult = if ((duckAssetId != ""))
733- then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
734- else $Tuple3(0, 0, 0)
735- let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
736- $Tuple2((landsResult._5 ++ x._1), x._2)
737- }
738- }
727+ else throw("Strict value is not equal to itself.")
728+ }
729+ else $Tuple5(0, 0, 0, 0, nil)
730+ let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
731+ let duckResult = if ((duckAssetId != ""))
732+ then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
733+ else $Tuple3(0, 0, 0)
734+ let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
735+ $Tuple2(((landsResult._5 ++ x._1) ++ prologActions), x._2)
736+ }
737+ }
739738
740739
741740
742741 @Callable(i)
743742 func unstakeLandsREADONLY (address) = {
744743 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
745744 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
746745 let landsResult = if (isDefined(landsStr))
747746 then {
748747 let lands = split_51C(value(landsStr), "_")
749748 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
750749 then throw("landAssetId is required")
751750 else {
752751 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
753752 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
754753 }
755754
756755 let $l = lands
757756 let $s = size($l)
758757 let $acc0 = $Tuple4(0, 0, 0, 0)
759758 func $f0_1 ($a,$i) = if (($i >= $s))
760759 then $a
761760 else oneLand($a, $l[$i])
762761
763762 func $f0_2 ($a,$i) = if (($i >= $s))
764763 then $a
765764 else throw("List size exceeds 100")
766765
767766 $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)
768767 }
769768 else $Tuple4(0, 0, 0, 0)
770769 $Tuple2(nil, landsResult)
771770 }
772771
773772
774773
775774 @Callable(i)
776775 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
777776 then throw("Permission denied")
778777 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
779778
780779
781780
782781 @Callable(i)
783782 func simulateStakeAcresREADONLY (address,addedAmount) = {
784783 let amountKey = keyAcresStakedAmtByUser(address)
785784 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
786785 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
787786 let userFpKey = keyFarmingPowerByUser(address)
788787 let oldFp = valueOrElse(getInteger(userFpKey), 0)
789788 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
790- let $t01944119528 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
791- let newBonusedFp = $t01944119528._1
792- let ignored = $t01944119528._2
789+ let $t01942619513 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
790+ let newBonusedFp = $t01942619513._1
791+ let ignored = $t01942619513._2
793792 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
794793 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
795794 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
796795 }
797796
798797
799798
800799 @Callable(i)
801800 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
802801 then throw("Permission denied")
803802 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
804803
805804
806805
807806 @Callable(i)
808807 func stakeNFT () = {
809808 let prologActions = prolog(i)
810809 if ((size(i.payments) != 1))
811810 then throw("Exactly one payment required")
812811 else {
813812 let pmt = value(i.payments[0])
814813 if ((pmt.amount != 1))
815814 then throw("NFT token should be attached as payment")
816815 else {
817816 let assetId = value(pmt.assetId)
818817 let asset = value(assetInfo(assetId))
819818 let assetIdStr = toBase58String(assetId)
820819 let addr = toString(i.caller)
821820 let nftsKey = keyStakedNFTsByOwner(addr)
822821 let nftsStr = getString(nftsKey)
823822 let nfts = if (isDefined(nftsStr))
824823 then split_4C(value(nftsStr), "_")
825824 else nil
826825 if (containsElement(nfts, assetIdStr))
827826 then throw(("Your staked NFTs already contain " + assetIdStr))
828827 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
829828 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
830829 else {
831830 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
832831 if ((asset.issuer == this))
833832 then {
834- let $t02093721127 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
835- let actions = $t02093721127._1
836- let wlgClaimedAmount = $t02093721127._2
833+ let $t02092221112 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
834+ let actions = $t02092221112._1
835+ let wlgClaimedAmount = $t02092221112._2
837836 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
838837 }
839838 else if ((isArkimalIssued(asset) == ""))
840839 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
841840 else {
842- let $t02130821459 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
843- let actions = $t02130821459._1
844- let wlgClaimedAmount = $t02130821459._2
841+ let $t02129321444 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
842+ let actions = $t02129321444._1
843+ let wlgClaimedAmount = $t02129321444._2
845844 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
846845 }
847846 }
848847 }
849848 }
850849 }
851850
852851
853852
854853 @Callable(i)
855854 func unstakeNFT (assetIdStr) = {
856855 let prologActions = prolog(i)
857856 if ((size(i.payments) != 0))
858857 then throw("No payments required")
859858 else {
860859 let assetId = fromBase58String(assetIdStr)
861860 let addr = toString(i.caller)
862861 let asset = value(assetInfo(assetId))
863862 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
864863 if (!(isDefined(getInteger(timeKey))))
865864 then throw((("NFT " + asset.name) + " is not staked by you"))
866865 else {
867866 let nftsKey = keyStakedNFTsByOwner(addr)
868867 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
869868 let idx = indexOf(nfts, assetIdStr)
870869 if (!(isDefined(idx)))
871870 then throw(("Your staked NFTs don't contain " + assetIdStr))
872871 else {
873872 let listAction = if ((size(nfts) > 1))
874873 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
875874 else DeleteEntry(nftsKey)
876875 let isWL = (asset.issuer == this)
877876 if (isWL)
878877 then {
879878 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
880879 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
881- let $t02262422703 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
882- let actions = $t02262422703._1
883- let wlgClaimedAmount = $t02262422703._2
880+ let $t02260922688 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
881+ let actions = $t02260922688._1
882+ let wlgClaimedAmount = $t02260922688._2
884883 $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)
885884 }
886885 else {
887886 let arkimalName = isArkimalIssued(asset)
888887 if ((arkimalName == ""))
889888 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
890889 else {
891890 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
892- let $t02336323447 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
893- let actions = $t02336323447._1
894- let wlgClaimedAmount = $t02336323447._2
891+ let $t02334823432 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
892+ let actions = $t02334823432._1
893+ let wlgClaimedAmount = $t02334823432._2
895894 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
896895 }
897896 }
898897 }
899898 }
900899 }
901900 }
902901
903902
904903
905904 @Callable(i)
906905 func exchangeNFTs () = {
907906 let prologActions = prolog(i)
908907 if ((3 > size(i.payments)))
909908 then throw("Min one WLGOLD and 2 NFT payments allowed")
910909 else if ((size(i.payments) > 10))
911910 then throw("Max one WLGOLD and 9 NFT payments allowed")
912911 else {
913912 let addr = toString(i.caller)
914913 func addUp (acc,pmt) = {
915914 let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
916915 if ((assetId == wlgAssetId))
917916 then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
918917 else {
919918 let asset = value(assetInfo(assetId))
920919 if ((asset.issuer != this))
921920 then throw("Only WL-issued NFTs allowed")
922921 else {
923922 let rarityIx = rarityIdxByDescriprion(value(asset.description))
924923 if (if ((acc._4 > 0))
925924 then (rarityIx != acc._4)
926925 else false)
927926 then throw("You can exchange only NFTs of the same rarity")
928927 else {
929928 let bonusPerc = bonusByDescription(value(asset.description))
930929 $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
931930 }
932931 }
933932 }
934933 }
935934
936- let $t02483625052 = {
935+ let $t02482125037 = {
937936 let $l = i.payments
938937 let $s = size($l)
939938 let $acc0 = $Tuple4(0, 0, nil, -1)
940939 func $f0_1 ($a,$i) = if (($i >= $s))
941940 then $a
942941 else addUp($a, $l[$i])
943942
944943 func $f0_2 ($a,$i) = if (($i >= $s))
945944 then $a
946945 else throw("List size exceeds 10")
947946
948947 $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)
949948 }
950- let wlgFee = $t02483625052._1
951- let totalBonus = $t02483625052._2
952- let burnActions = $t02483625052._3
953- let rarityIdx = $t02483625052._4
949+ let wlgFee = $t02482125037._1
950+ let totalBonus = $t02482125037._2
951+ let burnActions = $t02482125037._3
952+ let rarityIdx = $t02482125037._4
954953 let newRarityIdx = if ((rarityIdx == idxRarityC))
955954 then if ((rarityThresholds[idxThresholdC] > totalBonus))
956955 then idxRarityC
957956 else if ((rarityThresholds[idxThresholdU] > totalBonus))
958957 then idxRarityU
959958 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
960959 else if ((rarityIdx == idxRarityU))
961960 then if ((rarityThresholds[idxThresholdU] > totalBonus))
962961 then idxRarityU
963962 else if ((rarityThresholds[idxThresholdL] > totalBonus))
964963 then idxRarityL
965964 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
966965 else if ((rarityIdx == idxRarityL))
967966 then if ((rarityThresholds[idxThresholdL] > totalBonus))
968967 then idxRarityL
969968 else idxRarityE
970969 else if ((rarityIdx == idxRarityE))
971970 then idxRarityE
972971 else if ((rarityIdx == idxRarityP))
973972 then throw("You can't exchange NFTs of this rarity")
974973 else throw("Unknown rarity")
975974 let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
976975 let change = (wlgFee - minWlgFee)
977976 let forTeam = (minWlgFee / 2)
978977 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
979978 if ((0 > change))
980979 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
981980 else {
982981 let changeActions = if ((change > 0))
983982 then [ScriptTransfer(i.caller, change, wlgAssetId)]
984983 else nil
985- let $t02658926750 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
986- let issueNftActions = $t02658926750._1
987- let nftAssetId = $t02658926750._2
984+ let $t02657426735 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
985+ let issueNftActions = $t02657426735._1
986+ let nftAssetId = $t02657426735._2
988987 let burned = size(burnActions)
989988 let burnCounterActions = if ((burned == 0))
990989 then nil
991990 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
992991 $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
993992 }
994993 }
995994 }
996995
997996
998997
999998 @Callable(i)
1000999 func openNftChest () = {
10011000 let prologActions = prolog(i)
10021001 if ((size(i.payments) != 1))
10031002 then throw("exactly 1 payment must be attached")
10041003 else {
10051004 let pmt = i.payments[0]
10061005 let wlgAmount = pmt.amount
10071006 if (if (!(isDefined(pmt.assetId)))
10081007 then true
10091008 else (value(pmt.assetId) != wlgAssetId))
10101009 then throw("WLGOLD payments only!")
10111010 else {
10121011 let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
10131012 let change = (wlgAmount - minWlgFee)
10141013 let forTeam = (minWlgFee / 2)
10151014 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
10161015 if ((0 > change))
10171016 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
10181017 else {
10191018 let changeActions = if ((change > 0))
10201019 then [ScriptTransfer(i.caller, change, wlgAssetId)]
10211020 else nil
10221021 let addr = toString(i.caller)
10231022 let finishKey = keyCommit(addr)
10241023 let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
10251024 if ((finishBlock > height))
10261025 then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
10271026 else {
10281027 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
10291028 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
10301029 let rand = getRandomNumber(100, salt, entropy)
1031- let $t02876929041 = if ((84 > rand))
1030+ let $t02875429026 = if ((84 > rand))
10321031 then $Tuple2(1, idxRarityC)
10331032 else if ((98 > rand))
10341033 then $Tuple2(5, idxRarityU)
10351034 else $Tuple2(10, idxRarityL)
1036- let bonus = $t02876929041._1
1037- let rarityIdx = $t02876929041._2
1038- let $t02904429194 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1039- let issueNftActions = $t02904429194._1
1040- let nftAssetId = $t02904429194._2
1035+ let bonus = $t02875429026._1
1036+ let rarityIdx = $t02875429026._2
1037+ let $t02902929179 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1038+ let issueNftActions = $t02902929179._1
1039+ let nftAssetId = $t02902929179._2
10411040 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
10421041 }
10431042 }
10441043 }
10451044 }
10461045 }
10471046
10481047
10491048
10501049 @Callable(i)
10511050 func commitForRandom () = {
10521051 let prologActions = prolog(i)
10531052 let addr = toString(i.caller)
10541053 let finishKey = keyCommit(addr)
10551054 if (isDefined(getInteger(finishKey)))
10561055 then throw("You already commited for random, please use it")
10571056 else {
10581057 let finishBlock = (height + RANDOM_DELAY)
10591058 $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
10601059 }
10611060 }
10621061
10631062

github/deemru/w8io/026f985 
116.48 ms