tx · 67Z7yg8MeaGFHDS5RG2KPGpGArrooViCzg5ihYD2geWB

3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep:  -0.03600000 Waves

2023.08.01 02:24 [2690711] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
142.28 ms