tx · CDx4Abtbo3NeCaKyhqaay44tjrcFm1ffZ8quw1h3eHZi 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03100000 Waves 2024.12.05 10:10 [3401025] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "CDx4Abtbo3NeCaKyhqaay44tjrcFm1ffZ8quw1h3eHZi", "fee": 3100000, "feeAssetId": null, "timestamp": 1733382691112, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "4H7T9xKpTm1ySjVjiTcnv2LeeoyRw2DYfUimKsyGSVfGEyLqsJCFk4aSufNZf4mXxnci6btMKf78Qk4V7jVKqDCu" ], "script": "base64:BgJJCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAH0AA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBA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CXzIJAJQKAgkAzQgCCQDNCAIJAM4IAgkAzggCBQ9pc3N1ZU5mdEFjdGlvbnMFDXByb2xvZ0FjdGlvbnMFDWNoYW5nZUFjdGlvbnMJAQ5TY3JpcHRUcmFuc2ZlcgMJARFAZXh0ck5hdGl2ZSgxMDYyKQEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFC3dsZ0NvbnRyYWN0BQt0ZWFtQWRkcktleQUHZm9yVGVhbQUKd2xnQXNzZXRJZAkBC0RlbGV0ZUVudHJ5AQUJZmluaXNoS2V5CQCUCgIFCm5mdEFzc2V0SWQFCXdsZ1JlbWFpbgFpAQ9jb21taXRGb3JSYW5kb20ABA1wcm9sb2dBY3Rpb25zCQEGcHJvbG9nAQUBaQQEYWRkcgkApQgBCAUBaQZjYWxsZXIECWZpbmlzaEtleQkBCWtleUNvbW1pdAEFBGFkZHIDCQEJaXNEZWZpbmVkAQkAnwgBBQlmaW5pc2hLZXkJAAIBAi5Zb3UgYWxyZWFkeSBjb21taXRlZCBmb3IgcmFuZG9tLCBwbGVhc2UgdXNlIGl0BAtmaW5pc2hCbG9jawkAZAIFBmhlaWdodAUMUkFORE9NX0RFTEFZCQCUCgIJAM4IAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJZmluaXNoS2V5BQtmaW5pc2hCbG9jawUDbmlsBQ1wcm9sb2dBY3Rpb25zBQtmaW5pc2hCbG9jawCpFvL/", "height": 3401025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EUaom4pAhUkxBAZ8a2BZeqbuGM7FFTeDTXQwquExMote Next: AqoH5B9A5TnViM8xwAc94XBfkNzzg56WzQP7NuABDaA5 Diff:
Old | New | Differences | |
---|---|---|---|
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(i) | |
684 | - | func convertOldStakes ( | |
684 | + | func convertOldStakes () = { | |
685 | 685 | let prologActions = prolog(i) | |
686 | 686 | if ((OLD_STAKING_DEADL > lastBlock.timestamp)) | |
687 | 687 | then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000)))) | |
688 | 688 | else { | |
689 | - | let | |
689 | + | let address = toString(i.caller) | |
690 | 690 | if ((size(i.payments) != 0)) | |
691 | 691 | then throw("No payments required") | |
692 | 692 | else { | |
734 | 734 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
735 | 735 | if ((req == req)) | |
736 | 736 | then { | |
737 | - | let $ | |
738 | - | let nftActions = $ | |
739 | - | let nftAssetId = $ | |
737 | + | let $t01789718035 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
738 | + | let nftActions = $t01789718035._1 | |
739 | + | let nftAssetId = $t01789718035._2 | |
740 | 740 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
741 | 741 | } | |
742 | 742 | else throw("Strict value is not equal to itself.") | |
807 | 807 | let userFpKey = keyFarmingPowerByUser(address) | |
808 | 808 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
809 | 809 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
810 | - | let $ | |
811 | - | let newBonusedFp = $ | |
812 | - | let ignored = $ | |
810 | + | let $t02030620393 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
811 | + | let newBonusedFp = $t02030620393._1 | |
812 | + | let ignored = $t02030620393._2 | |
813 | 813 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
814 | 814 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
815 | 815 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
851 | 851 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
852 | 852 | if ((asset.issuer == this)) | |
853 | 853 | then { | |
854 | - | let $ | |
855 | - | let actions = $ | |
856 | - | let wlgClaimedAmount = $ | |
854 | + | let $t02180221992 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
855 | + | let actions = $t02180221992._1 | |
856 | + | let wlgClaimedAmount = $t02180221992._2 | |
857 | 857 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
858 | 858 | } | |
859 | 859 | else if ((isArkimalIssued(asset) == "")) | |
860 | 860 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
861 | 861 | else { | |
862 | - | let $ | |
863 | - | let actions = $ | |
864 | - | let wlgClaimedAmount = $ | |
862 | + | let $t02217322324 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
863 | + | let actions = $t02217322324._1 | |
864 | + | let wlgClaimedAmount = $t02217322324._2 | |
865 | 865 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
866 | 866 | } | |
867 | 867 | } | |
898 | 898 | then { | |
899 | 899 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
900 | 900 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
901 | - | let $ | |
902 | - | let actions = $ | |
903 | - | let wlgClaimedAmount = $ | |
901 | + | let $t02348923568 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
902 | + | let actions = $t02348923568._1 | |
903 | + | let wlgClaimedAmount = $t02348923568._2 | |
904 | 904 | $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 | 905 | } | |
906 | 906 | else { | |
909 | 909 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
910 | 910 | else { | |
911 | 911 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
912 | - | let $ | |
913 | - | let actions = $ | |
914 | - | let wlgClaimedAmount = $ | |
912 | + | let $t02422824312 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
913 | + | let actions = $t02422824312._1 | |
914 | + | let wlgClaimedAmount = $t02422824312._2 | |
915 | 915 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
916 | 916 | } | |
917 | 917 | } | |
953 | 953 | } | |
954 | 954 | } | |
955 | 955 | ||
956 | - | let $ | |
956 | + | let $t02570125917 = { | |
957 | 957 | let $l = i.payments | |
958 | 958 | let $s = size($l) | |
959 | 959 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
967 | 967 | ||
968 | 968 | $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 | 969 | } | |
970 | - | let wlgFee = $ | |
971 | - | let totalBonus = $ | |
972 | - | let burnActions = $ | |
973 | - | let rarityIdx = $ | |
970 | + | let wlgFee = $t02570125917._1 | |
971 | + | let totalBonus = $t02570125917._2 | |
972 | + | let burnActions = $t02570125917._3 | |
973 | + | let rarityIdx = $t02570125917._4 | |
974 | 974 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
975 | 975 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
976 | 976 | then idxRarityC | |
1002 | 1002 | let changeActions = if ((change > 0)) | |
1003 | 1003 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1004 | 1004 | else nil | |
1005 | - | let $ | |
1006 | - | let issueNftActions = $ | |
1007 | - | let nftAssetId = $ | |
1005 | + | let $t02745427615 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1006 | + | let issueNftActions = $t02745427615._1 | |
1007 | + | let nftAssetId = $t02745427615._2 | |
1008 | 1008 | let burned = size(burnActions) | |
1009 | 1009 | let burnCounterActions = if ((burned == 0)) | |
1010 | 1010 | then nil | |
1048 | 1048 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1049 | 1049 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1050 | 1050 | let rand = getRandomNumber(100, salt, entropy) | |
1051 | - | let $ | |
1051 | + | let $t02963429906 = if ((84 > rand)) | |
1052 | 1052 | then $Tuple2(1, idxRarityC) | |
1053 | 1053 | else if ((98 > rand)) | |
1054 | 1054 | then $Tuple2(5, idxRarityU) | |
1055 | 1055 | else $Tuple2(10, idxRarityL) | |
1056 | - | let bonus = $ | |
1057 | - | let rarityIdx = $ | |
1058 | - | let $ | |
1059 | - | let issueNftActions = $ | |
1060 | - | let nftAssetId = $ | |
1056 | + | let bonus = $t02963429906._1 | |
1057 | + | let rarityIdx = $t02963429906._2 | |
1058 | + | let $t02990930059 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1059 | + | let issueNftActions = $t02990930059._1 | |
1060 | + | let nftAssetId = $t02990930059._2 | |
1061 | 1061 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1062 | 1062 | } | |
1063 | 1063 | } |
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 OLD_STAKING_DEADL = 1733346000000 | |
281 | 281 | ||
282 | 282 | let MAX_LANDS_TO_CONVERT = 14 | |
283 | 283 | ||
284 | 284 | let keyLastAcresSellTime = "lastAcresSellTime" | |
285 | 285 | ||
286 | 286 | let keyLastLimitLeft = "lastLimitLeft" | |
287 | 287 | ||
288 | 288 | let names = ["Gold shovel", "Pickaxe"] | |
289 | 289 | ||
290 | 290 | let descriptions = ["Reward for early birds", "Increases FarmPower"] | |
291 | 291 | ||
292 | 292 | let idxDescrShovel = 0 | |
293 | 293 | ||
294 | 294 | let idxDescrPickaxe = 1 | |
295 | 295 | ||
296 | 296 | let rarityThresholds = [5, 10, 20] | |
297 | 297 | ||
298 | 298 | let idxThresholdC = 0 | |
299 | 299 | ||
300 | 300 | let idxThresholdU = 1 | |
301 | 301 | ||
302 | 302 | let idxThresholdL = 2 | |
303 | 303 | ||
304 | 304 | let namez = ["SHOVEL", "PICKAXE"] | |
305 | 305 | ||
306 | 306 | let idxNameShovel = 0 | |
307 | 307 | ||
308 | 308 | let idxNamePickaxe = 1 | |
309 | 309 | ||
310 | 310 | let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
311 | 311 | ||
312 | 312 | let idxKeyC = 0 | |
313 | 313 | ||
314 | 314 | let idxKeyP = 4 | |
315 | 315 | ||
316 | 316 | let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
317 | 317 | ||
318 | 318 | let idxRarityC = 0 | |
319 | 319 | ||
320 | 320 | let idxRarityU = 1 | |
321 | 321 | ||
322 | 322 | let idxRarityL = 2 | |
323 | 323 | ||
324 | 324 | let idxRarityE = 3 | |
325 | 325 | ||
326 | 326 | let idxRarityP = 4 | |
327 | 327 | ||
328 | 328 | let collectionz = ["Digging tools"] | |
329 | 329 | ||
330 | 330 | let idxCollDig = 0 | |
331 | 331 | ||
332 | 332 | let bonusTypez = ["FarmPower"] | |
333 | 333 | ||
334 | 334 | let idxBonusTypeFp = 0 | |
335 | 335 | ||
336 | 336 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
337 | 337 | then valueOrElse(getBoolean(keyBlocked()), false) | |
338 | 338 | else false) | |
339 | 339 | then throw("Contracts are under maintenance") | |
340 | 340 | else { | |
341 | 341 | let addr = toString(i.originCaller) | |
342 | 342 | let week = (height / WEEK_BLOCKS) | |
343 | 343 | let lastWeekKey = keyLastWeekTxIdByUser(addr) | |
344 | 344 | let lastWeekTxIdByUser = getString(lastWeekKey) | |
345 | 345 | let txId = toBase58String(i.transactionId) | |
346 | 346 | let wtx = ((toString(week) + "_") + txId) | |
347 | 347 | let curWeekKey = keyCurWeekTxIdByUser(addr) | |
348 | 348 | if (isDefined(lastWeekTxIdByUser)) | |
349 | 349 | then { | |
350 | 350 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
351 | 351 | if ((lastWeekTx[0] == toString(week))) | |
352 | 352 | then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
353 | 353 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
354 | 354 | then [StringEntry(curWeekKey, wtx)] | |
355 | 355 | else { | |
356 | 356 | let curWeekTxIdByUser = getStringValue(curWeekKey) | |
357 | 357 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
358 | 358 | if ((curWeekTx[0] == toString(week))) | |
359 | 359 | then [StringEntry(curWeekKey, wtx)] | |
360 | 360 | else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)] | |
361 | 361 | } | |
362 | 362 | } | |
363 | 363 | else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | 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 | 368 | ||
369 | 369 | ||
370 | 370 | func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = { | |
371 | 371 | let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0) | |
372 | 372 | let rarity = rarityNames[rarityIdx] | |
373 | 373 | let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc)) | |
374 | 374 | let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false) | |
375 | 375 | let nftAssetId = calculateAssetId(issue) | |
376 | 376 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
381 | 381 | then throw(("NFT is not supported: " + descr)) | |
382 | 382 | else { | |
383 | 383 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
384 | 384 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\""))) | |
389 | 389 | then throw(("NFT is not supported: " + descr)) | |
390 | 390 | else { | |
391 | 391 | let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1] | |
392 | 392 | value(indexOf(rarityNames, rarityStr)) | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
397 | 397 | then (bonusDelta == 0) | |
398 | 398 | else false) | |
399 | 399 | then throw("Nothing to do") | |
400 | 400 | else { | |
401 | 401 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
402 | 402 | if ((wlgResult == wlgResult)) | |
403 | 403 | then { | |
404 | 404 | let now = lastBlock.timestamp | |
405 | 405 | let timeKey = keyAcresStakedTimeByUser(address) | |
406 | 406 | let amountKey = keyAcresStakedAmtByUser(address) | |
407 | 407 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
408 | 408 | if (if ((0 > amt)) | |
409 | 409 | then (0 > (oldAcresAmount + amt)) | |
410 | 410 | else false) | |
411 | 411 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
412 | 412 | else { | |
413 | 413 | let newAcresAmount = (oldAcresAmount + amt) | |
414 | 414 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
415 | 415 | let userFpKey = keyFarmingPowerByUser(address) | |
416 | 416 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
417 | 417 | let bonusKey = keyUserFullBonus(address) | |
418 | 418 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
419 | 419 | if (if ((0 > bonusDelta)) | |
420 | 420 | then (0 > (oldBonus + bonusDelta)) | |
421 | 421 | else false) | |
422 | 422 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
423 | 423 | else { | |
424 | 424 | let $t062996398 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
425 | 425 | let newBonusedFp = $t062996398._1 | |
426 | 426 | let ignored = $t062996398._2 | |
427 | 427 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
428 | 428 | let acresActions = if ((amt == 0)) | |
429 | 429 | then nil | |
430 | 430 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
431 | 431 | let bonusActions = if ((bonusDelta == 0)) | |
432 | 432 | then nil | |
433 | 433 | else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))] | |
434 | 434 | $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult) | |
435 | 435 | } | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | else throw("Strict value is not equal to itself.") | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | func getWlgPrice (usdtBalanceCorrection) = { | |
443 | 443 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
444 | 444 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
445 | 445 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
446 | 446 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
447 | 447 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
448 | 448 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
449 | 449 | } | |
450 | 450 | ||
451 | 451 | ||
452 | 452 | func getSwapLimitAcres () = { | |
453 | 453 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
454 | 454 | let acres2Usd = assetBalance(this, usdtAssetId) | |
455 | 455 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
456 | 456 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
457 | 457 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
458 | 458 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
459 | 459 | let now = lastBlock.timestamp | |
460 | 460 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
461 | 461 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
462 | 462 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
467 | 467 | ||
468 | 468 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
469 | 469 | ||
470 | 470 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
471 | 471 | ||
472 | 472 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
473 | 473 | ||
474 | 474 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
475 | 475 | ||
476 | 476 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
477 | 477 | ||
478 | 478 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
479 | 479 | ||
480 | 480 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
481 | 481 | ||
482 | 482 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
483 | 483 | ||
484 | 484 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
485 | 485 | ||
486 | 486 | func isArkimalIssued (nfo) = { | |
487 | 487 | let issuer = toString(nfo.issuer) | |
488 | 488 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
489 | 489 | then (issuer == oldStakingContractStr) | |
490 | 490 | else false) | |
491 | 491 | then true | |
492 | 492 | else (issuer == incubator)) | |
493 | 493 | then true | |
494 | 494 | else (issuer == breeder)) | |
495 | 495 | then true | |
496 | 496 | else (issuer == turtleIncubator)) | |
497 | 497 | then true | |
498 | 498 | else (issuer == turtleBreeder)) | |
499 | 499 | then true | |
500 | 500 | else (issuer == canineIncubator)) | |
501 | 501 | then true | |
502 | 502 | else (issuer == canineBreeder)) | |
503 | 503 | then true | |
504 | 504 | else (issuer == felineIncubator)) | |
505 | 505 | then true | |
506 | 506 | else (issuer == felineBreeder)) | |
507 | 507 | then nfo.name | |
508 | 508 | else if ((issuer == mutantBreeder)) | |
509 | 509 | then nfo.description | |
510 | 510 | else "" | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
515 | 515 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
516 | 516 | if ((nftNumber >= limit)) | |
517 | 517 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
518 | 518 | else { | |
519 | 519 | let $t01067710753 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
520 | 520 | let actions = $t01067710753._1 | |
521 | 521 | let wlgClaimedAmount = $t01067710753._2 | |
522 | 522 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
523 | 523 | } | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | @Callable(i) | |
528 | 528 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
529 | 529 | then throw("Access denied") | |
530 | 530 | else $Tuple2(prolog(i), 42) | |
531 | 531 | ||
532 | 532 | ||
533 | 533 | ||
534 | 534 | @Callable(i) | |
535 | 535 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
536 | 536 | then throw("Permission denied") | |
537 | 537 | else { | |
538 | 538 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
539 | 539 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
540 | 540 | } | |
541 | 541 | ||
542 | 542 | ||
543 | 543 | ||
544 | 544 | @Callable(i) | |
545 | 545 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
546 | 546 | then throw("permission denied") | |
547 | 547 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | ||
551 | 551 | @Callable(i) | |
552 | 552 | func unstakeAcres (amount) = { | |
553 | 553 | let prologActions = prolog(i) | |
554 | 554 | if ((0 >= amount)) | |
555 | 555 | then throw("Amount should be positive") | |
556 | 556 | else { | |
557 | 557 | let address = toString(i.caller) | |
558 | 558 | if ((size(i.payments) != 0)) | |
559 | 559 | then throw("No payments required") | |
560 | 560 | else { | |
561 | 561 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
562 | 562 | if ((arbReleaseTime > lastBlock.timestamp)) | |
563 | 563 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
564 | 564 | else { | |
565 | 565 | let $t01232712407 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
566 | 566 | let actions = $t01232712407._1 | |
567 | 567 | let wlgClaimedAmount = $t01232712407._2 | |
568 | 568 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | } | |
572 | 572 | } | |
573 | 573 | ||
574 | 574 | ||
575 | 575 | ||
576 | 576 | @Callable(i) | |
577 | 577 | func stakeAcres () = { | |
578 | 578 | let prologActions = prolog(i) | |
579 | 579 | let address = toString(i.caller) | |
580 | 580 | if ((size(i.payments) != 1)) | |
581 | 581 | then throw("exactly 1 payment must be attached") | |
582 | 582 | else { | |
583 | 583 | let pmt = i.payments[0] | |
584 | 584 | let amt = pmt.amount | |
585 | 585 | if (if (!(isDefined(pmt.assetId))) | |
586 | 586 | then true | |
587 | 587 | else (value(pmt.assetId) != acresAssetId)) | |
588 | 588 | then throw("ACRES payments only!") | |
589 | 589 | else { | |
590 | 590 | let $t01285812934 = stakeUnstakeAcresInternal(amt, address, 0) | |
591 | 591 | let actions = $t01285812934._1 | |
592 | 592 | let wlgClaimedAmount = $t01285812934._2 | |
593 | 593 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
594 | 594 | } | |
595 | 595 | } | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func buyAcres () = { | |
602 | 602 | let prologActions = prolog(i) | |
603 | 603 | if ((size(i.payments) != 1)) | |
604 | 604 | then throw("exactly 1 payment must be attached") | |
605 | 605 | else { | |
606 | 606 | let pmt = i.payments[0] | |
607 | 607 | let usdtAmount = pmt.amount | |
608 | 608 | if (if (!(isDefined(pmt.assetId))) | |
609 | 609 | then true | |
610 | 610 | else (value(pmt.assetId) != usdtAssetId)) | |
611 | 611 | then throw("USDT payments only!") | |
612 | 612 | else if ((MULT6 > usdtAmount)) | |
613 | 613 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
614 | 614 | else { | |
615 | 615 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
616 | 616 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
617 | 617 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
618 | 618 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
619 | 619 | if ((req == req)) | |
620 | 620 | then { | |
621 | 621 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
622 | 622 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
623 | 623 | } | |
624 | 624 | else throw("Strict value is not equal to itself.") | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | ||
629 | 629 | ||
630 | 630 | ||
631 | 631 | @Callable(i) | |
632 | 632 | func buyAcresREADONLY (usdtAmount) = { | |
633 | 633 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
634 | 634 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
635 | 635 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
636 | 636 | } | |
637 | 637 | ||
638 | 638 | ||
639 | 639 | ||
640 | 640 | @Callable(i) | |
641 | 641 | func sellAcres () = { | |
642 | 642 | let prologActions = prolog(i) | |
643 | 643 | if ((size(i.payments) != 1)) | |
644 | 644 | then throw("exactly 1 payment must be attached") | |
645 | 645 | else { | |
646 | 646 | let pmt = i.payments[0] | |
647 | 647 | let acresAmount = pmt.amount | |
648 | 648 | if (if (!(isDefined(pmt.assetId))) | |
649 | 649 | then true | |
650 | 650 | else (value(pmt.assetId) != acresAssetId)) | |
651 | 651 | then throw("ACRES payments only!") | |
652 | 652 | else if ((MULT7 > acresAmount)) | |
653 | 653 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
654 | 654 | else { | |
655 | 655 | let addr = toString(i.caller) | |
656 | 656 | let $t01479114839 = getSwapLimitAcres() | |
657 | 657 | let limitAction = $t01479114839._1 | |
658 | 658 | let maxUsdt = $t01479114839._2 | |
659 | 659 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
660 | 660 | if ((acresAmount > maxAcres)) | |
661 | 661 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
662 | 662 | else { | |
663 | 663 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
664 | 664 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
665 | 665 | } | |
666 | 666 | } | |
667 | 667 | } | |
668 | 668 | } | |
669 | 669 | ||
670 | 670 | ||
671 | 671 | ||
672 | 672 | @Callable(i) | |
673 | 673 | func sellAcresREADONLY (address,acresAmount) = { | |
674 | 674 | let $t01533515383 = getSwapLimitAcres() | |
675 | 675 | let limitAction = $t01533515383._1 | |
676 | 676 | let maxUsdt = $t01533515383._2 | |
677 | 677 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
678 | 678 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(i) | |
684 | - | func convertOldStakes ( | |
684 | + | func convertOldStakes () = { | |
685 | 685 | let prologActions = prolog(i) | |
686 | 686 | if ((OLD_STAKING_DEADL > lastBlock.timestamp)) | |
687 | 687 | then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000)))) | |
688 | 688 | else { | |
689 | - | let | |
689 | + | let address = toString(i.caller) | |
690 | 690 | if ((size(i.payments) != 0)) | |
691 | 691 | then throw("No payments required") | |
692 | 692 | else { | |
693 | 693 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
694 | 694 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
695 | 695 | let gotAcres0 = if ((amount > 0)) | |
696 | 696 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
697 | 697 | else $Tuple2(0, 0) | |
698 | 698 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
699 | 699 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
700 | 700 | let landsResult = if (isDefined(landsStr)) | |
701 | 701 | then { | |
702 | 702 | let lands = split_51C(value(landsStr), "_") | |
703 | 703 | if ((size(lands) > MAX_LANDS_TO_CONVERT)) | |
704 | 704 | then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually")) | |
705 | 705 | else { | |
706 | 706 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
707 | 707 | then throw("landAssetId is required") | |
708 | 708 | else { | |
709 | 709 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
710 | 710 | if ((r == r)) | |
711 | 711 | then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
712 | 712 | else throw("Strict value is not equal to itself.") | |
713 | 713 | } | |
714 | 714 | ||
715 | 715 | let rr = { | |
716 | 716 | let $l = lands | |
717 | 717 | let $s = size($l) | |
718 | 718 | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
719 | 719 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
720 | 720 | then $a | |
721 | 721 | else oneLand($a, $l[$i]) | |
722 | 722 | ||
723 | 723 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
724 | 724 | then $a | |
725 | 725 | else throw("List size exceeds 14") | |
726 | 726 | ||
727 | 727 | $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 | 728 | } | |
729 | 729 | if ((rr == rr)) | |
730 | 730 | then { | |
731 | 731 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
732 | 732 | if ((finalize == finalize)) | |
733 | 733 | then { | |
734 | 734 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
735 | 735 | if ((req == req)) | |
736 | 736 | then { | |
737 | - | let $ | |
738 | - | let nftActions = $ | |
739 | - | let nftAssetId = $ | |
737 | + | let $t01789718035 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
738 | + | let nftActions = $t01789718035._1 | |
739 | + | let nftAssetId = $t01789718035._2 | |
740 | 740 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
741 | 741 | } | |
742 | 742 | else throw("Strict value is not equal to itself.") | |
743 | 743 | } | |
744 | 744 | else throw("Strict value is not equal to itself.") | |
745 | 745 | } | |
746 | 746 | else throw("Strict value is not equal to itself.") | |
747 | 747 | } | |
748 | 748 | } | |
749 | 749 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
750 | 750 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
751 | 751 | let duckResult = if ((duckAssetId != "")) | |
752 | 752 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
753 | 753 | else $Tuple3(0, 0, 0) | |
754 | 754 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
755 | 755 | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
756 | 756 | } | |
757 | 757 | } | |
758 | 758 | } | |
759 | 759 | ||
760 | 760 | ||
761 | 761 | ||
762 | 762 | @Callable(i) | |
763 | 763 | func unstakeLandsREADONLY (address) = { | |
764 | 764 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
765 | 765 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
766 | 766 | let landsResult = if (isDefined(landsStr)) | |
767 | 767 | then { | |
768 | 768 | let lands = split_51C(value(landsStr), "_") | |
769 | 769 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
770 | 770 | then throw("landAssetId is required") | |
771 | 771 | else { | |
772 | 772 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
773 | 773 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
774 | 774 | } | |
775 | 775 | ||
776 | 776 | let $l = lands | |
777 | 777 | let $s = size($l) | |
778 | 778 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
779 | 779 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
780 | 780 | then $a | |
781 | 781 | else oneLand($a, $l[$i]) | |
782 | 782 | ||
783 | 783 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
784 | 784 | then $a | |
785 | 785 | else throw("List size exceeds 100") | |
786 | 786 | ||
787 | 787 | $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 | 788 | } | |
789 | 789 | else $Tuple4(0, 0, 0, 0) | |
790 | 790 | $Tuple2(nil, landsResult) | |
791 | 791 | } | |
792 | 792 | ||
793 | 793 | ||
794 | 794 | ||
795 | 795 | @Callable(i) | |
796 | 796 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
797 | 797 | then throw("Permission denied") | |
798 | 798 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
799 | 799 | ||
800 | 800 | ||
801 | 801 | ||
802 | 802 | @Callable(i) | |
803 | 803 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
804 | 804 | let amountKey = keyAcresStakedAmtByUser(address) | |
805 | 805 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
806 | 806 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
807 | 807 | let userFpKey = keyFarmingPowerByUser(address) | |
808 | 808 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
809 | 809 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
810 | - | let $ | |
811 | - | let newBonusedFp = $ | |
812 | - | let ignored = $ | |
810 | + | let $t02030620393 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
811 | + | let newBonusedFp = $t02030620393._1 | |
812 | + | let ignored = $t02030620393._2 | |
813 | 813 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
814 | 814 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
815 | 815 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
816 | 816 | } | |
817 | 817 | ||
818 | 818 | ||
819 | 819 | ||
820 | 820 | @Callable(i) | |
821 | 821 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
822 | 822 | then throw("Permission denied") | |
823 | 823 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
824 | 824 | ||
825 | 825 | ||
826 | 826 | ||
827 | 827 | @Callable(i) | |
828 | 828 | func stakeNFT () = { | |
829 | 829 | let prologActions = prolog(i) | |
830 | 830 | if ((size(i.payments) != 1)) | |
831 | 831 | then throw("Exactly one payment required") | |
832 | 832 | else { | |
833 | 833 | let pmt = value(i.payments[0]) | |
834 | 834 | if ((pmt.amount != 1)) | |
835 | 835 | then throw("NFT token should be attached as payment") | |
836 | 836 | else { | |
837 | 837 | let assetId = value(pmt.assetId) | |
838 | 838 | let asset = value(assetInfo(assetId)) | |
839 | 839 | let assetIdStr = toBase58String(assetId) | |
840 | 840 | let addr = toString(i.caller) | |
841 | 841 | let nftsKey = keyStakedNFTsByOwner(addr) | |
842 | 842 | let nftsStr = getString(nftsKey) | |
843 | 843 | let nfts = if (isDefined(nftsStr)) | |
844 | 844 | then split_4C(value(nftsStr), "_") | |
845 | 845 | else nil | |
846 | 846 | if (containsElement(nfts, assetIdStr)) | |
847 | 847 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
848 | 848 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
849 | 849 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
850 | 850 | else { | |
851 | 851 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
852 | 852 | if ((asset.issuer == this)) | |
853 | 853 | then { | |
854 | - | let $ | |
855 | - | let actions = $ | |
856 | - | let wlgClaimedAmount = $ | |
854 | + | let $t02180221992 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
855 | + | let actions = $t02180221992._1 | |
856 | + | let wlgClaimedAmount = $t02180221992._2 | |
857 | 857 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
858 | 858 | } | |
859 | 859 | else if ((isArkimalIssued(asset) == "")) | |
860 | 860 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
861 | 861 | else { | |
862 | - | let $ | |
863 | - | let actions = $ | |
864 | - | let wlgClaimedAmount = $ | |
862 | + | let $t02217322324 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
863 | + | let actions = $t02217322324._1 | |
864 | + | let wlgClaimedAmount = $t02217322324._2 | |
865 | 865 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
866 | 866 | } | |
867 | 867 | } | |
868 | 868 | } | |
869 | 869 | } | |
870 | 870 | } | |
871 | 871 | ||
872 | 872 | ||
873 | 873 | ||
874 | 874 | @Callable(i) | |
875 | 875 | func unstakeNFT (assetIdStr) = { | |
876 | 876 | let prologActions = prolog(i) | |
877 | 877 | if ((size(i.payments) != 0)) | |
878 | 878 | then throw("No payments required") | |
879 | 879 | else { | |
880 | 880 | let assetId = fromBase58String(assetIdStr) | |
881 | 881 | let addr = toString(i.caller) | |
882 | 882 | let asset = value(assetInfo(assetId)) | |
883 | 883 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
884 | 884 | if (!(isDefined(getInteger(timeKey)))) | |
885 | 885 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
886 | 886 | else { | |
887 | 887 | let nftsKey = keyStakedNFTsByOwner(addr) | |
888 | 888 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
889 | 889 | let idx = indexOf(nfts, assetIdStr) | |
890 | 890 | if (!(isDefined(idx))) | |
891 | 891 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
892 | 892 | else { | |
893 | 893 | let listAction = if ((size(nfts) > 1)) | |
894 | 894 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
895 | 895 | else DeleteEntry(nftsKey) | |
896 | 896 | let isWL = (asset.issuer == this) | |
897 | 897 | if (isWL) | |
898 | 898 | then { | |
899 | 899 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
900 | 900 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
901 | - | let $ | |
902 | - | let actions = $ | |
903 | - | let wlgClaimedAmount = $ | |
901 | + | let $t02348923568 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
902 | + | let actions = $t02348923568._1 | |
903 | + | let wlgClaimedAmount = $t02348923568._2 | |
904 | 904 | $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 | 905 | } | |
906 | 906 | else { | |
907 | 907 | let arkimalName = isArkimalIssued(asset) | |
908 | 908 | if ((arkimalName == "")) | |
909 | 909 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
910 | 910 | else { | |
911 | 911 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
912 | - | let $ | |
913 | - | let actions = $ | |
914 | - | let wlgClaimedAmount = $ | |
912 | + | let $t02422824312 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
913 | + | let actions = $t02422824312._1 | |
914 | + | let wlgClaimedAmount = $t02422824312._2 | |
915 | 915 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
916 | 916 | } | |
917 | 917 | } | |
918 | 918 | } | |
919 | 919 | } | |
920 | 920 | } | |
921 | 921 | } | |
922 | 922 | ||
923 | 923 | ||
924 | 924 | ||
925 | 925 | @Callable(i) | |
926 | 926 | func exchangeNFTs () = { | |
927 | 927 | let prologActions = prolog(i) | |
928 | 928 | if ((3 > size(i.payments))) | |
929 | 929 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
930 | 930 | else if ((size(i.payments) > 10)) | |
931 | 931 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
932 | 932 | else { | |
933 | 933 | let addr = toString(i.caller) | |
934 | 934 | func addUp (acc,pmt) = { | |
935 | 935 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
936 | 936 | if ((assetId == wlgAssetId)) | |
937 | 937 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
938 | 938 | else { | |
939 | 939 | let asset = value(assetInfo(assetId)) | |
940 | 940 | if ((asset.issuer != this)) | |
941 | 941 | then throw("Only WL-issued NFTs allowed") | |
942 | 942 | else { | |
943 | 943 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
944 | 944 | if (if ((acc._4 > 0)) | |
945 | 945 | then (rarityIx != acc._4) | |
946 | 946 | else false) | |
947 | 947 | then throw("You can exchange only NFTs of the same rarity") | |
948 | 948 | else { | |
949 | 949 | let bonusPerc = bonusByDescription(value(asset.description)) | |
950 | 950 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
951 | 951 | } | |
952 | 952 | } | |
953 | 953 | } | |
954 | 954 | } | |
955 | 955 | ||
956 | - | let $ | |
956 | + | let $t02570125917 = { | |
957 | 957 | let $l = i.payments | |
958 | 958 | let $s = size($l) | |
959 | 959 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
960 | 960 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
961 | 961 | then $a | |
962 | 962 | else addUp($a, $l[$i]) | |
963 | 963 | ||
964 | 964 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
965 | 965 | then $a | |
966 | 966 | else throw("List size exceeds 10") | |
967 | 967 | ||
968 | 968 | $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 | 969 | } | |
970 | - | let wlgFee = $ | |
971 | - | let totalBonus = $ | |
972 | - | let burnActions = $ | |
973 | - | let rarityIdx = $ | |
970 | + | let wlgFee = $t02570125917._1 | |
971 | + | let totalBonus = $t02570125917._2 | |
972 | + | let burnActions = $t02570125917._3 | |
973 | + | let rarityIdx = $t02570125917._4 | |
974 | 974 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
975 | 975 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
976 | 976 | then idxRarityC | |
977 | 977 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
978 | 978 | then idxRarityU | |
979 | 979 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
980 | 980 | else if ((rarityIdx == idxRarityU)) | |
981 | 981 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
982 | 982 | then idxRarityU | |
983 | 983 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
984 | 984 | then idxRarityL | |
985 | 985 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
986 | 986 | else if ((rarityIdx == idxRarityL)) | |
987 | 987 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
988 | 988 | then idxRarityL | |
989 | 989 | else idxRarityE | |
990 | 990 | else if ((rarityIdx == idxRarityE)) | |
991 | 991 | then idxRarityE | |
992 | 992 | else if ((rarityIdx == idxRarityP)) | |
993 | 993 | then throw("You can't exchange NFTs of this rarity") | |
994 | 994 | else throw("Unknown rarity") | |
995 | 995 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
996 | 996 | let change = (wlgFee - minWlgFee) | |
997 | 997 | let forTeam = (minWlgFee / 2) | |
998 | 998 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
999 | 999 | if ((0 > change)) | |
1000 | 1000 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1001 | 1001 | else { | |
1002 | 1002 | let changeActions = if ((change > 0)) | |
1003 | 1003 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1004 | 1004 | else nil | |
1005 | - | let $ | |
1006 | - | let issueNftActions = $ | |
1007 | - | let nftAssetId = $ | |
1005 | + | let $t02745427615 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1006 | + | let issueNftActions = $t02745427615._1 | |
1007 | + | let nftAssetId = $t02745427615._2 | |
1008 | 1008 | let burned = size(burnActions) | |
1009 | 1009 | let burnCounterActions = if ((burned == 0)) | |
1010 | 1010 | then nil | |
1011 | 1011 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
1012 | 1012 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
1013 | 1013 | } | |
1014 | 1014 | } | |
1015 | 1015 | } | |
1016 | 1016 | ||
1017 | 1017 | ||
1018 | 1018 | ||
1019 | 1019 | @Callable(i) | |
1020 | 1020 | func openNftChest () = { | |
1021 | 1021 | let prologActions = prolog(i) | |
1022 | 1022 | if ((size(i.payments) != 1)) | |
1023 | 1023 | then throw("exactly 1 payment must be attached") | |
1024 | 1024 | else { | |
1025 | 1025 | let pmt = i.payments[0] | |
1026 | 1026 | let wlgAmount = pmt.amount | |
1027 | 1027 | if (if (!(isDefined(pmt.assetId))) | |
1028 | 1028 | then true | |
1029 | 1029 | else (value(pmt.assetId) != wlgAssetId)) | |
1030 | 1030 | then throw("WLGOLD payments only!") | |
1031 | 1031 | else { | |
1032 | 1032 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1033 | 1033 | let change = (wlgAmount - minWlgFee) | |
1034 | 1034 | let forTeam = (minWlgFee / 2) | |
1035 | 1035 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1036 | 1036 | if ((0 > change)) | |
1037 | 1037 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1038 | 1038 | else { | |
1039 | 1039 | let changeActions = if ((change > 0)) | |
1040 | 1040 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1041 | 1041 | else nil | |
1042 | 1042 | let addr = toString(i.caller) | |
1043 | 1043 | let finishKey = keyCommit(addr) | |
1044 | 1044 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1045 | 1045 | if ((finishBlock > height)) | |
1046 | 1046 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1047 | 1047 | else { | |
1048 | 1048 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1049 | 1049 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1050 | 1050 | let rand = getRandomNumber(100, salt, entropy) | |
1051 | - | let $ | |
1051 | + | let $t02963429906 = if ((84 > rand)) | |
1052 | 1052 | then $Tuple2(1, idxRarityC) | |
1053 | 1053 | else if ((98 > rand)) | |
1054 | 1054 | then $Tuple2(5, idxRarityU) | |
1055 | 1055 | else $Tuple2(10, idxRarityL) | |
1056 | - | let bonus = $ | |
1057 | - | let rarityIdx = $ | |
1058 | - | let $ | |
1059 | - | let issueNftActions = $ | |
1060 | - | let nftAssetId = $ | |
1056 | + | let bonus = $t02963429906._1 | |
1057 | + | let rarityIdx = $t02963429906._2 | |
1058 | + | let $t02990930059 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1059 | + | let issueNftActions = $t02990930059._1 | |
1060 | + | let nftAssetId = $t02990930059._2 | |
1061 | 1061 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1062 | 1062 | } | |
1063 | 1063 | } | |
1064 | 1064 | } | |
1065 | 1065 | } | |
1066 | 1066 | } | |
1067 | 1067 | ||
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | @Callable(i) | |
1071 | 1071 | func commitForRandom () = { | |
1072 | 1072 | let prologActions = prolog(i) | |
1073 | 1073 | let addr = toString(i.caller) | |
1074 | 1074 | let finishKey = keyCommit(addr) | |
1075 | 1075 | if (isDefined(getInteger(finishKey))) | |
1076 | 1076 | then throw("You already commited for random, please use it") | |
1077 | 1077 | else { | |
1078 | 1078 | let finishBlock = (height + RANDOM_DELAY) | |
1079 | 1079 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1080 | 1080 | } | |
1081 | 1081 | } | |
1082 | 1082 | ||
1083 | 1083 |
github/deemru/w8io/026f985 122.33 ms ◑