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/+5AwkAAAIB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kCXzIJAJQKAgkAzQgCCQDNCAIJAM4IAgkAzggCBQ9pc3N1ZU5mdEFjdGlvbnMFDXByb2xvZ0FjdGlvbnMFDWNoYW5nZUFjdGlvbnMJAQ5TY3JpcHRUcmFuc2ZlcgMJARFAZXh0ck5hdGl2ZSgxMDYyKQEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFC3dsZ0NvbnRyYWN0BQt0ZWFtQWRkcktleQUHZm9yVGVhbQUKd2xnQXNzZXRJZAkBC0RlbGV0ZUVudHJ5AQUJZmluaXNoS2V5CQCUCgIFCm5mdEFzc2V0SWQFCXdsZ1JlbWFpbgFpAQ9jb21taXRGb3JSYW5kb20ABA1wcm9sb2dBY3Rpb25zCQEGcHJvbG9nAQUBaQQEYWRkcgkApQgBCAUBaQZjYWxsZXIECWZpbmlzaEtleQkBCWtleUNvbW1pdAEFBGFkZHIDCQEJaXNEZWZpbmVkAQkAnwgBBQlmaW5pc2hLZXkJAAIBAi5Zb3UgYWxyZWFkeSBjb21taXRlZCBmb3IgcmFuZG9tLCBwbGVhc2UgdXNlIGl0BAtmaW5pc2hCbG9jawkAZAIFBmhlaWdodAUMUkFORE9NX0RFTEFZCQCUCgIJAM4IAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJZmluaXNoS2V5BQtmaW5pc2hCbG9jawUDbmlsBQ1wcm9sb2dBY3Rpb25zBQtmaW5pc2hCbG9jawCpFvL/", "height": 3401025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EUaom4pAhUkxBAZ8a2BZeqbuGM7FFTeDTXQwquExMote Next: AqoH5B9A5TnViM8xwAc94XBfkNzzg56WzQP7NuABDaA5 Diff:
OldNewDifferences
681681
682682
683683 @Callable(i)
684-func convertOldStakes (address) = {
684+func convertOldStakes () = {
685685 let prologActions = prolog(i)
686686 if ((OLD_STAKING_DEADL > lastBlock.timestamp))
687687 then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000))))
688688 else {
689- let caller = addressFromStringValue(address)
689+ let address = toString(i.caller)
690690 if ((size(i.payments) != 0))
691691 then throw("No payments required")
692692 else {
734734 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
735735 if ((req == req))
736736 then {
737- let $t01795918095 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, caller)
738- let nftActions = $t01795918095._1
739- let nftAssetId = $t01795918095._2
737+ let $t01789718035 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
738+ let nftActions = $t01789718035._1
739+ let nftAssetId = $t01789718035._2
740740 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
741741 }
742742 else throw("Strict value is not equal to itself.")
807807 let userFpKey = keyFarmingPowerByUser(address)
808808 let oldFp = valueOrElse(getInteger(userFpKey), 0)
809809 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
810- let $t02036620453 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
811- let newBonusedFp = $t02036620453._1
812- let ignored = $t02036620453._2
810+ let $t02030620393 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
811+ let newBonusedFp = $t02030620393._1
812+ let ignored = $t02030620393._2
813813 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
814814 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
815815 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
851851 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
852852 if ((asset.issuer == this))
853853 then {
854- let $t02186222052 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
855- let actions = $t02186222052._1
856- let wlgClaimedAmount = $t02186222052._2
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
857857 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
858858 }
859859 else if ((isArkimalIssued(asset) == ""))
860860 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
861861 else {
862- let $t02223322384 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
863- let actions = $t02223322384._1
864- let wlgClaimedAmount = $t02223322384._2
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
865865 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
866866 }
867867 }
898898 then {
899899 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
900900 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
901- let $t02354923628 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
902- let actions = $t02354923628._1
903- let wlgClaimedAmount = $t02354923628._2
901+ let $t02348923568 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
902+ let actions = $t02348923568._1
903+ let wlgClaimedAmount = $t02348923568._2
904904 $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)
905905 }
906906 else {
909909 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
910910 else {
911911 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
912- let $t02428824372 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
913- let actions = $t02428824372._1
914- let wlgClaimedAmount = $t02428824372._2
912+ let $t02422824312 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
913+ let actions = $t02422824312._1
914+ let wlgClaimedAmount = $t02422824312._2
915915 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
916916 }
917917 }
953953 }
954954 }
955955
956- let $t02576125977 = {
956+ let $t02570125917 = {
957957 let $l = i.payments
958958 let $s = size($l)
959959 let $acc0 = $Tuple4(0, 0, nil, -1)
967967
968968 $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)
969969 }
970- let wlgFee = $t02576125977._1
971- let totalBonus = $t02576125977._2
972- let burnActions = $t02576125977._3
973- let rarityIdx = $t02576125977._4
970+ let wlgFee = $t02570125917._1
971+ let totalBonus = $t02570125917._2
972+ let burnActions = $t02570125917._3
973+ let rarityIdx = $t02570125917._4
974974 let newRarityIdx = if ((rarityIdx == idxRarityC))
975975 then if ((rarityThresholds[idxThresholdC] > totalBonus))
976976 then idxRarityC
10021002 let changeActions = if ((change > 0))
10031003 then [ScriptTransfer(i.caller, change, wlgAssetId)]
10041004 else nil
1005- let $t02751427675 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1006- let issueNftActions = $t02751427675._1
1007- let nftAssetId = $t02751427675._2
1005+ let $t02745427615 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1006+ let issueNftActions = $t02745427615._1
1007+ let nftAssetId = $t02745427615._2
10081008 let burned = size(burnActions)
10091009 let burnCounterActions = if ((burned == 0))
10101010 then nil
10481048 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
10491049 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
10501050 let rand = getRandomNumber(100, salt, entropy)
1051- let $t02969429966 = if ((84 > rand))
1051+ let $t02963429906 = if ((84 > rand))
10521052 then $Tuple2(1, idxRarityC)
10531053 else if ((98 > rand))
10541054 then $Tuple2(5, idxRarityU)
10551055 else $Tuple2(10, idxRarityL)
1056- let bonus = $t02969429966._1
1057- let rarityIdx = $t02969429966._2
1058- let $t02996930119 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1059- let issueNftActions = $t02996930119._1
1060- let nftAssetId = $t02996930119._2
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
10611061 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
10621062 }
10631063 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let MULT6 = 1000000
77
88 let MULT7 = 10000000
99
1010 let MULT8 = 100000000
1111
1212 let MULT14 = 100000000000000
1313
1414 let DAY_MILLIS = 86400000
1515
1616 let USDT2ACRES_MULTIPLIER = 10
1717
1818 let ONE_PERCENT_DIVISOR = 100
1919
2020 let RANDOM_DELAY = 2
2121
2222 let NFT_CHEST_PRICE_USDT = 5000000
2323
2424 let chain = take(drop(this.bytes, 1), 1)
2525
2626 let WEEK_BLOCKS = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then 10080
3030 else if ((base58'2T' == $match0))
3131 then 180
3232 else throw("Unknown chain")
3333 }
3434
3535 let usdtAssetId = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3939 else if ((base58'2T' == $match0))
4040 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4141 else throw("Unknown chain")
4242 }
4343
4444 let defaultRest2AddressStr = match chain {
4545 case _ =>
4646 if ((base58'2W' == $match0))
4747 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4848 else if ((base58'2T' == $match0))
4949 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
5050 else throw("Unknown chain")
5151 }
5252
5353 let arbitrageDelay = match chain {
5454 case _ =>
5555 if ((base58'2W' == $match0))
5656 then DAY_MILLIS
5757 else if ((base58'2T' == $match0))
5858 then 60000
5959 else throw("Unknown chain")
6060 }
6161
6262 let oldStakingContractStr = match chain {
6363 case _ =>
6464 if ((base58'2W' == $match0))
6565 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6666 else if ((base58'2T' == $match0))
6767 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6868 else throw("Unknown chain")
6969 }
7070
7171 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
7272
7373
7474 let IdxCfgAcres2Dapp = 1
7575
7676 let IdxCfgWlgDapp = 2
7777
7878 let IdxCfgInvestFundDapp = 5
7979
8080 func keyRestCfg () = "%s__restConfig"
8181
8282
8383 func keyRest2Address () = "%s__rest2Addr"
8484
8585
8686 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8787
8888
8989 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
9090
9191
9292 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
9393
9494 let rest2Cfg = readRestCfgOrFail(rest2Contract)
9595
9696 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9797
9898 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9999
100100 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
101101
102102 let oldAcresContractKey = "oldAcresContract"
103103
104104 func keyBlocked () = "contractsBlocked"
105105
106106
107107 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
108108
109109
110110 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
111111
112112
113113 func keyCommit (address) = ("finishBlockFor_" + address)
114114
115115
116116 let wlgAssetIdKey = "wlg_assetId"
117117
118118 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
119119
120120 let acresIssuedAmountKey = "acresIssuedAmount"
121121
122122 let acresAssetIdKey = "acresAssetId"
123123
124124 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
125125
126126 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
127127
128128
129129 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
130130
131131
132132 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
133133
134134
135135 func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr)
136136
137137
138138 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
139139
140140
141141 func asInt (v) = match v {
142142 case n: Int =>
143143 n
144144 case _ =>
145145 throw("fail to cast into Int")
146146 }
147147
148148
149149 func asTuple5Ints (val) = match val {
150150 case t: (Int, Int, Int, Int, Int) =>
151151 t
152152 case _ =>
153153 throw("fail to cast into (Int, Int, Int, Int, Int)")
154154 }
155155
156156
157157 func asTuple4Ints (val) = match val {
158158 case t: (Int, Int, Int, Int) =>
159159 t
160160 case _ =>
161161 throw("fail to cast into (Int, Int, Int, Int)")
162162 }
163163
164164
165165 func asTuple3Ints (val) = match val {
166166 case t: (Int, Int, Int) =>
167167 t
168168 case _ =>
169169 throw("fail to cast into (Int, Int, Int)")
170170 }
171171
172172
173173 func asTuple2Ints (val) = match val {
174174 case t: (Int, Int) =>
175175 t
176176 case _ =>
177177 throw("fail to cast into (Int, Int)")
178178 }
179179
180180
181181 func fixedPoint (val,decimals) = {
182182 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
183183 let lowPart = toString((val % tenPow))
184184 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
185185 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
186186 }
187187
188188
189189 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
190190 then throw("maxValue should be > 0")
191191 else {
192192 let randomHash = sha256_16Kb((salt + entropy))
193193 (toInt(randomHash) % maxValue)
194194 }
195195
196196
197197 let M6_ = 1000000
198198
199199 let M8_ = 100000000
200200
201201 let wlgIssuedAmtKey = "wlg_issuedAmount"
202202
203203 let zbIssuedAmtKey = "zbill_issuedAmount"
204204
205205 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
206206
207207
208208 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
209209
210210
211211 let acresStakdTotalKey = "acresStakedAmountTotal"
212212
213213 let totalFarmingPowerKey = "totalFarmingPower"
214214
215215 let MAX_WL_NFTS = 3
216216
217217 let MAX_ARK_NFTS = 1
218218
219219 let ARK_NFT_BONUS = 5000
220220
221221 let MAX_NFTS_STAKED_BY_USER = 4
222222
223223 let keyNftTotalIssued = "nftTotalIssued"
224224
225225 let keyNftTotalBurned = "nftTotalBurned"
226226
227227 let keyWlNftTotalStaked = "WlNftTotalStaked"
228228
229229 let keyArkNftTotalStaked = "ArkNftTotalStaked"
230230
231231 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
232232
233233
234234 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
235235
236236
237237 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
238238
239239
240240 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
241241
242242
243243 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
244244
245245 func getLevelByAcres (acres) = {
246246 let acr = ((acres + 99999999) / M8_)
247247 func checker (acc,item) = if ((item >= acr))
248248 then acc
249249 else (acc + 1)
250250
251251 let $l = levelAcres
252252 let $s = size($l)
253253 let $acc0 = 0
254254 func $f0_1 ($a,$i) = if (($i >= $s))
255255 then $a
256256 else checker($a, $l[$i])
257257
258258 func $f0_2 ($a,$i) = if (($i >= $s))
259259 then $a
260260 else throw("List size exceeds 10")
261261
262262 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
263263 }
264264
265265
266266 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
267267
268268
269269 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
270270 let notBonused = getFarmingPowerByAcres(acres)
271271 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
272272 }
273273
274274
275275 let teamAddrKey = "teamAddr"
276276
277277 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
278278
279279
280280 let OLD_STAKING_DEADL = 1733346000000
281281
282282 let MAX_LANDS_TO_CONVERT = 14
283283
284284 let keyLastAcresSellTime = "lastAcresSellTime"
285285
286286 let keyLastLimitLeft = "lastLimitLeft"
287287
288288 let names = ["Gold shovel", "Pickaxe"]
289289
290290 let descriptions = ["Reward for early birds", "Increases FarmPower"]
291291
292292 let idxDescrShovel = 0
293293
294294 let idxDescrPickaxe = 1
295295
296296 let rarityThresholds = [5, 10, 20]
297297
298298 let idxThresholdC = 0
299299
300300 let idxThresholdU = 1
301301
302302 let idxThresholdL = 2
303303
304304 let namez = ["SHOVEL", "PICKAXE"]
305305
306306 let idxNameShovel = 0
307307
308308 let idxNamePickaxe = 1
309309
310310 let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"]
311311
312312 let idxKeyC = 0
313313
314314 let idxKeyP = 4
315315
316316 let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"]
317317
318318 let idxRarityC = 0
319319
320320 let idxRarityU = 1
321321
322322 let idxRarityL = 2
323323
324324 let idxRarityE = 3
325325
326326 let idxRarityP = 4
327327
328328 let collectionz = ["Digging tools"]
329329
330330 let idxCollDig = 0
331331
332332 let bonusTypez = ["FarmPower"]
333333
334334 let idxBonusTypeFp = 0
335335
336336 func prolog (i) = if (if ((i.originCaller != rest2Contract))
337337 then valueOrElse(getBoolean(keyBlocked()), false)
338338 else false)
339339 then throw("Contracts are under maintenance")
340340 else {
341341 let addr = toString(i.originCaller)
342342 let week = (height / WEEK_BLOCKS)
343343 let lastWeekKey = keyLastWeekTxIdByUser(addr)
344344 let lastWeekTxIdByUser = getString(lastWeekKey)
345345 let txId = toBase58String(i.transactionId)
346346 let wtx = ((toString(week) + "_") + txId)
347347 let curWeekKey = keyCurWeekTxIdByUser(addr)
348348 if (isDefined(lastWeekTxIdByUser))
349349 then {
350350 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
351351 if ((lastWeekTx[0] == toString(week)))
352352 then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
353353 else if ((lastWeekTx[0] == toString((week - 1))))
354354 then [StringEntry(curWeekKey, wtx)]
355355 else {
356356 let curWeekTxIdByUser = getStringValue(curWeekKey)
357357 let curWeekTx = split(curWeekTxIdByUser, "_")
358358 if ((curWeekTx[0] == toString(week)))
359359 then [StringEntry(curWeekKey, wtx)]
360360 else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)]
361361 }
362362 }
363363 else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)]
364364 }
365365
366366
367367 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) + "\"}")
368368
369369
370370 func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = {
371371 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
372372 let rarity = rarityNames[rarityIdx]
373373 let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc))
374374 let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false)
375375 let nftAssetId = calculateAssetId(issue)
376376 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
377377 }
378378
379379
380380 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
381381 then throw(("NFT is not supported: " + descr))
382382 else {
383383 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
384384 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
385385 }
386386
387387
388388 func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\"")))
389389 then throw(("NFT is not supported: " + descr))
390390 else {
391391 let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1]
392392 value(indexOf(rarityNames, rarityStr))
393393 }
394394
395395
396396 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
397397 then (bonusDelta == 0)
398398 else false)
399399 then throw("Nothing to do")
400400 else {
401401 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
402402 if ((wlgResult == wlgResult))
403403 then {
404404 let now = lastBlock.timestamp
405405 let timeKey = keyAcresStakedTimeByUser(address)
406406 let amountKey = keyAcresStakedAmtByUser(address)
407407 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
408408 if (if ((0 > amt))
409409 then (0 > (oldAcresAmount + amt))
410410 else false)
411411 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
412412 else {
413413 let newAcresAmount = (oldAcresAmount + amt)
414414 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
415415 let userFpKey = keyFarmingPowerByUser(address)
416416 let oldFp = valueOrElse(getInteger(userFpKey), 0)
417417 let bonusKey = keyUserFullBonus(address)
418418 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
419419 if (if ((0 > bonusDelta))
420420 then (0 > (oldBonus + bonusDelta))
421421 else false)
422422 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
423423 else {
424424 let $t062996398 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
425425 let newBonusedFp = $t062996398._1
426426 let ignored = $t062996398._2
427427 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
428428 let acresActions = if ((amt == 0))
429429 then nil
430430 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
431431 let bonusActions = if ((bonusDelta == 0))
432432 then nil
433433 else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))]
434434 $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult)
435435 }
436436 }
437437 }
438438 else throw("Strict value is not equal to itself.")
439439 }
440440
441441
442442 func getWlgPrice (usdtBalanceCorrection) = {
443443 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
444444 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
445445 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
446446 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
447447 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
448448 fraction(totalFundsUsd, MULT8, issuedAmount)
449449 }
450450
451451
452452 func getSwapLimitAcres () = {
453453 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
454454 let acres2Usd = assetBalance(this, usdtAssetId)
455455 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
456456 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
457457 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
458458 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
459459 let now = lastBlock.timestamp
460460 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
461461 let limitLeftUsdt = min([currentLimit, defaultLimit])
462462 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
463463 }
464464
465465
466466 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
467467
468468 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
469469
470470 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
471471
472472 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
473473
474474 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
475475
476476 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
477477
478478 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
479479
480480 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
481481
482482 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
483483
484484 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
485485
486486 func isArkimalIssued (nfo) = {
487487 let issuer = toString(nfo.issuer)
488488 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
489489 then (issuer == oldStakingContractStr)
490490 else false)
491491 then true
492492 else (issuer == incubator))
493493 then true
494494 else (issuer == breeder))
495495 then true
496496 else (issuer == turtleIncubator))
497497 then true
498498 else (issuer == turtleBreeder))
499499 then true
500500 else (issuer == canineIncubator))
501501 then true
502502 else (issuer == canineBreeder))
503503 then true
504504 else (issuer == felineIncubator))
505505 then true
506506 else (issuer == felineBreeder))
507507 then nfo.name
508508 else if ((issuer == mutantBreeder))
509509 then nfo.description
510510 else ""
511511 }
512512
513513
514514 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
515515 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
516516 if ((nftNumber >= limit))
517517 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
518518 else {
519519 let $t01067710753 = stakeUnstakeAcresInternal(0, addr, bonus6)
520520 let actions = $t01067710753._1
521521 let wlgClaimedAmount = $t01067710753._2
522522 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
523523 }
524524 }
525525
526526
527527 @Callable(i)
528528 func saveLastTx () = if (!(containsElement([wlgContract], i.caller)))
529529 then throw("Access denied")
530530 else $Tuple2(prolog(i), 42)
531531
532532
533533
534534 @Callable(i)
535535 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
536536 then throw("Permission denied")
537537 else {
538538 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
539539 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
540540 }
541541
542542
543543
544544 @Callable(i)
545545 func setBlocked (isBlocked) = if ((i.caller != this))
546546 then throw("permission denied")
547547 else [BooleanEntry(keyBlocked(), isBlocked)]
548548
549549
550550
551551 @Callable(i)
552552 func unstakeAcres (amount) = {
553553 let prologActions = prolog(i)
554554 if ((0 >= amount))
555555 then throw("Amount should be positive")
556556 else {
557557 let address = toString(i.caller)
558558 if ((size(i.payments) != 0))
559559 then throw("No payments required")
560560 else {
561561 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
562562 if ((arbReleaseTime > lastBlock.timestamp))
563563 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
564564 else {
565565 let $t01232712407 = stakeUnstakeAcresInternal(-(amount), address, 0)
566566 let actions = $t01232712407._1
567567 let wlgClaimedAmount = $t01232712407._2
568568 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
569569 }
570570 }
571571 }
572572 }
573573
574574
575575
576576 @Callable(i)
577577 func stakeAcres () = {
578578 let prologActions = prolog(i)
579579 let address = toString(i.caller)
580580 if ((size(i.payments) != 1))
581581 then throw("exactly 1 payment must be attached")
582582 else {
583583 let pmt = i.payments[0]
584584 let amt = pmt.amount
585585 if (if (!(isDefined(pmt.assetId)))
586586 then true
587587 else (value(pmt.assetId) != acresAssetId))
588588 then throw("ACRES payments only!")
589589 else {
590590 let $t01285812934 = stakeUnstakeAcresInternal(amt, address, 0)
591591 let actions = $t01285812934._1
592592 let wlgClaimedAmount = $t01285812934._2
593593 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
594594 }
595595 }
596596 }
597597
598598
599599
600600 @Callable(i)
601601 func buyAcres () = {
602602 let prologActions = prolog(i)
603603 if ((size(i.payments) != 1))
604604 then throw("exactly 1 payment must be attached")
605605 else {
606606 let pmt = i.payments[0]
607607 let usdtAmount = pmt.amount
608608 if (if (!(isDefined(pmt.assetId)))
609609 then true
610610 else (value(pmt.assetId) != usdtAssetId))
611611 then throw("USDT payments only!")
612612 else if ((MULT6 > usdtAmount))
613613 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
614614 else {
615615 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
616616 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
617617 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
618618 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
619619 if ((req == req))
620620 then {
621621 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
622622 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
623623 }
624624 else throw("Strict value is not equal to itself.")
625625 }
626626 }
627627 }
628628
629629
630630
631631 @Callable(i)
632632 func buyAcresREADONLY (usdtAmount) = {
633633 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
634634 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
635635 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
636636 }
637637
638638
639639
640640 @Callable(i)
641641 func sellAcres () = {
642642 let prologActions = prolog(i)
643643 if ((size(i.payments) != 1))
644644 then throw("exactly 1 payment must be attached")
645645 else {
646646 let pmt = i.payments[0]
647647 let acresAmount = pmt.amount
648648 if (if (!(isDefined(pmt.assetId)))
649649 then true
650650 else (value(pmt.assetId) != acresAssetId))
651651 then throw("ACRES payments only!")
652652 else if ((MULT7 > acresAmount))
653653 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
654654 else {
655655 let addr = toString(i.caller)
656656 let $t01479114839 = getSwapLimitAcres()
657657 let limitAction = $t01479114839._1
658658 let maxUsdt = $t01479114839._2
659659 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
660660 if ((acresAmount > maxAcres))
661661 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
662662 else {
663663 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
664664 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
665665 }
666666 }
667667 }
668668 }
669669
670670
671671
672672 @Callable(i)
673673 func sellAcresREADONLY (address,acresAmount) = {
674674 let $t01533515383 = getSwapLimitAcres()
675675 let limitAction = $t01533515383._1
676676 let maxUsdt = $t01533515383._2
677677 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
678678 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
679679 }
680680
681681
682682
683683 @Callable(i)
684-func convertOldStakes (address) = {
684+func convertOldStakes () = {
685685 let prologActions = prolog(i)
686686 if ((OLD_STAKING_DEADL > lastBlock.timestamp))
687687 then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000))))
688688 else {
689- let caller = addressFromStringValue(address)
689+ let address = toString(i.caller)
690690 if ((size(i.payments) != 0))
691691 then throw("No payments required")
692692 else {
693693 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
694694 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
695695 let gotAcres0 = if ((amount > 0))
696696 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
697697 else $Tuple2(0, 0)
698698 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
699699 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
700700 let landsResult = if (isDefined(landsStr))
701701 then {
702702 let lands = split_51C(value(landsStr), "_")
703703 if ((size(lands) > MAX_LANDS_TO_CONVERT))
704704 then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually"))
705705 else {
706706 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
707707 then throw("landAssetId is required")
708708 else {
709709 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
710710 if ((r == r))
711711 then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5))
712712 else throw("Strict value is not equal to itself.")
713713 }
714714
715715 let rr = {
716716 let $l = lands
717717 let $s = size($l)
718718 let $acc0 = $Tuple5(0, 0, 0, 0, 0)
719719 func $f0_1 ($a,$i) = if (($i >= $s))
720720 then $a
721721 else oneLand($a, $l[$i])
722722
723723 func $f0_2 ($a,$i) = if (($i >= $s))
724724 then $a
725725 else throw("List size exceeds 14")
726726
727727 $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)
728728 }
729729 if ((rr == rr))
730730 then {
731731 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
732732 if ((finalize == finalize))
733733 then {
734734 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
735735 if ((req == req))
736736 then {
737- let $t01795918095 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, caller)
738- let nftActions = $t01795918095._1
739- let nftAssetId = $t01795918095._2
737+ let $t01789718035 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller)
738+ let nftActions = $t01789718035._1
739+ let nftAssetId = $t01789718035._2
740740 $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions)
741741 }
742742 else throw("Strict value is not equal to itself.")
743743 }
744744 else throw("Strict value is not equal to itself.")
745745 }
746746 else throw("Strict value is not equal to itself.")
747747 }
748748 }
749749 else $Tuple6(0, 0, 0, 0, 0, nil)
750750 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
751751 let duckResult = if ((duckAssetId != ""))
752752 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
753753 else $Tuple3(0, 0, 0)
754754 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
755755 $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2))
756756 }
757757 }
758758 }
759759
760760
761761
762762 @Callable(i)
763763 func unstakeLandsREADONLY (address) = {
764764 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
765765 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
766766 let landsResult = if (isDefined(landsStr))
767767 then {
768768 let lands = split_51C(value(landsStr), "_")
769769 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
770770 then throw("landAssetId is required")
771771 else {
772772 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
773773 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
774774 }
775775
776776 let $l = lands
777777 let $s = size($l)
778778 let $acc0 = $Tuple4(0, 0, 0, 0)
779779 func $f0_1 ($a,$i) = if (($i >= $s))
780780 then $a
781781 else oneLand($a, $l[$i])
782782
783783 func $f0_2 ($a,$i) = if (($i >= $s))
784784 then $a
785785 else throw("List size exceeds 100")
786786
787787 $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)
788788 }
789789 else $Tuple4(0, 0, 0, 0)
790790 $Tuple2(nil, landsResult)
791791 }
792792
793793
794794
795795 @Callable(i)
796796 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
797797 then throw("Permission denied")
798798 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
799799
800800
801801
802802 @Callable(i)
803803 func simulateStakeAcresREADONLY (address,addedAmount) = {
804804 let amountKey = keyAcresStakedAmtByUser(address)
805805 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
806806 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
807807 let userFpKey = keyFarmingPowerByUser(address)
808808 let oldFp = valueOrElse(getInteger(userFpKey), 0)
809809 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
810- let $t02036620453 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
811- let newBonusedFp = $t02036620453._1
812- let ignored = $t02036620453._2
810+ let $t02030620393 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
811+ let newBonusedFp = $t02030620393._1
812+ let ignored = $t02030620393._2
813813 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
814814 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
815815 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
816816 }
817817
818818
819819
820820 @Callable(i)
821821 func issuePickC1 (forAddress) = if ((i.caller != wlgContract))
822822 then throw("Permission denied")
823823 else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress))
824824
825825
826826
827827 @Callable(i)
828828 func stakeNFT () = {
829829 let prologActions = prolog(i)
830830 if ((size(i.payments) != 1))
831831 then throw("Exactly one payment required")
832832 else {
833833 let pmt = value(i.payments[0])
834834 if ((pmt.amount != 1))
835835 then throw("NFT token should be attached as payment")
836836 else {
837837 let assetId = value(pmt.assetId)
838838 let asset = value(assetInfo(assetId))
839839 let assetIdStr = toBase58String(assetId)
840840 let addr = toString(i.caller)
841841 let nftsKey = keyStakedNFTsByOwner(addr)
842842 let nftsStr = getString(nftsKey)
843843 let nfts = if (isDefined(nftsStr))
844844 then split_4C(value(nftsStr), "_")
845845 else nil
846846 if (containsElement(nfts, assetIdStr))
847847 then throw(("Your staked NFTs already contain " + assetIdStr))
848848 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
849849 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
850850 else {
851851 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
852852 if ((asset.issuer == this))
853853 then {
854- let $t02186222052 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
855- let actions = $t02186222052._1
856- let wlgClaimedAmount = $t02186222052._2
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
857857 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
858858 }
859859 else if ((isArkimalIssued(asset) == ""))
860860 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
861861 else {
862- let $t02223322384 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
863- let actions = $t02223322384._1
864- let wlgClaimedAmount = $t02223322384._2
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
865865 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
866866 }
867867 }
868868 }
869869 }
870870 }
871871
872872
873873
874874 @Callable(i)
875875 func unstakeNFT (assetIdStr) = {
876876 let prologActions = prolog(i)
877877 if ((size(i.payments) != 0))
878878 then throw("No payments required")
879879 else {
880880 let assetId = fromBase58String(assetIdStr)
881881 let addr = toString(i.caller)
882882 let asset = value(assetInfo(assetId))
883883 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
884884 if (!(isDefined(getInteger(timeKey))))
885885 then throw((("NFT " + asset.name) + " is not staked by you"))
886886 else {
887887 let nftsKey = keyStakedNFTsByOwner(addr)
888888 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
889889 let idx = indexOf(nfts, assetIdStr)
890890 if (!(isDefined(idx)))
891891 then throw(("Your staked NFTs don't contain " + assetIdStr))
892892 else {
893893 let listAction = if ((size(nfts) > 1))
894894 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
895895 else DeleteEntry(nftsKey)
896896 let isWL = (asset.issuer == this)
897897 if (isWL)
898898 then {
899899 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
900900 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
901- let $t02354923628 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
902- let actions = $t02354923628._1
903- let wlgClaimedAmount = $t02354923628._2
901+ let $t02348923568 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
902+ let actions = $t02348923568._1
903+ let wlgClaimedAmount = $t02348923568._2
904904 $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)
905905 }
906906 else {
907907 let arkimalName = isArkimalIssued(asset)
908908 if ((arkimalName == ""))
909909 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
910910 else {
911911 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
912- let $t02428824372 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
913- let actions = $t02428824372._1
914- let wlgClaimedAmount = $t02428824372._2
912+ let $t02422824312 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
913+ let actions = $t02422824312._1
914+ let wlgClaimedAmount = $t02422824312._2
915915 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
916916 }
917917 }
918918 }
919919 }
920920 }
921921 }
922922
923923
924924
925925 @Callable(i)
926926 func exchangeNFTs () = {
927927 let prologActions = prolog(i)
928928 if ((3 > size(i.payments)))
929929 then throw("Min one WLGOLD and 2 NFT payments allowed")
930930 else if ((size(i.payments) > 10))
931931 then throw("Max one WLGOLD and 9 NFT payments allowed")
932932 else {
933933 let addr = toString(i.caller)
934934 func addUp (acc,pmt) = {
935935 let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
936936 if ((assetId == wlgAssetId))
937937 then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4)
938938 else {
939939 let asset = value(assetInfo(assetId))
940940 if ((asset.issuer != this))
941941 then throw("Only WL-issued NFTs allowed")
942942 else {
943943 let rarityIx = rarityIdxByDescriprion(value(asset.description))
944944 if (if ((acc._4 > 0))
945945 then (rarityIx != acc._4)
946946 else false)
947947 then throw("You can exchange only NFTs of the same rarity")
948948 else {
949949 let bonusPerc = bonusByDescription(value(asset.description))
950950 $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx)
951951 }
952952 }
953953 }
954954 }
955955
956- let $t02576125977 = {
956+ let $t02570125917 = {
957957 let $l = i.payments
958958 let $s = size($l)
959959 let $acc0 = $Tuple4(0, 0, nil, -1)
960960 func $f0_1 ($a,$i) = if (($i >= $s))
961961 then $a
962962 else addUp($a, $l[$i])
963963
964964 func $f0_2 ($a,$i) = if (($i >= $s))
965965 then $a
966966 else throw("List size exceeds 10")
967967
968968 $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)
969969 }
970- let wlgFee = $t02576125977._1
971- let totalBonus = $t02576125977._2
972- let burnActions = $t02576125977._3
973- let rarityIdx = $t02576125977._4
970+ let wlgFee = $t02570125917._1
971+ let totalBonus = $t02570125917._2
972+ let burnActions = $t02570125917._3
973+ let rarityIdx = $t02570125917._4
974974 let newRarityIdx = if ((rarityIdx == idxRarityC))
975975 then if ((rarityThresholds[idxThresholdC] > totalBonus))
976976 then idxRarityC
977977 else if ((rarityThresholds[idxThresholdU] > totalBonus))
978978 then idxRarityU
979979 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%"))
980980 else if ((rarityIdx == idxRarityU))
981981 then if ((rarityThresholds[idxThresholdU] > totalBonus))
982982 then idxRarityU
983983 else if ((rarityThresholds[idxThresholdL] > totalBonus))
984984 then idxRarityL
985985 else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%"))
986986 else if ((rarityIdx == idxRarityL))
987987 then if ((rarityThresholds[idxThresholdL] > totalBonus))
988988 then idxRarityL
989989 else idxRarityE
990990 else if ((rarityIdx == idxRarityE))
991991 then idxRarityE
992992 else if ((rarityIdx == idxRarityP))
993993 then throw("You can't exchange NFTs of this rarity")
994994 else throw("Unknown rarity")
995995 let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0))
996996 let change = (wlgFee - minWlgFee)
997997 let forTeam = (minWlgFee / 2)
998998 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
999999 if ((0 > change))
10001000 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
10011001 else {
10021002 let changeActions = if ((change > 0))
10031003 then [ScriptTransfer(i.caller, change, wlgAssetId)]
10041004 else nil
1005- let $t02751427675 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1006- let issueNftActions = $t02751427675._1
1007- let nftAssetId = $t02751427675._2
1005+ let $t02745427615 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1006+ let issueNftActions = $t02745427615._1
1007+ let nftAssetId = $t02745427615._2
10081008 let burned = size(burnActions)
10091009 let burnCounterActions = if ((burned == 0))
10101010 then nil
10111011 else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
10121012 $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain))
10131013 }
10141014 }
10151015 }
10161016
10171017
10181018
10191019 @Callable(i)
10201020 func openNftChest () = {
10211021 let prologActions = prolog(i)
10221022 if ((size(i.payments) != 1))
10231023 then throw("exactly 1 payment must be attached")
10241024 else {
10251025 let pmt = i.payments[0]
10261026 let wlgAmount = pmt.amount
10271027 if (if (!(isDefined(pmt.assetId)))
10281028 then true
10291029 else (value(pmt.assetId) != wlgAssetId))
10301030 then throw("WLGOLD payments only!")
10311031 else {
10321032 let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0))
10331033 let change = (wlgAmount - minWlgFee)
10341034 let forTeam = (minWlgFee / 2)
10351035 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil))
10361036 if ((0 > change))
10371037 then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee"))
10381038 else {
10391039 let changeActions = if ((change > 0))
10401040 then [ScriptTransfer(i.caller, change, wlgAssetId)]
10411041 else nil
10421042 let addr = toString(i.caller)
10431043 let finishKey = keyCommit(addr)
10441044 let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!")
10451045 if ((finishBlock > height))
10461046 then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock)))
10471047 else {
10481048 let entropy = value(value(blockInfoByHeight(finishBlock)).vrf)
10491049 let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
10501050 let rand = getRandomNumber(100, salt, entropy)
1051- let $t02969429966 = if ((84 > rand))
1051+ let $t02963429906 = if ((84 > rand))
10521052 then $Tuple2(1, idxRarityC)
10531053 else if ((98 > rand))
10541054 then $Tuple2(5, idxRarityU)
10551055 else $Tuple2(10, idxRarityL)
1056- let bonus = $t02969429966._1
1057- let rarityIdx = $t02969429966._2
1058- let $t02996930119 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller)
1059- let issueNftActions = $t02996930119._1
1060- let nftAssetId = $t02996930119._2
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
10611061 $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain))
10621062 }
10631063 }
10641064 }
10651065 }
10661066 }
10671067
10681068
10691069
10701070 @Callable(i)
10711071 func commitForRandom () = {
10721072 let prologActions = prolog(i)
10731073 let addr = toString(i.caller)
10741074 let finishKey = keyCommit(addr)
10751075 if (isDefined(getInteger(finishKey)))
10761076 then throw("You already commited for random, please use it")
10771077 else {
10781078 let finishBlock = (height + RANDOM_DELAY)
10791079 $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock)
10801080 }
10811081 }
10821082
10831083

github/deemru/w8io/026f985 
122.33 ms