tx · yxPxYAHG7h93UE5ZkToYGHvWfp98aqYk4x4zVAqjBDi

3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep:  -0.03200000 Waves

2023.05.30 00:48 [2599824] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves

{ "type": 13, "id": "yxPxYAHG7h93UE5ZkToYGHvWfp98aqYk4x4zVAqjBDi", "fee": 3200000, "feeAssetId": null, "timestamp": 1685396997046, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "3V2RydrXFrMsKBbBGixV9gAnbgMQW7em1ys2Haojt34rRb6pnd3ThTEqoFDbknLfPBExZ3YGDFqthCYdSXum5oYm" ], "script": "base64:BgIrCAISAwoBCBIECgIRERIECgIRERIDCgEREgQKAgEBEgQKAggIEgUKAwgICFoAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDEwAIDIr6AlAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAVZGVmYXVsdFJlc3RBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUFFDdXZGYnZoNExrUFVucm5VMXozam5iQTFwOW0zV05odgMJAAACAQFUBQckbWF0Y2gwAiMzTXVta0dHenRDS0FYcFdEcXhrZGRvZnFYU1VicVFrdlNKeQkAAgECDVVua25vd24gY2hhaW4BD2dldFN0cmluZ09yRmF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zZHRBc3NldElkCQEOU2NyaXB0VHJhbnNmZXIDBQxyZXN0Q29udHJhY3QFC3VzZEJwMldoRmVlBQt1c2R0QXNzZXRJZAMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECEk5vIHBheW1lbnRzIG5lZWRlZAUIYWN0aW9uczEJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4A6enecg==", "height": 2599824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Ht9SJk9iSqC6y2sMfiq1w1BV91zoHCUyvyzySfmaA3E Next: Fpuy5PgkmwqLJ9QXA5m2BBySV8TBEGSQEJhH2EFnvYXp Diff:
OldNewDifferences
377377 let whOrdUsd = fraction(whOrdAm, whOrdPr, MULT8)
378378 let deltaVol = toVolume(bpOrdAm, pkgSize, isProd)
379379 if ((bpOrdAm == 0))
380- then $Tuple11((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)
380+ 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)
381381 else if ((bpOrdAm > 0))
382382 then if ((0 > whOrdAm))
383383 then if ((bpOrdAm > -(whOrdAm)))
384384 then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm))))
385- else $Tuple11((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)
385+ 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)
386386 else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it"))
387387 else if ((whOrdAm > 0))
388388 then if ((-(bpOrdAm) > whOrdAm))
389389 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm)))
390390 else if ((-(bpOrdAm) > bpInit))
391391 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j]))
392- else $Tuple11((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)
392+ 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)
393393 else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it"))
394394 }
395395 }
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)
367367 let bpInit = parseIntValue(acc._8[j])
368368 let whInit = parseIntValue(acc._9[j])
369369 let whOrdParts = split(acc._10[j], "@")
370370 let whOrdAm = parseIntValue(whOrdParts[0])
371371 let whOrdPr = parseIntValue(whOrdParts[1])
372372 if (if ((bpOrdAm != 0))
373373 then (bpOrdPr != whOrdPr)
374374 else false)
375375 then throw(((((("Prices of " + acc._11[j]) + " don't match! WH price=") + toString(whOrdPr)) + ", your price=") + toString(bpOrdPr)))
376376 else {
377377 let whOrdUsd = fraction(whOrdAm, whOrdPr, MULT8)
378378 let deltaVol = toVolume(bpOrdAm, pkgSize, isProd)
379379 if ((bpOrdAm == 0))
380- then $Tuple11((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)
380+ 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)
381381 else if ((bpOrdAm > 0))
382382 then if ((0 > whOrdAm))
383383 then if ((bpOrdAm > -(whOrdAm)))
384384 then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm))))
385- else $Tuple11((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)
385+ 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)
386386 else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it"))
387387 else if ((whOrdAm > 0))
388388 then if ((-(bpOrdAm) > whOrdAm))
389389 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm)))
390390 else if ((-(bpOrdAm) > bpInit))
391391 then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j]))
392- else $Tuple11((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)
392+ 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)
393393 else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it"))
394394 }
395395 }
396396 }
397397 }
398398
399399
400400 @Callable(i)
401401 func constructorV1 (restAddr) = if ((i.caller != this))
402402 then throw("Permission denied")
403403 else [StringEntry(keyRestAddress(), restAddr)]
404404
405405
406406
407407 @Callable(i)
408408 func sellResources (amounts,minPrices) = {
409409 let blocked = checkBlocked()
410410 if ((blocked == blocked))
411411 then {
412412 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
413413 if ((size(i.payments) != 0))
414414 then throw("sellResources doesn't require any payments")
415415 else {
416416 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
417417 if ((curLocation[locIdxType] != "F"))
418418 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
419419 else {
420420 let locId = curLocation[locIdxId]
421421 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
422422 let resList = split(currentPack[bpIdxRes], "_")
423423 func adder (acc,j) = if ((amounts[j] > parseIntValue(resList[j])))
424424 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to sell ") + toString(amounts[j])))
425425 else if ((0 > amounts[j]))
426426 then throw(((("You tried to sell negative amount of " + resTypes[j]) + ": ") + toString(amounts[j])))
427427 else if ((amounts[j] > 0))
428428 then {
429429 let b = sellInternal(locId, j, amounts[j], minPrices[j])
430430 $Tuple3((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(resList[j]) - amounts[j]))), (acc._3 + b._2))
431431 }
432432 else $Tuple3(acc._1, (acc._2 :+ resList[j]), acc._3)
433433
434434 let merged = {
435435 let $l = [0, 1, 2, 3, 4, 5]
436436 let $s = size($l)
437437 let $acc0 = $Tuple3(nil, nil, 0)
438438 func $f0_1 ($a,$i) = if (($i >= $s))
439439 then $a
440440 else adder($a, $l[$i])
441441
442442 func $f0_2 ($a,$i) = if (($i >= $s))
443443 then $a
444444 else throw("List size exceeds 6")
445445
446446 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
447447 }
448448 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._2, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":")
449449 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
450450 $Tuple2((merged._1 :+ ScriptTransfer(i.caller, merged._3, usdtAssetId)), result)
451451 }
452452 }
453453 }
454454 else throw("Strict value is not equal to itself.")
455455 }
456456
457457
458458
459459 @Callable(i)
460460 func buyMaterials (amounts,maxPrices) = {
461461 let blocked = checkBlocked()
462462 if ((blocked == blocked))
463463 then {
464464 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
465465 if ((size(i.payments) != 1))
466466 then throw("exactly 1 payment must be attached")
467467 else {
468468 let pmt = i.payments[0]
469469 let amt = pmt.amount
470470 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
471471 if ((pmtAssetId != usdtAssetId))
472472 then throw("USDT payments only!")
473473 else {
474474 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
475475 if ((curLocation[locIdxType] != "F"))
476476 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
477477 else {
478478 let locId = curLocation[locIdxId]
479479 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
480480 let matList = split(currentPack[bpIdxMat], "_")
481481 func mUpdater (acc,j) = if ((0 > amounts[j]))
482482 then throw(((("You tried to buy negative amount of " + matTypes[j]) + ": ") + toString(amounts[j])))
483483 else if ((amounts[j] > 0))
484484 then {
485485 let b = buyInternal(locId, j, amounts[j], maxPrices[j])
486486 $Tuple3((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(matList[j]) + b._3))), (acc._3 + b._2))
487487 }
488488 else $Tuple3(acc._1, (acc._2 :+ matList[j]), acc._3)
489489
490490 let merged = {
491491 let $l = [0, 1, 2, 3, 4, 5]
492492 let $s = size($l)
493493 let $acc0 = $Tuple3(nil, nil, 0)
494494 func $f0_1 ($a,$i) = if (($i >= $s))
495495 then $a
496496 else mUpdater($a, $l[$i])
497497
498498 func $f0_2 ($a,$i) = if (($i >= $s))
499499 then $a
500500 else throw("List size exceeds 6")
501501
502502 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
503503 }
504504 if ((merged._3 > amt))
505505 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
506506 else {
507507 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
508508 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
509509 let rest = if (((amt - merged._3) > 0))
510510 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
511511 else nil
512512 let activitiesAmount = (merged._3 / 100)
513513 $Tuple2(((merged._1 ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), result)
514514 }
515515 }
516516 }
517517 }
518518 }
519519 else throw("Strict value is not equal to itself.")
520520 }
521521
522522
523523
524524 @Callable(i)
525525 func exchangeResources (amounts) = {
526526 let blocked = checkBlocked()
527527 if ((blocked == blocked))
528528 then {
529529 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
530530 if ((size(i.payments) != 1))
531531 then throw("exactly 1 payment must be attached")
532532 else {
533533 let pmt = i.payments[0]
534534 let amt = pmt.amount
535535 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
536536 if ((pmtAssetId != usdtAssetId))
537537 then throw("USDT payments only!")
538538 else {
539539 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
540540 if ((curLocation[locIdxType] != "F"))
541541 then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType]))
542542 else {
543543 let locId = curLocation[locIdxId]
544544 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
545545 let resList = split(currentPack[bpIdxRes], "_")
546546 let matList = split(currentPack[bpIdxMat], "_")
547547 func exchanger (acc,j) = {
548548 let whKey = keyFactoryWarehouseByIdAndType(locId, j)
549549 let w0 = valueOrElse(getInteger(whKey), 0)
550550 let amj = amounts[j]
551551 if ((amj > parseIntValue(resList[j])))
552552 then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to exchange ") + toString(amj)))
553553 else if ((0 > amj))
554554 then throw(((("You tried to exchange negative amount of " + resTypes[j]) + ": ") + toString(amj)))
555555 else if ((amj > 0))
556556 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)))
557557 else $Tuple4((acc._1 :+ resList[j]), (acc._2 :+ matList[j]), acc._3, acc._4)
558558 }
559559
560560 let merged = {
561561 let $l = [0, 1, 2, 3, 4, 5]
562562 let $s = size($l)
563563 let $acc0 = $Tuple4(nil, nil, 0, nil)
564564 func $f0_1 ($a,$i) = if (($i >= $s))
565565 then $a
566566 else exchanger($a, $l[$i])
567567
568568 func $f0_2 ($a,$i) = if (($i >= $s))
569569 then $a
570570 else throw("List size exceeds 6")
571571
572572 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
573573 }
574574 if ((merged._3 > amt))
575575 then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3)))
576576 else {
577577 let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._1, "_"), makeString(merged._2, "_"), currentPack[bpIdxProd]], ":")
578578 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
579579 let rest = if (((amt - merged._3) > 0))
580580 then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)]
581581 else nil
582582 let activitiesAmount = (merged._3 / 100)
583583 $Tuple2(((rest ++ merged._4) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), result)
584584 }
585585 }
586586 }
587587 }
588588 }
589589 else throw("Strict value is not equal to itself.")
590590 }
591591
592592
593593
594594 @Callable(i)
595595 func craftGoods (productIdx,quantity) = {
596596 let blocked = checkBlocked()
597597 if ((blocked == blocked))
598598 then if ((size(i.payments) != 1))
599599 then throw("exactly 1 payment must be attached")
600600 else {
601601 let pmt = i.payments[0]
602602 let amt = pmt.amount
603603 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
604604 if ((pmtAssetId != usdtAssetId))
605605 then throw("USDT payments only!")
606606 else if ((amt != MULT6))
607607 then throw("exactly 1 USDT must be attached as payment")
608608 else if ((0 >= quantity))
609609 then throw("Quantity should be positive")
610610 else {
611611 let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
612612 let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_")
613613 if ((curLocation[locIdxType] != "M"))
614614 then throw(("Duck location type should be Manufactory, but is " + curLocation[locIdxType]))
615615 else {
616616 let cont = curLocation[locIdxContinent]
617617 let currentPack = getBackpack(keyBackpackByDuck(duckAssetId))
618618 let matList = split(currentPack[bpIdxMat], "_")
619619 if (if ((0 > productIdx))
620620 then true
621621 else (productIdx >= size(productionMatrix)))
622622 then throw(("Unknown product idx=" + toString(productIdx)))
623623 else {
624624 let recipe = split(productionMatrix[productIdx], "_")
625625 if ((size(recipe) != (NUMRES + 3)))
626626 then throw(("Fatal: unknown recipe: " + productionMatrix[productIdx]))
627627 else {
628628 let productContIdx = parseIntValue(recipe[recipeIdxContinent])
629629 if ((continents[productContIdx] != cont))
630630 then throw(((("This product is available in " + continents[productContIdx]) + ", but you are in ") + cont))
631631 else {
632632 let prodList = if ((currentPack[bpIdxProd] == ""))
633633 then nil
634634 else split(currentPack[bpIdxProd], "_")
635635 func filler (acc,ignoredItem) = {
636636 let n = acc._2
637637 let xs = if ((size(prodList) > n))
638638 then prodList[n]
639639 else "0"
640640 let x = parseIntValue(xs)
641641 let amount = (quantity * parseIntValue(recipe[recipeIdxPacksize]))
642642 let y = if ((n == productIdx))
643643 then toString((x + amount))
644644 else xs
645645 $Tuple2((acc._1 :+ y), (n + 1))
646646 }
647647
648648 let bpProd = ( let $l = productionMatrix
649649 let $s = size($l)
650650 let $acc0 = $Tuple2(nil, 0)
651651 func $f0_1 ($a,$i) = if (($i >= $s))
652652 then $a
653653 else filler($a, $l[$i])
654654
655655 func $f0_2 ($a,$i) = if (($i >= $s))
656656 then $a
657657 else throw("List size exceeds 50")
658658
659659 $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
660660 func producer (acc,j) = {
661661 let needMat = ((parseIntValue(recipe[j]) * MULT7) * quantity)
662662 let haveMat = parseIntValue(matList[j])
663663 if ((needMat > haveMat))
664664 then throw(((((((("You have " + matList[j]) + " of ") + matTypes[j]) + ", but recipe requires ") + toString(needMat)) + " for quantity ") + toString(quantity)))
665665 else if ((needMat > 0))
666666 then (acc :+ toString((haveMat - needMat)))
667667 else (acc :+ matList[j])
668668 }
669669
670670 let merged = {
671671 let $l = [0, 1, 2, 3, 4, 5]
672672 let $s = size($l)
673673 let $acc0 = nil
674674 func $f1_1 ($a,$i) = if (($i >= $s))
675675 then $a
676676 else producer($a, $l[$i])
677677
678678 func $f1_2 ($a,$i) = if (($i >= $s))
679679 then $a
680680 else throw("List size exceeds 6")
681681
682682 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683683 }
684684 let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged, "_"), makeString(bpProd, "_")], ":")
685685 let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil))
686686 $Tuple2(nil, result)
687687 }
688688 }
689689 }
690690 }
691691 }
692692 }
693693 else throw("Strict value is not equal to itself.")
694694 }
695695
696696
697697
698698 @Callable(i)
699699 func setWarehouseOrder (cargoListStr,landAssetId) = {
700700 let user = i.originCaller
701701 let addr = toString(user)
702702 let result = if ((user != restContract))
703703 then checkBlocked()
704704 else false
705705 let asset = value(assetInfo(fromBase58String(landAssetId)))
706706 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
707707 then throw((("NFT " + asset.name) + " is not staked"))
708708 else {
709709 let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
710710 if (if ((user != restContract))
711711 then (owner != addr)
712712 else false)
713713 then throw((LANDPREFIX + " is not yours"))
714714 else {
715715 let cargoParts = split_4C(cargoListStr, ":")
716716 if ((size(cargoParts) != 3))
717717 then throw("cargoListStr should contain exactly 2 ':' separators")
718718 else {
719719 let resParts = split(cargoParts[0], "_")
720720 let matParts = split(cargoParts[1], "_")
721721 let prodParts = if ((cargoParts[2] == ""))
722722 then nil
723723 else split(cargoParts[2], "_")
724724 if ((size(resParts) != NUMRES))
725725 then throw("All 6 resources should be passed")
726726 else if ((size(matParts) != NUMRES))
727727 then throw("All 6 materials should be passed")
728728 else {
729729 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
730730 let currentWh = split_4C(wh, ":")
731731 let currWhRes = split(currentWh[whIdxRes], "_")
732732 let currWhMat = split(currentWh[whIdxMat], "_")
733733 let currWhProd = if ((currentWh[whIdxProd] == ""))
734734 then nil
735735 else split(currentWh[whIdxProd], "_")
736736 let loft = split(currentWh[whIdxLOFT], "_")
737737 let whOccupied = parseIntValue(loft[volOccupied])
738738 let whFree = parseIntValue(loft[volFree])
739739 let ordKey = keyOrderByLand(landAssetId)
740740 let currentOrd = getOrder(ordKey)
741741 let currentOrdRes = split(currentOrd[ordIdxRes], "_")
742742 let currentOrdMat = split(currentOrd[ordIdxMat], "_")
743743 let currentOrdProd = if ((currentOrd[ordIdxProd] == ""))
744744 then nil
745745 else split(currentOrd[ordIdxProd], "_")
746746 let usdtNeed2Lock = 0
747747 let r = {
748748 let $l = resParts
749749 let $s = size($l)
750750 let $acc0 = $Tuple8(0, nil, 0, 0, 0, currWhRes, currentOrdRes, false)
751751 func $f0_1 ($a,$i) = if (($i >= $s))
752752 then $a
753753 else setCommon($a, $l[$i])
754754
755755 func $f0_2 ($a,$i) = if (($i >= $s))
756756 then $a
757757 else throw("List size exceeds 6")
758758
759759 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
760760 }
761761 let m = {
762762 let $l = matParts
763763 let $s = size($l)
764764 let $acc0 = $Tuple8(0, nil, r._3, r._4, r._5, currWhMat, currentOrdMat, false)
765765 func $f1_1 ($a,$i) = if (($i >= $s))
766766 then $a
767767 else setCommon($a, $l[$i])
768768
769769 func $f1_2 ($a,$i) = if (($i >= $s))
770770 then $a
771771 else throw("List size exceeds 6")
772772
773773 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
774774 }
775775 let p = if ((size(prodParts) != 0))
776776 then {
777777 let $l = prodParts
778778 let $s = size($l)
779779 let $acc0 = $Tuple8(0, nil, m._3, m._4, m._5, currWhProd, currentOrdProd, true)
780780 func $f2_1 ($a,$i) = if (($i >= $s))
781781 then $a
782782 else setCommon($a, $l[$i])
783783
784784 func $f2_2 ($a,$i) = if (($i >= $s))
785785 then $a
786786 else throw("List size exceeds 50")
787787
788788 $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)
789789 }
790790 else $Tuple8(0, currWhProd, m._3, m._4, m._5, currWhProd, currentOrdProd, true)
791791 let buyVolSaldo = p._3
792792 let sellVolSaldo = p._4
793793 if ((buyVolSaldo > whFree))
794794 then throw((((("Attempt to reserve " + toString(buyVolSaldo)) + " space for buy orders, but only ") + toString(whFree)) + " warehouse empty space left"))
795795 else if ((sellVolSaldo > whOccupied))
796796 then throw((((("Attempt to lock " + toString(sellVolSaldo)) + " space for sell orders, but only ") + toString(whOccupied)) + " warehouse space occupied"))
797797 else {
798798 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), toString((buyVolSaldo + sellVolSaldo))], ":")
799799 let whSave = invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)
800800 if ((whSave == whSave))
801801 then {
802802 let usdSaldo = p._5
803803 let actions = if ((usdSaldo > 0))
804804 then if ((size(i.payments) != 1))
805805 then throw("exactly 1 payment must be attached")
806806 else {
807807 let pmt = i.payments[0]
808808 let amt = pmt.amount
809809 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
810810 if ((pmtAssetId != usdtAssetId))
811811 then throw("USDT payments only!")
812812 else if ((amt != usdSaldo))
813813 then throw(("Payment needed is " + toString(usdSaldo)))
814814 else [StringEntry(ordKey, cargoListStr)]
815815 }
816816 else if ((usdSaldo == 0))
817817 then if ((size(i.payments) != 0))
818818 then throw("No payments needed")
819819 else [StringEntry(ordKey, cargoListStr)]
820820 else if ((size(i.payments) != 0))
821821 then throw("No payments needed")
822822 else [ScriptTransfer(addressFromStringValue(owner), -(usdSaldo), usdtAssetId), StringEntry(ordKey, cargoListStr)]
823823 $Tuple2(actions, result)
824824 }
825825 else throw("Strict value is not equal to itself.")
826826 }
827827 }
828828 }
829829 }
830830 }
831831 }
832832
833833
834834
835835 @Callable(i)
836836 func acceptWarehouseOrder (bpOrderStr,landAssetId,duckAssetId) = {
837837 let blocked = checkBlocked()
838838 if ((blocked == blocked))
839839 then {
840840 let caller = i.originCaller
841841 let callerAddr = toString(caller)
842842 let stakedDuckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked")
843843 let curLocation = valueOrElse(getString(stakingContract, keyDuckLocation(stakedDuckAssetId)), DEFAULTLOCATION)
844844 let loc = split(value(curLocation), "_")
845845 if ((loc[locIdxType] != "L"))
846846 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
847847 else if ((stakedDuckAssetId != duckAssetId))
848848 then throw(((("Your staked duck is " + stakedDuckAssetId) + ", but passed ") + duckAssetId))
849849 else {
850850 let landAsset = value(assetInfo(fromBase58String(landAssetId)))
851851 if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)))))
852852 then throw((("NFT " + landAsset.name) + " is not staked"))
853853 else {
854854 let landOwner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + landAsset.name) + " is orphaned"))
855855 if ((landOwner == callerAddr))
856856 then throw("You cannot trade with yourself")
857857 else {
858858 let bpOrderParts = split_4C(bpOrderStr, ":")
859859 if ((size(bpOrderParts) != 3))
860860 then throw("bpOrderStr should contain exactly 2 ':' separators")
861861 else {
862862 let bpOrdRes = split(bpOrderParts[0], "_")
863863 let bpOrdMat = split(bpOrderParts[1], "_")
864864 let bpOrdProd = if ((bpOrderParts[2] == ""))
865865 then nil
866866 else split(bpOrderParts[2], "_")
867867 if ((size(bpOrdRes) != NUMRES))
868868 then throw("All 6 resources should be passed")
869869 else if ((size(bpOrdMat) != NUMRES))
870870 then throw("All 6 materials should be passed")
871871 else {
872872 let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil))
873873 let currentWh = split_4C(wh, ":")
874874 let currWhRes = split(currentWh[whIdxRes], "_")
875875 let currWhMat = split(currentWh[whIdxMat], "_")
876876 let currWhProd = if ((currentWh[whIdxProd] == ""))
877877 then nil
878878 else split(currentWh[whIdxProd], "_")
879879 let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
880880 let bpKey = keyBackpackByDuck(duckAssetId)
881881 let currentPack = getBackpack(bpKey)
882882 let bpResList = split(currentPack[bpIdxRes], "_")
883883 let bpMatList = split(currentPack[bpIdxMat], "_")
884884 let bpProdList = if ((currentPack[bpIdxProd] == ""))
885885 then nil
886886 else split(currentPack[bpIdxProd], "_")
887887 let ordKey = keyOrderByLand(landAssetId)
888888 let whOrd = getOrder(ordKey)
889889 let whOrdRes = split(whOrd[ordIdxRes], "_")
890890 let whOrdMat = split(whOrd[ordIdxMat], "_")
891891 let whOrdProd = if ((whOrd[ordIdxProd] == ""))
892892 then nil
893893 else split(whOrd[ordIdxProd], "_")
894894 let usdtNeed2Lock = 0
895895 let r = {
896896 let $l = bpOrdRes
897897 let $s = size($l)
898898 let $acc0 = $Tuple12(nil, nil, nil, 0, 0, 0, 0, bpResList, currWhRes, whOrdRes, resTypes, false)
899899 func $f0_1 ($a,$i) = if (($i >= $s))
900900 then $a
901901 else acceptCommon($a, $l[$i])
902902
903903 func $f0_2 ($a,$i) = if (($i >= $s))
904904 then $a
905905 else throw("List size exceeds 6")
906906
907907 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
908908 }
909909 let m = {
910910 let $l = bpOrdMat
911911 let $s = size($l)
912912 let $acc0 = $Tuple12(nil, nil, nil, r._4, r._5, r._6, 0, bpMatList, currWhMat, whOrdMat, matTypes, false)
913913 func $f1_1 ($a,$i) = if (($i >= $s))
914914 then $a
915915 else acceptCommon($a, $l[$i])
916916
917917 func $f1_2 ($a,$i) = if (($i >= $s))
918918 then $a
919919 else throw("List size exceeds 6")
920920
921921 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
922922 }
923923 let p = if ((size(bpOrdProd) != 0))
924924 then {
925925 let $l = bpOrdProd
926926 let $s = size($l)
927927 let $acc0 = $Tuple12(nil, nil, nil, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true)
928928 func $f2_1 ($a,$i) = if (($i >= $s))
929929 then $a
930930 else acceptCommon($a, $l[$i])
931931
932932 func $f2_2 ($a,$i) = if (($i >= $s))
933933 then $a
934934 else throw("List size exceeds 50")
935935
936936 $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)
937937 }
938938 else $Tuple12(currWhProd, whOrdProd, bpProdList, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true)
939939 let volSaldo = p._4
940940 let newLockedVol = if ((0 > (currWhLockedVol - volSaldo)))
941941 then 0
942942 else (currWhLockedVol - volSaldo)
943943 let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._1, "_"), makeString(m._1, "_"), makeString(p._1, "_"), toString(newLockedVol)], ":")
944944 let newWhOrdStr = makeString_2C([makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_")], ":")
945945 let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_")], ":")
946946 let whSave = invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)
947947 if ((whSave == whSave))
948948 then {
949949 let bpSave = invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)
950950 if ((bpSave == bpSave))
951951 then {
952952 let actions = [StringEntry(ordKey, newWhOrdStr)]
953953 let usdWh2BpSaldo = p._5
954954 let actions1 = if ((usdWh2BpSaldo > 0))
955955 then {
956956 let usdWh2BpFee = fraction(p._5, AUCTIONFEE, MULT6)
957957 let refByKey = keyAddressRefBy(callerAddr)
958958 let refBy = getString(stakingContract, refByKey)
959959 if (isDefined(refBy))
960960 then (((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdWh2BpFee, usdtAssetId))
961961 else ((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId))
962962 }
963963 else actions
964964 let usdBp2WhSaldo = p._6
965965 if ((usdBp2WhSaldo > 0))
966966 then if ((size(i.payments) != 1))
967967 then throw("exactly 1 payment must be attached")
968968 else {
969969 let pmt = i.payments[0]
970970 let amt = pmt.amount
971971 let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment")
972972 if ((pmtAssetId != usdtAssetId))
973973 then throw("USDT payments only!")
974974 else if ((amt != usdBp2WhSaldo))
975975 then throw(("Payment needed is " + toString(usdBp2WhSaldo)))
976976 else if ((MINSHOPPAYMENT > amt))
977977 then throw(("Payment should be at least " + toString(MINSHOPPAYMENT)))
978978 else {
979979 let usdBp2WhFee = fraction(p._6, AUCTIONFEE, MULT6)
980980 let refByKey = keyAddressRefBy(landOwner)
981981 let refBy = getString(stakingContract, refByKey)
982982 if (isDefined(refBy))
983983 then (((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdBp2WhFee, usdtAssetId))
984984 else ((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId))
985985 }
986986 }
987987 else if ((size(i.payments) != 0))
988988 then throw("No payments needed")
989989 else actions1
990990 }
991991 else throw("Strict value is not equal to itself.")
992992 }
993993 else throw("Strict value is not equal to itself.")
994994 }
995995 }
996996 }
997997 }
998998 }
999999 }
10001000 else throw("Strict value is not equal to itself.")
10011001 }
10021002
10031003

github/deemru/w8io/026f985 
127.16 ms