tx · HvCawoY6qa1VZjPv49TbxwWpKWfphHMy5HgEJcmw8P66 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03200000 Waves 2024.12.04 05:32 [3399306] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "HvCawoY6qa1VZjPv49TbxwWpKWfphHMy5HgEJcmw8P66", "fee": 3200000, "feeAssetId": null, "timestamp": 1733279619301, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "5akVR6ggudTbsLYSaquWvWRcGhzLZw1K1dxsaCVZx7gUAMDbaSk8ftEyFX98r4WmaxQDUFWCqMEoHnNCBSmb4xkt" ], "script": "base64:BgJJCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAHsAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFBy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EZvclJhbmRvbQAEDXByb2xvZ0FjdGlvbnMJAQZwcm9sb2cBBQFpBARhZGRyCQClCAEIBQFpBmNhbGxlcgQJZmluaXNoS2V5CQEJa2V5Q29tbWl0AQUEYWRkcgMJAQlpc0RlZmluZWQBCQCfCAEFCWZpbmlzaEtleQkAAgECLllvdSBhbHJlYWR5IGNvbW1pdGVkIGZvciByYW5kb20sIHBsZWFzZSB1c2UgaXQEC2ZpbmlzaEJsb2NrCQBkAgUGaGVpZ2h0BQxSQU5ET01fREVMQVkJAJQKAgkAzggCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQlmaW5pc2hLZXkFC2ZpbmlzaEJsb2NrBQNuaWwFDXByb2xvZ0FjdGlvbnMFC2ZpbmlzaEJsb2NrACGAZdw=", "height": 3399306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4vY3L7qma3SafmA9b2JMPazTtWoxGvxkRjGArCnJQVyU Next: 2rUbxR6F7QRUAqNdb5GbvuiF4bZv1KPnLSR1RUCGk5oL Diff:
Old | New | Differences | |
---|---|---|---|
677 | 677 | ||
678 | 678 | ||
679 | 679 | @Callable(i) | |
680 | - | func convertOldStakes () = if ((i.caller != this)) | |
681 | - | then throw("Temporarily disabled") | |
682 | - | else { | |
683 | - | let prologActions = prolog(i) | |
684 | - | let address = toString(i.caller) | |
685 | - | if ((size(i.payments) != 0)) | |
686 | - | then throw("No payments required") | |
687 | - | else { | |
688 | - | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
689 | - | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
690 | - | let gotAcres0 = if ((amount > 0)) | |
691 | - | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
692 | - | else $Tuple2(0, 0) | |
693 | - | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
694 | - | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
695 | - | let landsResult = if (isDefined(landsStr)) | |
696 | - | then { | |
697 | - | let lands = split_51C(value(landsStr), "_") | |
698 | - | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
699 | - | then throw("landAssetId is required") | |
700 | - | else { | |
701 | - | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
702 | - | $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
703 | - | } | |
680 | + | func convertOldStakes () = { | |
681 | + | let prologActions = prolog(i) | |
682 | + | let address = toString(i.caller) | |
683 | + | if ((size(i.payments) != 0)) | |
684 | + | then throw("No payments required") | |
685 | + | else { | |
686 | + | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
687 | + | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
688 | + | let gotAcres0 = if ((amount > 0)) | |
689 | + | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
690 | + | else $Tuple2(0, 0) | |
691 | + | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
692 | + | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
693 | + | let landsResult = if (isDefined(landsStr)) | |
694 | + | then { | |
695 | + | let lands = split_51C(value(landsStr), "_") | |
696 | + | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
697 | + | then throw("landAssetId is required") | |
698 | + | else { | |
699 | + | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
700 | + | $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
701 | + | } | |
704 | 702 | ||
705 | - | ||
706 | - | ||
707 | - | ||
708 | - | ||
709 | - | ||
710 | - | ||
711 | - | ||
703 | + | let rr = { | |
704 | + | let $l = lands | |
705 | + | let $s = size($l) | |
706 | + | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
707 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
708 | + | then $a | |
709 | + | else oneLand($a, $l[$i]) | |
712 | 710 | ||
713 | - | ||
714 | - | ||
715 | - | ||
711 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
712 | + | then $a | |
713 | + | else throw("List size exceeds 100") | |
716 | 714 | ||
717 | - | $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) | |
715 | + | $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) | |
716 | + | } | |
717 | + | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
718 | + | if ((finalize == finalize)) | |
719 | + | then { | |
720 | + | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
721 | + | if ((req == req)) | |
722 | + | then { | |
723 | + | let $t01731517453 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
724 | + | let nftActions = $t01731517453._1 | |
725 | + | let nftAssetId = $t01731517453._2 | |
726 | + | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
727 | + | } | |
728 | + | else throw("Strict value is not equal to itself.") | |
718 | 729 | } | |
719 | - | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
720 | - | if ((finalize == finalize)) | |
721 | - | then { | |
722 | - | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
723 | - | if ((req == req)) | |
724 | - | then { | |
725 | - | let $t01731417452 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
726 | - | let nftActions = $t01731417452._1 | |
727 | - | let nftAssetId = $t01731417452._2 | |
728 | - | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
729 | - | } | |
730 | - | else throw("Strict value is not equal to itself.") | |
731 | - | } | |
732 | - | else throw("Strict value is not equal to itself.") | |
733 | - | } | |
734 | - | else $Tuple6(0, 0, 0, 0, 0, nil) | |
735 | - | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
736 | - | let duckResult = if ((duckAssetId != "")) | |
737 | - | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
738 | - | else $Tuple3(0, 0, 0) | |
739 | - | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
740 | - | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
741 | - | } | |
742 | - | } | |
730 | + | else throw("Strict value is not equal to itself.") | |
731 | + | } | |
732 | + | else $Tuple6(0, 0, 0, 0, 0, nil) | |
733 | + | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
734 | + | let duckResult = if ((duckAssetId != "")) | |
735 | + | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
736 | + | else $Tuple3(0, 0, 0) | |
737 | + | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
738 | + | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
739 | + | } | |
740 | + | } | |
743 | 741 | ||
744 | 742 | ||
745 | 743 | ||
791 | 789 | let userFpKey = keyFarmingPowerByUser(address) | |
792 | 790 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
793 | 791 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
794 | - | let $ | |
795 | - | let newBonusedFp = $ | |
796 | - | let ignored = $ | |
792 | + | let $t01967719764 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
793 | + | let newBonusedFp = $t01967719764._1 | |
794 | + | let ignored = $t01967719764._2 | |
797 | 795 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
798 | 796 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
799 | 797 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
835 | 833 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
836 | 834 | if ((asset.issuer == this)) | |
837 | 835 | then { | |
838 | - | let $ | |
839 | - | let actions = $ | |
840 | - | let wlgClaimedAmount = $ | |
836 | + | let $t02117321363 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
837 | + | let actions = $t02117321363._1 | |
838 | + | let wlgClaimedAmount = $t02117321363._2 | |
841 | 839 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
842 | 840 | } | |
843 | 841 | else if ((isArkimalIssued(asset) == "")) | |
844 | 842 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
845 | 843 | else { | |
846 | - | let $ | |
847 | - | let actions = $ | |
848 | - | let wlgClaimedAmount = $ | |
844 | + | let $t02154421695 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
845 | + | let actions = $t02154421695._1 | |
846 | + | let wlgClaimedAmount = $t02154421695._2 | |
849 | 847 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
850 | 848 | } | |
851 | 849 | } | |
882 | 880 | then { | |
883 | 881 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
884 | 882 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
885 | - | let $ | |
886 | - | let actions = $ | |
887 | - | let wlgClaimedAmount = $ | |
883 | + | let $t02286022939 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
884 | + | let actions = $t02286022939._1 | |
885 | + | let wlgClaimedAmount = $t02286022939._2 | |
888 | 886 | $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) | |
889 | 887 | } | |
890 | 888 | else { | |
893 | 891 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
894 | 892 | else { | |
895 | 893 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
896 | - | let $ | |
897 | - | let actions = $ | |
898 | - | let wlgClaimedAmount = $ | |
894 | + | let $t02359923683 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
895 | + | let actions = $t02359923683._1 | |
896 | + | let wlgClaimedAmount = $t02359923683._2 | |
899 | 897 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
900 | 898 | } | |
901 | 899 | } | |
937 | 935 | } | |
938 | 936 | } | |
939 | 937 | ||
940 | - | let $ | |
938 | + | let $t02507225288 = { | |
941 | 939 | let $l = i.payments | |
942 | 940 | let $s = size($l) | |
943 | 941 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
951 | 949 | ||
952 | 950 | $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) | |
953 | 951 | } | |
954 | - | let wlgFee = $ | |
955 | - | let totalBonus = $ | |
956 | - | let burnActions = $ | |
957 | - | let rarityIdx = $ | |
952 | + | let wlgFee = $t02507225288._1 | |
953 | + | let totalBonus = $t02507225288._2 | |
954 | + | let burnActions = $t02507225288._3 | |
955 | + | let rarityIdx = $t02507225288._4 | |
958 | 956 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
959 | 957 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
960 | 958 | then idxRarityC | |
986 | 984 | let changeActions = if ((change > 0)) | |
987 | 985 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
988 | 986 | else nil | |
989 | - | let $ | |
990 | - | let issueNftActions = $ | |
991 | - | let nftAssetId = $ | |
987 | + | let $t02682526986 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
988 | + | let issueNftActions = $t02682526986._1 | |
989 | + | let nftAssetId = $t02682526986._2 | |
992 | 990 | let burned = size(burnActions) | |
993 | 991 | let burnCounterActions = if ((burned == 0)) | |
994 | 992 | then nil | |
1032 | 1030 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1033 | 1031 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1034 | 1032 | let rand = getRandomNumber(100, salt, entropy) | |
1035 | - | let $ | |
1033 | + | let $t02900529277 = if ((84 > rand)) | |
1036 | 1034 | then $Tuple2(1, idxRarityC) | |
1037 | 1035 | else if ((98 > rand)) | |
1038 | 1036 | then $Tuple2(5, idxRarityU) | |
1039 | 1037 | else $Tuple2(10, idxRarityL) | |
1040 | - | let bonus = $ | |
1041 | - | let rarityIdx = $ | |
1042 | - | let $ | |
1043 | - | let issueNftActions = $ | |
1044 | - | let nftAssetId = $ | |
1038 | + | let bonus = $t02900529277._1 | |
1039 | + | let rarityIdx = $t02900529277._2 | |
1040 | + | let $t02928029430 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1041 | + | let issueNftActions = $t02928029430._1 | |
1042 | + | let nftAssetId = $t02928029430._2 | |
1045 | 1043 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1046 | 1044 | } | |
1047 | 1045 | } |
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, true], 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 $t063056404 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
421 | 421 | let newBonusedFp = $t063056404._1 | |
422 | 422 | let ignored = $t063056404._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 | let bonusActions = if ((bonusDelta == 0)) | |
428 | 428 | then nil | |
429 | 429 | else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))] | |
430 | 430 | $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult) | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | } | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | func getWlgPrice (usdtBalanceCorrection) = { | |
439 | 439 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
440 | 440 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
441 | 441 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
442 | 442 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
443 | 443 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
444 | 444 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func getSwapLimitAcres () = { | |
449 | 449 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
450 | 450 | let acres2Usd = assetBalance(this, usdtAssetId) | |
451 | 451 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
452 | 452 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
453 | 453 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
454 | 454 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
455 | 455 | let now = lastBlock.timestamp | |
456 | 456 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
457 | 457 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
458 | 458 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
459 | 459 | } | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
463 | 463 | ||
464 | 464 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
465 | 465 | ||
466 | 466 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
467 | 467 | ||
468 | 468 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
469 | 469 | ||
470 | 470 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
471 | 471 | ||
472 | 472 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
473 | 473 | ||
474 | 474 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
475 | 475 | ||
476 | 476 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
477 | 477 | ||
478 | 478 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
479 | 479 | ||
480 | 480 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
481 | 481 | ||
482 | 482 | func isArkimalIssued (nfo) = { | |
483 | 483 | let issuer = toString(nfo.issuer) | |
484 | 484 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
485 | 485 | then (issuer == oldStakingContractStr) | |
486 | 486 | else false) | |
487 | 487 | then true | |
488 | 488 | else (issuer == incubator)) | |
489 | 489 | then true | |
490 | 490 | else (issuer == breeder)) | |
491 | 491 | then true | |
492 | 492 | else (issuer == turtleIncubator)) | |
493 | 493 | then true | |
494 | 494 | else (issuer == turtleBreeder)) | |
495 | 495 | then true | |
496 | 496 | else (issuer == canineIncubator)) | |
497 | 497 | then true | |
498 | 498 | else (issuer == canineBreeder)) | |
499 | 499 | then true | |
500 | 500 | else (issuer == felineIncubator)) | |
501 | 501 | then true | |
502 | 502 | else (issuer == felineBreeder)) | |
503 | 503 | then nfo.name | |
504 | 504 | else if ((issuer == mutantBreeder)) | |
505 | 505 | then nfo.description | |
506 | 506 | else "" | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
511 | 511 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
512 | 512 | if ((nftNumber >= limit)) | |
513 | 513 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
514 | 514 | else { | |
515 | 515 | let $t01068310759 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
516 | 516 | let actions = $t01068310759._1 | |
517 | 517 | let wlgClaimedAmount = $t01068310759._2 | |
518 | 518 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
519 | 519 | } | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | @Callable(i) | |
524 | 524 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
525 | 525 | then throw("Access denied") | |
526 | 526 | else $Tuple2(prolog(i), 42) | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(i) | |
531 | 531 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
532 | 532 | then throw("Permission denied") | |
533 | 533 | else { | |
534 | 534 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
535 | 535 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(i) | |
541 | 541 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
542 | 542 | then throw("permission denied") | |
543 | 543 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | ||
547 | 547 | @Callable(i) | |
548 | 548 | func unstakeAcres (amount) = { | |
549 | 549 | let prologActions = prolog(i) | |
550 | 550 | if ((0 >= amount)) | |
551 | 551 | then throw("Amount should be positive") | |
552 | 552 | else { | |
553 | 553 | let address = toString(i.caller) | |
554 | 554 | if ((size(i.payments) != 0)) | |
555 | 555 | then throw("No payments required") | |
556 | 556 | else { | |
557 | 557 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
558 | 558 | if ((arbReleaseTime > lastBlock.timestamp)) | |
559 | 559 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
560 | 560 | else { | |
561 | 561 | let $t01233312413 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
562 | 562 | let actions = $t01233312413._1 | |
563 | 563 | let wlgClaimedAmount = $t01233312413._2 | |
564 | 564 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
565 | 565 | } | |
566 | 566 | } | |
567 | 567 | } | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | ||
572 | 572 | @Callable(i) | |
573 | 573 | func stakeAcres () = { | |
574 | 574 | let prologActions = prolog(i) | |
575 | 575 | let address = toString(i.caller) | |
576 | 576 | if ((size(i.payments) != 1)) | |
577 | 577 | then throw("exactly 1 payment must be attached") | |
578 | 578 | else { | |
579 | 579 | let pmt = i.payments[0] | |
580 | 580 | let amt = pmt.amount | |
581 | 581 | if (if (!(isDefined(pmt.assetId))) | |
582 | 582 | then true | |
583 | 583 | else (value(pmt.assetId) != acresAssetId)) | |
584 | 584 | then throw("ACRES payments only!") | |
585 | 585 | else { | |
586 | 586 | let $t01286412940 = stakeUnstakeAcresInternal(amt, address, 0) | |
587 | 587 | let actions = $t01286412940._1 | |
588 | 588 | let wlgClaimedAmount = $t01286412940._2 | |
589 | 589 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
590 | 590 | } | |
591 | 591 | } | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | ||
596 | 596 | @Callable(i) | |
597 | 597 | func buyAcres () = { | |
598 | 598 | let prologActions = prolog(i) | |
599 | 599 | if ((size(i.payments) != 1)) | |
600 | 600 | then throw("exactly 1 payment must be attached") | |
601 | 601 | else { | |
602 | 602 | let pmt = i.payments[0] | |
603 | 603 | let usdtAmount = pmt.amount | |
604 | 604 | if (if (!(isDefined(pmt.assetId))) | |
605 | 605 | then true | |
606 | 606 | else (value(pmt.assetId) != usdtAssetId)) | |
607 | 607 | then throw("USDT payments only!") | |
608 | 608 | else if ((MULT6 > usdtAmount)) | |
609 | 609 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
610 | 610 | else { | |
611 | 611 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
612 | 612 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
613 | 613 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
614 | 614 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
615 | 615 | if ((req == req)) | |
616 | 616 | then { | |
617 | 617 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
618 | 618 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
619 | 619 | } | |
620 | 620 | else throw("Strict value is not equal to itself.") | |
621 | 621 | } | |
622 | 622 | } | |
623 | 623 | } | |
624 | 624 | ||
625 | 625 | ||
626 | 626 | ||
627 | 627 | @Callable(i) | |
628 | 628 | func buyAcresREADONLY (usdtAmount) = { | |
629 | 629 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
630 | 630 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
631 | 631 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
632 | 632 | } | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | 636 | @Callable(i) | |
637 | 637 | func sellAcres () = { | |
638 | 638 | let prologActions = prolog(i) | |
639 | 639 | if ((size(i.payments) != 1)) | |
640 | 640 | then throw("exactly 1 payment must be attached") | |
641 | 641 | else { | |
642 | 642 | let pmt = i.payments[0] | |
643 | 643 | let acresAmount = pmt.amount | |
644 | 644 | if (if (!(isDefined(pmt.assetId))) | |
645 | 645 | then true | |
646 | 646 | else (value(pmt.assetId) != acresAssetId)) | |
647 | 647 | then throw("ACRES payments only!") | |
648 | 648 | else if ((MULT7 > acresAmount)) | |
649 | 649 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
650 | 650 | else { | |
651 | 651 | let addr = toString(i.caller) | |
652 | 652 | let $t01479714845 = getSwapLimitAcres() | |
653 | 653 | let limitAction = $t01479714845._1 | |
654 | 654 | let maxUsdt = $t01479714845._2 | |
655 | 655 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
656 | 656 | if ((acresAmount > maxAcres)) | |
657 | 657 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
658 | 658 | else { | |
659 | 659 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
660 | 660 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
661 | 661 | } | |
662 | 662 | } | |
663 | 663 | } | |
664 | 664 | } | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(i) | |
669 | 669 | func sellAcresREADONLY (address,acresAmount) = { | |
670 | 670 | let $t01534115389 = getSwapLimitAcres() | |
671 | 671 | let limitAction = $t01534115389._1 | |
672 | 672 | let maxUsdt = $t01534115389._2 | |
673 | 673 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
674 | 674 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
675 | 675 | } | |
676 | 676 | ||
677 | 677 | ||
678 | 678 | ||
679 | 679 | @Callable(i) | |
680 | - | func convertOldStakes () = if ((i.caller != this)) | |
681 | - | then throw("Temporarily disabled") | |
682 | - | else { | |
683 | - | let prologActions = prolog(i) | |
684 | - | let address = toString(i.caller) | |
685 | - | if ((size(i.payments) != 0)) | |
686 | - | then throw("No payments required") | |
687 | - | else { | |
688 | - | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
689 | - | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
690 | - | let gotAcres0 = if ((amount > 0)) | |
691 | - | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
692 | - | else $Tuple2(0, 0) | |
693 | - | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
694 | - | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
695 | - | let landsResult = if (isDefined(landsStr)) | |
696 | - | then { | |
697 | - | let lands = split_51C(value(landsStr), "_") | |
698 | - | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
699 | - | then throw("landAssetId is required") | |
700 | - | else { | |
701 | - | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
702 | - | $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
703 | - | } | |
680 | + | func convertOldStakes () = { | |
681 | + | let prologActions = prolog(i) | |
682 | + | let address = toString(i.caller) | |
683 | + | if ((size(i.payments) != 0)) | |
684 | + | then throw("No payments required") | |
685 | + | else { | |
686 | + | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
687 | + | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
688 | + | let gotAcres0 = if ((amount > 0)) | |
689 | + | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
690 | + | else $Tuple2(0, 0) | |
691 | + | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
692 | + | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
693 | + | let landsResult = if (isDefined(landsStr)) | |
694 | + | then { | |
695 | + | let lands = split_51C(value(landsStr), "_") | |
696 | + | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
697 | + | then throw("landAssetId is required") | |
698 | + | else { | |
699 | + | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
700 | + | $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
701 | + | } | |
704 | 702 | ||
705 | - | ||
706 | - | ||
707 | - | ||
708 | - | ||
709 | - | ||
710 | - | ||
711 | - | ||
703 | + | let rr = { | |
704 | + | let $l = lands | |
705 | + | let $s = size($l) | |
706 | + | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
707 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
708 | + | then $a | |
709 | + | else oneLand($a, $l[$i]) | |
712 | 710 | ||
713 | - | ||
714 | - | ||
715 | - | ||
711 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
712 | + | then $a | |
713 | + | else throw("List size exceeds 100") | |
716 | 714 | ||
717 | - | $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) | |
715 | + | $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) | |
716 | + | } | |
717 | + | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
718 | + | if ((finalize == finalize)) | |
719 | + | then { | |
720 | + | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
721 | + | if ((req == req)) | |
722 | + | then { | |
723 | + | let $t01731517453 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
724 | + | let nftActions = $t01731517453._1 | |
725 | + | let nftAssetId = $t01731517453._2 | |
726 | + | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
727 | + | } | |
728 | + | else throw("Strict value is not equal to itself.") | |
718 | 729 | } | |
719 | - | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
720 | - | if ((finalize == finalize)) | |
721 | - | then { | |
722 | - | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
723 | - | if ((req == req)) | |
724 | - | then { | |
725 | - | let $t01731417452 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
726 | - | let nftActions = $t01731417452._1 | |
727 | - | let nftAssetId = $t01731417452._2 | |
728 | - | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
729 | - | } | |
730 | - | else throw("Strict value is not equal to itself.") | |
731 | - | } | |
732 | - | else throw("Strict value is not equal to itself.") | |
733 | - | } | |
734 | - | else $Tuple6(0, 0, 0, 0, 0, nil) | |
735 | - | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
736 | - | let duckResult = if ((duckAssetId != "")) | |
737 | - | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
738 | - | else $Tuple3(0, 0, 0) | |
739 | - | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
740 | - | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
741 | - | } | |
742 | - | } | |
730 | + | else throw("Strict value is not equal to itself.") | |
731 | + | } | |
732 | + | else $Tuple6(0, 0, 0, 0, 0, nil) | |
733 | + | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
734 | + | let duckResult = if ((duckAssetId != "")) | |
735 | + | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
736 | + | else $Tuple3(0, 0, 0) | |
737 | + | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
738 | + | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
739 | + | } | |
740 | + | } | |
743 | 741 | ||
744 | 742 | ||
745 | 743 | ||
746 | 744 | @Callable(i) | |
747 | 745 | func unstakeLandsREADONLY (address) = { | |
748 | 746 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
749 | 747 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
750 | 748 | let landsResult = if (isDefined(landsStr)) | |
751 | 749 | then { | |
752 | 750 | let lands = split_51C(value(landsStr), "_") | |
753 | 751 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
754 | 752 | then throw("landAssetId is required") | |
755 | 753 | else { | |
756 | 754 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
757 | 755 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
758 | 756 | } | |
759 | 757 | ||
760 | 758 | let $l = lands | |
761 | 759 | let $s = size($l) | |
762 | 760 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
763 | 761 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
764 | 762 | then $a | |
765 | 763 | else oneLand($a, $l[$i]) | |
766 | 764 | ||
767 | 765 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
768 | 766 | then $a | |
769 | 767 | else throw("List size exceeds 100") | |
770 | 768 | ||
771 | 769 | $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) | |
772 | 770 | } | |
773 | 771 | else $Tuple4(0, 0, 0, 0) | |
774 | 772 | $Tuple2(nil, landsResult) | |
775 | 773 | } | |
776 | 774 | ||
777 | 775 | ||
778 | 776 | ||
779 | 777 | @Callable(i) | |
780 | 778 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
781 | 779 | then throw("Permission denied") | |
782 | 780 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
783 | 781 | ||
784 | 782 | ||
785 | 783 | ||
786 | 784 | @Callable(i) | |
787 | 785 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
788 | 786 | let amountKey = keyAcresStakedAmtByUser(address) | |
789 | 787 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
790 | 788 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
791 | 789 | let userFpKey = keyFarmingPowerByUser(address) | |
792 | 790 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
793 | 791 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
794 | - | let $ | |
795 | - | let newBonusedFp = $ | |
796 | - | let ignored = $ | |
792 | + | let $t01967719764 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
793 | + | let newBonusedFp = $t01967719764._1 | |
794 | + | let ignored = $t01967719764._2 | |
797 | 795 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
798 | 796 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
799 | 797 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
800 | 798 | } | |
801 | 799 | ||
802 | 800 | ||
803 | 801 | ||
804 | 802 | @Callable(i) | |
805 | 803 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
806 | 804 | then throw("Permission denied") | |
807 | 805 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
808 | 806 | ||
809 | 807 | ||
810 | 808 | ||
811 | 809 | @Callable(i) | |
812 | 810 | func stakeNFT () = { | |
813 | 811 | let prologActions = prolog(i) | |
814 | 812 | if ((size(i.payments) != 1)) | |
815 | 813 | then throw("Exactly one payment required") | |
816 | 814 | else { | |
817 | 815 | let pmt = value(i.payments[0]) | |
818 | 816 | if ((pmt.amount != 1)) | |
819 | 817 | then throw("NFT token should be attached as payment") | |
820 | 818 | else { | |
821 | 819 | let assetId = value(pmt.assetId) | |
822 | 820 | let asset = value(assetInfo(assetId)) | |
823 | 821 | let assetIdStr = toBase58String(assetId) | |
824 | 822 | let addr = toString(i.caller) | |
825 | 823 | let nftsKey = keyStakedNFTsByOwner(addr) | |
826 | 824 | let nftsStr = getString(nftsKey) | |
827 | 825 | let nfts = if (isDefined(nftsStr)) | |
828 | 826 | then split_4C(value(nftsStr), "_") | |
829 | 827 | else nil | |
830 | 828 | if (containsElement(nfts, assetIdStr)) | |
831 | 829 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
832 | 830 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
833 | 831 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
834 | 832 | else { | |
835 | 833 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
836 | 834 | if ((asset.issuer == this)) | |
837 | 835 | then { | |
838 | - | let $ | |
839 | - | let actions = $ | |
840 | - | let wlgClaimedAmount = $ | |
836 | + | let $t02117321363 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
837 | + | let actions = $t02117321363._1 | |
838 | + | let wlgClaimedAmount = $t02117321363._2 | |
841 | 839 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
842 | 840 | } | |
843 | 841 | else if ((isArkimalIssued(asset) == "")) | |
844 | 842 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
845 | 843 | else { | |
846 | - | let $ | |
847 | - | let actions = $ | |
848 | - | let wlgClaimedAmount = $ | |
844 | + | let $t02154421695 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
845 | + | let actions = $t02154421695._1 | |
846 | + | let wlgClaimedAmount = $t02154421695._2 | |
849 | 847 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
850 | 848 | } | |
851 | 849 | } | |
852 | 850 | } | |
853 | 851 | } | |
854 | 852 | } | |
855 | 853 | ||
856 | 854 | ||
857 | 855 | ||
858 | 856 | @Callable(i) | |
859 | 857 | func unstakeNFT (assetIdStr) = { | |
860 | 858 | let prologActions = prolog(i) | |
861 | 859 | if ((size(i.payments) != 0)) | |
862 | 860 | then throw("No payments required") | |
863 | 861 | else { | |
864 | 862 | let assetId = fromBase58String(assetIdStr) | |
865 | 863 | let addr = toString(i.caller) | |
866 | 864 | let asset = value(assetInfo(assetId)) | |
867 | 865 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
868 | 866 | if (!(isDefined(getInteger(timeKey)))) | |
869 | 867 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
870 | 868 | else { | |
871 | 869 | let nftsKey = keyStakedNFTsByOwner(addr) | |
872 | 870 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
873 | 871 | let idx = indexOf(nfts, assetIdStr) | |
874 | 872 | if (!(isDefined(idx))) | |
875 | 873 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
876 | 874 | else { | |
877 | 875 | let listAction = if ((size(nfts) > 1)) | |
878 | 876 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
879 | 877 | else DeleteEntry(nftsKey) | |
880 | 878 | let isWL = (asset.issuer == this) | |
881 | 879 | if (isWL) | |
882 | 880 | then { | |
883 | 881 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
884 | 882 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
885 | - | let $ | |
886 | - | let actions = $ | |
887 | - | let wlgClaimedAmount = $ | |
883 | + | let $t02286022939 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
884 | + | let actions = $t02286022939._1 | |
885 | + | let wlgClaimedAmount = $t02286022939._2 | |
888 | 886 | $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) | |
889 | 887 | } | |
890 | 888 | else { | |
891 | 889 | let arkimalName = isArkimalIssued(asset) | |
892 | 890 | if ((arkimalName == "")) | |
893 | 891 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
894 | 892 | else { | |
895 | 893 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
896 | - | let $ | |
897 | - | let actions = $ | |
898 | - | let wlgClaimedAmount = $ | |
894 | + | let $t02359923683 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
895 | + | let actions = $t02359923683._1 | |
896 | + | let wlgClaimedAmount = $t02359923683._2 | |
899 | 897 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
900 | 898 | } | |
901 | 899 | } | |
902 | 900 | } | |
903 | 901 | } | |
904 | 902 | } | |
905 | 903 | } | |
906 | 904 | ||
907 | 905 | ||
908 | 906 | ||
909 | 907 | @Callable(i) | |
910 | 908 | func exchangeNFTs () = { | |
911 | 909 | let prologActions = prolog(i) | |
912 | 910 | if ((3 > size(i.payments))) | |
913 | 911 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
914 | 912 | else if ((size(i.payments) > 10)) | |
915 | 913 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
916 | 914 | else { | |
917 | 915 | let addr = toString(i.caller) | |
918 | 916 | func addUp (acc,pmt) = { | |
919 | 917 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
920 | 918 | if ((assetId == wlgAssetId)) | |
921 | 919 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
922 | 920 | else { | |
923 | 921 | let asset = value(assetInfo(assetId)) | |
924 | 922 | if ((asset.issuer != this)) | |
925 | 923 | then throw("Only WL-issued NFTs allowed") | |
926 | 924 | else { | |
927 | 925 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
928 | 926 | if (if ((acc._4 > 0)) | |
929 | 927 | then (rarityIx != acc._4) | |
930 | 928 | else false) | |
931 | 929 | then throw("You can exchange only NFTs of the same rarity") | |
932 | 930 | else { | |
933 | 931 | let bonusPerc = bonusByDescription(value(asset.description)) | |
934 | 932 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
935 | 933 | } | |
936 | 934 | } | |
937 | 935 | } | |
938 | 936 | } | |
939 | 937 | ||
940 | - | let $ | |
938 | + | let $t02507225288 = { | |
941 | 939 | let $l = i.payments | |
942 | 940 | let $s = size($l) | |
943 | 941 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
944 | 942 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
945 | 943 | then $a | |
946 | 944 | else addUp($a, $l[$i]) | |
947 | 945 | ||
948 | 946 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
949 | 947 | then $a | |
950 | 948 | else throw("List size exceeds 10") | |
951 | 949 | ||
952 | 950 | $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) | |
953 | 951 | } | |
954 | - | let wlgFee = $ | |
955 | - | let totalBonus = $ | |
956 | - | let burnActions = $ | |
957 | - | let rarityIdx = $ | |
952 | + | let wlgFee = $t02507225288._1 | |
953 | + | let totalBonus = $t02507225288._2 | |
954 | + | let burnActions = $t02507225288._3 | |
955 | + | let rarityIdx = $t02507225288._4 | |
958 | 956 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
959 | 957 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
960 | 958 | then idxRarityC | |
961 | 959 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
962 | 960 | then idxRarityU | |
963 | 961 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
964 | 962 | else if ((rarityIdx == idxRarityU)) | |
965 | 963 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
966 | 964 | then idxRarityU | |
967 | 965 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
968 | 966 | then idxRarityL | |
969 | 967 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
970 | 968 | else if ((rarityIdx == idxRarityL)) | |
971 | 969 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
972 | 970 | then idxRarityL | |
973 | 971 | else idxRarityE | |
974 | 972 | else if ((rarityIdx == idxRarityE)) | |
975 | 973 | then idxRarityE | |
976 | 974 | else if ((rarityIdx == idxRarityP)) | |
977 | 975 | then throw("You can't exchange NFTs of this rarity") | |
978 | 976 | else throw("Unknown rarity") | |
979 | 977 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
980 | 978 | let change = (wlgFee - minWlgFee) | |
981 | 979 | let forTeam = (minWlgFee / 2) | |
982 | 980 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
983 | 981 | if ((0 > change)) | |
984 | 982 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
985 | 983 | else { | |
986 | 984 | let changeActions = if ((change > 0)) | |
987 | 985 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
988 | 986 | else nil | |
989 | - | let $ | |
990 | - | let issueNftActions = $ | |
991 | - | let nftAssetId = $ | |
987 | + | let $t02682526986 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
988 | + | let issueNftActions = $t02682526986._1 | |
989 | + | let nftAssetId = $t02682526986._2 | |
992 | 990 | let burned = size(burnActions) | |
993 | 991 | let burnCounterActions = if ((burned == 0)) | |
994 | 992 | then nil | |
995 | 993 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
996 | 994 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
997 | 995 | } | |
998 | 996 | } | |
999 | 997 | } | |
1000 | 998 | ||
1001 | 999 | ||
1002 | 1000 | ||
1003 | 1001 | @Callable(i) | |
1004 | 1002 | func openNftChest () = { | |
1005 | 1003 | let prologActions = prolog(i) | |
1006 | 1004 | if ((size(i.payments) != 1)) | |
1007 | 1005 | then throw("exactly 1 payment must be attached") | |
1008 | 1006 | else { | |
1009 | 1007 | let pmt = i.payments[0] | |
1010 | 1008 | let wlgAmount = pmt.amount | |
1011 | 1009 | if (if (!(isDefined(pmt.assetId))) | |
1012 | 1010 | then true | |
1013 | 1011 | else (value(pmt.assetId) != wlgAssetId)) | |
1014 | 1012 | then throw("WLGOLD payments only!") | |
1015 | 1013 | else { | |
1016 | 1014 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1017 | 1015 | let change = (wlgAmount - minWlgFee) | |
1018 | 1016 | let forTeam = (minWlgFee / 2) | |
1019 | 1017 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1020 | 1018 | if ((0 > change)) | |
1021 | 1019 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1022 | 1020 | else { | |
1023 | 1021 | let changeActions = if ((change > 0)) | |
1024 | 1022 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1025 | 1023 | else nil | |
1026 | 1024 | let addr = toString(i.caller) | |
1027 | 1025 | let finishKey = keyCommit(addr) | |
1028 | 1026 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1029 | 1027 | if ((finishBlock > height)) | |
1030 | 1028 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1031 | 1029 | else { | |
1032 | 1030 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1033 | 1031 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1034 | 1032 | let rand = getRandomNumber(100, salt, entropy) | |
1035 | - | let $ | |
1033 | + | let $t02900529277 = if ((84 > rand)) | |
1036 | 1034 | then $Tuple2(1, idxRarityC) | |
1037 | 1035 | else if ((98 > rand)) | |
1038 | 1036 | then $Tuple2(5, idxRarityU) | |
1039 | 1037 | else $Tuple2(10, idxRarityL) | |
1040 | - | let bonus = $ | |
1041 | - | let rarityIdx = $ | |
1042 | - | let $ | |
1043 | - | let issueNftActions = $ | |
1044 | - | let nftAssetId = $ | |
1038 | + | let bonus = $t02900529277._1 | |
1039 | + | let rarityIdx = $t02900529277._2 | |
1040 | + | let $t02928029430 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1041 | + | let issueNftActions = $t02928029430._1 | |
1042 | + | let nftAssetId = $t02928029430._2 | |
1045 | 1043 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1046 | 1044 | } | |
1047 | 1045 | } | |
1048 | 1046 | } | |
1049 | 1047 | } | |
1050 | 1048 | } | |
1051 | 1049 | ||
1052 | 1050 | ||
1053 | 1051 | ||
1054 | 1052 | @Callable(i) | |
1055 | 1053 | func commitForRandom () = { | |
1056 | 1054 | let prologActions = prolog(i) | |
1057 | 1055 | let addr = toString(i.caller) | |
1058 | 1056 | let finishKey = keyCommit(addr) | |
1059 | 1057 | if (isDefined(getInteger(finishKey))) | |
1060 | 1058 | then throw("You already commited for random, please use it") | |
1061 | 1059 | else { | |
1062 | 1060 | let finishBlock = (height + RANDOM_DELAY) | |
1063 | 1061 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1064 | 1062 | } | |
1065 | 1063 | } | |
1066 | 1064 | ||
1067 | 1065 |
github/deemru/w8io/169f3d6 144.69 ms ◑