tx · FkuouCruxf26S6783WN9HtAwaEcUXm26w4tpTzigbPrD

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.02800000 Waves

2024.11.28 21:26 [3391644] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "FkuouCruxf26S6783WN9HtAwaEcUXm26w4tpTzigbPrD", "fee": 2800000, "feeAssetId": null, "timestamp": 1732818376730, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "imauMqPzTWKcG6ME6FtvjAVkdHTuof8yjGnJ47QuD66PH3J8K2sRSpVjER5aSr3nSax8eFd6Z2Tq3S6oTHKn6HE" ], "script": "base64:BgJPCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIARIFCgMIAQESABIDCgEIEgASAGEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFmRlZmF1bH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DI0NjUyAl8xBApuZnRBc3NldElkCAUNJHQwMjQ1ODAyNDY1MgJfMgQGYnVybmVkCQCQAwEFC2J1cm5BY3Rpb25zBBJidXJuQ291bnRlckFjdGlvbnMDCQAAAgUGYnVybmVkAAAFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgURa2V5TmZ0VG90YWxCdXJuZWQJAGQCCQELdmFsdWVPckVsc2UCCQCfCAEFEWtleU5mdFRvdGFsQnVybmVkAAAFBmJ1cm5lZAUDbmlsCQCUCgIJAM4IAgkAzggCCQDOCAIJAM4IAgUPaXNzdWVOZnRBY3Rpb25zBQtidXJuQWN0aW9ucwUSYnVybkNvdW50ZXJBY3Rpb25zBQ1wcm9sb2dBY3Rpb25zBQ1jaGFuZ2VBY3Rpb25zBQpuZnRBc3NldElkAWkBDG9wZW5OZnRDaGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCBQNuaWwAAADZx2S5", "height": 3391644, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DhrsDEdURfpBtFMsR4xdekhPVbQWSDftaEeZzrEYwVbC Next: CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE Diff:
OldNewDifferences
849849
850850
851851 @Callable(i)
852-func exchangeNFTs () = {
853- let prologActions = prolog(i)
854- if ((3 > size(i.payments)))
855- then throw("Min one USDT and 2 NFT payments allowed")
856- else if ((size(i.payments) > 6))
857- then throw("Max one USDT and 5 NFT payments allowed")
858- else {
859- let addr = toString(i.caller)
860- func addUp (acc,pmt) = {
861- let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
862- if ((assetId == usdtAssetId))
863- then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
852+func exchangeNFTs () = if ((i.caller != this))
853+ then throw("Temporarily disabled")
854+ else {
855+ let prologActions = prolog(i)
856+ if ((3 > size(i.payments)))
857+ then throw("Min one USDT and 2 NFT payments allowed")
858+ else if ((size(i.payments) > 6))
859+ then throw("Max one USDT and 5 NFT payments allowed")
860+ else {
861+ let addr = toString(i.caller)
862+ func addUp (acc,pmt) = {
863+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
864+ if ((assetId == usdtAssetId))
865+ then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
866+ else {
867+ let asset = value(assetInfo(assetId))
868+ if ((asset.issuer != this))
869+ then throw("Only WL-issued NFTs allowed")
870+ else {
871+ let bonusPerc = bonusByDescription(value(asset.description))
872+ $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
873+ }
874+ }
875+ }
876+
877+ let $t02404424123 = {
878+ let $l = i.payments
879+ let $s = size($l)
880+ let $acc0 = $Tuple3(0, 0, nil)
881+ func $f0_1 ($a,$i) = if (($i >= $s))
882+ then $a
883+ else addUp($a, $l[$i])
884+
885+ func $f0_2 ($a,$i) = if (($i >= $s))
886+ then $a
887+ else throw("List size exceeds 6")
888+
889+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
890+ }
891+ let usdtFee = $t02404424123._1
892+ let totalBonus = $t02404424123._2
893+ let burnActions = $t02404424123._3
894+ let nftIndex = if ((totalBonus == 3))
895+ then 2
896+ else if ((totalBonus == 5))
897+ then 3
898+ else if ((totalBonus == 10))
899+ then 4
900+ else throw("Only bonuses of 3%, 5% or 10% are supported")
901+ let change = (usdtFee - (totalBonus * MULT6))
902+ if ((0 > change))
903+ then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee"))
864904 else {
865- let asset = value(assetInfo(assetId))
866- if ((asset.issuer != this))
867- then throw("Only WL-issued NFTs allowed")
868- else {
869- let bonusPerc = bonusByDescription(value(asset.description))
870- $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
871- }
905+ let changeActions = if ((change > 0))
906+ then [ScriptTransfer(i.caller, change, usdtAssetId)]
907+ else nil
908+ let $t02458024652 = issueNFTinternal(nftIndex, i.caller)
909+ let issueNftActions = $t02458024652._1
910+ let nftAssetId = $t02458024652._2
911+ let burned = size(burnActions)
912+ let burnCounterActions = if ((burned == 0))
913+ then nil
914+ else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
915+ $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
872916 }
873917 }
918+ }
874919
875- let $t02398024059 = {
876- let $l = i.payments
877- let $s = size($l)
878- let $acc0 = $Tuple3(0, 0, nil)
879- func $f0_1 ($a,$i) = if (($i >= $s))
880- then $a
881- else addUp($a, $l[$i])
882920
883- func $f0_2 ($a,$i) = if (($i >= $s))
884- then $a
885- else throw("List size exceeds 6")
886921
887- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
888- }
889- let usdtFee = $t02398024059._1
890- let totalBonus = $t02398024059._2
891- let burnActions = $t02398024059._3
892- let nftIndex = if ((totalBonus == 3))
893- then 2
894- else if ((totalBonus == 5))
895- then 3
896- else if ((totalBonus == 10))
897- then 4
898- else throw("Only bonuses of 3%, 5% or 10% are supported")
899- let change = (usdtFee - (totalBonus * MULT6))
900- if ((0 > change))
901- then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee"))
902- else {
903- let changeActions = if ((change > 0))
904- then [ScriptTransfer(i.caller, change, usdtAssetId)]
905- else nil
906- let $t02451624588 = issueNFTinternal(nftIndex, i.caller)
907- let issueNftActions = $t02451624588._1
908- let nftAssetId = $t02451624588._2
909- let burned = size(burnActions)
910- let burnCounterActions = if ((burned == 0))
911- then nil
912- else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
913- $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
914- }
915- }
916- }
922+@Callable(i)
923+func openNftChest () = if ((i.caller != this))
924+ then throw("Permission denied")
925+ else $Tuple2(nil, 0)
917926
918927
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 DAY_MILLIS = 86400000
1313
1414 let USDT2ACRES_MULTIPLIER = 10
1515
1616 let ONE_PERCENT_DIVISOR = 100
1717
1818 let chain = take(drop(this.bytes, 1), 1)
1919
2020 let WEEK_BLOCKS = match chain {
2121 case _ =>
2222 if ((base58'2W' == $match0))
2323 then 10080
2424 else if ((base58'2T' == $match0))
2525 then 180
2626 else throw("Unknown chain")
2727 }
2828
2929 let usdtAssetId = match chain {
3030 case _ =>
3131 if ((base58'2W' == $match0))
3232 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
3333 else if ((base58'2T' == $match0))
3434 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
3535 else throw("Unknown chain")
3636 }
3737
3838 let defaultRest2AddressStr = match chain {
3939 case _ =>
4040 if ((base58'2W' == $match0))
4141 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
4242 else if ((base58'2T' == $match0))
4343 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
4444 else throw("Unknown chain")
4545 }
4646
4747 let arbitrageDelay = match chain {
4848 case _ =>
4949 if ((base58'2W' == $match0))
5050 then DAY_MILLIS
5151 else if ((base58'2T' == $match0))
5252 then 60000
5353 else throw("Unknown chain")
5454 }
5555
5656 let oldStakingContractStr = match chain {
5757 case _ =>
5858 if ((base58'2W' == $match0))
5959 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
6060 else if ((base58'2T' == $match0))
6161 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
6262 else throw("Unknown chain")
6363 }
6464
6565 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
6666
6767
6868 let IdxCfgAcres2Dapp = 1
6969
7070 let IdxCfgWlgDapp = 2
7171
7272 let IdxCfgInvestFundDapp = 5
7373
7474 func keyRestCfg () = "%s__restConfig"
7575
7676
7777 func keyRest2Address () = "%s__rest2Addr"
7878
7979
8080 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
8181
8282
8383 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
8484
8585
8686 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
8787
8888 let rest2Cfg = readRestCfgOrFail(rest2Contract)
8989
9090 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
9191
9292 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
9393
9494 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
9595
9696 let oldAcresContractKey = "oldAcresContract"
9797
9898 func keyBlocked () = "contractsBlocked"
9999
100100
101101 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
102102
103103
104104 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
105105
106106
107107 let acresIssuedAmountKey = "acresIssuedAmount"
108108
109109 let acresAssetIdKey = "acresAssetId"
110110
111111 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
112112
113113 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
114114
115115
116116 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
117117
118118
119119 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
120120
121121
122122 func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr)
123123
124124
125125 func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr)
126126
127127
128128 func asInt (v) = match v {
129129 case n: Int =>
130130 n
131131 case _ =>
132132 throw("fail to cast into Int")
133133 }
134134
135135
136136 func asTuple5Ints (val) = match val {
137137 case t: (Int, Int, Int, Int, Int) =>
138138 t
139139 case _ =>
140140 throw("fail to cast into (Int, Int, Int, Int, Int)")
141141 }
142142
143143
144144 func asTuple4Ints (val) = match val {
145145 case t: (Int, Int, Int, Int) =>
146146 t
147147 case _ =>
148148 throw("fail to cast into (Int, Int, Int, Int)")
149149 }
150150
151151
152152 func asTuple3Ints (val) = match val {
153153 case t: (Int, Int, Int) =>
154154 t
155155 case _ =>
156156 throw("fail to cast into (Int, Int, Int)")
157157 }
158158
159159
160160 func asTuple2Ints (val) = match val {
161161 case t: (Int, Int) =>
162162 t
163163 case _ =>
164164 throw("fail to cast into (Int, Int)")
165165 }
166166
167167
168168 func fixedPoint (val,decimals) = {
169169 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
170170 let lowPart = toString((val % tenPow))
171171 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
172172 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
173173 }
174174
175175
176176 let M6_ = 1000000
177177
178178 let M8_ = 100000000
179179
180180 let wlgIssuedAmtKey = "wlg_issuedAmount"
181181
182182 let zbIssuedAmtKey = "zbill_issuedAmount"
183183
184184 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
185185
186186
187187 func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr)
188188
189189
190190 let acresStakdTotalKey = "acresStakedAmountTotal"
191191
192192 let totalFarmingPowerKey = "totalFarmingPower"
193193
194194 let IdxDtx3PercConversion = 0
195195
196196 let MAX_WL_NFTS = 3
197197
198198 let MAX_ARK_NFTS = 1
199199
200200 let ARK_NFT_BONUS = 5000
201201
202202 let MAX_NFTS_STAKED_BY_USER = 4
203203
204204 let keyNftTotalIssued = "nftTotalIssued"
205205
206206 let keyNftTotalBurned = "nftTotalBurned"
207207
208208 let keyWlNftTotalStaked = "WlNftTotalStaked"
209209
210210 let keyArkNftTotalStaked = "ArkNftTotalStaked"
211211
212212 func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId)
213213
214214
215215 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
216216
217217
218218 func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr)
219219
220220
221221 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
222222
223223
224224 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
225225
226226 func getLevelByAcres (acres) = {
227227 let acr = ((acres + 99999999) / M8_)
228228 func checker (acc,item) = if ((item >= acr))
229229 then acc
230230 else (acc + 1)
231231
232232 let $l = levelAcres
233233 let $s = size($l)
234234 let $acc0 = 0
235235 func $f0_1 ($a,$i) = if (($i >= $s))
236236 then $a
237237 else checker($a, $l[$i])
238238
239239 func $f0_2 ($a,$i) = if (($i >= $s))
240240 then $a
241241 else throw("List size exceeds 10")
242242
243243 $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)
244244 }
245245
246246
247247 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
248248
249249
250250 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
251251 let notBonused = getFarmingPowerByAcres(acres)
252252 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
253253 }
254254
255255
256256 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
257257
258258
259259 let keyLastAcresSellTime = "lastAcresSellTime"
260260
261261 let keyLastLimitLeft = "lastLimitLeft"
262262
263263 let nftNames = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"]
264264
265265 let contentKeys = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"]
266266
267267 let names = ["Gold shovel", "Pickaxe", "Pickaxe", "Pickaxe", "Pickaxe"]
268268
269269 let descriptions = ["Reward for early birds", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower", "Increases FarmPower"]
270270
271271 let rarities = ["Promo", "Common", "Common", "Common", "Common"]
272272
273273 let bonuses = [3, 1, 3, 5, 10]
274274
275275 func prolog (i) = if (if ((i.originCaller != rest2Contract))
276276 then valueOrElse(getBoolean(keyBlocked()), false)
277277 else false)
278278 then throw("Contracts are under maintenance")
279279 else {
280280 let addr = toString(i.originCaller)
281281 let week = (height / WEEK_BLOCKS)
282282 let lastWeekTxIdByUser = getString(keyLastWeekTxIdByUser(addr))
283283 let txId = toBase58String(i.transactionId)
284284 let wtx = ((toString(week) + "_") + txId)
285285 if (isDefined(lastWeekTxIdByUser))
286286 then {
287287 let lastWeekTx = split(value(lastWeekTxIdByUser), "_")
288288 if ((lastWeekTx[0] == toString(week)))
289289 then [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
290290 else if ((lastWeekTx[0] == toString((week - 1))))
291291 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
292292 else {
293293 let curWeekTxIdByUser = getStringValue(keyLastWeekTxIdByUser(addr))
294294 let curWeekTx = split(curWeekTxIdByUser, "_")
295295 if ((curWeekTx[0] == toString(week)))
296296 then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
297297 else [StringEntry(keyLastWeekTxIdByUser(addr), curWeekTxIdByUser), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
298298 }
299299 }
300300 else [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)]
301301 }
302302
303303
304304 func createNftDescription (nftIndex,nftSerial) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + contentKeys[nftIndex]) + "\", ") + "\"number\": ") + nftSerial) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + names[nftIndex]) + "\", ") + "\"description\": \"") + descriptions[nftIndex]) + "\", ") + "\"rare\": \"") + rarities[nftIndex]) + "\", ") + "\"bonus\": ") + toString(bonuses[nftIndex])) + ", ") + "\"bonusType\": \"FarmPower\"}")
305305
306306
307307 func issueNFTinternal (nftIndex,addr) = if ((nftIndex >= size(contentKeys)))
308308 then throw("nftIndex out of bounds")
309309 else {
310310 let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0)
311311 let issue = Issue(nftNames[nftIndex], createNftDescription(nftIndex, toString(nftSerial)), 1, 0, false)
312312 let nftAssetId = calculateAssetId(issue)
313313 $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId)
314314 }
315315
316316
317317 func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0))
318318 then (bonusDelta == 0)
319319 else false)
320320 then throw("Nothing to do")
321321 else {
322322 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
323323 if ((wlgResult == wlgResult))
324324 then {
325325 let now = lastBlock.timestamp
326326 let timeKey = keyAcresStakedTimeByUser(address)
327327 let amountKey = keyAcresStakedAmtByUser(address)
328328 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
329329 if (if ((0 > amt))
330330 then (0 > (oldAcresAmount + amt))
331331 else false)
332332 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8)))
333333 else {
334334 let newAcresAmount = (oldAcresAmount + amt)
335335 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
336336 let userFpKey = keyFarmingPowerByUser(address)
337337 let oldFp = valueOrElse(getInteger(userFpKey), 0)
338338 let bonusKey = keyUserFullBonus(address)
339339 let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0)
340340 if (if ((0 > bonusDelta))
341341 then (0 > (oldBonus + bonusDelta))
342342 else false)
343343 then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%"))
344344 else {
345345 let $t048204919 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta))
346346 let newBonusedFp = $t048204919._1
347347 let ignored = $t048204919._2
348348 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
349349 let acresActions = if ((amt == 0))
350350 then nil
351351 else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))]
352352 $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult)
353353 }
354354 }
355355 }
356356 else throw("Strict value is not equal to itself.")
357357 }
358358
359359
360360 func getWlgPrice (usdtBalanceCorrection) = {
361361 let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet")
362362 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
363363 let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection)
364364 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
365365 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
366366 fraction(totalFundsUsd, MULT8, issuedAmount)
367367 }
368368
369369
370370 func getSwapLimitAcres () = {
371371 let wlgUsd = assetBalance(wlgContract, usdtAssetId)
372372 let acres2Usd = assetBalance(this, usdtAssetId)
373373 let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0))
374374 let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR)
375375 let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit)
376376 let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0)
377377 let now = lastBlock.timestamp
378378 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS))
379379 let limitLeftUsdt = min([currentLimit, defaultLimit])
380380 $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt)
381381 }
382382
383383
384384 let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og")
385385
386386 let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "")
387387
388388 let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "")
389389
390390 let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "")
391391
392392 let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "")
393393
394394 let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "")
395395
396396 let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "")
397397
398398 let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "")
399399
400400 let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "")
401401
402402 let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "")
403403
404404 func isArkimalIssued (nfo) = {
405405 let issuer = toString(nfo.issuer)
406406 if (if (if (if (if (if (if (if (if (if ((chain == base58'2T'))
407407 then (issuer == oldStakingContractStr)
408408 else false)
409409 then true
410410 else (issuer == incubator))
411411 then true
412412 else (issuer == breeder))
413413 then true
414414 else (issuer == turtleIncubator))
415415 then true
416416 else (issuer == turtleBreeder))
417417 then true
418418 else (issuer == canineIncubator))
419419 then true
420420 else (issuer == canineBreeder))
421421 then true
422422 else (issuer == felineIncubator))
423423 then true
424424 else (issuer == felineBreeder))
425425 then nfo.name
426426 else if ((issuer == mutantBreeder))
427427 then nfo.description
428428 else ""
429429 }
430430
431431
432432 func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\"")))
433433 then throw(("NFT is not supported: " + descr))
434434 else {
435435 let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0]
436436 parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1)))
437437 }
438438
439439
440440 func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = {
441441 let nftNumber = valueOrElse(getInteger(userNumKey), 0)
442442 if ((nftNumber >= limit))
443443 then throw((("You can stake max " + toString(limit)) + " of such NFTs"))
444444 else {
445445 let $t094469522 = stakeUnstakeAcresInternal(0, addr, bonus6)
446446 let actions = $t094469522._1
447447 let wlgClaimedAmount = $t094469522._2
448448 $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount)
449449 }
450450 }
451451
452452
453453 @Callable(i)
454454 func saveLastTx () = if (!(containsElement([wlgContract], i.caller)))
455455 then throw("Access denied")
456456 else $Tuple2(prolog(i), 42)
457457
458458
459459
460460 @Callable(i)
461461 func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this))
462462 then throw("Permission denied")
463463 else {
464464 let oldAcrContAddr = addressFromStringValue(oldAcrContract)
465465 [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)]
466466 }
467467
468468
469469
470470 @Callable(i)
471471 func setBlocked (isBlocked) = if ((i.caller != this))
472472 then throw("permission denied")
473473 else [BooleanEntry(keyBlocked(), isBlocked)]
474474
475475
476476
477477 @Callable(i)
478478 func unstakeAcres (amount) = {
479479 let prologActions = prolog(i)
480480 if ((0 >= amount))
481481 then throw("Amount should be positive")
482482 else {
483483 let address = toString(i.caller)
484484 if ((size(i.payments) != 0))
485485 then throw("No payments required")
486486 else {
487487 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay)
488488 if ((arbReleaseTime > lastBlock.timestamp))
489489 then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime)))
490490 else {
491491 let $t01109611176 = stakeUnstakeAcresInternal(-(amount), address, 0)
492492 let actions = $t01109611176._1
493493 let wlgClaimedAmount = $t01109611176._2
494494 $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount)
495495 }
496496 }
497497 }
498498 }
499499
500500
501501
502502 @Callable(i)
503503 func stakeAcres () = {
504504 let prologActions = prolog(i)
505505 let address = toString(i.caller)
506506 if ((size(i.payments) != 1))
507507 then throw("exactly 1 payment must be attached")
508508 else {
509509 let pmt = i.payments[0]
510510 let amt = pmt.amount
511511 if (if (!(isDefined(pmt.assetId)))
512512 then true
513513 else (value(pmt.assetId) != acresAssetId))
514514 then throw("ACRES payments only!")
515515 else {
516516 let $t01162711703 = stakeUnstakeAcresInternal(amt, address, 0)
517517 let actions = $t01162711703._1
518518 let wlgClaimedAmount = $t01162711703._2
519519 $Tuple2((actions ++ prologActions), wlgClaimedAmount)
520520 }
521521 }
522522 }
523523
524524
525525
526526 @Callable(i)
527527 func buyAcres () = {
528528 let prologActions = prolog(i)
529529 if ((size(i.payments) != 1))
530530 then throw("exactly 1 payment must be attached")
531531 else {
532532 let pmt = i.payments[0]
533533 let usdtAmount = pmt.amount
534534 if (if (!(isDefined(pmt.assetId)))
535535 then true
536536 else (value(pmt.assetId) != usdtAssetId))
537537 then throw("USDT payments only!")
538538 else if ((MULT6 > usdtAmount))
539539 then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT"))
540540 else {
541541 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
542542 let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
543543 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
544544 let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil)
545545 if ((req == req))
546546 then {
547547 let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil))
548548 $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain)
549549 }
550550 else throw("Strict value is not equal to itself.")
551551 }
552552 }
553553 }
554554
555555
556556
557557 @Callable(i)
558558 func buyAcresREADONLY (usdtAmount) = {
559559 let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER)
560560 let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount))
561561 $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn])
562562 }
563563
564564
565565
566566 @Callable(i)
567567 func sellAcres () = {
568568 let prologActions = prolog(i)
569569 if ((size(i.payments) != 1))
570570 then throw("exactly 1 payment must be attached")
571571 else {
572572 let pmt = i.payments[0]
573573 let acresAmount = pmt.amount
574574 if (if (!(isDefined(pmt.assetId)))
575575 then true
576576 else (value(pmt.assetId) != acresAssetId))
577577 then throw("ACRES payments only!")
578578 else if ((MULT7 > acresAmount))
579579 then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES"))
580580 else {
581581 let addr = toString(i.caller)
582582 let $t01356013608 = getSwapLimitAcres()
583583 let limitAction = $t01356013608._1
584584 let maxUsdt = $t01356013608._2
585585 let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER)
586586 if ((acresAmount > maxAcres))
587587 then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES"))
588588 else {
589589 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
590590 $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount)
591591 }
592592 }
593593 }
594594 }
595595
596596
597597
598598 @Callable(i)
599599 func sellAcresREADONLY (address,acresAmount) = {
600600 let $t01410414152 = getSwapLimitAcres()
601601 let limitAction = $t01410414152._1
602602 let maxUsdt = $t01410414152._2
603603 let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2)
604604 $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0])
605605 }
606606
607607
608608
609609 @Callable(i)
610610 func convertOldStakes () = if ((i.caller != this))
611611 then throw("Temporarily disabled")
612612 else {
613613 let address = toString(i.caller)
614614 if ((size(i.payments) != 0))
615615 then throw("No payments required")
616616 else {
617617 let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey))
618618 let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0)
619619 let gotAcres0 = if ((amount > 0))
620620 then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil))
621621 else $Tuple2(0, 0)
622622 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
623623 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
624624 let landsResult = if (isDefined(landsStr))
625625 then {
626626 let lands = split_51C(value(landsStr), "_")
627627 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
628628 then throw("landAssetId is required")
629629 else {
630630 let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil))
631631 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
632632 }
633633
634634 let rr = {
635635 let $l = lands
636636 let $s = size($l)
637637 let $acc0 = $Tuple4(0, 0, 0, 0)
638638 func $f0_1 ($a,$i) = if (($i >= $s))
639639 then $a
640640 else oneLand($a, $l[$i])
641641
642642 func $f0_2 ($a,$i) = if (($i >= $s))
643643 then $a
644644 else throw("List size exceeds 100")
645645
646646 $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)
647647 }
648648 let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil)
649649 if ((finalize == finalize))
650650 then {
651651 let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil)
652652 if ((req == req))
653653 then {
654654 let $t01602116101 = issueNFTinternal(IdxDtx3PercConversion, i.caller)
655655 let nftActions = $t01602116101._1
656656 let nftAssetId = $t01602116101._2
657657 $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions)
658658 }
659659 else throw("Strict value is not equal to itself.")
660660 }
661661 else throw("Strict value is not equal to itself.")
662662 }
663663 else $Tuple5(0, 0, 0, 0, nil)
664664 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "")
665665 let duckResult = if ((duckAssetId != ""))
666666 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil))
667667 else $Tuple3(0, 0, 0)
668668 let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0)
669669 $Tuple2((landsResult._5 ++ x._1), x._2)
670670 }
671671 }
672672
673673
674674
675675 @Callable(i)
676676 func unstakeLandsREADONLY (address) = {
677677 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
678678 let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address))
679679 let landsResult = if (isDefined(landsStr))
680680 then {
681681 let lands = split_51C(value(landsStr), "_")
682682 func oneLand (acc,landAssetId) = if ((landAssetId == ""))
683683 then throw("landAssetId is required")
684684 else {
685685 let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil))
686686 $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4))
687687 }
688688
689689 let $l = lands
690690 let $s = size($l)
691691 let $acc0 = $Tuple4(0, 0, 0, 0)
692692 func $f0_1 ($a,$i) = if (($i >= $s))
693693 then $a
694694 else oneLand($a, $l[$i])
695695
696696 func $f0_2 ($a,$i) = if (($i >= $s))
697697 then $a
698698 else throw("List size exceeds 100")
699699
700700 $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)
701701 }
702702 else $Tuple4(0, 0, 0, 0)
703703 $Tuple2(nil, landsResult)
704704 }
705705
706706
707707
708708 @Callable(i)
709709 func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr)))
710710 then throw("Permission denied")
711711 else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0)
712712
713713
714714
715715 @Callable(i)
716716 func simulateStakeAcresREADONLY (address,addedAmount) = {
717717 let amountKey = keyAcresStakedAmtByUser(address)
718718 let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount)
719719 let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0)
720720 let userFpKey = keyFarmingPowerByUser(address)
721721 let oldFp = valueOrElse(getInteger(userFpKey), 0)
722722 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0)
723723 let $t01826618353 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus)
724724 let newBonusedFp = $t01826618353._1
725725 let ignored = $t01826618353._2
726726 let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0)
727727 let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp)
728728 $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp])
729729 }
730730
731731
732732
733733 @Callable(i)
734734 func issueNFT (forAddress,nftIndex) = if ((i.caller != wlgContract))
735735 then throw("Permission denied")
736736 else issueNFTinternal(nftIndex, addressFromStringValue(forAddress))
737737
738738
739739
740740 @Callable(i)
741741 func issueNftAdmin (forAddress,nftIndex,serial) = if ((i.caller != this))
742742 then throw("Permission denied")
743743 else if ((nftIndex >= size(contentKeys)))
744744 then throw("nftIndex out of bounds")
745745 else {
746746 let issue = Issue(nftNames[nftIndex], createNftDescription(nftIndex, toString(serial)), 1, 0, false)
747747 let nftAssetId = calculateAssetId(issue)
748748 $Tuple2([issue, IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), serial), ScriptTransfer(addressFromStringValue(forAddress), 1, nftAssetId)], nftAssetId)
749749 }
750750
751751
752752
753753 @Callable(i)
754754 func stakeNFT () = {
755755 let prologActions = prolog(i)
756756 if ((size(i.payments) != 1))
757757 then throw("Exactly one payment required")
758758 else {
759759 let pmt = value(i.payments[0])
760760 if ((pmt.amount != 1))
761761 then throw("NFT token should be attached as payment")
762762 else {
763763 let assetId = value(pmt.assetId)
764764 let asset = value(assetInfo(assetId))
765765 let assetIdStr = toBase58String(assetId)
766766 let addr = toString(i.caller)
767767 let nftsKey = keyStakedNFTsByOwner(addr)
768768 let nftsStr = getString(nftsKey)
769769 let nfts = if (isDefined(nftsStr))
770770 then split_4C(value(nftsStr), "_")
771771 else nil
772772 if (containsElement(nfts, assetIdStr))
773773 then throw(("Your staked NFTs already contain " + assetIdStr))
774774 else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER))
775775 then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs"))
776776 else {
777777 let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_"))
778778 if ((asset.issuer == this))
779779 then {
780780 let $t02032220512 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS)
781781 let actions = $t02032220512._1
782782 let wlgClaimedAmount = $t02032220512._2
783783 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
784784 }
785785 else if ((isArkimalIssued(asset) == ""))
786786 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
787787 else {
788788 let $t02069320844 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS)
789789 let actions = $t02069320844._1
790790 let wlgClaimedAmount = $t02069320844._2
791791 $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount)
792792 }
793793 }
794794 }
795795 }
796796 }
797797
798798
799799
800800 @Callable(i)
801801 func unstakeNFT (assetIdStr) = {
802802 let prologActions = prolog(i)
803803 if ((size(i.payments) != 0))
804804 then throw("No payments required")
805805 else {
806806 let assetId = fromBase58String(assetIdStr)
807807 let addr = toString(i.caller)
808808 let asset = value(assetInfo(assetId))
809809 let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr)
810810 if (!(isDefined(getInteger(timeKey))))
811811 then throw((("NFT " + asset.name) + " is not staked by you"))
812812 else {
813813 let nftsKey = keyStakedNFTsByOwner(addr)
814814 let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_")
815815 let idx = indexOf(nfts, assetIdStr)
816816 if (!(isDefined(idx)))
817817 then throw(("Your staked NFTs don't contain " + assetIdStr))
818818 else {
819819 let listAction = if ((size(nfts) > 1))
820820 then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_"))
821821 else DeleteEntry(nftsKey)
822822 let isWL = (asset.issuer == this)
823823 if (isWL)
824824 then {
825825 let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0)
826826 let bonusVal = (bonusByDescription(value(asset.description)) * 10000)
827827 let $t02200922088 = stakeUnstakeAcresInternal(0, addr, -(bonusVal))
828828 let actions = $t02200922088._1
829829 let wlgClaimedAmount = $t02200922088._2
830830 $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)
831831 }
832832 else {
833833 let arkimalName = isArkimalIssued(asset)
834834 if ((arkimalName == ""))
835835 then throw("Only WavesLands and Arkimals NFT tokens are accepted")
836836 else {
837837 let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0)
838838 let $t02274822832 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS))
839839 let actions = $t02274822832._1
840840 let wlgClaimedAmount = $t02274822832._2
841841 $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount)
842842 }
843843 }
844844 }
845845 }
846846 }
847847 }
848848
849849
850850
851851 @Callable(i)
852-func exchangeNFTs () = {
853- let prologActions = prolog(i)
854- if ((3 > size(i.payments)))
855- then throw("Min one USDT and 2 NFT payments allowed")
856- else if ((size(i.payments) > 6))
857- then throw("Max one USDT and 5 NFT payments allowed")
858- else {
859- let addr = toString(i.caller)
860- func addUp (acc,pmt) = {
861- let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
862- if ((assetId == usdtAssetId))
863- then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
852+func exchangeNFTs () = if ((i.caller != this))
853+ then throw("Temporarily disabled")
854+ else {
855+ let prologActions = prolog(i)
856+ if ((3 > size(i.payments)))
857+ then throw("Min one USDT and 2 NFT payments allowed")
858+ else if ((size(i.payments) > 6))
859+ then throw("Max one USDT and 5 NFT payments allowed")
860+ else {
861+ let addr = toString(i.caller)
862+ func addUp (acc,pmt) = {
863+ let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed")
864+ if ((assetId == usdtAssetId))
865+ then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3)
866+ else {
867+ let asset = value(assetInfo(assetId))
868+ if ((asset.issuer != this))
869+ then throw("Only WL-issued NFTs allowed")
870+ else {
871+ let bonusPerc = bonusByDescription(value(asset.description))
872+ $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
873+ }
874+ }
875+ }
876+
877+ let $t02404424123 = {
878+ let $l = i.payments
879+ let $s = size($l)
880+ let $acc0 = $Tuple3(0, 0, nil)
881+ func $f0_1 ($a,$i) = if (($i >= $s))
882+ then $a
883+ else addUp($a, $l[$i])
884+
885+ func $f0_2 ($a,$i) = if (($i >= $s))
886+ then $a
887+ else throw("List size exceeds 6")
888+
889+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
890+ }
891+ let usdtFee = $t02404424123._1
892+ let totalBonus = $t02404424123._2
893+ let burnActions = $t02404424123._3
894+ let nftIndex = if ((totalBonus == 3))
895+ then 2
896+ else if ((totalBonus == 5))
897+ then 3
898+ else if ((totalBonus == 10))
899+ then 4
900+ else throw("Only bonuses of 3%, 5% or 10% are supported")
901+ let change = (usdtFee - (totalBonus * MULT6))
902+ if ((0 > change))
903+ then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee"))
864904 else {
865- let asset = value(assetInfo(assetId))
866- if ((asset.issuer != this))
867- then throw("Only WL-issued NFTs allowed")
868- else {
869- let bonusPerc = bonusByDescription(value(asset.description))
870- $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)))
871- }
905+ let changeActions = if ((change > 0))
906+ then [ScriptTransfer(i.caller, change, usdtAssetId)]
907+ else nil
908+ let $t02458024652 = issueNFTinternal(nftIndex, i.caller)
909+ let issueNftActions = $t02458024652._1
910+ let nftAssetId = $t02458024652._2
911+ let burned = size(burnActions)
912+ let burnCounterActions = if ((burned == 0))
913+ then nil
914+ else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
915+ $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
872916 }
873917 }
918+ }
874919
875- let $t02398024059 = {
876- let $l = i.payments
877- let $s = size($l)
878- let $acc0 = $Tuple3(0, 0, nil)
879- func $f0_1 ($a,$i) = if (($i >= $s))
880- then $a
881- else addUp($a, $l[$i])
882920
883- func $f0_2 ($a,$i) = if (($i >= $s))
884- then $a
885- else throw("List size exceeds 6")
886921
887- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
888- }
889- let usdtFee = $t02398024059._1
890- let totalBonus = $t02398024059._2
891- let burnActions = $t02398024059._3
892- let nftIndex = if ((totalBonus == 3))
893- then 2
894- else if ((totalBonus == 5))
895- then 3
896- else if ((totalBonus == 10))
897- then 4
898- else throw("Only bonuses of 3%, 5% or 10% are supported")
899- let change = (usdtFee - (totalBonus * MULT6))
900- if ((0 > change))
901- then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee"))
902- else {
903- let changeActions = if ((change > 0))
904- then [ScriptTransfer(i.caller, change, usdtAssetId)]
905- else nil
906- let $t02451624588 = issueNFTinternal(nftIndex, i.caller)
907- let issueNftActions = $t02451624588._1
908- let nftAssetId = $t02451624588._2
909- let burned = size(burnActions)
910- let burnCounterActions = if ((burned == 0))
911- then nil
912- else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))]
913- $Tuple2(((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions), nftAssetId)
914- }
915- }
916- }
922+@Callable(i)
923+func openNftChest () = if ((i.caller != this))
924+ then throw("Permission denied")
925+ else $Tuple2(nil, 0)
917926
918927

github/deemru/w8io/026f985 
76.29 ms