tx · Fpuy5PgkmwqLJ9QXA5m2BBySV8TBEGSQEJhH2EFnvYXp

3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep:  -0.03200000 Waves

2023.05.30 00:55 [2599831] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves

{ "type": 13, "id": "Fpuy5PgkmwqLJ9QXA5m2BBySV8TBEGSQEJhH2EFnvYXp", "fee": 3200000, "feeAssetId": null, "timestamp": 1685397368751, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "E6c5Bsfxih6618yGtHajfwDAszXoATdZt3jPRcunikx3DxJWRixUbYma3nrfVWanrdAdJUtFXDAGSfxnpYGoKvx" ], "script": "base64:BgIrCAISAwoBCBIECgIRERIECgIRERIDCgEREgQKAgEBEgQKAggIEgUKAwgICFoAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDEwAIDIr6AlAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAVZGVmYXVsdFJlc3RBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUFFDdXZGYnZoNExrUFVucm5VMXozam5iQTFwOW0zV05odgMJAAACAQFUBQckbWF0Y2gwAiMzTXVta0dHenRDS0FYcFdEcXhrZGRvZnFYU1VicVFrdlNKeQkAAgECDVVua25vd24gY2hhaW4BD2dldFN0cmluZ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mUoMTA2MikBBQlsYW5kT3duZXIJAGUCCAUBcAJfNgkAaAIAAwULdXNkQnAyV2hGZWUFC3VzZHRBc3NldElkCQEOU2NyaXB0VHJhbnNmZXIDBQxyZXN0Q29udHJhY3QFC3VzZEJwMldoRmVlBQt1c2R0QXNzZXRJZAMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECEk5vIHBheW1lbnRzIG5lZWRlZAUIYWN0aW9uczEJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AXR2cgg==", "height": 2599831, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: yxPxYAHG7h93UE5ZkToYGHvWfp98aqYk4x4zVAqjBDi Next: B8vJvYsJ28VXeNALv6AxiAaYbAdG7YL6RNst99G9qEAY Diff:
OldNewDifferences
364364 then throw("Price can't be negative")
365365 else {
366366 let bpOrdUsd = fraction(bpOrdAm, bpOrdPr, MULT8)
367- let bpInit = parseIntValue(acc._8[j])
368- let whInit = parseIntValue(acc._9[j])
367+ let bpInit = if ((size(acc._8) > j))
368+ then parseIntValue(acc._8[j])
369+ else 0
370+ let whInit = if ((size(acc._9) > j))
371+ then parseIntValue(acc._9[j])
372+ else 0
369373 let whOrdParts = split(acc._10[j], "@")
370374 let whOrdAm = parseIntValue(whOrdParts[0])
371375 let whOrdPr = parseIntValue(whOrdParts[1])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let MULT6 = 1000000
77
88 let MULT7 = 10000000
99
1010 let MULT8 = 100000000
1111
1212 let MULT10 = 10000000000
1313
1414 let chain = take(drop(this.bytes, 1), 1)
1515
1616 let usdtAssetId = match chain {
1717 case _ =>
1818 if ((base58'2W' == $match0))
1919 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
2020 else if ((base58'2T' == $match0))
2121 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
2222 else throw("Unknown chain")
2323 }
2424
2525 let defaultRestAddressStr = match chain {
2626 case _ =>
2727 if ((base58'2W' == $match0))
2828 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
2929 else if ((base58'2T' == $match0))
3030 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
3131 else throw("Unknown chain")
3232 }
3333
3434 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
3535
3636
3737 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
3838
3939
4040 let IdxCfgStakingDapp = 1
4141
4242 let IdxCfgEconomyDapp = 2
4343
4444 let IdxCfgGovernanceDapp = 3
4545
4646 func keyRestCfg () = "%s__restConfig"
4747
4848
4949 func keyRestAddress () = "%s__restAddr"
5050
5151
5252 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
5353
5454
5555 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
5656
5757
5858 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
5959
6060 let restCfg = readRestCfgOrFail(restContract)
6161
6262 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
6363
6464 let DEFAULTLOCATION = "Africa_F_Africa"
6565
6666 let NUMRES = 6
6767
6868 let FACTORYMAXWAREHOUSE = 10000000000
6969
7070 let RESOURCEPRICEMIN = 39637
7171
7272 let MINPAYMENT = 10000
7373
7474 let SELLMULTIPLIER = 200
7575
7676 let BUYMULTIPLIER = 300
7777
7878 let LANDPREFIX = "LAND"
7979
8080 let DUCKPREFIX = "DUCK"
8181
8282 let WHMULTIPLIER = 10000000000
8383
8484 let AUCTIONFEE = 10000
8585
8686 let MINSHOPPAYMENT = 100000
8787
8888 let resTypes = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"]
8989
9090 let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"]
9191
9292 let prodTypes = ["First Aid Kit", "Backpack", "Food Ration", "Jet Pack", "Shield"]
9393
9494 let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"]
9595
9696 let productionMatrix = ["1_1_1_2_2_5_1_10_0", "2_2_2_4_4_10_1_10_0", "3_3_3_6_6_15_1_10_0", "2_5_5_2_7_5_2_100_1", "4_10_10_4_14_10_2_100_1", "6_15_15_6_21_15_2_100_1", "1_1_1_1_1_8_1_10_2", "2_2_2_2_2_16_1_10_2", "3_3_3_3_3_24_1_10_2", "9_9_1_5_5_1_5_100_3", "18_18_2_10_10_2_5_100_3", "27_27_3_15_15_3_5_100_3", "2_2_1_2_2_2_1_10_4", "4_4_2_4_4_4_1_10_4", "6_6_3_6_6_6_1_10_4"]
9797
9898 let contIdxAmericas = 0
9999
100100 let contIdxEurope = 1
101101
102102 let contIdxAsia = 2
103103
104104 let contIdxAfrica = 3
105105
106106 let contIdxOceania = 4
107107
108108 let recipeIdxFuel = 0
109109
110110 let recipeIdxMetal = 1
111111
112112 let recipeIdxPlank = 2
113113
114114 let recipeIdxGlass = 3
115115
116116 let recipeIdxPlastic = 4
117117
118118 let recipeIdxProtein = 5
119119
120120 let recipeIdxWeight = 6
121121
122122 let recipeIdxPacksize = 7
123123
124124 let recipeIdxContinent = 8
125125
126126 func keyFactoryWarehouseByIdAndType (factoryId,resType) = ((("factoryWhByContinentAndRes_" + factoryId) + "_") + toString(resType))
127127
128128
129129 func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId)
130130
131131
132132 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
133133
134134
135135 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
136136
137137
138138 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
139139
140140
141141 func keyBlocked () = "contractsBlocked"
142142
143143
144144 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
145145
146146
147147 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
148148
149149
150150 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
151151
152152
153153 let locIdxContinent = 0
154154
155155 let locIdxType = 1
156156
157157 let locIdxId = 2
158158
159159 let bpIdxLevel = 0
160160
161161 let bpIdxRes = 1
162162
163163 let bpIdxMat = 2
164164
165165 let bpIdxProd = 3
166166
167167 let whIdxLevels = 0
168168
169169 let whIdxRes = 1
170170
171171 let whIdxMat = 2
172172
173173 let whIdxProd = 3
174174
175175 let whIdxLOFT = 4
176176
177177 let volLocked = 0
178178
179179 let volOccupied = 1
180180
181181 let volFree = 2
182182
183183 let volTotal = 3
184184
185185 let ordIdxRes = 0
186186
187187 let ordIdxMat = 1
188188
189189 let ordIdxProd = 2
190190
191191 func asString (v) = match v {
192192 case s: String =>
193193 s
194194 case _ =>
195195 throw("fail to cast into String")
196196 }
197197
198198
199199 func getOrder (ordKey) = {
200200 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:"), ":")
201201 [if ((size(split(p[ordIdxRes], "_")) == NUMRES))
202202 then p[ordIdxRes]
203203 else "0@0_0@0_0@0_0@0_0@0_0@0", if ((size(split(p[ordIdxMat], "_")) == NUMRES))
204204 then p[ordIdxMat]
205205 else "0@0_0@0_0@0_0@0_0@0_0@0", p[ordIdxProd]]
206206 }
207207
208208
209209 func toVolume (amount,pkgSize,isProduct) = if (isProduct)
210210 then {
211211 let pkgs = if ((amount >= 0))
212212 then (((amount + pkgSize) - 1) / pkgSize)
213213 else -((((-(amount) + pkgSize) - 1) / pkgSize))
214214 (pkgs * MULT8)
215215 }
216216 else amount
217217
218218
219219 func getWarehouseTotalVolume (volPrefix) = {
220220 let parts = split(volPrefix, "_")
221221 ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0]))
222222 }
223223
224224
225225 func getWarehouseCurrGoodsVolume (currentWh) = {
226226 let goods = currentWh[whIdxProd]
227227 if ((goods == ""))
228228 then 0
229229 else {
230230 func sum (acc,item) = {
231231 let idx = acc._1
232232 let pkgSize = parseIntValue(split(productionMatrix[idx], "_")[recipeIdxPacksize])
233233 $Tuple2((idx + 1), (acc._2 + toVolume(parseIntValue(item), pkgSize, true)))
234234 }
235235
236236 ( let $l = split_4C(goods, "_")
237237 let $s = size($l)
238238 let $acc0 = $Tuple2(0, 0)
239239 func $f0_1 ($a,$i) = if (($i >= $s))
240240 then $a
241241 else sum($a, $l[$i])
242242
243243 func $f0_2 ($a,$i) = if (($i >= $s))
244244 then $a
245245 else throw("List size exceeds 50")
246246
247247 $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))._2
248248 }
249249 }
250250
251251
252252 func sellInternal (locId,resType,amount,minPrice) = {
253253 let whKey = keyFactoryWarehouseByIdAndType(locId, resType)
254254 let w0 = valueOrElse(getInteger(whKey), 0)
255255 let r0 = if ((w0 > FACTORYMAXWAREHOUSE))
256256 then 0
257257 else if (((w0 + amount) > FACTORYMAXWAREHOUSE))
258258 then (FACTORYMAXWAREHOUSE - w0)
259259 else amount
260260 let usdtReceived = (fraction(r0, ((SELLMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) + (50 * r0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction((amount - r0), RESOURCEPRICEMIN, MULT8))
261261 let min99 = (minPrice - (minPrice / 100))
262262 if (((min99 * amount) > (usdtReceived * MULT8)))
263263 then throw((((((((((("Actual price = " + toString(usdtReceived)) + " / ") + toString(amount)) + " < minPrice = ") + toString(minPrice)) + ", (") + locId) + ", ") + resTypes[resType]) + ")"))
264264 else $Tuple2(IntegerEntry(whKey, (w0 + amount)), usdtReceived)
265265 }
266266
267267
268268 func buyInternal (locId,matType,amount,maxPrice) = {
269269 let whKey = keyFactoryWarehouseByIdAndType(locId, matType)
270270 let w0 = valueOrElse(getInteger(whKey), 0)
271271 let m1 = if ((w0 > FACTORYMAXWAREHOUSE))
272272 then min([amount, (w0 - FACTORYMAXWAREHOUSE)])
273273 else 0
274274 let m0 = min([w0, (amount - m1)])
275275 let m = (m0 + m1)
276276 let usdtSpent = (fraction(m0, ((BUYMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) - (50 * m0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction(m1, (2 * RESOURCEPRICEMIN), MULT8))
277277 let max101 = (maxPrice + (maxPrice / 100))
278278 if (((usdtSpent * MULT8) > (max101 * m)))
279279 then throw((((((((((("Actual price = " + toString(usdtSpent)) + " / ") + toString(m)) + " > maxPrice = ") + toString(maxPrice)) + ", (") + locId) + ", ") + matTypes[matType]) + ")"))
280280 else $Tuple3(IntegerEntry(whKey, (w0 - m)), usdtSpent, m)
281281 }
282282
283283
284284 func getBackpack (bpKey) = {
285285 let p = split(valueOrElse(getString(stakingContract, bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
286286 [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES))
287287 then p[bpIdxRes]
288288 else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES))
289289 then p[bpIdxMat]
290290 else "0_0_0_0_0_0", p[bpIdxProd]]
291291 }
292292
293293
294294 func checkBlocked () = if (valueOrElse(getBoolean(stakingContract, keyBlocked()), false))
295295 then throw("Contracts are under maintenance")
296296 else unit
297297
298298
299299 func setCommon (acc,item) = {
300300 let j = acc._1
301301 let isProd = acc._8
302302 let pkgSize = if (isProd)
303303 then parseIntValue(split(productionMatrix[j], "_")[recipeIdxPacksize])
304304 else 0
305305 let itemParts = split(item, "@")
306306 if ((size(itemParts) != 2))
307307 then throw("Incorrect order format, should be amount@price")
308308 else {
309309 let newOrdAm = parseIntValue(itemParts[0])
310310 let newOrdPr = parseIntValue(itemParts[1])
311311 let newOrdUsd = fraction(newOrdAm, newOrdPr, MULT8)
312312 let newOrdVol = toVolume(newOrdAm, pkgSize, isProd)
313313 let whInit = if ((size(acc._6) > j))
314314 then parseIntValue(acc._6[j])
315315 else 0
316316 let curOrdParts = split(if ((size(acc._7) > j))
317317 then acc._7[j]
318318 else "0@0", "@")
319319 let curOrdAm = parseIntValue(curOrdParts[0])
320320 let curOrdPr = parseIntValue(curOrdParts[1])
321321 if (if ((0 > curOrdPr))
322322 then true
323323 else (0 > newOrdPr))
324324 then throw("Price can't be negative")
325325 else {
326326 let curOrdUsd = fraction(curOrdAm, curOrdPr, MULT8)
327327 let curOrdVol = toVolume(curOrdAm, pkgSize, isProd)
328328 if ((newOrdAm == 0))
329329 then if ((curOrdAm > 0))
330330 then $Tuple8((j + 1), (acc._2 :+ toString(whInit)), acc._3, acc._4, (acc._5 - curOrdUsd), acc._6, acc._7, isProd)
331331 else $Tuple8((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), acc._3, acc._4, acc._5, acc._6, acc._7, isProd)
332332 else if ((newOrdAm > 0))
333333 then if ((0 > curOrdAm))
334334 then $Tuple8((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), (acc._3 + newOrdVol), acc._4, (acc._5 + newOrdUsd), acc._6, acc._7, isProd)
335335 else $Tuple8((j + 1), (acc._2 :+ toString(whInit)), (acc._3 + newOrdVol), acc._4, ((acc._5 + newOrdUsd) - curOrdUsd), acc._6, acc._7, isProd)
336336 else if ((0 > curOrdAm))
337337 then {
338338 let amDiff = (curOrdAm - newOrdAm)
339339 if ((0 > (whInit - amDiff)))
340340 then throw((((("Attempt to take " + toString(amDiff)) + " from warehouse, but only ") + toString(whInit)) + " available"))
341341 else $Tuple8((j + 1), (acc._2 :+ toString((whInit - amDiff))), acc._3, (acc._4 - newOrdVol), acc._5, acc._6, acc._7, isProd)
342342 }
343343 else if ((0 > (whInit + newOrdAm)))
344344 then throw((((("Attempt to take " + toString(-(newOrdAm))) + " from warehouse, but only ") + toString(whInit)) + " available"))
345345 else $Tuple8((j + 1), (acc._2 :+ toString((whInit + newOrdAm))), acc._3, (acc._4 - newOrdVol), (acc._5 - curOrdUsd), acc._6, acc._7, isProd)
346346 }
347347 }
348348 }
349349
350350
351351 func acceptCommon (acc,bpOrdItem) = {
352352 let j = acc._7
353353 let isProd = acc._12
354354 let pkgSize = if (isProd)
355355 then parseIntValue(split(productionMatrix[j], "_")[recipeIdxPacksize])
356356 else 0
357357 let bpOrdParts = split(bpOrdItem, "@")
358358 if ((size(bpOrdParts) != 2))
359359 then throw("Incorrect order format, should be amount@price")
360360 else {
361361 let bpOrdAm = parseIntValue(bpOrdParts[0])
362362 let bpOrdPr = parseIntValue(bpOrdParts[1])
363363 if ((0 > bpOrdPr))
364364 then throw("Price can't be negative")
365365 else {
366366 let bpOrdUsd = fraction(bpOrdAm, bpOrdPr, MULT8)
367- let bpInit = parseIntValue(acc._8[j])
368- let whInit = parseIntValue(acc._9[j])
367+ let bpInit = if ((size(acc._8) > j))
368+ then parseIntValue(acc._8[j])
369+ else 0
370+ let whInit = if ((size(acc._9) > j))
371+ then parseIntValue(acc._9[j])
372+ else 0
369373 let whOrdParts = split(acc._10[j], "@")
370374 let whOrdAm = parseIntValue(whOrdParts[0])
371375 let whOrdPr = parseIntValue(whOrdParts[1])
372376 if (if ((bpOrdAm != 0))
373377 then (bpOrdPr != whOrdPr)
374378 else false)
375379 then throw(((((("Prices of " + acc._11[j]) + " don't match! WH price=") + toString(whOrdPr)) + ", your price=") + toString(bpOrdPr)))
376380 else {
377381 let whOrdUsd = fraction(whOrdAm, whOrdPr, MULT8)
378382 let deltaVol = toVolume(bpOrdAm, pkgSize, isProd)
379383 if ((bpOrdAm == 0))
380384 then $Tuple12((acc._1 :+ toString(whInit)), (acc._2 :+ acc._10[j]), (acc._3 :+ toString(bpInit)), acc._4, acc._5, acc._6, (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd)
381385 else if ((bpOrdAm > 0))
382386 then if ((0 > whOrdAm))
383387 then if ((bpOrdAm > -(whOrdAm)))
384388 then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm))))
385389 else $Tuple12((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)
386390 else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it"))
387391 else if ((whOrdAm > 0))
388392 then if ((-(bpOrdAm) > whOrdAm))
389393 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm)))
390394 else if ((-(bpOrdAm) > bpInit))
391395 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j]))
392396 else $Tuple12((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)
393397 else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it"))
394398 }
395399 }
396400 }
397401 }
398402
399403
400404 @Callable(i)
401405 func constructorV1 (restAddr) = if ((i.caller != this))
402406 then throw("Permission denied")
403407 else [StringEntry(keyRestAddress(), restAddr)]
404408
405409
406410
407411 @Callable(i)
408412 func sellResources (amounts,minPrices) = {
409413 let blocked = checkBlocked()
410414 if ((blocked == blocked))
411415 then {
412416 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
413417 if ((size(i.payments) != 0))
414418 then throw("sellResources doesn't require any payments")
415419 else {
416420 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
417421 if ((curLocation[locIdxType] != "F"))
418422 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
419423 else {
420424 let locId = curLocation[locIdxId]
421425 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
422426 let resList = split(currentPack[bpIdxRes], "_")
423427 func adder (acc,j) = if ((amounts[j] > parseIntValue(resList[j])))
424428 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to sell ") + toString(amounts[j])))
425429 else if ((0 > amounts[j]))
426430 then throw(((("You tried to sell negative amount of " + resTypes[j]) + ": ") + toString(amounts[j])))
427431 else if ((amounts[j] > 0))
428432 then {
429433 let b = sellInternal(locId, j, amounts[j], minPrices[j])
430434 $Tuple3((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(resList[j]) - amounts[j]))), (acc._3 + b._2))
431435 }
432436 else $Tuple3(acc._1, (acc._2 :+ resList[j]), acc._3)
433437
434438 let merged = {
435439 let $l = [0, 1, 2, 3, 4, 5]
436440 let $s = size($l)
437441 let $acc0 = $Tuple3(nil, nil, 0)
438442 func $f0_1 ($a,$i) = if (($i >= $s))
439443 then $a
440444 else adder($a, $l[$i])
441445
442446 func $f0_2 ($a,$i) = if (($i >= $s))
443447 then $a
444448 else throw("List size exceeds 6")
445449
446450 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
447451 }
448452 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._2, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":")
449453 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
450454 $Tuple2((merged._1 :+ ScriptTransfer(i.caller, merged._3, usdtAssetId)), result)
451455 }
452456 }
453457 }
454458 else throw("Strict value is not equal to itself.")
455459 }
456460
457461
458462
459463 @Callable(i)
460464 func buyMaterials (amounts,maxPrices) = {
461465 let blocked = checkBlocked()
462466 if ((blocked == blocked))
463467 then {
464468 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
465469 if ((size(i.payments) != 1))
466470 then throw("exactly 1 payment must be attached")
467471 else {
468472 let pmt = i.payments[0]
469473 let amt = pmt.amount
470474 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
471475 if ((pmtAssetId != usdtAssetId))
472476 then throw("USDT payments only!")
473477 else {
474478 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
475479 if ((curLocation[locIdxType] != "F"))
476480 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
477481 else {
478482 let locId = curLocation[locIdxId]
479483 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
480484 let matList = split(currentPack[bpIdxMat], "_")
481485 func mUpdater (acc,j) = if ((0 > amounts[j]))
482486 then throw(((("You tried to buy negative amount of " + matTypes[j]) + ": ") + toString(amounts[j])))
483487 else if ((amounts[j] > 0))
484488 then {
485489 let b = buyInternal(locId, j, amounts[j], maxPrices[j])
486490 $Tuple3((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(matList[j]) + b._3))), (acc._3 + b._2))
487491 }
488492 else $Tuple3(acc._1, (acc._2 :+ matList[j]), acc._3)
489493
490494 let merged = {
491495 let $l = [0, 1, 2, 3, 4, 5]
492496 let $s = size($l)
493497 let $acc0 = $Tuple3(nil, nil, 0)
494498 func $f0_1 ($a,$i) = if (($i >= $s))
495499 then $a
496500 else mUpdater($a, $l[$i])
497501
498502 func $f0_2 ($a,$i) = if (($i >= $s))
499503 then $a
500504 else throw("List size exceeds 6")
501505
502506 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
503507 }
504508 if ((merged._3 > amt))
505509 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
506510 else {
507511 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
508512 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
509513 let rest = if (((amt - merged._3) > 0))
510514 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
511515 else nil
512516 let activitiesAmount = (merged._3 / 100)
513517 $Tuple2(((merged._1 ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), result)
514518 }
515519 }
516520 }
517521 }
518522 }
519523 else throw("Strict value is not equal to itself.")
520524 }
521525
522526
523527
524528 @Callable(i)
525529 func exchangeResources (amounts) = {
526530 let blocked = checkBlocked()
527531 if ((blocked == blocked))
528532 then {
529533 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
530534 if ((size(i.payments) != 1))
531535 then throw("exactly 1 payment must be attached")
532536 else {
533537 let pmt = i.payments[0]
534538 let amt = pmt.amount
535539 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
536540 if ((pmtAssetId != usdtAssetId))
537541 then throw("USDT payments only!")
538542 else {
539543 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
540544 if ((curLocation[locIdxType] != "F"))
541545 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
542546 else {
543547 let locId = curLocation[locIdxId]
544548 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
545549 let resList = split(currentPack[bpIdxRes], "_")
546550 let matList = split(currentPack[bpIdxMat], "_")
547551 func exchanger (acc,j) = {
548552 let whKey = keyFactoryWarehouseByIdAndType(locId, j)
549553 let w0 = valueOrElse(getInteger(whKey), 0)
550554 let amj = amounts[j]
551555 if ((amj > parseIntValue(resList[j])))
552556 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to exchange ") + toString(amj)))
553557 else if ((0 > amj))
554558 then throw(((("You tried to exchange negative amount of " + resTypes[j]) + ": ") + toString(amj)))
555559 else if ((amj > 0))
556560 then $Tuple4((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)))
557561 else $Tuple4((acc._1 :+ resList[j]), (acc._2 :+ matList[j]), acc._3, acc._4)
558562 }
559563
560564 let merged = {
561565 let $l = [0, 1, 2, 3, 4, 5]
562566 let $s = size($l)
563567 let $acc0 = $Tuple4(nil, nil, 0, nil)
564568 func $f0_1 ($a,$i) = if (($i >= $s))
565569 then $a
566570 else exchanger($a, $l[$i])
567571
568572 func $f0_2 ($a,$i) = if (($i >= $s))
569573 then $a
570574 else throw("List size exceeds 6")
571575
572576 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
573577 }
574578 if ((merged._3 > amt))
575579 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
576580 else {
577581 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._1, "_"), makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
578582 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
579583 let rest = if (((amt - merged._3) > 0))
580584 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
581585 else nil
582586 let activitiesAmount = (merged._3 / 100)
583587 $Tuple2(((rest ++ merged._4) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), result)
584588 }
585589 }
586590 }
587591 }
588592 }
589593 else throw("Strict value is not equal to itself.")
590594 }
591595
592596
593597
594598 @Callable(i)
595599 func craftGoods (productIdx,quantity) = {
596600 let blocked = checkBlocked()
597601 if ((blocked == blocked))
598602 then if ((size(i.payments) != 1))
599603 then throw("exactly 1 payment must be attached")
600604 else {
601605 let pmt = i.payments[0]
602606 let amt = pmt.amount
603607 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
604608 if ((pmtAssetId != usdtAssetId))
605609 then throw("USDT payments only!")
606610 else if ((amt != MULT6))
607611 then throw("exactly 1 USDT must be attached as payment")
608612 else if ((0 >= quantity))
609613 then throw("Quantity should be positive")
610614 else {
611615 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
612616 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
613617 if ((curLocation[locIdxType] != "M"))
614618 then throw(("Duck location type should be Manufactory, but is " + curLocation[locIdxType]))
615619 else {
616620 let cont = curLocation[locIdxContinent]
617621 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
618622 let matList = split(currentPack[bpIdxMat], "_")
619623 if (if ((0 > productIdx))
620624 then true
621625 else (productIdx >= size(productionMatrix)))
622626 then throw(("Unknown product idx=" + toString(productIdx)))
623627 else {
624628 let recipe = split(productionMatrix[productIdx], "_")
625629 if ((size(recipe) != (NUMRES + 3)))
626630 then throw(("Fatal: unknown recipe: " + productionMatrix[productIdx]))
627631 else {
628632 let productContIdx = parseIntValue(recipe[recipeIdxContinent])
629633 if ((continents[productContIdx] != cont))
630634 then throw(((("This product is available in " + continents[productContIdx]) + ", but you are in ") + cont))
631635 else {
632636 let prodList = if ((currentPack[bpIdxProd] == ""))
633637 then nil
634638 else split(currentPack[bpIdxProd], "_")
635639 func filler (acc,ignoredItem) = {
636640 let n = acc._2
637641 let xs = if ((size(prodList) > n))
638642 then prodList[n]
639643 else "0"
640644 let x = parseIntValue(xs)
641645 let amount = (quantity * parseIntValue(recipe[recipeIdxPacksize]))
642646 let y = if ((n == productIdx))
643647 then toString((x + amount))
644648 else xs
645649 $Tuple2((acc._1 :+ y), (n + 1))
646650 }
647651
648652 let bpProd = ( let $l = productionMatrix
649653 let $s = size($l)
650654 let $acc0 = $Tuple2(nil, 0)
651655 func $f0_1 ($a,$i) = if (($i >= $s))
652656 then $a
653657 else filler($a, $l[$i])
654658
655659 func $f0_2 ($a,$i) = if (($i >= $s))
656660 then $a
657661 else throw("List size exceeds 50")
658662
659663 $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
660664 func producer (acc,j) = {
661665 let needMat = ((parseIntValue(recipe[j]) * MULT7) * quantity)
662666 let haveMat = parseIntValue(matList[j])
663667 if ((needMat > haveMat))
664668 then throw(((((((("You have " + matList[j]) + " of ") + matTypes[j]) + ", but recipe requires ") + toString(needMat)) + " for quantity ") + toString(quantity)))
665669 else if ((needMat > 0))
666670 then (acc :+ toString((haveMat - needMat)))
667671 else (acc :+ matList[j])
668672 }
669673
670674 let merged = {
671675 let $l = [0, 1, 2, 3, 4, 5]
672676 let $s = size($l)
673677 let $acc0 = nil
674678 func $f1_1 ($a,$i) = if (($i >= $s))
675679 then $a
676680 else producer($a, $l[$i])
677681
678682 func $f1_2 ($a,$i) = if (($i >= $s))
679683 then $a
680684 else throw("List size exceeds 6")
681685
682686 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683687 }
684688 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged, "_"), makeString(bpProd, "_")], ":")
685689 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
686690 $Tuple2(nil, result)
687691 }
688692 }
689693 }
690694 }
691695 }
692696 }
693697 else throw("Strict value is not equal to itself.")
694698 }
695699
696700
697701
698702 @Callable(i)
699703 func setWarehouseOrder (cargoListStr,landAssetId) = {
700704 let user = i.originCaller
701705 let addr = toString(user)
702706 let result = if ((user != restContract))
703707 then checkBlocked()
704708 else false
705709 let asset = value(assetInfo(fromBase58String(landAssetId)))
706710 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
707711 then throw((("NFT " + asset.name) + " is not staked"))
708712 else {
709713 let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
710714 if (if ((user != restContract))
711715 then (owner != addr)
712716 else false)
713717 then throw((LANDPREFIX + " is not yours"))
714718 else {
715719 let cargoParts = split_4C(cargoListStr, ":")
716720 if ((size(cargoParts) != 3))
717721 then throw("cargoListStr should contain exactly 2 ':' separators")
718722 else {
719723 let resParts = split(cargoParts[0], "_")
720724 let matParts = split(cargoParts[1], "_")
721725 let prodParts = if ((cargoParts[2] == ""))
722726 then nil
723727 else split(cargoParts[2], "_")
724728 if ((size(resParts) != NUMRES))
725729 then throw("All 6 resources should be passed")
726730 else if ((size(matParts) != NUMRES))
727731 then throw("All 6 materials should be passed")
728732 else {
729733 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
730734 let currentWh = split_4C(wh, ":")
731735 let currWhRes = split(currentWh[whIdxRes], "_")
732736 let currWhMat = split(currentWh[whIdxMat], "_")
733737 let currWhProd = if ((currentWh[whIdxProd] == ""))
734738 then nil
735739 else split(currentWh[whIdxProd], "_")
736740 let loft = split(currentWh[whIdxLOFT], "_")
737741 let whOccupied = parseIntValue(loft[volOccupied])
738742 let whFree = parseIntValue(loft[volFree])
739743 let ordKey = keyOrderByLand(landAssetId)
740744 let currentOrd = getOrder(ordKey)
741745 let currentOrdRes = split(currentOrd[ordIdxRes], "_")
742746 let currentOrdMat = split(currentOrd[ordIdxMat], "_")
743747 let currentOrdProd = if ((currentOrd[ordIdxProd] == ""))
744748 then nil
745749 else split(currentOrd[ordIdxProd], "_")
746750 let usdtNeed2Lock = 0
747751 let r = {
748752 let $l = resParts
749753 let $s = size($l)
750754 let $acc0 = $Tuple8(0, nil, 0, 0, 0, currWhRes, currentOrdRes, false)
751755 func $f0_1 ($a,$i) = if (($i >= $s))
752756 then $a
753757 else setCommon($a, $l[$i])
754758
755759 func $f0_2 ($a,$i) = if (($i >= $s))
756760 then $a
757761 else throw("List size exceeds 6")
758762
759763 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
760764 }
761765 let m = {
762766 let $l = matParts
763767 let $s = size($l)
764768 let $acc0 = $Tuple8(0, nil, r._3, r._4, r._5, currWhMat, currentOrdMat, false)
765769 func $f1_1 ($a,$i) = if (($i >= $s))
766770 then $a
767771 else setCommon($a, $l[$i])
768772
769773 func $f1_2 ($a,$i) = if (($i >= $s))
770774 then $a
771775 else throw("List size exceeds 6")
772776
773777 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
774778 }
775779 let p = if ((size(prodParts) != 0))
776780 then {
777781 let $l = prodParts
778782 let $s = size($l)
779783 let $acc0 = $Tuple8(0, nil, m._3, m._4, m._5, currWhProd, currentOrdProd, true)
780784 func $f2_1 ($a,$i) = if (($i >= $s))
781785 then $a
782786 else setCommon($a, $l[$i])
783787
784788 func $f2_2 ($a,$i) = if (($i >= $s))
785789 then $a
786790 else throw("List size exceeds 50")
787791
788792 $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)
789793 }
790794 else $Tuple8(0, currWhProd, m._3, m._4, m._5, currWhProd, currentOrdProd, true)
791795 let buyVolSaldo = p._3
792796 let sellVolSaldo = p._4
793797 if ((buyVolSaldo > whFree))
794798 then throw((((("Attempt to reserve " + toString(buyVolSaldo)) + " space for buy orders, but only ") + toString(whFree)) + " warehouse empty space left"))
795799 else if ((sellVolSaldo > whOccupied))
796800 then throw((((("Attempt to lock " + toString(sellVolSaldo)) + " space for sell orders, but only ") + toString(whOccupied)) + " warehouse space occupied"))
797801 else {
798802 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), toString((buyVolSaldo + sellVolSaldo))], ":")
799803 let whSave = invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)
800804 if ((whSave == whSave))
801805 then {
802806 let usdSaldo = p._5
803807 let actions = if ((usdSaldo > 0))
804808 then if ((size(i.payments) != 1))
805809 then throw("exactly 1 payment must be attached")
806810 else {
807811 let pmt = i.payments[0]
808812 let amt = pmt.amount
809813 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
810814 if ((pmtAssetId != usdtAssetId))
811815 then throw("USDT payments only!")
812816 else if ((amt != usdSaldo))
813817 then throw(("Payment needed is " + toString(usdSaldo)))
814818 else [StringEntry(ordKey, cargoListStr)]
815819 }
816820 else if ((usdSaldo == 0))
817821 then if ((size(i.payments) != 0))
818822 then throw("No payments needed")
819823 else [StringEntry(ordKey, cargoListStr)]
820824 else if ((size(i.payments) != 0))
821825 then throw("No payments needed")
822826 else [ScriptTransfer(addressFromStringValue(owner), -(usdSaldo), usdtAssetId), StringEntry(ordKey, cargoListStr)]
823827 $Tuple2(actions, result)
824828 }
825829 else throw("Strict value is not equal to itself.")
826830 }
827831 }
828832 }
829833 }
830834 }
831835 }
832836
833837
834838
835839 @Callable(i)
836840 func acceptWarehouseOrder (bpOrderStr,landAssetId,duckAssetId) = {
837841 let blocked = checkBlocked()
838842 if ((blocked == blocked))
839843 then {
840844 let caller = i.originCaller
841845 let callerAddr = toString(caller)
842846 let stakedDuckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked")
843847 let curLocation = valueOrElse(getString(stakingContract, keyDuckLocation(stakedDuckAssetId)), DEFAULTLOCATION)
844848 let loc = split(value(curLocation), "_")
845849 if ((loc[locIdxType] != "L"))
846850 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
847851 else if ((stakedDuckAssetId != duckAssetId))
848852 then throw(((("Your staked duck is " + stakedDuckAssetId) + ", but passed ") + duckAssetId))
849853 else {
850854 let landAsset = value(assetInfo(fromBase58String(landAssetId)))
851855 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
852856 then throw((("NFT " + landAsset.name) + " is not staked"))
853857 else {
854858 let landOwner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + landAsset.name) + " is orphaned"))
855859 if ((landOwner == callerAddr))
856860 then throw("You cannot trade with yourself")
857861 else {
858862 let bpOrderParts = split_4C(bpOrderStr, ":")
859863 if ((size(bpOrderParts) != 3))
860864 then throw("bpOrderStr should contain exactly 2 ':' separators")
861865 else {
862866 let bpOrdRes = split(bpOrderParts[0], "_")
863867 let bpOrdMat = split(bpOrderParts[1], "_")
864868 let bpOrdProd = if ((bpOrderParts[2] == ""))
865869 then nil
866870 else split(bpOrderParts[2], "_")
867871 if ((size(bpOrdRes) != NUMRES))
868872 then throw("All 6 resources should be passed")
869873 else if ((size(bpOrdMat) != NUMRES))
870874 then throw("All 6 materials should be passed")
871875 else {
872876 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
873877 let currentWh = split_4C(wh, ":")
874878 let currWhRes = split(currentWh[whIdxRes], "_")
875879 let currWhMat = split(currentWh[whIdxMat], "_")
876880 let currWhProd = if ((currentWh[whIdxProd] == ""))
877881 then nil
878882 else split(currentWh[whIdxProd], "_")
879883 let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
880884 let bpKey = keyBackpackByDuck(duckAssetId)
881885 let currentPack = getBackpack(bpKey)
882886 let bpResList = split(currentPack[bpIdxRes], "_")
883887 let bpMatList = split(currentPack[bpIdxMat], "_")
884888 let bpProdList = if ((currentPack[bpIdxProd] == ""))
885889 then nil
886890 else split(currentPack[bpIdxProd], "_")
887891 let ordKey = keyOrderByLand(landAssetId)
888892 let whOrd = getOrder(ordKey)
889893 let whOrdRes = split(whOrd[ordIdxRes], "_")
890894 let whOrdMat = split(whOrd[ordIdxMat], "_")
891895 let whOrdProd = if ((whOrd[ordIdxProd] == ""))
892896 then nil
893897 else split(whOrd[ordIdxProd], "_")
894898 let usdtNeed2Lock = 0
895899 let r = {
896900 let $l = bpOrdRes
897901 let $s = size($l)
898902 let $acc0 = $Tuple12(nil, nil, nil, 0, 0, 0, 0, bpResList, currWhRes, whOrdRes, resTypes, false)
899903 func $f0_1 ($a,$i) = if (($i >= $s))
900904 then $a
901905 else acceptCommon($a, $l[$i])
902906
903907 func $f0_2 ($a,$i) = if (($i >= $s))
904908 then $a
905909 else throw("List size exceeds 6")
906910
907911 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
908912 }
909913 let m = {
910914 let $l = bpOrdMat
911915 let $s = size($l)
912916 let $acc0 = $Tuple12(nil, nil, nil, r._4, r._5, r._6, 0, bpMatList, currWhMat, whOrdMat, matTypes, false)
913917 func $f1_1 ($a,$i) = if (($i >= $s))
914918 then $a
915919 else acceptCommon($a, $l[$i])
916920
917921 func $f1_2 ($a,$i) = if (($i >= $s))
918922 then $a
919923 else throw("List size exceeds 6")
920924
921925 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
922926 }
923927 let p = if ((size(bpOrdProd) != 0))
924928 then {
925929 let $l = bpOrdProd
926930 let $s = size($l)
927931 let $acc0 = $Tuple12(nil, nil, nil, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true)
928932 func $f2_1 ($a,$i) = if (($i >= $s))
929933 then $a
930934 else acceptCommon($a, $l[$i])
931935
932936 func $f2_2 ($a,$i) = if (($i >= $s))
933937 then $a
934938 else throw("List size exceeds 50")
935939
936940 $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)
937941 }
938942 else $Tuple12(currWhProd, whOrdProd, bpProdList, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true)
939943 let volSaldo = p._4
940944 let newLockedVol = if ((0 > (currWhLockedVol - volSaldo)))
941945 then 0
942946 else (currWhLockedVol - volSaldo)
943947 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._1, "_"), makeString(m._1, "_"), makeString(p._1, "_"), toString(newLockedVol)], ":")
944948 let newWhOrdStr = makeString_2C([makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_")], ":")
945949 let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_")], ":")
946950 let whSave = invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)
947951 if ((whSave == whSave))
948952 then {
949953 let bpSave = invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)
950954 if ((bpSave == bpSave))
951955 then {
952956 let actions = [StringEntry(ordKey, newWhOrdStr)]
953957 let usdWh2BpSaldo = p._5
954958 let actions1 = if ((usdWh2BpSaldo > 0))
955959 then {
956960 let usdWh2BpFee = fraction(p._5, AUCTIONFEE, MULT6)
957961 let refByKey = keyAddressRefBy(callerAddr)
958962 let refBy = getString(stakingContract, refByKey)
959963 if (isDefined(refBy))
960964 then (((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdWh2BpFee, usdtAssetId))
961965 else ((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId))
962966 }
963967 else actions
964968 let usdBp2WhSaldo = p._6
965969 if ((usdBp2WhSaldo > 0))
966970 then if ((size(i.payments) != 1))
967971 then throw("exactly 1 payment must be attached")
968972 else {
969973 let pmt = i.payments[0]
970974 let amt = pmt.amount
971975 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
972976 if ((pmtAssetId != usdtAssetId))
973977 then throw("USDT payments only!")
974978 else if ((amt != usdBp2WhSaldo))
975979 then throw(("Payment needed is " + toString(usdBp2WhSaldo)))
976980 else if ((MINSHOPPAYMENT > amt))
977981 then throw(("Payment should be at least " + toString(MINSHOPPAYMENT)))
978982 else {
979983 let usdBp2WhFee = fraction(p._6, AUCTIONFEE, MULT6)
980984 let refByKey = keyAddressRefBy(landOwner)
981985 let refBy = getString(stakingContract, refByKey)
982986 if (isDefined(refBy))
983987 then (((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdBp2WhFee, usdtAssetId))
984988 else ((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId))
985989 }
986990 }
987991 else if ((size(i.payments) != 0))
988992 then throw("No payments needed")
989993 else actions1
990994 }
991995 else throw("Strict value is not equal to itself.")
992996 }
993997 else throw("Strict value is not equal to itself.")
994998 }
995999 }
9961000 }
9971001 }
9981002 }
9991003 }
10001004 else throw("Strict value is not equal to itself.")
10011005 }
10021006
10031007

github/deemru/w8io/026f985 
146.39 ms