tx · 61mWhTJ6ootfGoKXpB9Uq2bWGBdaDTRB5LBbUgs6P88a

3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep:  -0.03600000 Waves

2023.07.31 15:26 [2690058] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves

{ "type": 13, "id": "61mWhTJ6ootfGoKXpB9Uq2bWGBdaDTRB5LBbUgs6P88a", "fee": 3600000, "feeAssetId": null, "timestamp": 1690806445697, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "5U9zqjS3QcyJVMuX8iuMBBYPsPX9rQPg9m6vgxQQCyKy8h46P6XeGHnNqnJuvRXSREb7YF8GYwd5To1A8CQL3NeQ" ], "script": "base64:BgI7CAISBAoCCBgSAwoBCBIECgIRERIECgIRERIDCgEREgQKAgEBEgQKAggIEgUKAwgICBIDCgEREgMKAQhSAAd4cFRyYWRlAJBOAAd4cENyYWZ0AJBOAAp4cFNlbGxUb0VzAJBOAAZ4cFNob3AAkE4ACkxBTkRQUkVGSVgCBExBTkQABk5VTVJFUwAGAA9ERUZBVUxUTE9DQVRJT04CD0FmcmljYV9GX0FmcmljYQAQUkVTT1VSQ0VQUklDRU1JTgDVtQIADUVTTUFYUEFDS0FHRVMAAwAJRVNCVVlDT0VGAAQACHJlc1R5cGVzCQDMCAICA09pbAkAzAgCAgNPcmUJAMwIAgIEV29vZAkAzAgCAgRTYW5kCQDMCAICBENsYXkJAMwIAgIHT3JnYW5pYwUDbmlsAAhtYXRUeXBlcwkAzAgCAgRGdWVsCQDMCAICBU1ldGFsCQDMCAICBVBsYW5rCQDMCAICBUdsYXNzCQDMCAICB1BsYXN0aWMJAMwIAgIHUHJvdGVpbgUDbmlsAAlwcm9kVHlwZXMJAMwIAgIQRmlyc3QgQWlkIEtpdCBMMQkAzAgCAhBGaXJzdCBBaW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9zdGFraW5nQ29udHJhY3QJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ5rZXlFc1dhcmVob3VzZQAFCm5ld1N0b3JhZ2UFA25pbAUKbmV3U3RvcmFnZQCCLlIA", "height": 2690058, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HW4dRmCJDYAvUEa4oKK9YLu6UBXScVKcSirNFsCwvvta Next: Gt715AXgjyyUeq3fSX3czVf8VE4tjAac4vUHmiv6bmp5 Diff:
OldNewDifferences
10021002 then throw(((("Warehouse can buy only " + toString(canBuy)) + " of ") + prodTypes[j]))
10031003 else {
10041004 let totalMat = getRecipeMaterials(recipe)
1005- let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * PRODUCTPKGSIZE))
1005+ let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE))
10061006 let bpProdAmount = if ((size(prodList) > j))
10071007 then parseIntValue(prodList[j])
10081008 else 0
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xpTrade = 10000
55
66 let xpCraft = 10000
77
88 let xpSellToEs = 10000
99
1010 let xpShop = 10000
1111
1212 let LANDPREFIX = "LAND"
1313
1414 let NUMRES = 6
1515
1616 let DEFAULTLOCATION = "Africa_F_Africa"
1717
1818 let RESOURCEPRICEMIN = 39637
1919
2020 let ESMAXPACKAGES = 3
2121
2222 let ESBUYCOEF = 4
2323
2424 let resTypes = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"]
2525
2626 let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"]
2727
2828 let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"]
2929
3030 let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"]
3131
3232 let COEFF2MAT = 10000000
3333
3434 let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201"]
3535
3636 let rIdxCoeff = 6
3737
3838 let rIdxContinent = 7
3939
4040 let RECIPESIZE = 11
4141
4242 let PRODUCTPKGSIZE = 10
4343
4444 let whIdxLevels = 0
4545
4646 let whIdxRes = 1
4747
4848 let whIdxMat = 2
4949
5050 let whIdxProd = 3
5151
5252 let whIdxLOFT = 4
5353
5454 let volLocked = 0
5555
5656 let volTotal = 3
5757
5858 let bpIdxLevel = 0
5959
6060 let bpIdxRes = 1
6161
6262 let bpIdxMat = 2
6363
6464 let bpIdxProd = 3
6565
6666 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
6767
6868
6969 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
7070
7171
7272 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
7373
7474
7575 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
7676
7777
7878 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
7979
8080
8181 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
8282
8383
8484 func keyBlocked () = "contractsBlocked"
8585
8686
8787 func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId)
8888
8989
9090 func keyEsWarehouse () = "emergencyWarehouseProducts"
9191
9292
9393 let locIdxContinent = 0
9494
9595 let locIdxType = 1
9696
9797 let locIdxId = 2
9898
9999 func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT)
100100
101101
102102 let chain = take(drop(this.bytes, 1), 1)
103103
104104 let usdtAssetId = match chain {
105105 case _ =>
106106 if ((base58'2W' == $match0))
107107 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
108108 else if ((base58'2T' == $match0))
109109 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
110110 else throw("Unknown chain")
111111 }
112112
113113 let defaultRestAddressStr = match chain {
114114 case _ =>
115115 if ((base58'2W' == $match0))
116116 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
117117 else if ((base58'2T' == $match0))
118118 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
119119 else throw("Unknown chain")
120120 }
121121
122122 let SEP = "__"
123123
124124 let MULT6 = 1000000
125125
126126 let MULT8 = 100000000
127127
128128 let MULT10 = 10000000000
129129
130130 let MINSHOPPAYMENT = 100000
131131
132132 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
133133
134134
135135 let IdxCfgStakingDapp = 1
136136
137137 func keyRestCfg () = "%s__restConfig"
138138
139139
140140 func keyRestAddress () = "%s__restAddr"
141141
142142
143143 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
144144
145145
146146 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
147147
148148
149149 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
150150
151151 let restCfg = readRestCfgOrFail(restContract)
152152
153153 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
154154
155155 func asString (v) = match v {
156156 case s: String =>
157157 s
158158 case _ =>
159159 throw("fail to cast into String")
160160 }
161161
162162
163163 func asInt (v) = match v {
164164 case n: Int =>
165165 n
166166 case _ =>
167167 throw("fail to cast into Int")
168168 }
169169
170170
171171 func fixedPoint (val,decimals) = {
172172 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
173173 ((toString((val / tenPow)) + ".") + toString((val % tenPow)))
174174 }
175175
176176
177177 let FACTORYMAXWAREHOUSE = 10000000000
178178
179179 let SELLMULTIPLIER = 200
180180
181181 let BUYMULTIPLIER = 300
182182
183183 let AUCTIONFEE = 10000
184184
185185 func keyFactoryWarehouseByIdAndType (factoryId,resType) = ((("factoryWhByContinentAndRes_" + factoryId) + "_") + toString(resType))
186186
187187
188188 let ordIdxRes = 0
189189
190190 let ordIdxMat = 1
191191
192192 let ordIdxProd = 2
193193
194194 func getOrder (ordKey) = {
195195 let p = split(valueOrElse(getString(ordKey), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"), ":")
196196 [if ((size(split(p[ordIdxRes], "_")) == NUMRES))
197197 then p[ordIdxRes]
198198 else "0@0_0@0_0@0_0@0_0@0_0@0", if ((size(split(p[ordIdxMat], "_")) == NUMRES))
199199 then p[ordIdxMat]
200200 else "0@0_0@0_0@0_0@0_0@0_0@0", p[ordIdxProd]]
201201 }
202202
203203
204204 func toVolume (amount,pkgSize,isProduct) = if (isProduct)
205205 then {
206206 let pkgs = if ((amount >= 0))
207207 then (((amount + pkgSize) - 1) / pkgSize)
208208 else -((((-(amount) + pkgSize) - 1) / pkgSize))
209209 (pkgs * MULT8)
210210 }
211211 else amount
212212
213213
214214 func sellInternal (locId,resType,amount,minPrice) = {
215215 let whKey = keyFactoryWarehouseByIdAndType(locId, resType)
216216 let w0 = valueOrElse(getInteger(whKey), 0)
217217 let r0 = if ((w0 > FACTORYMAXWAREHOUSE))
218218 then 0
219219 else if (((w0 + amount) > FACTORYMAXWAREHOUSE))
220220 then (FACTORYMAXWAREHOUSE - w0)
221221 else amount
222222 let usdtReceived = (fraction(r0, ((SELLMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) + (50 * r0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction((amount - r0), RESOURCEPRICEMIN, MULT8))
223223 let min99 = (minPrice - (minPrice / 100))
224224 if (((min99 * amount) > (usdtReceived * MULT8)))
225225 then throw((((((((((("Actual price = " + toString(usdtReceived)) + " / ") + toString(amount)) + " < minPrice = ") + toString(minPrice)) + ", (") + locId) + ", ") + resTypes[resType]) + ")"))
226226 else $Tuple2(IntegerEntry(whKey, (w0 + amount)), usdtReceived)
227227 }
228228
229229
230230 func buyInternal (locId,matType,amount,maxPrice) = {
231231 let whKey = keyFactoryWarehouseByIdAndType(locId, matType)
232232 let w0 = valueOrElse(getInteger(whKey), 0)
233233 let m1 = if ((w0 > FACTORYMAXWAREHOUSE))
234234 then min([amount, (w0 - FACTORYMAXWAREHOUSE)])
235235 else 0
236236 let m0 = min([w0, (amount - m1)])
237237 let m = (m0 + m1)
238238 let usdtSpent = (fraction(m0, ((BUYMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) - (50 * m0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction(m1, (2 * RESOURCEPRICEMIN), MULT8))
239239 let max101 = (maxPrice + (maxPrice / 100))
240240 if (((usdtSpent * MULT8) > (max101 * m)))
241241 then throw((((((((((("Actual price = " + toString(usdtSpent)) + " / ") + toString(m)) + " > maxPrice = ") + toString(maxPrice)) + ", (") + locId) + ", ") + matTypes[matType]) + ")"))
242242 else $Tuple3(IntegerEntry(whKey, (w0 - m)), usdtSpent, m)
243243 }
244244
245245
246246 func getBackpack (bpKey) = {
247247 let p = split(valueOrElse(getString(stakingContract, bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
248248 [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES))
249249 then p[bpIdxRes]
250250 else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES))
251251 then p[bpIdxMat]
252252 else "0_0_0_0_0_0", p[bpIdxProd]]
253253 }
254254
255255
256256 func checkBlocked () = if (valueOrElse(getBoolean(stakingContract, keyBlocked()), false))
257257 then throw("Contracts are under maintenance")
258258 else unit
259259
260260
261261 func prolog () = asInt(invoke(stakingContract, "saveLastTx", nil, nil))
262262
263263
264264 func setCommon (acc,item) = {
265265 let j = acc._1
266266 let isProd = acc._8
267267 let itemParts = split(item, "@")
268268 if ((size(itemParts) != 2))
269269 then throw("Incorrect order format, should be amount@price")
270270 else {
271271 let newOrdAm = parseIntValue(itemParts[0])
272272 let newOrdPr = parseIntValue(itemParts[1])
273273 let newOrdUsd = fraction(newOrdAm, newOrdPr, MULT8)
274274 let newOrdVol = toVolume(newOrdAm, PRODUCTPKGSIZE, isProd)
275275 let whInit = if ((size(acc._6) > j))
276276 then parseIntValue(acc._6[j])
277277 else 0
278278 let curOrdParts = split(if ((size(acc._7) > j))
279279 then acc._7[j]
280280 else "0@0", "@")
281281 let curOrdAm = parseIntValue(curOrdParts[0])
282282 let curOrdPr = parseIntValue(curOrdParts[1])
283283 if (if ((0 > curOrdPr))
284284 then true
285285 else (0 > newOrdPr))
286286 then throw("Price can't be negative")
287287 else {
288288 let curOrdUsd = fraction(curOrdAm, curOrdPr, MULT8)
289289 if ((newOrdAm == 0))
290290 then if ((curOrdAm > 0))
291291 then $Tuple9((j + 1), (acc._2 :+ toString(whInit)), acc._3, acc._4, (acc._5 - curOrdUsd), acc._6, acc._7, isProd, (acc._9 + toVolume(whInit, PRODUCTPKGSIZE, isProd)))
292292 else $Tuple9((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), acc._3, acc._4, acc._5, acc._6, acc._7, isProd, (acc._9 + toVolume((whInit - curOrdAm), PRODUCTPKGSIZE, isProd)))
293293 else if ((newOrdAm > 0))
294294 then if ((0 > curOrdAm))
295295 then $Tuple9((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), (acc._3 + newOrdVol), acc._4, (acc._5 + newOrdUsd), acc._6, acc._7, isProd, toVolume((whInit - curOrdAm), PRODUCTPKGSIZE, isProd))
296296 else $Tuple9((j + 1), (acc._2 :+ toString(whInit)), (acc._3 + newOrdVol), acc._4, ((acc._5 + newOrdUsd) - curOrdUsd), acc._6, acc._7, isProd, toVolume(whInit, PRODUCTPKGSIZE, isProd))
297297 else if ((0 > curOrdAm))
298298 then {
299299 let amDiff = (curOrdAm - newOrdAm)
300300 if ((0 > (whInit - amDiff)))
301301 then throw((((("Attempt to take " + toString(amDiff)) + " from warehouse, but only ") + toString(whInit)) + " available"))
302302 else $Tuple9((j + 1), (acc._2 :+ toString((whInit - amDiff))), acc._3, (acc._4 - newOrdVol), acc._5, acc._6, acc._7, isProd, toVolume((whInit - amDiff), PRODUCTPKGSIZE, isProd))
303303 }
304304 else if ((0 > (whInit + newOrdAm)))
305305 then throw((((("Attempt to take " + toString(-(newOrdAm))) + " from warehouse, but only ") + toString(whInit)) + " available"))
306306 else $Tuple9((j + 1), (acc._2 :+ toString((whInit + newOrdAm))), acc._3, (acc._4 - newOrdVol), (acc._5 - curOrdUsd), acc._6, acc._7, isProd, toVolume((whInit + newOrdAm), PRODUCTPKGSIZE, isProd))
307307 }
308308 }
309309 }
310310
311311
312312 func setInternal (currentWh,currentOrd,newOrd) = {
313313 let currWhRes = split(currentWh[whIdxRes], "_")
314314 let currWhMat = split(currentWh[whIdxMat], "_")
315315 let currWhProd = if ((currentWh[whIdxProd] == ""))
316316 then nil
317317 else split(currentWh[whIdxProd], "_")
318318 let currentOrdRes = split(currentOrd[ordIdxRes], "_")
319319 let currentOrdMat = split(currentOrd[ordIdxMat], "_")
320320 let currentOrdProd = if ((currentOrd[ordIdxProd] == ""))
321321 then nil
322322 else split(currentOrd[ordIdxProd], "_")
323323 if ((size(newOrd) != 3))
324324 then throw("newOrderStr should contain exactly 2 ':' separators")
325325 else {
326326 let resParts = split(newOrd[0], "_")
327327 let matParts = split(newOrd[1], "_")
328328 let prodParts = if ((newOrd[2] == ""))
329329 then nil
330330 else split(newOrd[2], "_")
331331 if ((size(resParts) != NUMRES))
332332 then throw("All 6 resources should be passed")
333333 else if ((size(matParts) != NUMRES))
334334 then throw("All 6 materials should be passed")
335335 else {
336336 let r = {
337337 let $l = resParts
338338 let $s = size($l)
339339 let $acc0 = $Tuple9(0, nil, 0, 0, 0, currWhRes, currentOrdRes, false, 0)
340340 func $f0_1 ($a,$i) = if (($i >= $s))
341341 then $a
342342 else setCommon($a, $l[$i])
343343
344344 func $f0_2 ($a,$i) = if (($i >= $s))
345345 then $a
346346 else throw("List size exceeds 6")
347347
348348 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
349349 }
350350 let m = {
351351 let $l = matParts
352352 let $s = size($l)
353353 let $acc0 = $Tuple9(0, nil, r._3, r._4, r._5, currWhMat, currentOrdMat, false, r._9)
354354 func $f1_1 ($a,$i) = if (($i >= $s))
355355 then $a
356356 else setCommon($a, $l[$i])
357357
358358 func $f1_2 ($a,$i) = if (($i >= $s))
359359 then $a
360360 else throw("List size exceeds 6")
361361
362362 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
363363 }
364364 let p = if ((size(prodParts) != 0))
365365 then {
366366 let $l = prodParts
367367 let $s = size($l)
368368 let $acc0 = $Tuple9(0, nil, m._3, m._4, m._5, currWhProd, currentOrdProd, true, m._9)
369369 func $f2_1 ($a,$i) = if (($i >= $s))
370370 then $a
371371 else setCommon($a, $l[$i])
372372
373373 func $f2_2 ($a,$i) = if (($i >= $s))
374374 then $a
375375 else throw("List size exceeds 50")
376376
377377 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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)
378378 }
379379 else $Tuple9(0, currWhProd, m._3, m._4, m._5, currWhProd, currentOrdProd, true, m._9)
380380 $Tuple7(r._2, m._2, p._2, p._3, p._4, p._5, p._9)
381381 }
382382 }
383383 }
384384
385385
386386 func acceptCommon (acc,bpOrdItem) = {
387387 let j = acc._7
388388 let isProd = acc._12
389389 let bpOrdParts = split(bpOrdItem, "@")
390390 if ((size(bpOrdParts) != 2))
391391 then throw("Incorrect order format, should be amount@price")
392392 else {
393393 let bpOrdAm = parseIntValue(bpOrdParts[0])
394394 let bpOrdPr = parseIntValue(bpOrdParts[1])
395395 if ((0 > bpOrdPr))
396396 then throw("Price can't be negative")
397397 else {
398398 let bpOrdUsd = fraction(bpOrdAm, bpOrdPr, MULT8)
399399 let bpInit = if ((size(acc._8) > j))
400400 then parseIntValue(acc._8[j])
401401 else 0
402402 let whInit = if ((size(acc._9) > j))
403403 then parseIntValue(acc._9[j])
404404 else 0
405405 let whOrdInit = if ((size(acc._10) > j))
406406 then acc._10[j]
407407 else "0@0"
408408 let whOrdParts = split(whOrdInit, "@")
409409 let whOrdAm = parseIntValue(whOrdParts[0])
410410 let whOrdPr = parseIntValue(whOrdParts[1])
411411 if (if ((bpOrdAm != 0))
412412 then (bpOrdPr != whOrdPr)
413413 else false)
414414 then throw(((((("Prices of " + acc._11[j]) + " don't match! WH price=") + toString(whOrdPr)) + ", your price=") + toString(bpOrdPr)))
415415 else {
416416 let whOrdUsd = fraction(whOrdAm, whOrdPr, MULT8)
417417 let deltaVol = toVolume(bpOrdAm, PRODUCTPKGSIZE, isProd)
418418 if ((bpOrdAm == 0))
419419 then $Tuple13((acc._1 :+ toString(whInit)), (acc._2 :+ whOrdInit), (acc._3 :+ toString(bpInit)), acc._4, acc._5, acc._6, (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, acc._13)
420420 else if ((bpOrdAm > 0))
421421 then if ((0 > whOrdAm))
422422 then if ((bpOrdAm > -(whOrdAm)))
423423 then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm))))
424424 else $Tuple13((acc._1 :+ toString(whInit)), (acc._2 :+ ((toString((whOrdAm + bpOrdAm)) + "@") + toString(whOrdPr))), (acc._3 :+ toString((bpInit + bpOrdAm))), (acc._4 + deltaVol), acc._5, (acc._6 + bpOrdUsd), (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, (acc._13 + (if (isProd)
425425 then (bpOrdAm * MULT8)
426426 else bpOrdAm)))
427427 else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it"))
428428 else if ((whOrdAm > 0))
429429 then if ((-(bpOrdAm) > whOrdAm))
430430 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm)))
431431 else if ((-(bpOrdAm) > bpInit))
432432 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j]))
433433 else $Tuple13((acc._1 :+ toString((whInit - bpOrdAm))), (acc._2 :+ ((toString((whOrdAm + bpOrdAm)) + "@") + toString(whOrdPr))), (acc._3 :+ toString((bpInit + bpOrdAm))), (acc._4 - deltaVol), (acc._5 - bpOrdUsd), acc._6, (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, (acc._13 - (if (isProd)
434434 then (bpOrdAm * MULT8)
435435 else bpOrdAm)))
436436 else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it"))
437437 }
438438 }
439439 }
440440 }
441441
442442
443443 @Callable(i)
444444 func recalcLockedVolumeREADONLY (landAssetId,wh) = {
445445 let currentOrd = getOrder(keyOrderByLand(landAssetId))
446446 let z = setInternal(wh, currentOrd, currentOrd)
447447 $Tuple2(nil, (z._4 + z._5))
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func constructorV1 (restAddr) = if ((i.caller != this))
454454 then throw("Permission denied")
455455 else [StringEntry(keyRestAddress(), restAddr)]
456456
457457
458458
459459 @Callable(i)
460460 func sellResources (amounts,minPrices) = {
461461 let prologResult = prolog()
462462 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
463463 if ((size(i.payments) != 0))
464464 then throw("sellResources doesn't require any payments")
465465 else {
466466 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
467467 if ((curLocation[locIdxType] != "F"))
468468 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
469469 else {
470470 let locId = curLocation[locIdxId]
471471 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
472472 let resList = split(currentPack[bpIdxRes], "_")
473473 func adder (acc,j) = if ((amounts[j] > parseIntValue(resList[j])))
474474 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to sell ") + toString(amounts[j])))
475475 else if ((0 > amounts[j]))
476476 then throw(((("You tried to sell negative amount of " + resTypes[j]) + ": ") + toString(amounts[j])))
477477 else if ((amounts[j] > 0))
478478 then {
479479 let b = sellInternal(locId, j, amounts[j], minPrices[j])
480480 $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(resList[j]) - amounts[j]))), (acc._3 + b._2), (acc._4 + amounts[j]))
481481 }
482482 else $Tuple4(acc._1, (acc._2 :+ resList[j]), acc._3, acc._4)
483483
484484 let merged = {
485485 let $l = [0, 1, 2, 3, 4, 5]
486486 let $s = size($l)
487487 let $acc0 = $Tuple4(nil, nil, 0, 0)
488488 func $f0_1 ($a,$i) = if (($i >= $s))
489489 then $a
490490 else adder($a, $l[$i])
491491
492492 func $f0_2 ($a,$i) = if (($i >= $s))
493493 then $a
494494 else throw("List size exceeds 6")
495495
496496 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
497497 }
498498 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._2, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":")
499499 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
500500 let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._4, MULT8)], nil))
501501 $Tuple2((merged._1 :+ ScriptTransfer(i.caller, merged._3, usdtAssetId)), $Tuple3(result, prologResult, statsResult))
502502 }
503503 }
504504 }
505505
506506
507507
508508 @Callable(i)
509509 func buyMaterials (amounts,maxPrices) = {
510510 let prologResult = prolog()
511511 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
512512 if ((size(i.payments) != 1))
513513 then throw("exactly 1 payment must be attached")
514514 else {
515515 let pmt = i.payments[0]
516516 let amt = pmt.amount
517517 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
518518 if ((pmtAssetId != usdtAssetId))
519519 then throw("USDT payments only!")
520520 else {
521521 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
522522 if ((curLocation[locIdxType] != "F"))
523523 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
524524 else {
525525 let locId = curLocation[locIdxId]
526526 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
527527 let matList = split(currentPack[bpIdxMat], "_")
528528 func mUpdater (acc,j) = if ((0 > amounts[j]))
529529 then throw(((("You tried to buy negative amount of " + matTypes[j]) + ": ") + toString(amounts[j])))
530530 else if ((amounts[j] > 0))
531531 then {
532532 let b = buyInternal(locId, j, amounts[j], maxPrices[j])
533533 $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(matList[j]) + b._3))), (acc._3 + b._2), (acc._4 + amounts[j]))
534534 }
535535 else $Tuple4(acc._1, (acc._2 :+ matList[j]), acc._3, acc._4)
536536
537537 let merged = {
538538 let $l = [0, 1, 2, 3, 4, 5]
539539 let $s = size($l)
540540 let $acc0 = $Tuple4(nil, nil, 0, 0)
541541 func $f0_1 ($a,$i) = if (($i >= $s))
542542 then $a
543543 else mUpdater($a, $l[$i])
544544
545545 func $f0_2 ($a,$i) = if (($i >= $s))
546546 then $a
547547 else throw("List size exceeds 6")
548548
549549 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
550550 }
551551 if ((merged._3 > amt))
552552 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
553553 else {
554554 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
555555 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
556556 let rest = if (((amt - merged._3) > 0))
557557 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
558558 else nil
559559 let activitiesAmount = (merged._3 / 100)
560560 let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._4, MULT8)], nil))
561561 $Tuple2(((merged._1 ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(result, prologResult, statsResult))
562562 }
563563 }
564564 }
565565 }
566566 }
567567
568568
569569
570570 @Callable(i)
571571 func exchangeResources (amounts) = {
572572 let prologResult = prolog()
573573 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
574574 if ((size(i.payments) != 1))
575575 then throw("exactly 1 payment must be attached")
576576 else {
577577 let pmt = i.payments[0]
578578 let amt = pmt.amount
579579 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
580580 if ((pmtAssetId != usdtAssetId))
581581 then throw("USDT payments only!")
582582 else {
583583 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
584584 if ((curLocation[locIdxType] != "F"))
585585 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
586586 else {
587587 let locId = curLocation[locIdxId]
588588 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
589589 let resList = split(currentPack[bpIdxRes], "_")
590590 let matList = split(currentPack[bpIdxMat], "_")
591591 func exchanger (acc,j) = {
592592 let whKey = keyFactoryWarehouseByIdAndType(locId, j)
593593 let w0 = valueOrElse(getInteger(whKey), 0)
594594 let amj = amounts[j]
595595 if ((amj > parseIntValue(resList[j])))
596596 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to exchange ") + toString(amj)))
597597 else if ((0 > amj))
598598 then throw(((("You tried to exchange negative amount of " + resTypes[j]) + ": ") + toString(amj)))
599599 else if ((amj > 0))
600600 then $Tuple5((acc._1 :+ toString((parseIntValue(resList[j]) - amj))), (acc._2 :+ toString((parseIntValue(matList[j]) + amj))), (acc._3 + fraction(amj, RESOURCEPRICEMIN, MULT8)), (acc._4 :+ IntegerEntry(whKey, w0)), (acc._5 + amj))
601601 else $Tuple5((acc._1 :+ resList[j]), (acc._2 :+ matList[j]), acc._3, acc._4, acc._5)
602602 }
603603
604604 let merged = {
605605 let $l = [0, 1, 2, 3, 4, 5]
606606 let $s = size($l)
607607 let $acc0 = $Tuple5(nil, nil, 0, nil, 0)
608608 func $f0_1 ($a,$i) = if (($i >= $s))
609609 then $a
610610 else exchanger($a, $l[$i])
611611
612612 func $f0_2 ($a,$i) = if (($i >= $s))
613613 then $a
614614 else throw("List size exceeds 6")
615615
616616 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
617617 }
618618 if ((merged._3 > amt))
619619 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
620620 else {
621621 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._1, "_"), makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
622622 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
623623 let rest = if (((amt - merged._3) > 0))
624624 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
625625 else nil
626626 let activitiesAmount = (merged._3 / 100)
627627 let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._5, MULT8)], nil))
628628 $Tuple2(((rest ++ merged._4) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(result, prologResult, statsResult))
629629 }
630630 }
631631 }
632632 }
633633 }
634634
635635
636636
637637 @Callable(i)
638638 func craftGoods (productIdx,quantity) = {
639639 let prologResult = prolog()
640640 if ((size(i.payments) != 1))
641641 then throw("exactly 1 payment must be attached")
642642 else {
643643 let pmt = i.payments[0]
644644 let amt = pmt.amount
645645 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
646646 if ((pmtAssetId != usdtAssetId))
647647 then throw("USDT payments only!")
648648 else if ((amt != MULT6))
649649 then throw("exactly 1 USDT must be attached as payment")
650650 else if ((0 >= quantity))
651651 then throw("Quantity should be positive")
652652 else {
653653 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
654654 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
655655 if ((curLocation[locIdxType] != "M"))
656656 then throw(("Duck location type should be Manufactory, but is " + curLocation[locIdxType]))
657657 else {
658658 let cont = curLocation[locIdxContinent]
659659 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
660660 let matList = split(currentPack[bpIdxMat], "_")
661661 if (if ((0 > productIdx))
662662 then true
663663 else (productIdx >= size(productionMatrix)))
664664 then throw(("Unknown product idx=" + toString(productIdx)))
665665 else {
666666 let recipe = split(productionMatrix[productIdx], "_")
667667 if ((size(recipe) != RECIPESIZE))
668668 then throw(("Fatal: unknown recipe: " + productionMatrix[productIdx]))
669669 else {
670670 let productContIdx = parseIntValue(recipe[rIdxContinent])
671671 if ((continents[productContIdx] != cont))
672672 then throw(((("This product is available in " + continents[productContIdx]) + ", but you are in ") + cont))
673673 else {
674674 let prodList = if ((currentPack[bpIdxProd] == ""))
675675 then nil
676676 else split(currentPack[bpIdxProd], "_")
677677 func filler (acc,ignoredItem) = {
678678 let n = acc._2
679679 let xs = if ((size(prodList) > n))
680680 then prodList[n]
681681 else "0"
682682 let x = parseIntValue(xs)
683683 let amount = (quantity * PRODUCTPKGSIZE)
684684 let y = if ((n == productIdx))
685685 then toString((x + amount))
686686 else xs
687687 $Tuple2((acc._1 :+ y), (n + 1))
688688 }
689689
690690 let bpProd = ( let $l = productionMatrix
691691 let $s = size($l)
692692 let $acc0 = $Tuple2(nil, 0)
693693 func $f0_1 ($a,$i) = if (($i >= $s))
694694 then $a
695695 else filler($a, $l[$i])
696696
697697 func $f0_2 ($a,$i) = if (($i >= $s))
698698 then $a
699699 else throw("List size exceeds 50")
700700
701701 $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($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))._1
702702 func producer (acc,j) = {
703703 let needMat = ((parseIntValue(recipe[j]) * MULT6) * quantity)
704704 let haveMat = parseIntValue(matList[j])
705705 if ((needMat > haveMat))
706706 then throw(((((((("You have " + fixedPoint(haveMat, 8)) + " of ") + matTypes[j]) + ", but recipe requires ") + fixedPoint(needMat, 8)) + " for quantity ") + toString(quantity)))
707707 else if ((needMat > 0))
708708 then $Tuple2((acc._1 :+ toString((haveMat - needMat))), (acc._2 + needMat))
709709 else $Tuple2((acc._1 :+ matList[j]), acc._2)
710710 }
711711
712712 let merged = {
713713 let $l = [0, 1, 2, 3, 4, 5]
714714 let $s = size($l)
715715 let $acc0 = $Tuple2(nil, 0)
716716 func $f1_1 ($a,$i) = if (($i >= $s))
717717 then $a
718718 else producer($a, $l[$i])
719719
720720 func $f1_2 ($a,$i) = if (($i >= $s))
721721 then $a
722722 else throw("List size exceeds 6")
723723
724724 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
725725 }
726726 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._1, "_"), makeString(bpProd, "_")], ":")
727727 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
728728 let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpCraft, merged._2, MULT8)], nil))
729729 $Tuple2(nil, $Tuple3(result, prologResult, statsResult))
730730 }
731731 }
732732 }
733733 }
734734 }
735735 }
736736 }
737737
738738
739739
740740 @Callable(i)
741741 func setWarehouseOrder (newOrderStr,landAssetId) = {
742742 let user = i.originCaller
743743 let addr = toString(user)
744744 let result = if ((user != restContract))
745745 then checkBlocked()
746746 else false
747747 let asset = value(assetInfo(fromBase58String(landAssetId)))
748748 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
749749 then throw((("NFT " + asset.name) + " is not staked"))
750750 else {
751751 let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
752752 if (if ((user != restContract))
753753 then (owner != addr)
754754 else false)
755755 then throw((LANDPREFIX + " is not yours"))
756756 else {
757757 let newOrder = split_4C(newOrderStr, ":")
758758 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
759759 let currentWh = split_4C(wh, ":")
760760 let loft = split(currentWh[whIdxLOFT], "_")
761761 let whTotal = parseIntValue(loft[volTotal])
762762 let ordKey = keyOrderByLand(landAssetId)
763763 let currentOrd = getOrder(ordKey)
764764 let z = setInternal(currentWh, currentOrd, newOrder)
765765 let buyVolSaldo = z._4
766766 let sellVolSaldo = z._5
767767 let whOccupied = z._7
768768 let whLocked = (buyVolSaldo + sellVolSaldo)
769769 let whFree = ((whTotal - whOccupied) - whLocked)
770770 if ((0 > whFree))
771771 then throw((((((("Attempt to reserve " + toString(buyVolSaldo)) + " space for buy orders, and ") + toString(sellVolSaldo)) + " space for sell orders (and occupied=") + toString(whOccupied)) + "), leads to negative free space"))
772772 else {
773773 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(z._1, "_"), makeString(z._2, "_"), makeString(z._3, "_"), toString(whLocked)], ":")
774774 let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil))
775775 let usdSaldo = z._6
776776 let actions = if ((usdSaldo > 0))
777777 then if ((size(i.payments) != 1))
778778 then throw("exactly 1 payment must be attached")
779779 else {
780780 let pmt = i.payments[0]
781781 let amt = pmt.amount
782782 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
783783 if ((pmtAssetId != usdtAssetId))
784784 then throw("USDT payments only!")
785785 else if ((amt != usdSaldo))
786786 then throw(("Payment needed is " + toString(usdSaldo)))
787787 else [StringEntry(ordKey, newOrderStr)]
788788 }
789789 else if ((usdSaldo == 0))
790790 then if ((size(i.payments) != 0))
791791 then throw("No payments needed")
792792 else [StringEntry(ordKey, newOrderStr)]
793793 else if ((size(i.payments) != 0))
794794 then throw("No payments needed")
795795 else [ScriptTransfer(addressFromStringValue(owner), -(usdSaldo), usdtAssetId), StringEntry(ordKey, newOrderStr)]
796796 $Tuple2(actions, $Tuple2(result, whSave))
797797 }
798798 }
799799 }
800800 }
801801
802802
803803
804804 @Callable(i)
805805 func acceptWarehouseOrder (bpOrderStr,landAssetId,duckAssetId) = {
806806 let prologResult = prolog()
807807 let caller = i.originCaller
808808 let callerAddr = toString(caller)
809809 let stakedDuckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked")
810810 let curLocation = valueOrElse(getString(stakingContract, keyDuckLocation(stakedDuckAssetId)), DEFAULTLOCATION)
811811 let loc = split(value(curLocation), "_")
812812 if ((loc[locIdxType] != "L"))
813813 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
814814 else if ((stakedDuckAssetId != duckAssetId))
815815 then throw(((("Your staked duck is " + stakedDuckAssetId) + ", but passed ") + duckAssetId))
816816 else {
817817 let landAsset = value(assetInfo(fromBase58String(landAssetId)))
818818 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
819819 then throw((("NFT " + landAsset.name) + " is not staked"))
820820 else {
821821 let landOwner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + landAsset.name) + " is orphaned"))
822822 if ((landOwner == callerAddr))
823823 then throw("You cannot trade with yourself")
824824 else {
825825 let bpOrderParts = split_4C(bpOrderStr, ":")
826826 if ((size(bpOrderParts) != 3))
827827 then throw("bpOrderStr should contain exactly 2 ':' separators")
828828 else {
829829 let bpOrdRes = split(bpOrderParts[0], "_")
830830 let bpOrdMat = split(bpOrderParts[1], "_")
831831 let bpOrdProd = if ((bpOrderParts[2] == ""))
832832 then nil
833833 else split(bpOrderParts[2], "_")
834834 if ((size(bpOrdRes) != NUMRES))
835835 then throw("All 6 resources should be passed")
836836 else if ((size(bpOrdMat) != NUMRES))
837837 then throw("All 6 materials should be passed")
838838 else {
839839 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
840840 let currentWh = split_4C(wh, ":")
841841 let currWhRes = split(currentWh[whIdxRes], "_")
842842 let currWhMat = split(currentWh[whIdxMat], "_")
843843 let currWhProd = if ((currentWh[whIdxProd] == ""))
844844 then nil
845845 else split(currentWh[whIdxProd], "_")
846846 let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
847847 let bpKey = keyBackpackByDuck(duckAssetId)
848848 let currentPack = getBackpack(bpKey)
849849 let bpResList = split(currentPack[bpIdxRes], "_")
850850 let bpMatList = split(currentPack[bpIdxMat], "_")
851851 let bpProdList = if ((currentPack[bpIdxProd] == ""))
852852 then nil
853853 else split(currentPack[bpIdxProd], "_")
854854 let ordKey = keyOrderByLand(landAssetId)
855855 let whOrd = getOrder(ordKey)
856856 let whOrdRes = split(whOrd[ordIdxRes], "_")
857857 let whOrdMat = split(whOrd[ordIdxMat], "_")
858858 let whOrdProd = if ((whOrd[ordIdxProd] == ""))
859859 then nil
860860 else split(whOrd[ordIdxProd], "_")
861861 let r = {
862862 let $l = bpOrdRes
863863 let $s = size($l)
864864 let $acc0 = $Tuple13(nil, nil, nil, 0, 0, 0, 0, bpResList, currWhRes, whOrdRes, resTypes, false, 0)
865865 func $f0_1 ($a,$i) = if (($i >= $s))
866866 then $a
867867 else acceptCommon($a, $l[$i])
868868
869869 func $f0_2 ($a,$i) = if (($i >= $s))
870870 then $a
871871 else throw("List size exceeds 6")
872872
873873 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
874874 }
875875 let m = {
876876 let $l = bpOrdMat
877877 let $s = size($l)
878878 let $acc0 = $Tuple13(nil, nil, nil, r._4, r._5, r._6, 0, bpMatList, currWhMat, whOrdMat, matTypes, false, r._13)
879879 func $f1_1 ($a,$i) = if (($i >= $s))
880880 then $a
881881 else acceptCommon($a, $l[$i])
882882
883883 func $f1_2 ($a,$i) = if (($i >= $s))
884884 then $a
885885 else throw("List size exceeds 6")
886886
887887 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
888888 }
889889 let p = if ((size(bpOrdProd) != 0))
890890 then {
891891 let $l = bpOrdProd
892892 let $s = size($l)
893893 let $acc0 = $Tuple13(nil, nil, nil, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13)
894894 func $f2_1 ($a,$i) = if (($i >= $s))
895895 then $a
896896 else acceptCommon($a, $l[$i])
897897
898898 func $f2_2 ($a,$i) = if (($i >= $s))
899899 then $a
900900 else throw("List size exceeds 50")
901901
902902 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_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)
903903 }
904904 else $Tuple13(currWhProd, whOrdProd, bpProdList, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13)
905905 let volSaldo = p._4
906906 let newLockedVol = if ((0 > (currWhLockedVol - volSaldo)))
907907 then 0
908908 else (currWhLockedVol - volSaldo)
909909 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._1, "_"), makeString(m._1, "_"), makeString(p._1, "_"), toString(newLockedVol)], ":")
910910 let newWhOrdStr = makeString_2C([makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_")], ":")
911911 let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_")], ":")
912912 let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil))
913913 let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil))
914914 let duckStatsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpShop, p._13, MULT8)], nil))
915915 let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [landOwner, fraction(xpShop, p._13, MULT8)], nil))
916916 let actions = [StringEntry(ordKey, newWhOrdStr)]
917917 let usdWh2BpSaldo = p._5
918918 let actions1 = if ((usdWh2BpSaldo > 0))
919919 then {
920920 let usdWh2BpFee = fraction(p._5, AUCTIONFEE, MULT6)
921921 let refByKey = keyAddressRefBy(callerAddr)
922922 let refBy = getString(stakingContract, refByKey)
923923 if (isDefined(refBy))
924924 then (((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdWh2BpFee, usdtAssetId))
925925 else ((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId))
926926 }
927927 else actions
928928 let usdBp2WhSaldo = p._6
929929 let actions2 = if ((usdBp2WhSaldo > 0))
930930 then if ((size(i.payments) != 1))
931931 then throw("exactly 1 payment must be attached")
932932 else {
933933 let pmt = i.payments[0]
934934 let amt = pmt.amount
935935 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
936936 if ((pmtAssetId != usdtAssetId))
937937 then throw("USDT payments only!")
938938 else if ((amt != usdBp2WhSaldo))
939939 then throw(("Payment needed is " + toString(usdBp2WhSaldo)))
940940 else if ((MINSHOPPAYMENT > amt))
941941 then throw(("Payment should be at least " + toString(MINSHOPPAYMENT)))
942942 else {
943943 let usdBp2WhFee = fraction(p._6, AUCTIONFEE, MULT6)
944944 let refByKey = keyAddressRefBy(landOwner)
945945 let refBy = getString(stakingContract, refByKey)
946946 if (isDefined(refBy))
947947 then (((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdBp2WhFee, usdtAssetId))
948948 else ((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId))
949949 }
950950 }
951951 else if ((size(i.payments) != 0))
952952 then throw("No payments needed")
953953 else actions1
954954 $Tuple2(actions2, $Tuple5(prologResult, whSave, bpSave, duckStatsResult, accStatsResult))
955955 }
956956 }
957957 }
958958 }
959959 }
960960 }
961961
962962
963963
964964 @Callable(i)
965965 func sellProductsToES (amounts) = {
966966 let prologResult = prolog()
967967 if ((size(i.payments) != 0))
968968 then throw("No payments needed")
969969 else {
970970 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
971971 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
972972 if ((curLocation[locIdxType] != "A"))
973973 then throw(("Duck location type should be Airport, but is " + curLocation[locIdxType]))
974974 else {
975975 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
976976 let prodList = if ((currentPack[bpIdxProd] == ""))
977977 then nil
978978 else split(currentPack[bpIdxProd], "_")
979979 let esKey = keyEsWarehouse()
980980 let existStr = getString(esKey)
981981 let existAmounts = if (isDefined(existStr))
982982 then split(value(existStr), "_")
983983 else nil
984984 func moveProd (acc,recipeStr) = {
985985 let j = acc._1
986986 let quantity = if ((size(amounts) > j))
987987 then amounts[j]
988988 else 0
989989 if ((0 > quantity))
990990 then throw("Quantity cannot be negative")
991991 else {
992992 let recipe = split(recipeStr, "_")
993993 if ((size(recipe) != RECIPESIZE))
994994 then throw(("Fatal: unknown recipe: " + recipeStr))
995995 else {
996996 let maxAmount = (ESMAXPACKAGES * PRODUCTPKGSIZE)
997997 let existAmount = if ((size(existAmounts) > j))
998998 then parseIntValue(existAmounts[j])
999999 else 0
10001000 let canBuy = (maxAmount - existAmount)
10011001 if ((quantity > canBuy))
10021002 then throw(((("Warehouse can buy only " + toString(canBuy)) + " of ") + prodTypes[j]))
10031003 else {
10041004 let totalMat = getRecipeMaterials(recipe)
1005- let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (10 * PRODUCTPKGSIZE))
1005+ let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE))
10061006 let bpProdAmount = if ((size(prodList) > j))
10071007 then parseIntValue(prodList[j])
10081008 else 0
10091009 if ((quantity > bpProdAmount))
10101010 then throw(((("You have only " + toString(bpProdAmount)) + " of ") + prodTypes[j]))
10111011 else $Tuple5((j + 1), (acc._2 + (unitPrice * quantity)), (acc._3 :+ toString((bpProdAmount - quantity))), (acc._4 :+ toString((existAmount + quantity))), (acc._5 + (totalMat * quantity)))
10121012 }
10131013 }
10141014 }
10151015 }
10161016
10171017 let merged = {
10181018 let $l = productionMatrix
10191019 let $s = size($l)
10201020 let $acc0 = $Tuple5(0, 0, nil, nil, 0)
10211021 func $f0_1 ($a,$i) = if (($i >= $s))
10221022 then $a
10231023 else moveProd($a, $l[$i])
10241024
10251025 func $f0_2 ($a,$i) = if (($i >= $s))
10261026 then $a
10271027 else throw("List size exceeds 50")
10281028
10291029 $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($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)
10301030 }
10311031 let newBpStr = makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(merged._3, "_")], ":")
10321032 let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil))
10331033 let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpSellToEs, merged._5, (MULT8 * 10))], nil))
10341034 $Tuple2([StringEntry(esKey, makeString(merged._4, "_")), ScriptTransfer(i.caller, merged._2, usdtAssetId)], $Tuple3(bpSave, prologResult, statsResult))
10351035 }
10361036 }
10371037 }
10381038
10391039
10401040
10411041 @Callable(i)
10421042 func updateEsStorage (newStorage) = if ((i.caller != stakingContract))
10431043 then throw("Permission denied")
10441044 else $Tuple2([StringEntry(keyEsWarehouse(), newStorage)], newStorage)
10451045
10461046

github/deemru/w8io/169f3d6 
141.36 ms