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/+5AwkA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CUCgIJAM4IAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJZmluaXNoS2V5BQtmaW5pc2hCbG9jawUDbmlsBQ1wcm9sb2dBY3Rpb25zBQtmaW5pc2hCbG9jawB/eVxe", "height": 3395710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YBXcX16chMvGgc4RSeDFsaEgqUZeT6rJHhA1VzT8A6L Next: FCbvV9qw52vDasvM8ahxWEGNyjFSmD8nTjYtfr6svVBR Diff:
Old | New | Differences | |
---|---|---|---|
674 | 674 | ||
675 | 675 | ||
676 | 676 | @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 | + | } | |
700 | 699 | ||
701 | - | ||
702 | - | ||
703 | - | ||
704 | - | ||
705 | - | ||
706 | - | ||
707 | - | ||
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]) | |
708 | 707 | ||
709 | - | ||
710 | - | ||
711 | - | ||
708 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
709 | + | then $a | |
710 | + | else throw("List size exceeds 100") | |
712 | 711 | ||
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.") | |
714 | 726 | } | |
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 | + | } | |
739 | 738 | ||
740 | 739 | ||
741 | 740 | ||
787 | 786 | let userFpKey = keyFarmingPowerByUser(address) | |
788 | 787 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
789 | 788 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
790 | - | let $ | |
791 | - | let newBonusedFp = $ | |
792 | - | let ignored = $ | |
789 | + | let $t01942619513 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
790 | + | let newBonusedFp = $t01942619513._1 | |
791 | + | let ignored = $t01942619513._2 | |
793 | 792 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
794 | 793 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
795 | 794 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
831 | 830 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
832 | 831 | if ((asset.issuer == this)) | |
833 | 832 | then { | |
834 | - | let $ | |
835 | - | let actions = $ | |
836 | - | let wlgClaimedAmount = $ | |
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 | |
837 | 836 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
838 | 837 | } | |
839 | 838 | else if ((isArkimalIssued(asset) == "")) | |
840 | 839 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
841 | 840 | else { | |
842 | - | let $ | |
843 | - | let actions = $ | |
844 | - | let wlgClaimedAmount = $ | |
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 | |
845 | 844 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
846 | 845 | } | |
847 | 846 | } | |
878 | 877 | then { | |
879 | 878 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
880 | 879 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
881 | - | let $ | |
882 | - | let actions = $ | |
883 | - | let wlgClaimedAmount = $ | |
880 | + | let $t02260922688 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
881 | + | let actions = $t02260922688._1 | |
882 | + | let wlgClaimedAmount = $t02260922688._2 | |
884 | 883 | $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) | |
885 | 884 | } | |
886 | 885 | else { | |
889 | 888 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
890 | 889 | else { | |
891 | 890 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
892 | - | let $ | |
893 | - | let actions = $ | |
894 | - | let wlgClaimedAmount = $ | |
891 | + | let $t02334823432 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
892 | + | let actions = $t02334823432._1 | |
893 | + | let wlgClaimedAmount = $t02334823432._2 | |
895 | 894 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
896 | 895 | } | |
897 | 896 | } | |
933 | 932 | } | |
934 | 933 | } | |
935 | 934 | ||
936 | - | let $ | |
935 | + | let $t02482125037 = { | |
937 | 936 | let $l = i.payments | |
938 | 937 | let $s = size($l) | |
939 | 938 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
947 | 946 | ||
948 | 947 | $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) | |
949 | 948 | } | |
950 | - | let wlgFee = $ | |
951 | - | let totalBonus = $ | |
952 | - | let burnActions = $ | |
953 | - | let rarityIdx = $ | |
949 | + | let wlgFee = $t02482125037._1 | |
950 | + | let totalBonus = $t02482125037._2 | |
951 | + | let burnActions = $t02482125037._3 | |
952 | + | let rarityIdx = $t02482125037._4 | |
954 | 953 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
955 | 954 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
956 | 955 | then idxRarityC | |
982 | 981 | let changeActions = if ((change > 0)) | |
983 | 982 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
984 | 983 | else nil | |
985 | - | let $ | |
986 | - | let issueNftActions = $ | |
987 | - | let nftAssetId = $ | |
984 | + | let $t02657426735 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
985 | + | let issueNftActions = $t02657426735._1 | |
986 | + | let nftAssetId = $t02657426735._2 | |
988 | 987 | let burned = size(burnActions) | |
989 | 988 | let burnCounterActions = if ((burned == 0)) | |
990 | 989 | then nil | |
1028 | 1027 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1029 | 1028 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1030 | 1029 | let rand = getRandomNumber(100, salt, entropy) | |
1031 | - | let $ | |
1030 | + | let $t02875429026 = if ((84 > rand)) | |
1032 | 1031 | then $Tuple2(1, idxRarityC) | |
1033 | 1032 | else if ((98 > rand)) | |
1034 | 1033 | then $Tuple2(5, idxRarityU) | |
1035 | 1034 | else $Tuple2(10, idxRarityL) | |
1036 | - | let bonus = $ | |
1037 | - | let rarityIdx = $ | |
1038 | - | let $ | |
1039 | - | let issueNftActions = $ | |
1040 | - | let nftAssetId = $ | |
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 | |
1041 | 1040 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1042 | 1041 | } | |
1043 | 1042 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT7 = 10000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let MULT14 = 100000000000000 | |
13 | 13 | ||
14 | 14 | let DAY_MILLIS = 86400000 | |
15 | 15 | ||
16 | 16 | let USDT2ACRES_MULTIPLIER = 10 | |
17 | 17 | ||
18 | 18 | let ONE_PERCENT_DIVISOR = 100 | |
19 | 19 | ||
20 | 20 | let RANDOM_DELAY = 2 | |
21 | 21 | ||
22 | 22 | let NFT_CHEST_PRICE_USDT = 5000000 | |
23 | 23 | ||
24 | 24 | let chain = take(drop(this.bytes, 1), 1) | |
25 | 25 | ||
26 | 26 | let WEEK_BLOCKS = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 10080 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 180 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let usdtAssetId = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let defaultRest2AddressStr = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let arbitrageDelay = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then DAY_MILLIS | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then 60000 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let oldStakingContractStr = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if ((base58'2W' == $match0)) | |
65 | 65 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
66 | 66 | else if ((base58'2T' == $match0)) | |
67 | 67 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let IdxCfgAcres2Dapp = 1 | |
75 | 75 | ||
76 | 76 | let IdxCfgWlgDapp = 2 | |
77 | 77 | ||
78 | 78 | let IdxCfgInvestFundDapp = 5 | |
79 | 79 | ||
80 | 80 | func keyRestCfg () = "%s__restConfig" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyRest2Address () = "%s__rest2Addr" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
93 | 93 | ||
94 | 94 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
95 | 95 | ||
96 | 96 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
97 | 97 | ||
98 | 98 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
99 | 99 | ||
100 | 100 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
101 | 101 | ||
102 | 102 | let oldAcresContractKey = "oldAcresContract" | |
103 | 103 | ||
104 | 104 | func keyBlocked () = "contractsBlocked" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyCommit (address) = ("finishBlockFor_" + address) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let wlgAssetIdKey = "wlg_assetId" | |
117 | 117 | ||
118 | 118 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
119 | 119 | ||
120 | 120 | let acresIssuedAmountKey = "acresIssuedAmount" | |
121 | 121 | ||
122 | 122 | let acresAssetIdKey = "acresAssetId" | |
123 | 123 | ||
124 | 124 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
125 | 125 | ||
126 | 126 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func asInt (v) = match v { | |
142 | 142 | case n: Int => | |
143 | 143 | n | |
144 | 144 | case _ => | |
145 | 145 | throw("fail to cast into Int") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func asTuple5Ints (val) = match val { | |
150 | 150 | case t: (Int, Int, Int, Int, Int) => | |
151 | 151 | t | |
152 | 152 | case _ => | |
153 | 153 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func asTuple4Ints (val) = match val { | |
158 | 158 | case t: (Int, Int, Int, Int) => | |
159 | 159 | t | |
160 | 160 | case _ => | |
161 | 161 | throw("fail to cast into (Int, Int, Int, Int)") | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func asTuple3Ints (val) = match val { | |
166 | 166 | case t: (Int, Int, Int) => | |
167 | 167 | t | |
168 | 168 | case _ => | |
169 | 169 | throw("fail to cast into (Int, Int, Int)") | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func asTuple2Ints (val) = match val { | |
174 | 174 | case t: (Int, Int) => | |
175 | 175 | t | |
176 | 176 | case _ => | |
177 | 177 | throw("fail to cast into (Int, Int)") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func fixedPoint (val,decimals) = { | |
182 | 182 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
183 | 183 | let lowPart = toString((val % tenPow)) | |
184 | 184 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
185 | 185 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
190 | 190 | then throw("maxValue should be > 0") | |
191 | 191 | else { | |
192 | 192 | let randomHash = sha256_16Kb((salt + entropy)) | |
193 | 193 | (toInt(randomHash) % maxValue) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let M6_ = 1000000 | |
198 | 198 | ||
199 | 199 | let M8_ = 100000000 | |
200 | 200 | ||
201 | 201 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
202 | 202 | ||
203 | 203 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
204 | 204 | ||
205 | 205 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
212 | 212 | ||
213 | 213 | let totalFarmingPowerKey = "totalFarmingPower" | |
214 | 214 | ||
215 | 215 | let MAX_WL_NFTS = 3 | |
216 | 216 | ||
217 | 217 | let MAX_ARK_NFTS = 1 | |
218 | 218 | ||
219 | 219 | let ARK_NFT_BONUS = 5000 | |
220 | 220 | ||
221 | 221 | let MAX_NFTS_STAKED_BY_USER = 4 | |
222 | 222 | ||
223 | 223 | let keyNftTotalIssued = "nftTotalIssued" | |
224 | 224 | ||
225 | 225 | let keyNftTotalBurned = "nftTotalBurned" | |
226 | 226 | ||
227 | 227 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
228 | 228 | ||
229 | 229 | let keyArkNftTotalStaked = "ArkNftTotalStaked" | |
230 | 230 | ||
231 | 231 | func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
244 | 244 | ||
245 | 245 | func getLevelByAcres (acres) = { | |
246 | 246 | let acr = ((acres + 99999999) / M8_) | |
247 | 247 | func checker (acc,item) = if ((item >= acr)) | |
248 | 248 | then acc | |
249 | 249 | else (acc + 1) | |
250 | 250 | ||
251 | 251 | let $l = levelAcres | |
252 | 252 | let $s = size($l) | |
253 | 253 | let $acc0 = 0 | |
254 | 254 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | 255 | then $a | |
256 | 256 | else checker($a, $l[$i]) | |
257 | 257 | ||
258 | 258 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | 259 | then $a | |
260 | 260 | else throw("List size exceeds 10") | |
261 | 261 | ||
262 | 262 | $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) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
270 | 270 | let notBonused = getFarmingPowerByAcres(acres) | |
271 | 271 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | let teamAddrKey = "teamAddr" | |
276 | 276 | ||
277 | 277 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | let keyLastAcresSellTime = "lastAcresSellTime" | |
281 | 281 | ||
282 | 282 | let keyLastLimitLeft = "lastLimitLeft" | |
283 | 283 | ||
284 | 284 | let names = ["Gold shovel", "Pickaxe"] | |
285 | 285 | ||
286 | 286 | let descriptions = ["Reward for early birds", "Increases FarmPower"] | |
287 | 287 | ||
288 | 288 | let idxDescrShovel = 0 | |
289 | 289 | ||
290 | 290 | let idxDescrPickaxe = 1 | |
291 | 291 | ||
292 | 292 | let rarityThresholds = [5, 10, 20] | |
293 | 293 | ||
294 | 294 | let idxThresholdC = 0 | |
295 | 295 | ||
296 | 296 | let idxThresholdU = 1 | |
297 | 297 | ||
298 | 298 | let idxThresholdL = 2 | |
299 | 299 | ||
300 | 300 | let namez = ["SHOVEL", "PICKAXE"] | |
301 | 301 | ||
302 | 302 | let idxNameShovel = 0 | |
303 | 303 | ||
304 | 304 | let idxNamePickaxe = 1 | |
305 | 305 | ||
306 | 306 | let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
307 | 307 | ||
308 | 308 | let idxKeyC = 0 | |
309 | 309 | ||
310 | 310 | let idxKeyP = 4 | |
311 | 311 | ||
312 | 312 | let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
313 | 313 | ||
314 | 314 | let idxRarityC = 0 | |
315 | 315 | ||
316 | 316 | let idxRarityU = 1 | |
317 | 317 | ||
318 | 318 | let idxRarityL = 2 | |
319 | 319 | ||
320 | 320 | let idxRarityE = 3 | |
321 | 321 | ||
322 | 322 | let idxRarityP = 4 | |
323 | 323 | ||
324 | 324 | let collectionz = ["Digging tools"] | |
325 | 325 | ||
326 | 326 | let idxCollDig = 0 | |
327 | 327 | ||
328 | 328 | let bonusTypez = ["FarmPower"] | |
329 | 329 | ||
330 | 330 | let idxBonusTypeFp = 0 | |
331 | 331 | ||
332 | 332 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
333 | 333 | then valueOrElse(getBoolean(keyBlocked()), false) | |
334 | 334 | else false) | |
335 | 335 | then throw("Contracts are under maintenance") | |
336 | 336 | else { | |
337 | 337 | let addr = toString(i.originCaller) | |
338 | 338 | let week = (height / WEEK_BLOCKS) | |
339 | 339 | let lastWeekKey = keyLastWeekTxIdByUser(addr) | |
340 | 340 | let lastWeekTxIdByUser = getString(lastWeekKey) | |
341 | 341 | let txId = toBase58String(i.transactionId) | |
342 | 342 | let wtx = ((toString(week) + "_") + txId) | |
343 | 343 | let curWeekKey = keyCurWeekTxIdByUser(addr) | |
344 | 344 | if (isDefined(lastWeekTxIdByUser)) | |
345 | 345 | then { | |
346 | 346 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
347 | 347 | if ((lastWeekTx[0] == toString(week))) | |
348 | 348 | then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
349 | 349 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
350 | 350 | then [StringEntry(curWeekKey, wtx)] | |
351 | 351 | else { | |
352 | 352 | let curWeekTxIdByUser = getStringValue(curWeekKey) | |
353 | 353 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
354 | 354 | if ((curWeekTx[0] == toString(week))) | |
355 | 355 | then [StringEntry(curWeekKey, wtx)] | |
356 | 356 | else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)] | |
357 | 357 | } | |
358 | 358 | } | |
359 | 359 | else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | 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) + "\"}") | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = { | |
367 | 367 | let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0) | |
368 | 368 | let rarity = rarityNames[rarityIdx] | |
369 | 369 | let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc)) | |
370 | 370 | let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false) | |
371 | 371 | let nftAssetId = calculateAssetId(issue) | |
372 | 372 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
377 | 377 | then throw(("NFT is not supported: " + descr)) | |
378 | 378 | else { | |
379 | 379 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
380 | 380 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\""))) | |
385 | 385 | then throw(("NFT is not supported: " + descr)) | |
386 | 386 | else { | |
387 | 387 | let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1] | |
388 | 388 | value(indexOf(rarityNames, rarityStr)) | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
393 | 393 | then (bonusDelta == 0) | |
394 | 394 | else false) | |
395 | 395 | then throw("Nothing to do") | |
396 | 396 | else { | |
397 | 397 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
398 | 398 | if ((wlgResult == wlgResult)) | |
399 | 399 | then { | |
400 | 400 | let now = lastBlock.timestamp | |
401 | 401 | let timeKey = keyAcresStakedTimeByUser(address) | |
402 | 402 | let amountKey = keyAcresStakedAmtByUser(address) | |
403 | 403 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
404 | 404 | if (if ((0 > amt)) | |
405 | 405 | then (0 > (oldAcresAmount + amt)) | |
406 | 406 | else false) | |
407 | 407 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
408 | 408 | else { | |
409 | 409 | let newAcresAmount = (oldAcresAmount + amt) | |
410 | 410 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
411 | 411 | let userFpKey = keyFarmingPowerByUser(address) | |
412 | 412 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
413 | 413 | let bonusKey = keyUserFullBonus(address) | |
414 | 414 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
415 | 415 | if (if ((0 > bonusDelta)) | |
416 | 416 | then (0 > (oldBonus + bonusDelta)) | |
417 | 417 | else false) | |
418 | 418 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
419 | 419 | else { | |
420 | 420 | let $t062526351 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
421 | 421 | let newBonusedFp = $t062526351._1 | |
422 | 422 | let ignored = $t062526351._2 | |
423 | 423 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
424 | 424 | let acresActions = if ((amt == 0)) | |
425 | 425 | then nil | |
426 | 426 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
427 | 427 | $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult) | |
428 | 428 | } | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | else throw("Strict value is not equal to itself.") | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func getWlgPrice (usdtBalanceCorrection) = { | |
436 | 436 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
437 | 437 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
438 | 438 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
439 | 439 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
440 | 440 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
441 | 441 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func getSwapLimitAcres () = { | |
446 | 446 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
447 | 447 | let acres2Usd = assetBalance(this, usdtAssetId) | |
448 | 448 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
449 | 449 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
450 | 450 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
451 | 451 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
452 | 452 | let now = lastBlock.timestamp | |
453 | 453 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
454 | 454 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
455 | 455 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
460 | 460 | ||
461 | 461 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
462 | 462 | ||
463 | 463 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
464 | 464 | ||
465 | 465 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
466 | 466 | ||
467 | 467 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
468 | 468 | ||
469 | 469 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
470 | 470 | ||
471 | 471 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
472 | 472 | ||
473 | 473 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
474 | 474 | ||
475 | 475 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
476 | 476 | ||
477 | 477 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
478 | 478 | ||
479 | 479 | func isArkimalIssued (nfo) = { | |
480 | 480 | let issuer = toString(nfo.issuer) | |
481 | 481 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
482 | 482 | then (issuer == oldStakingContractStr) | |
483 | 483 | else false) | |
484 | 484 | then true | |
485 | 485 | else (issuer == incubator)) | |
486 | 486 | then true | |
487 | 487 | else (issuer == breeder)) | |
488 | 488 | then true | |
489 | 489 | else (issuer == turtleIncubator)) | |
490 | 490 | then true | |
491 | 491 | else (issuer == turtleBreeder)) | |
492 | 492 | then true | |
493 | 493 | else (issuer == canineIncubator)) | |
494 | 494 | then true | |
495 | 495 | else (issuer == canineBreeder)) | |
496 | 496 | then true | |
497 | 497 | else (issuer == felineIncubator)) | |
498 | 498 | then true | |
499 | 499 | else (issuer == felineBreeder)) | |
500 | 500 | then nfo.name | |
501 | 501 | else if ((issuer == mutantBreeder)) | |
502 | 502 | then nfo.description | |
503 | 503 | else "" | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | ||
507 | 507 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
508 | 508 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
509 | 509 | if ((nftNumber >= limit)) | |
510 | 510 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
511 | 511 | else { | |
512 | 512 | let $t01056310639 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
513 | 513 | let actions = $t01056310639._1 | |
514 | 514 | let wlgClaimedAmount = $t01056310639._2 | |
515 | 515 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | @Callable(i) | |
521 | 521 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
522 | 522 | then throw("Access denied") | |
523 | 523 | else $Tuple2(prolog(i), 42) | |
524 | 524 | ||
525 | 525 | ||
526 | 526 | ||
527 | 527 | @Callable(i) | |
528 | 528 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
529 | 529 | then throw("Permission denied") | |
530 | 530 | else { | |
531 | 531 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
532 | 532 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | ||
537 | 537 | @Callable(i) | |
538 | 538 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
539 | 539 | then throw("permission denied") | |
540 | 540 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
541 | 541 | ||
542 | 542 | ||
543 | 543 | ||
544 | 544 | @Callable(i) | |
545 | 545 | func unstakeAcres (amount) = { | |
546 | 546 | let prologActions = prolog(i) | |
547 | 547 | if ((0 >= amount)) | |
548 | 548 | then throw("Amount should be positive") | |
549 | 549 | else { | |
550 | 550 | let address = toString(i.caller) | |
551 | 551 | if ((size(i.payments) != 0)) | |
552 | 552 | then throw("No payments required") | |
553 | 553 | else { | |
554 | 554 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
555 | 555 | if ((arbReleaseTime > lastBlock.timestamp)) | |
556 | 556 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
557 | 557 | else { | |
558 | 558 | let $t01221312293 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
559 | 559 | let actions = $t01221312293._1 | |
560 | 560 | let wlgClaimedAmount = $t01221312293._2 | |
561 | 561 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | ||
567 | 567 | ||
568 | 568 | ||
569 | 569 | @Callable(i) | |
570 | 570 | func stakeAcres () = { | |
571 | 571 | let prologActions = prolog(i) | |
572 | 572 | let address = toString(i.caller) | |
573 | 573 | if ((size(i.payments) != 1)) | |
574 | 574 | then throw("exactly 1 payment must be attached") | |
575 | 575 | else { | |
576 | 576 | let pmt = i.payments[0] | |
577 | 577 | let amt = pmt.amount | |
578 | 578 | if (if (!(isDefined(pmt.assetId))) | |
579 | 579 | then true | |
580 | 580 | else (value(pmt.assetId) != acresAssetId)) | |
581 | 581 | then throw("ACRES payments only!") | |
582 | 582 | else { | |
583 | 583 | let $t01274412820 = stakeUnstakeAcresInternal(amt, address, 0) | |
584 | 584 | let actions = $t01274412820._1 | |
585 | 585 | let wlgClaimedAmount = $t01274412820._2 | |
586 | 586 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
587 | 587 | } | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | 593 | @Callable(i) | |
594 | 594 | func buyAcres () = { | |
595 | 595 | let prologActions = prolog(i) | |
596 | 596 | if ((size(i.payments) != 1)) | |
597 | 597 | then throw("exactly 1 payment must be attached") | |
598 | 598 | else { | |
599 | 599 | let pmt = i.payments[0] | |
600 | 600 | let usdtAmount = pmt.amount | |
601 | 601 | if (if (!(isDefined(pmt.assetId))) | |
602 | 602 | then true | |
603 | 603 | else (value(pmt.assetId) != usdtAssetId)) | |
604 | 604 | then throw("USDT payments only!") | |
605 | 605 | else if ((MULT6 > usdtAmount)) | |
606 | 606 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
607 | 607 | else { | |
608 | 608 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
609 | 609 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
610 | 610 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
611 | 611 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
612 | 612 | if ((req == req)) | |
613 | 613 | then { | |
614 | 614 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
615 | 615 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
616 | 616 | } | |
617 | 617 | else throw("Strict value is not equal to itself.") | |
618 | 618 | } | |
619 | 619 | } | |
620 | 620 | } | |
621 | 621 | ||
622 | 622 | ||
623 | 623 | ||
624 | 624 | @Callable(i) | |
625 | 625 | func buyAcresREADONLY (usdtAmount) = { | |
626 | 626 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
627 | 627 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
628 | 628 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
629 | 629 | } | |
630 | 630 | ||
631 | 631 | ||
632 | 632 | ||
633 | 633 | @Callable(i) | |
634 | 634 | func sellAcres () = { | |
635 | 635 | let prologActions = prolog(i) | |
636 | 636 | if ((size(i.payments) != 1)) | |
637 | 637 | then throw("exactly 1 payment must be attached") | |
638 | 638 | else { | |
639 | 639 | let pmt = i.payments[0] | |
640 | 640 | let acresAmount = pmt.amount | |
641 | 641 | if (if (!(isDefined(pmt.assetId))) | |
642 | 642 | then true | |
643 | 643 | else (value(pmt.assetId) != acresAssetId)) | |
644 | 644 | then throw("ACRES payments only!") | |
645 | 645 | else if ((MULT7 > acresAmount)) | |
646 | 646 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
647 | 647 | else { | |
648 | 648 | let addr = toString(i.caller) | |
649 | 649 | let $t01467714725 = getSwapLimitAcres() | |
650 | 650 | let limitAction = $t01467714725._1 | |
651 | 651 | let maxUsdt = $t01467714725._2 | |
652 | 652 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
653 | 653 | if ((acresAmount > maxAcres)) | |
654 | 654 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
655 | 655 | else { | |
656 | 656 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
657 | 657 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
658 | 658 | } | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | ||
665 | 665 | @Callable(i) | |
666 | 666 | func sellAcresREADONLY (address,acresAmount) = { | |
667 | 667 | let $t01522115269 = getSwapLimitAcres() | |
668 | 668 | let limitAction = $t01522115269._1 | |
669 | 669 | let maxUsdt = $t01522115269._2 | |
670 | 670 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
671 | 671 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
672 | 672 | } | |
673 | 673 | ||
674 | 674 | ||
675 | 675 | ||
676 | 676 | @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 | + | } | |
700 | 699 | ||
701 | - | ||
702 | - | ||
703 | - | ||
704 | - | ||
705 | - | ||
706 | - | ||
707 | - | ||
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]) | |
708 | 707 | ||
709 | - | ||
710 | - | ||
711 | - | ||
708 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
709 | + | then $a | |
710 | + | else throw("List size exceeds 100") | |
712 | 711 | ||
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.") | |
714 | 726 | } | |
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 | + | } | |
739 | 738 | ||
740 | 739 | ||
741 | 740 | ||
742 | 741 | @Callable(i) | |
743 | 742 | func unstakeLandsREADONLY (address) = { | |
744 | 743 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
745 | 744 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
746 | 745 | let landsResult = if (isDefined(landsStr)) | |
747 | 746 | then { | |
748 | 747 | let lands = split_51C(value(landsStr), "_") | |
749 | 748 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
750 | 749 | then throw("landAssetId is required") | |
751 | 750 | else { | |
752 | 751 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
753 | 752 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
754 | 753 | } | |
755 | 754 | ||
756 | 755 | let $l = lands | |
757 | 756 | let $s = size($l) | |
758 | 757 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
759 | 758 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
760 | 759 | then $a | |
761 | 760 | else oneLand($a, $l[$i]) | |
762 | 761 | ||
763 | 762 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
764 | 763 | then $a | |
765 | 764 | else throw("List size exceeds 100") | |
766 | 765 | ||
767 | 766 | $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) | |
768 | 767 | } | |
769 | 768 | else $Tuple4(0, 0, 0, 0) | |
770 | 769 | $Tuple2(nil, landsResult) | |
771 | 770 | } | |
772 | 771 | ||
773 | 772 | ||
774 | 773 | ||
775 | 774 | @Callable(i) | |
776 | 775 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
777 | 776 | then throw("Permission denied") | |
778 | 777 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
779 | 778 | ||
780 | 779 | ||
781 | 780 | ||
782 | 781 | @Callable(i) | |
783 | 782 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
784 | 783 | let amountKey = keyAcresStakedAmtByUser(address) | |
785 | 784 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
786 | 785 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
787 | 786 | let userFpKey = keyFarmingPowerByUser(address) | |
788 | 787 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
789 | 788 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
790 | - | let $ | |
791 | - | let newBonusedFp = $ | |
792 | - | let ignored = $ | |
789 | + | let $t01942619513 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
790 | + | let newBonusedFp = $t01942619513._1 | |
791 | + | let ignored = $t01942619513._2 | |
793 | 792 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
794 | 793 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
795 | 794 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
796 | 795 | } | |
797 | 796 | ||
798 | 797 | ||
799 | 798 | ||
800 | 799 | @Callable(i) | |
801 | 800 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
802 | 801 | then throw("Permission denied") | |
803 | 802 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
804 | 803 | ||
805 | 804 | ||
806 | 805 | ||
807 | 806 | @Callable(i) | |
808 | 807 | func stakeNFT () = { | |
809 | 808 | let prologActions = prolog(i) | |
810 | 809 | if ((size(i.payments) != 1)) | |
811 | 810 | then throw("Exactly one payment required") | |
812 | 811 | else { | |
813 | 812 | let pmt = value(i.payments[0]) | |
814 | 813 | if ((pmt.amount != 1)) | |
815 | 814 | then throw("NFT token should be attached as payment") | |
816 | 815 | else { | |
817 | 816 | let assetId = value(pmt.assetId) | |
818 | 817 | let asset = value(assetInfo(assetId)) | |
819 | 818 | let assetIdStr = toBase58String(assetId) | |
820 | 819 | let addr = toString(i.caller) | |
821 | 820 | let nftsKey = keyStakedNFTsByOwner(addr) | |
822 | 821 | let nftsStr = getString(nftsKey) | |
823 | 822 | let nfts = if (isDefined(nftsStr)) | |
824 | 823 | then split_4C(value(nftsStr), "_") | |
825 | 824 | else nil | |
826 | 825 | if (containsElement(nfts, assetIdStr)) | |
827 | 826 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
828 | 827 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
829 | 828 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
830 | 829 | else { | |
831 | 830 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
832 | 831 | if ((asset.issuer == this)) | |
833 | 832 | then { | |
834 | - | let $ | |
835 | - | let actions = $ | |
836 | - | let wlgClaimedAmount = $ | |
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 | |
837 | 836 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
838 | 837 | } | |
839 | 838 | else if ((isArkimalIssued(asset) == "")) | |
840 | 839 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
841 | 840 | else { | |
842 | - | let $ | |
843 | - | let actions = $ | |
844 | - | let wlgClaimedAmount = $ | |
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 | |
845 | 844 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
846 | 845 | } | |
847 | 846 | } | |
848 | 847 | } | |
849 | 848 | } | |
850 | 849 | } | |
851 | 850 | ||
852 | 851 | ||
853 | 852 | ||
854 | 853 | @Callable(i) | |
855 | 854 | func unstakeNFT (assetIdStr) = { | |
856 | 855 | let prologActions = prolog(i) | |
857 | 856 | if ((size(i.payments) != 0)) | |
858 | 857 | then throw("No payments required") | |
859 | 858 | else { | |
860 | 859 | let assetId = fromBase58String(assetIdStr) | |
861 | 860 | let addr = toString(i.caller) | |
862 | 861 | let asset = value(assetInfo(assetId)) | |
863 | 862 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
864 | 863 | if (!(isDefined(getInteger(timeKey)))) | |
865 | 864 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
866 | 865 | else { | |
867 | 866 | let nftsKey = keyStakedNFTsByOwner(addr) | |
868 | 867 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
869 | 868 | let idx = indexOf(nfts, assetIdStr) | |
870 | 869 | if (!(isDefined(idx))) | |
871 | 870 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
872 | 871 | else { | |
873 | 872 | let listAction = if ((size(nfts) > 1)) | |
874 | 873 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
875 | 874 | else DeleteEntry(nftsKey) | |
876 | 875 | let isWL = (asset.issuer == this) | |
877 | 876 | if (isWL) | |
878 | 877 | then { | |
879 | 878 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
880 | 879 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
881 | - | let $ | |
882 | - | let actions = $ | |
883 | - | let wlgClaimedAmount = $ | |
880 | + | let $t02260922688 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
881 | + | let actions = $t02260922688._1 | |
882 | + | let wlgClaimedAmount = $t02260922688._2 | |
884 | 883 | $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) | |
885 | 884 | } | |
886 | 885 | else { | |
887 | 886 | let arkimalName = isArkimalIssued(asset) | |
888 | 887 | if ((arkimalName == "")) | |
889 | 888 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
890 | 889 | else { | |
891 | 890 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
892 | - | let $ | |
893 | - | let actions = $ | |
894 | - | let wlgClaimedAmount = $ | |
891 | + | let $t02334823432 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
892 | + | let actions = $t02334823432._1 | |
893 | + | let wlgClaimedAmount = $t02334823432._2 | |
895 | 894 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
896 | 895 | } | |
897 | 896 | } | |
898 | 897 | } | |
899 | 898 | } | |
900 | 899 | } | |
901 | 900 | } | |
902 | 901 | ||
903 | 902 | ||
904 | 903 | ||
905 | 904 | @Callable(i) | |
906 | 905 | func exchangeNFTs () = { | |
907 | 906 | let prologActions = prolog(i) | |
908 | 907 | if ((3 > size(i.payments))) | |
909 | 908 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
910 | 909 | else if ((size(i.payments) > 10)) | |
911 | 910 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
912 | 911 | else { | |
913 | 912 | let addr = toString(i.caller) | |
914 | 913 | func addUp (acc,pmt) = { | |
915 | 914 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
916 | 915 | if ((assetId == wlgAssetId)) | |
917 | 916 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
918 | 917 | else { | |
919 | 918 | let asset = value(assetInfo(assetId)) | |
920 | 919 | if ((asset.issuer != this)) | |
921 | 920 | then throw("Only WL-issued NFTs allowed") | |
922 | 921 | else { | |
923 | 922 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
924 | 923 | if (if ((acc._4 > 0)) | |
925 | 924 | then (rarityIx != acc._4) | |
926 | 925 | else false) | |
927 | 926 | then throw("You can exchange only NFTs of the same rarity") | |
928 | 927 | else { | |
929 | 928 | let bonusPerc = bonusByDescription(value(asset.description)) | |
930 | 929 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
931 | 930 | } | |
932 | 931 | } | |
933 | 932 | } | |
934 | 933 | } | |
935 | 934 | ||
936 | - | let $ | |
935 | + | let $t02482125037 = { | |
937 | 936 | let $l = i.payments | |
938 | 937 | let $s = size($l) | |
939 | 938 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
940 | 939 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
941 | 940 | then $a | |
942 | 941 | else addUp($a, $l[$i]) | |
943 | 942 | ||
944 | 943 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
945 | 944 | then $a | |
946 | 945 | else throw("List size exceeds 10") | |
947 | 946 | ||
948 | 947 | $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) | |
949 | 948 | } | |
950 | - | let wlgFee = $ | |
951 | - | let totalBonus = $ | |
952 | - | let burnActions = $ | |
953 | - | let rarityIdx = $ | |
949 | + | let wlgFee = $t02482125037._1 | |
950 | + | let totalBonus = $t02482125037._2 | |
951 | + | let burnActions = $t02482125037._3 | |
952 | + | let rarityIdx = $t02482125037._4 | |
954 | 953 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
955 | 954 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
956 | 955 | then idxRarityC | |
957 | 956 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
958 | 957 | then idxRarityU | |
959 | 958 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
960 | 959 | else if ((rarityIdx == idxRarityU)) | |
961 | 960 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
962 | 961 | then idxRarityU | |
963 | 962 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
964 | 963 | then idxRarityL | |
965 | 964 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
966 | 965 | else if ((rarityIdx == idxRarityL)) | |
967 | 966 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
968 | 967 | then idxRarityL | |
969 | 968 | else idxRarityE | |
970 | 969 | else if ((rarityIdx == idxRarityE)) | |
971 | 970 | then idxRarityE | |
972 | 971 | else if ((rarityIdx == idxRarityP)) | |
973 | 972 | then throw("You can't exchange NFTs of this rarity") | |
974 | 973 | else throw("Unknown rarity") | |
975 | 974 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
976 | 975 | let change = (wlgFee - minWlgFee) | |
977 | 976 | let forTeam = (minWlgFee / 2) | |
978 | 977 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
979 | 978 | if ((0 > change)) | |
980 | 979 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
981 | 980 | else { | |
982 | 981 | let changeActions = if ((change > 0)) | |
983 | 982 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
984 | 983 | else nil | |
985 | - | let $ | |
986 | - | let issueNftActions = $ | |
987 | - | let nftAssetId = $ | |
984 | + | let $t02657426735 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
985 | + | let issueNftActions = $t02657426735._1 | |
986 | + | let nftAssetId = $t02657426735._2 | |
988 | 987 | let burned = size(burnActions) | |
989 | 988 | let burnCounterActions = if ((burned == 0)) | |
990 | 989 | then nil | |
991 | 990 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
992 | 991 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
993 | 992 | } | |
994 | 993 | } | |
995 | 994 | } | |
996 | 995 | ||
997 | 996 | ||
998 | 997 | ||
999 | 998 | @Callable(i) | |
1000 | 999 | func openNftChest () = { | |
1001 | 1000 | let prologActions = prolog(i) | |
1002 | 1001 | if ((size(i.payments) != 1)) | |
1003 | 1002 | then throw("exactly 1 payment must be attached") | |
1004 | 1003 | else { | |
1005 | 1004 | let pmt = i.payments[0] | |
1006 | 1005 | let wlgAmount = pmt.amount | |
1007 | 1006 | if (if (!(isDefined(pmt.assetId))) | |
1008 | 1007 | then true | |
1009 | 1008 | else (value(pmt.assetId) != wlgAssetId)) | |
1010 | 1009 | then throw("WLGOLD payments only!") | |
1011 | 1010 | else { | |
1012 | 1011 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1013 | 1012 | let change = (wlgAmount - minWlgFee) | |
1014 | 1013 | let forTeam = (minWlgFee / 2) | |
1015 | 1014 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1016 | 1015 | if ((0 > change)) | |
1017 | 1016 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1018 | 1017 | else { | |
1019 | 1018 | let changeActions = if ((change > 0)) | |
1020 | 1019 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1021 | 1020 | else nil | |
1022 | 1021 | let addr = toString(i.caller) | |
1023 | 1022 | let finishKey = keyCommit(addr) | |
1024 | 1023 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1025 | 1024 | if ((finishBlock > height)) | |
1026 | 1025 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1027 | 1026 | else { | |
1028 | 1027 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1029 | 1028 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1030 | 1029 | let rand = getRandomNumber(100, salt, entropy) | |
1031 | - | let $ | |
1030 | + | let $t02875429026 = if ((84 > rand)) | |
1032 | 1031 | then $Tuple2(1, idxRarityC) | |
1033 | 1032 | else if ((98 > rand)) | |
1034 | 1033 | then $Tuple2(5, idxRarityU) | |
1035 | 1034 | else $Tuple2(10, idxRarityL) | |
1036 | - | let bonus = $ | |
1037 | - | let rarityIdx = $ | |
1038 | - | let $ | |
1039 | - | let issueNftActions = $ | |
1040 | - | let nftAssetId = $ | |
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 | |
1041 | 1040 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1042 | 1041 | } | |
1043 | 1042 | } | |
1044 | 1043 | } | |
1045 | 1044 | } | |
1046 | 1045 | } | |
1047 | 1046 | ||
1048 | 1047 | ||
1049 | 1048 | ||
1050 | 1049 | @Callable(i) | |
1051 | 1050 | func commitForRandom () = { | |
1052 | 1051 | let prologActions = prolog(i) | |
1053 | 1052 | let addr = toString(i.caller) | |
1054 | 1053 | let finishKey = keyCommit(addr) | |
1055 | 1054 | if (isDefined(getInteger(finishKey))) | |
1056 | 1055 | then throw("You already commited for random, please use it") | |
1057 | 1056 | else { | |
1058 | 1057 | let finishBlock = (height + RANDOM_DELAY) | |
1059 | 1058 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1060 | 1059 | } | |
1061 | 1060 | } | |
1062 | 1061 | ||
1063 | 1062 |
github/deemru/w8io/026f985 116.48 ms ◑