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