tx · Gt715AXgjyyUeq3fSX3czVf8VE4tjAac4vUHmiv6bmp5 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep: -0.03600000 Waves 2023.08.01 02:17 [2690706] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves
{ "type": 13, "id": "Gt715AXgjyyUeq3fSX3czVf8VE4tjAac4vUHmiv6bmp5", "fee": 3600000, "feeAssetId": null, "timestamp": 1690845454200, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "4wQXvogrWUUirWrh8jZuXgS7cqDLuwbCsPz7yx3wezraeYFwxximWipf67DQn14KRYkrwTWaaoynVGETRgvVZwdp" ], "script": "base64:BgI7CAISBAoCCBgSAwoBCBIECgIRERIECgIRERIDCgEREgQKAgEBEgQKAggIEgUKAwgICBIDCgEREgMKAQhSAAd4cFRyYWRlAJBOAAd4cENyYWZ0AJBOAAp4cFNlbGxUb0VzAJBOAAZ4cFNob3AAkE4ACkxBTkRQUkVGSVgCBExBTkQABk5VTVJFUwAGAA9ERUZBVUxUTE9DQVRJT04CD0FmcmljYV9GX0FmcmljYQAQUkVTT1VSQ0VQUklDRU1JTgDVtQIADUVTTUFYUEFDS0FHRVMAAwAJRVNCVVlDT0VGAAQACHJlc1R5cGVzCQDMCAICA09pbAkAzAgCAgNPcmUJAMwIAgIEV29vZAkAzAgCAgRTYW5kCQDMCAICBENsYXkJAMwIAgIHT3JnYW5pYwUDbmlsAAhtYXRUeXBlcwkAzAgCAgRGdWVsCQDMCAICBU1ldGFsCQDMCAICBVBsYW5rCQDMCAICBUdsYXNzCQDMCAICB1BsYXN0aWMJAMwIAgIHUHJvdGVpbgUDbmlsAAlwcm9kVHlwZXMJAMwIAgIQRmlyc3QgQWlkIEtpdCBMMQkAzAgCAhBGaXJzdCBBaWQgS2l0IEwyCQDMC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GbWVyZ2VkAl8yBQt1c2R0QXNzZXRJZAUDbmlsCQCVCgMFBmJwU2F2ZQUMcHJvbG9nUmVzdWx0BQtzdGF0c1Jlc3VsdAFpAQ91cGRhdGVFc1N0b3JhZ2UBCm5ld1N0b3JhZ2UDCQECIT0CCAUBaQZjYWxsZXIFD3N0YWtpbmdDb250cmFjdAkAAgECEVBlcm1pc3Npb24gZGVuaWVkCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgkBDmtleUVzV2FyZWhvdXNlAAUKbmV3U3RvcmFnZQUDbmlsBQpuZXdTdG9yYWdlAGiKr90=", "height": 2690706, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 61mWhTJ6ootfGoKXpB9Uq2bWGBdaDTRB5LBbUgs6P88a Next: 67Z7yg8MeaGFHDS5RG2KPGpGArrooViCzg5ihYD2geWB Diff:
Old | New | Differences | |
---|---|---|---|
170 | 170 | ||
171 | 171 | func fixedPoint (val,decimals) = { | |
172 | 172 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
173 | - | ((toString((val / tenPow)) + ".") + toString((val % tenPow))) | |
173 | + | let lowPart = toString((val % tenPow)) | |
174 | + | let lowSize = size(lowPart) | |
175 | + | let zeroes = take(toString(tenPow), lowSize) | |
176 | + | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
174 | 177 | } | |
175 | 178 | ||
176 | 179 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let xpTrade = 10000 | |
5 | 5 | ||
6 | 6 | let xpCraft = 10000 | |
7 | 7 | ||
8 | 8 | let xpSellToEs = 10000 | |
9 | 9 | ||
10 | 10 | let xpShop = 10000 | |
11 | 11 | ||
12 | 12 | let LANDPREFIX = "LAND" | |
13 | 13 | ||
14 | 14 | let NUMRES = 6 | |
15 | 15 | ||
16 | 16 | let DEFAULTLOCATION = "Africa_F_Africa" | |
17 | 17 | ||
18 | 18 | let RESOURCEPRICEMIN = 39637 | |
19 | 19 | ||
20 | 20 | let ESMAXPACKAGES = 3 | |
21 | 21 | ||
22 | 22 | let ESBUYCOEF = 4 | |
23 | 23 | ||
24 | 24 | let resTypes = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
25 | 25 | ||
26 | 26 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
27 | 27 | ||
28 | 28 | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
29 | 29 | ||
30 | 30 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
31 | 31 | ||
32 | 32 | let COEFF2MAT = 10000000 | |
33 | 33 | ||
34 | 34 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201"] | |
35 | 35 | ||
36 | 36 | let rIdxCoeff = 6 | |
37 | 37 | ||
38 | 38 | let rIdxContinent = 7 | |
39 | 39 | ||
40 | 40 | let RECIPESIZE = 11 | |
41 | 41 | ||
42 | 42 | let PRODUCTPKGSIZE = 10 | |
43 | 43 | ||
44 | 44 | let whIdxLevels = 0 | |
45 | 45 | ||
46 | 46 | let whIdxRes = 1 | |
47 | 47 | ||
48 | 48 | let whIdxMat = 2 | |
49 | 49 | ||
50 | 50 | let whIdxProd = 3 | |
51 | 51 | ||
52 | 52 | let whIdxLOFT = 4 | |
53 | 53 | ||
54 | 54 | let volLocked = 0 | |
55 | 55 | ||
56 | 56 | let volTotal = 3 | |
57 | 57 | ||
58 | 58 | let bpIdxLevel = 0 | |
59 | 59 | ||
60 | 60 | let bpIdxRes = 1 | |
61 | 61 | ||
62 | 62 | let bpIdxMat = 2 | |
63 | 63 | ||
64 | 64 | let bpIdxProd = 3 | |
65 | 65 | ||
66 | 66 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyBlocked () = "contractsBlocked" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | let locIdxContinent = 0 | |
94 | 94 | ||
95 | 95 | let locIdxType = 1 | |
96 | 96 | ||
97 | 97 | let locIdxId = 2 | |
98 | 98 | ||
99 | 99 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let chain = take(drop(this.bytes, 1), 1) | |
103 | 103 | ||
104 | 104 | let usdtAssetId = match chain { | |
105 | 105 | case _ => | |
106 | 106 | if ((base58'2W' == $match0)) | |
107 | 107 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
108 | 108 | else if ((base58'2T' == $match0)) | |
109 | 109 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
110 | 110 | else throw("Unknown chain") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | let defaultRestAddressStr = match chain { | |
114 | 114 | case _ => | |
115 | 115 | if ((base58'2W' == $match0)) | |
116 | 116 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
117 | 117 | else if ((base58'2T' == $match0)) | |
118 | 118 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
119 | 119 | else throw("Unknown chain") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | let SEP = "__" | |
123 | 123 | ||
124 | 124 | let MULT6 = 1000000 | |
125 | 125 | ||
126 | 126 | let MULT8 = 100000000 | |
127 | 127 | ||
128 | 128 | let MULT10 = 10000000000 | |
129 | 129 | ||
130 | 130 | let MINSHOPPAYMENT = 100000 | |
131 | 131 | ||
132 | 132 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | let IdxCfgStakingDapp = 1 | |
136 | 136 | ||
137 | 137 | func keyRestCfg () = "%s__restConfig" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyRestAddress () = "%s__restAddr" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
150 | 150 | ||
151 | 151 | let restCfg = readRestCfgOrFail(restContract) | |
152 | 152 | ||
153 | 153 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
154 | 154 | ||
155 | 155 | func asString (v) = match v { | |
156 | 156 | case s: String => | |
157 | 157 | s | |
158 | 158 | case _ => | |
159 | 159 | throw("fail to cast into String") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func asInt (v) = match v { | |
164 | 164 | case n: Int => | |
165 | 165 | n | |
166 | 166 | case _ => | |
167 | 167 | throw("fail to cast into Int") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func fixedPoint (val,decimals) = { | |
172 | 172 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
173 | - | ((toString((val / tenPow)) + ".") + toString((val % tenPow))) | |
173 | + | let lowPart = toString((val % tenPow)) | |
174 | + | let lowSize = size(lowPart) | |
175 | + | let zeroes = take(toString(tenPow), lowSize) | |
176 | + | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
174 | 177 | } | |
175 | 178 | ||
176 | 179 | ||
177 | 180 | let FACTORYMAXWAREHOUSE = 10000000000 | |
178 | 181 | ||
179 | 182 | let SELLMULTIPLIER = 200 | |
180 | 183 | ||
181 | 184 | let BUYMULTIPLIER = 300 | |
182 | 185 | ||
183 | 186 | let AUCTIONFEE = 10000 | |
184 | 187 | ||
185 | 188 | func keyFactoryWarehouseByIdAndType (factoryId,resType) = ((("factoryWhByContinentAndRes_" + factoryId) + "_") + toString(resType)) | |
186 | 189 | ||
187 | 190 | ||
188 | 191 | let ordIdxRes = 0 | |
189 | 192 | ||
190 | 193 | let ordIdxMat = 1 | |
191 | 194 | ||
192 | 195 | let ordIdxProd = 2 | |
193 | 196 | ||
194 | 197 | func getOrder (ordKey) = { | |
195 | 198 | 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:"), ":") | |
196 | 199 | [if ((size(split(p[ordIdxRes], "_")) == NUMRES)) | |
197 | 200 | then p[ordIdxRes] | |
198 | 201 | else "0@0_0@0_0@0_0@0_0@0_0@0", if ((size(split(p[ordIdxMat], "_")) == NUMRES)) | |
199 | 202 | then p[ordIdxMat] | |
200 | 203 | else "0@0_0@0_0@0_0@0_0@0_0@0", p[ordIdxProd]] | |
201 | 204 | } | |
202 | 205 | ||
203 | 206 | ||
204 | 207 | func toVolume (amount,pkgSize,isProduct) = if (isProduct) | |
205 | 208 | then { | |
206 | 209 | let pkgs = if ((amount >= 0)) | |
207 | 210 | then (((amount + pkgSize) - 1) / pkgSize) | |
208 | 211 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
209 | 212 | (pkgs * MULT8) | |
210 | 213 | } | |
211 | 214 | else amount | |
212 | 215 | ||
213 | 216 | ||
214 | 217 | func sellInternal (locId,resType,amount,minPrice) = { | |
215 | 218 | let whKey = keyFactoryWarehouseByIdAndType(locId, resType) | |
216 | 219 | let w0 = valueOrElse(getInteger(whKey), 0) | |
217 | 220 | let r0 = if ((w0 > FACTORYMAXWAREHOUSE)) | |
218 | 221 | then 0 | |
219 | 222 | else if (((w0 + amount) > FACTORYMAXWAREHOUSE)) | |
220 | 223 | then (FACTORYMAXWAREHOUSE - w0) | |
221 | 224 | else amount | |
222 | 225 | let usdtReceived = (fraction(r0, ((SELLMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) + (50 * r0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction((amount - r0), RESOURCEPRICEMIN, MULT8)) | |
223 | 226 | let min99 = (minPrice - (minPrice / 100)) | |
224 | 227 | if (((min99 * amount) > (usdtReceived * MULT8))) | |
225 | 228 | then throw((((((((((("Actual price = " + toString(usdtReceived)) + " / ") + toString(amount)) + " < minPrice = ") + toString(minPrice)) + ", (") + locId) + ", ") + resTypes[resType]) + ")")) | |
226 | 229 | else $Tuple2(IntegerEntry(whKey, (w0 + amount)), usdtReceived) | |
227 | 230 | } | |
228 | 231 | ||
229 | 232 | ||
230 | 233 | func buyInternal (locId,matType,amount,maxPrice) = { | |
231 | 234 | let whKey = keyFactoryWarehouseByIdAndType(locId, matType) | |
232 | 235 | let w0 = valueOrElse(getInteger(whKey), 0) | |
233 | 236 | let m1 = if ((w0 > FACTORYMAXWAREHOUSE)) | |
234 | 237 | then min([amount, (w0 - FACTORYMAXWAREHOUSE)]) | |
235 | 238 | else 0 | |
236 | 239 | let m0 = min([w0, (amount - m1)]) | |
237 | 240 | let m = (m0 + m1) | |
238 | 241 | let usdtSpent = (fraction(m0, ((BUYMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) - (50 * m0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction(m1, (2 * RESOURCEPRICEMIN), MULT8)) | |
239 | 242 | let max101 = (maxPrice + (maxPrice / 100)) | |
240 | 243 | if (((usdtSpent * MULT8) > (max101 * m))) | |
241 | 244 | then throw((((((((((("Actual price = " + toString(usdtSpent)) + " / ") + toString(m)) + " > maxPrice = ") + toString(maxPrice)) + ", (") + locId) + ", ") + matTypes[matType]) + ")")) | |
242 | 245 | else $Tuple3(IntegerEntry(whKey, (w0 - m)), usdtSpent, m) | |
243 | 246 | } | |
244 | 247 | ||
245 | 248 | ||
246 | 249 | func getBackpack (bpKey) = { | |
247 | 250 | let p = split(valueOrElse(getString(stakingContract, bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
248 | 251 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
249 | 252 | then p[bpIdxRes] | |
250 | 253 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
251 | 254 | then p[bpIdxMat] | |
252 | 255 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
253 | 256 | } | |
254 | 257 | ||
255 | 258 | ||
256 | 259 | func checkBlocked () = if (valueOrElse(getBoolean(stakingContract, keyBlocked()), false)) | |
257 | 260 | then throw("Contracts are under maintenance") | |
258 | 261 | else unit | |
259 | 262 | ||
260 | 263 | ||
261 | 264 | func prolog () = asInt(invoke(stakingContract, "saveLastTx", nil, nil)) | |
262 | 265 | ||
263 | 266 | ||
264 | 267 | func setCommon (acc,item) = { | |
265 | 268 | let j = acc._1 | |
266 | 269 | let isProd = acc._8 | |
267 | 270 | let itemParts = split(item, "@") | |
268 | 271 | if ((size(itemParts) != 2)) | |
269 | 272 | then throw("Incorrect order format, should be amount@price") | |
270 | 273 | else { | |
271 | 274 | let newOrdAm = parseIntValue(itemParts[0]) | |
272 | 275 | let newOrdPr = parseIntValue(itemParts[1]) | |
273 | 276 | let newOrdUsd = fraction(newOrdAm, newOrdPr, MULT8) | |
274 | 277 | let newOrdVol = toVolume(newOrdAm, PRODUCTPKGSIZE, isProd) | |
275 | 278 | let whInit = if ((size(acc._6) > j)) | |
276 | 279 | then parseIntValue(acc._6[j]) | |
277 | 280 | else 0 | |
278 | 281 | let curOrdParts = split(if ((size(acc._7) > j)) | |
279 | 282 | then acc._7[j] | |
280 | 283 | else "0@0", "@") | |
281 | 284 | let curOrdAm = parseIntValue(curOrdParts[0]) | |
282 | 285 | let curOrdPr = parseIntValue(curOrdParts[1]) | |
283 | 286 | if (if ((0 > curOrdPr)) | |
284 | 287 | then true | |
285 | 288 | else (0 > newOrdPr)) | |
286 | 289 | then throw("Price can't be negative") | |
287 | 290 | else { | |
288 | 291 | let curOrdUsd = fraction(curOrdAm, curOrdPr, MULT8) | |
289 | 292 | if ((newOrdAm == 0)) | |
290 | 293 | then if ((curOrdAm > 0)) | |
291 | 294 | then $Tuple9((j + 1), (acc._2 :+ toString(whInit)), acc._3, acc._4, (acc._5 - curOrdUsd), acc._6, acc._7, isProd, (acc._9 + toVolume(whInit, PRODUCTPKGSIZE, isProd))) | |
292 | 295 | else $Tuple9((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), acc._3, acc._4, acc._5, acc._6, acc._7, isProd, (acc._9 + toVolume((whInit - curOrdAm), PRODUCTPKGSIZE, isProd))) | |
293 | 296 | else if ((newOrdAm > 0)) | |
294 | 297 | then if ((0 > curOrdAm)) | |
295 | 298 | then $Tuple9((j + 1), (acc._2 :+ toString((whInit - curOrdAm))), (acc._3 + newOrdVol), acc._4, (acc._5 + newOrdUsd), acc._6, acc._7, isProd, toVolume((whInit - curOrdAm), PRODUCTPKGSIZE, isProd)) | |
296 | 299 | else $Tuple9((j + 1), (acc._2 :+ toString(whInit)), (acc._3 + newOrdVol), acc._4, ((acc._5 + newOrdUsd) - curOrdUsd), acc._6, acc._7, isProd, toVolume(whInit, PRODUCTPKGSIZE, isProd)) | |
297 | 300 | else if ((0 > curOrdAm)) | |
298 | 301 | then { | |
299 | 302 | let amDiff = (curOrdAm - newOrdAm) | |
300 | 303 | if ((0 > (whInit - amDiff))) | |
301 | 304 | then throw((((("Attempt to take " + toString(amDiff)) + " from warehouse, but only ") + toString(whInit)) + " available")) | |
302 | 305 | else $Tuple9((j + 1), (acc._2 :+ toString((whInit - amDiff))), acc._3, (acc._4 - newOrdVol), acc._5, acc._6, acc._7, isProd, toVolume((whInit - amDiff), PRODUCTPKGSIZE, isProd)) | |
303 | 306 | } | |
304 | 307 | else if ((0 > (whInit + newOrdAm))) | |
305 | 308 | then throw((((("Attempt to take " + toString(-(newOrdAm))) + " from warehouse, but only ") + toString(whInit)) + " available")) | |
306 | 309 | else $Tuple9((j + 1), (acc._2 :+ toString((whInit + newOrdAm))), acc._3, (acc._4 - newOrdVol), (acc._5 - curOrdUsd), acc._6, acc._7, isProd, toVolume((whInit + newOrdAm), PRODUCTPKGSIZE, isProd)) | |
307 | 310 | } | |
308 | 311 | } | |
309 | 312 | } | |
310 | 313 | ||
311 | 314 | ||
312 | 315 | func setInternal (currentWh,currentOrd,newOrd) = { | |
313 | 316 | let currWhRes = split(currentWh[whIdxRes], "_") | |
314 | 317 | let currWhMat = split(currentWh[whIdxMat], "_") | |
315 | 318 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
316 | 319 | then nil | |
317 | 320 | else split(currentWh[whIdxProd], "_") | |
318 | 321 | let currentOrdRes = split(currentOrd[ordIdxRes], "_") | |
319 | 322 | let currentOrdMat = split(currentOrd[ordIdxMat], "_") | |
320 | 323 | let currentOrdProd = if ((currentOrd[ordIdxProd] == "")) | |
321 | 324 | then nil | |
322 | 325 | else split(currentOrd[ordIdxProd], "_") | |
323 | 326 | if ((size(newOrd) != 3)) | |
324 | 327 | then throw("newOrderStr should contain exactly 2 ':' separators") | |
325 | 328 | else { | |
326 | 329 | let resParts = split(newOrd[0], "_") | |
327 | 330 | let matParts = split(newOrd[1], "_") | |
328 | 331 | let prodParts = if ((newOrd[2] == "")) | |
329 | 332 | then nil | |
330 | 333 | else split(newOrd[2], "_") | |
331 | 334 | if ((size(resParts) != NUMRES)) | |
332 | 335 | then throw("All 6 resources should be passed") | |
333 | 336 | else if ((size(matParts) != NUMRES)) | |
334 | 337 | then throw("All 6 materials should be passed") | |
335 | 338 | else { | |
336 | 339 | let r = { | |
337 | 340 | let $l = resParts | |
338 | 341 | let $s = size($l) | |
339 | 342 | let $acc0 = $Tuple9(0, nil, 0, 0, 0, currWhRes, currentOrdRes, false, 0) | |
340 | 343 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
341 | 344 | then $a | |
342 | 345 | else setCommon($a, $l[$i]) | |
343 | 346 | ||
344 | 347 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
345 | 348 | then $a | |
346 | 349 | else throw("List size exceeds 6") | |
347 | 350 | ||
348 | 351 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
349 | 352 | } | |
350 | 353 | let m = { | |
351 | 354 | let $l = matParts | |
352 | 355 | let $s = size($l) | |
353 | 356 | let $acc0 = $Tuple9(0, nil, r._3, r._4, r._5, currWhMat, currentOrdMat, false, r._9) | |
354 | 357 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
355 | 358 | then $a | |
356 | 359 | else setCommon($a, $l[$i]) | |
357 | 360 | ||
358 | 361 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
359 | 362 | then $a | |
360 | 363 | else throw("List size exceeds 6") | |
361 | 364 | ||
362 | 365 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
363 | 366 | } | |
364 | 367 | let p = if ((size(prodParts) != 0)) | |
365 | 368 | then { | |
366 | 369 | let $l = prodParts | |
367 | 370 | let $s = size($l) | |
368 | 371 | let $acc0 = $Tuple9(0, nil, m._3, m._4, m._5, currWhProd, currentOrdProd, true, m._9) | |
369 | 372 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
370 | 373 | then $a | |
371 | 374 | else setCommon($a, $l[$i]) | |
372 | 375 | ||
373 | 376 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
374 | 377 | then $a | |
375 | 378 | else throw("List size exceeds 50") | |
376 | 379 | ||
377 | 380 | $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) | |
378 | 381 | } | |
379 | 382 | else $Tuple9(0, currWhProd, m._3, m._4, m._5, currWhProd, currentOrdProd, true, m._9) | |
380 | 383 | $Tuple7(r._2, m._2, p._2, p._3, p._4, p._5, p._9) | |
381 | 384 | } | |
382 | 385 | } | |
383 | 386 | } | |
384 | 387 | ||
385 | 388 | ||
386 | 389 | func acceptCommon (acc,bpOrdItem) = { | |
387 | 390 | let j = acc._7 | |
388 | 391 | let isProd = acc._12 | |
389 | 392 | let bpOrdParts = split(bpOrdItem, "@") | |
390 | 393 | if ((size(bpOrdParts) != 2)) | |
391 | 394 | then throw("Incorrect order format, should be amount@price") | |
392 | 395 | else { | |
393 | 396 | let bpOrdAm = parseIntValue(bpOrdParts[0]) | |
394 | 397 | let bpOrdPr = parseIntValue(bpOrdParts[1]) | |
395 | 398 | if ((0 > bpOrdPr)) | |
396 | 399 | then throw("Price can't be negative") | |
397 | 400 | else { | |
398 | 401 | let bpOrdUsd = fraction(bpOrdAm, bpOrdPr, MULT8) | |
399 | 402 | let bpInit = if ((size(acc._8) > j)) | |
400 | 403 | then parseIntValue(acc._8[j]) | |
401 | 404 | else 0 | |
402 | 405 | let whInit = if ((size(acc._9) > j)) | |
403 | 406 | then parseIntValue(acc._9[j]) | |
404 | 407 | else 0 | |
405 | 408 | let whOrdInit = if ((size(acc._10) > j)) | |
406 | 409 | then acc._10[j] | |
407 | 410 | else "0@0" | |
408 | 411 | let whOrdParts = split(whOrdInit, "@") | |
409 | 412 | let whOrdAm = parseIntValue(whOrdParts[0]) | |
410 | 413 | let whOrdPr = parseIntValue(whOrdParts[1]) | |
411 | 414 | if (if ((bpOrdAm != 0)) | |
412 | 415 | then (bpOrdPr != whOrdPr) | |
413 | 416 | else false) | |
414 | 417 | then throw(((((("Prices of " + acc._11[j]) + " don't match! WH price=") + toString(whOrdPr)) + ", your price=") + toString(bpOrdPr))) | |
415 | 418 | else { | |
416 | 419 | let whOrdUsd = fraction(whOrdAm, whOrdPr, MULT8) | |
417 | 420 | let deltaVol = toVolume(bpOrdAm, PRODUCTPKGSIZE, isProd) | |
418 | 421 | if ((bpOrdAm == 0)) | |
419 | 422 | then $Tuple13((acc._1 :+ toString(whInit)), (acc._2 :+ whOrdInit), (acc._3 :+ toString(bpInit)), acc._4, acc._5, acc._6, (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, acc._13) | |
420 | 423 | else if ((bpOrdAm > 0)) | |
421 | 424 | then if ((0 > whOrdAm)) | |
422 | 425 | then if ((bpOrdAm > -(whOrdAm))) | |
423 | 426 | then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm)))) | |
424 | 427 | else $Tuple13((acc._1 :+ toString(whInit)), (acc._2 :+ ((toString((whOrdAm + bpOrdAm)) + "@") + toString(whOrdPr))), (acc._3 :+ toString((bpInit + bpOrdAm))), (acc._4 + deltaVol), acc._5, (acc._6 + bpOrdUsd), (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, (acc._13 + (if (isProd) | |
425 | 428 | then (bpOrdAm * MULT8) | |
426 | 429 | else bpOrdAm))) | |
427 | 430 | else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it")) | |
428 | 431 | else if ((whOrdAm > 0)) | |
429 | 432 | then if ((-(bpOrdAm) > whOrdAm)) | |
430 | 433 | then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm))) | |
431 | 434 | else if ((-(bpOrdAm) > bpInit)) | |
432 | 435 | then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j])) | |
433 | 436 | else $Tuple13((acc._1 :+ toString((whInit - bpOrdAm))), (acc._2 :+ ((toString((whOrdAm + bpOrdAm)) + "@") + toString(whOrdPr))), (acc._3 :+ toString((bpInit + bpOrdAm))), (acc._4 - deltaVol), (acc._5 - bpOrdUsd), acc._6, (acc._7 + 1), acc._8, acc._9, acc._10, acc._11, isProd, (acc._13 - (if (isProd) | |
434 | 437 | then (bpOrdAm * MULT8) | |
435 | 438 | else bpOrdAm))) | |
436 | 439 | else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it")) | |
437 | 440 | } | |
438 | 441 | } | |
439 | 442 | } | |
440 | 443 | } | |
441 | 444 | ||
442 | 445 | ||
443 | 446 | @Callable(i) | |
444 | 447 | func recalcLockedVolumeREADONLY (landAssetId,wh) = { | |
445 | 448 | let currentOrd = getOrder(keyOrderByLand(landAssetId)) | |
446 | 449 | let z = setInternal(wh, currentOrd, currentOrd) | |
447 | 450 | $Tuple2(nil, (z._4 + z._5)) | |
448 | 451 | } | |
449 | 452 | ||
450 | 453 | ||
451 | 454 | ||
452 | 455 | @Callable(i) | |
453 | 456 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
454 | 457 | then throw("Permission denied") | |
455 | 458 | else [StringEntry(keyRestAddress(), restAddr)] | |
456 | 459 | ||
457 | 460 | ||
458 | 461 | ||
459 | 462 | @Callable(i) | |
460 | 463 | func sellResources (amounts,minPrices) = { | |
461 | 464 | let prologResult = prolog() | |
462 | 465 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
463 | 466 | if ((size(i.payments) != 0)) | |
464 | 467 | then throw("sellResources doesn't require any payments") | |
465 | 468 | else { | |
466 | 469 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
467 | 470 | if ((curLocation[locIdxType] != "F")) | |
468 | 471 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
469 | 472 | else { | |
470 | 473 | let locId = curLocation[locIdxId] | |
471 | 474 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
472 | 475 | let resList = split(currentPack[bpIdxRes], "_") | |
473 | 476 | func adder (acc,j) = if ((amounts[j] > parseIntValue(resList[j]))) | |
474 | 477 | then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to sell ") + toString(amounts[j]))) | |
475 | 478 | else if ((0 > amounts[j])) | |
476 | 479 | then throw(((("You tried to sell negative amount of " + resTypes[j]) + ": ") + toString(amounts[j]))) | |
477 | 480 | else if ((amounts[j] > 0)) | |
478 | 481 | then { | |
479 | 482 | let b = sellInternal(locId, j, amounts[j], minPrices[j]) | |
480 | 483 | $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(resList[j]) - amounts[j]))), (acc._3 + b._2), (acc._4 + amounts[j])) | |
481 | 484 | } | |
482 | 485 | else $Tuple4(acc._1, (acc._2 :+ resList[j]), acc._3, acc._4) | |
483 | 486 | ||
484 | 487 | let merged = { | |
485 | 488 | let $l = [0, 1, 2, 3, 4, 5] | |
486 | 489 | let $s = size($l) | |
487 | 490 | let $acc0 = $Tuple4(nil, nil, 0, 0) | |
488 | 491 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
489 | 492 | then $a | |
490 | 493 | else adder($a, $l[$i]) | |
491 | 494 | ||
492 | 495 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
493 | 496 | then $a | |
494 | 497 | else throw("List size exceeds 6") | |
495 | 498 | ||
496 | 499 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
497 | 500 | } | |
498 | 501 | let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._2, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":") | |
499 | 502 | let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
500 | 503 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._4, MULT8)], nil)) | |
501 | 504 | $Tuple2((merged._1 :+ ScriptTransfer(i.caller, merged._3, usdtAssetId)), $Tuple3(result, prologResult, statsResult)) | |
502 | 505 | } | |
503 | 506 | } | |
504 | 507 | } | |
505 | 508 | ||
506 | 509 | ||
507 | 510 | ||
508 | 511 | @Callable(i) | |
509 | 512 | func buyMaterials (amounts,maxPrices) = { | |
510 | 513 | let prologResult = prolog() | |
511 | 514 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
512 | 515 | if ((size(i.payments) != 1)) | |
513 | 516 | then throw("exactly 1 payment must be attached") | |
514 | 517 | else { | |
515 | 518 | let pmt = i.payments[0] | |
516 | 519 | let amt = pmt.amount | |
517 | 520 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
518 | 521 | if ((pmtAssetId != usdtAssetId)) | |
519 | 522 | then throw("USDT payments only!") | |
520 | 523 | else { | |
521 | 524 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
522 | 525 | if ((curLocation[locIdxType] != "F")) | |
523 | 526 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
524 | 527 | else { | |
525 | 528 | let locId = curLocation[locIdxId] | |
526 | 529 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
527 | 530 | let matList = split(currentPack[bpIdxMat], "_") | |
528 | 531 | func mUpdater (acc,j) = if ((0 > amounts[j])) | |
529 | 532 | then throw(((("You tried to buy negative amount of " + matTypes[j]) + ": ") + toString(amounts[j]))) | |
530 | 533 | else if ((amounts[j] > 0)) | |
531 | 534 | then { | |
532 | 535 | let b = buyInternal(locId, j, amounts[j], maxPrices[j]) | |
533 | 536 | $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(matList[j]) + b._3))), (acc._3 + b._2), (acc._4 + amounts[j])) | |
534 | 537 | } | |
535 | 538 | else $Tuple4(acc._1, (acc._2 :+ matList[j]), acc._3, acc._4) | |
536 | 539 | ||
537 | 540 | let merged = { | |
538 | 541 | let $l = [0, 1, 2, 3, 4, 5] | |
539 | 542 | let $s = size($l) | |
540 | 543 | let $acc0 = $Tuple4(nil, nil, 0, 0) | |
541 | 544 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
542 | 545 | then $a | |
543 | 546 | else mUpdater($a, $l[$i]) | |
544 | 547 | ||
545 | 548 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
546 | 549 | then $a | |
547 | 550 | else throw("List size exceeds 6") | |
548 | 551 | ||
549 | 552 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
550 | 553 | } | |
551 | 554 | if ((merged._3 > amt)) | |
552 | 555 | then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3))) | |
553 | 556 | else { | |
554 | 557 | let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._2, "_"), currentPack[bpIdxProd]], ":") | |
555 | 558 | let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
556 | 559 | let rest = if (((amt - merged._3) > 0)) | |
557 | 560 | then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)] | |
558 | 561 | else nil | |
559 | 562 | let activitiesAmount = (merged._3 / 100) | |
560 | 563 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._4, MULT8)], nil)) | |
561 | 564 | $Tuple2(((merged._1 ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(result, prologResult, statsResult)) | |
562 | 565 | } | |
563 | 566 | } | |
564 | 567 | } | |
565 | 568 | } | |
566 | 569 | } | |
567 | 570 | ||
568 | 571 | ||
569 | 572 | ||
570 | 573 | @Callable(i) | |
571 | 574 | func exchangeResources (amounts) = { | |
572 | 575 | let prologResult = prolog() | |
573 | 576 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
574 | 577 | if ((size(i.payments) != 1)) | |
575 | 578 | then throw("exactly 1 payment must be attached") | |
576 | 579 | else { | |
577 | 580 | let pmt = i.payments[0] | |
578 | 581 | let amt = pmt.amount | |
579 | 582 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
580 | 583 | if ((pmtAssetId != usdtAssetId)) | |
581 | 584 | then throw("USDT payments only!") | |
582 | 585 | else { | |
583 | 586 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
584 | 587 | if ((curLocation[locIdxType] != "F")) | |
585 | 588 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
586 | 589 | else { | |
587 | 590 | let locId = curLocation[locIdxId] | |
588 | 591 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
589 | 592 | let resList = split(currentPack[bpIdxRes], "_") | |
590 | 593 | let matList = split(currentPack[bpIdxMat], "_") | |
591 | 594 | func exchanger (acc,j) = { | |
592 | 595 | let whKey = keyFactoryWarehouseByIdAndType(locId, j) | |
593 | 596 | let w0 = valueOrElse(getInteger(whKey), 0) | |
594 | 597 | let amj = amounts[j] | |
595 | 598 | if ((amj > parseIntValue(resList[j]))) | |
596 | 599 | then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to exchange ") + toString(amj))) | |
597 | 600 | else if ((0 > amj)) | |
598 | 601 | then throw(((("You tried to exchange negative amount of " + resTypes[j]) + ": ") + toString(amj))) | |
599 | 602 | else if ((amj > 0)) | |
600 | 603 | then $Tuple5((acc._1 :+ toString((parseIntValue(resList[j]) - amj))), (acc._2 :+ toString((parseIntValue(matList[j]) + amj))), (acc._3 + fraction(amj, RESOURCEPRICEMIN, MULT8)), (acc._4 :+ IntegerEntry(whKey, w0)), (acc._5 + amj)) | |
601 | 604 | else $Tuple5((acc._1 :+ resList[j]), (acc._2 :+ matList[j]), acc._3, acc._4, acc._5) | |
602 | 605 | } | |
603 | 606 | ||
604 | 607 | let merged = { | |
605 | 608 | let $l = [0, 1, 2, 3, 4, 5] | |
606 | 609 | let $s = size($l) | |
607 | 610 | let $acc0 = $Tuple5(nil, nil, 0, nil, 0) | |
608 | 611 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
609 | 612 | then $a | |
610 | 613 | else exchanger($a, $l[$i]) | |
611 | 614 | ||
612 | 615 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
613 | 616 | then $a | |
614 | 617 | else throw("List size exceeds 6") | |
615 | 618 | ||
616 | 619 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
617 | 620 | } | |
618 | 621 | if ((merged._3 > amt)) | |
619 | 622 | then throw(((("Insufficient payment! Attached=" + toString(amt)) + ", required=") + toString(merged._3))) | |
620 | 623 | else { | |
621 | 624 | let newPack = makeString([currentPack[bpIdxLevel], makeString(merged._1, "_"), makeString(merged._2, "_"), currentPack[bpIdxProd]], ":") | |
622 | 625 | let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
623 | 626 | let rest = if (((amt - merged._3) > 0)) | |
624 | 627 | then [ScriptTransfer(i.caller, (amt - merged._3), usdtAssetId)] | |
625 | 628 | else nil | |
626 | 629 | let activitiesAmount = (merged._3 / 100) | |
627 | 630 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, merged._5, MULT8)], nil)) | |
628 | 631 | $Tuple2(((rest ++ merged._4) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(result, prologResult, statsResult)) | |
629 | 632 | } | |
630 | 633 | } | |
631 | 634 | } | |
632 | 635 | } | |
633 | 636 | } | |
634 | 637 | ||
635 | 638 | ||
636 | 639 | ||
637 | 640 | @Callable(i) | |
638 | 641 | func craftGoods (productIdx,quantity) = { | |
639 | 642 | let prologResult = prolog() | |
640 | 643 | if ((size(i.payments) != 1)) | |
641 | 644 | then throw("exactly 1 payment must be attached") | |
642 | 645 | else { | |
643 | 646 | let pmt = i.payments[0] | |
644 | 647 | let amt = pmt.amount | |
645 | 648 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
646 | 649 | if ((pmtAssetId != usdtAssetId)) | |
647 | 650 | then throw("USDT payments only!") | |
648 | 651 | else if ((amt != MULT6)) | |
649 | 652 | then throw("exactly 1 USDT must be attached as payment") | |
650 | 653 | else if ((0 >= quantity)) | |
651 | 654 | then throw("Quantity should be positive") | |
652 | 655 | else { | |
653 | 656 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
654 | 657 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
655 | 658 | if ((curLocation[locIdxType] != "M")) | |
656 | 659 | then throw(("Duck location type should be Manufactory, but is " + curLocation[locIdxType])) | |
657 | 660 | else { | |
658 | 661 | let cont = curLocation[locIdxContinent] | |
659 | 662 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
660 | 663 | let matList = split(currentPack[bpIdxMat], "_") | |
661 | 664 | if (if ((0 > productIdx)) | |
662 | 665 | then true | |
663 | 666 | else (productIdx >= size(productionMatrix))) | |
664 | 667 | then throw(("Unknown product idx=" + toString(productIdx))) | |
665 | 668 | else { | |
666 | 669 | let recipe = split(productionMatrix[productIdx], "_") | |
667 | 670 | if ((size(recipe) != RECIPESIZE)) | |
668 | 671 | then throw(("Fatal: unknown recipe: " + productionMatrix[productIdx])) | |
669 | 672 | else { | |
670 | 673 | let productContIdx = parseIntValue(recipe[rIdxContinent]) | |
671 | 674 | if ((continents[productContIdx] != cont)) | |
672 | 675 | then throw(((("This product is available in " + continents[productContIdx]) + ", but you are in ") + cont)) | |
673 | 676 | else { | |
674 | 677 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
675 | 678 | then nil | |
676 | 679 | else split(currentPack[bpIdxProd], "_") | |
677 | 680 | func filler (acc,ignoredItem) = { | |
678 | 681 | let n = acc._2 | |
679 | 682 | let xs = if ((size(prodList) > n)) | |
680 | 683 | then prodList[n] | |
681 | 684 | else "0" | |
682 | 685 | let x = parseIntValue(xs) | |
683 | 686 | let amount = (quantity * PRODUCTPKGSIZE) | |
684 | 687 | let y = if ((n == productIdx)) | |
685 | 688 | then toString((x + amount)) | |
686 | 689 | else xs | |
687 | 690 | $Tuple2((acc._1 :+ y), (n + 1)) | |
688 | 691 | } | |
689 | 692 | ||
690 | 693 | let bpProd = ( let $l = productionMatrix | |
691 | 694 | let $s = size($l) | |
692 | 695 | let $acc0 = $Tuple2(nil, 0) | |
693 | 696 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
694 | 697 | then $a | |
695 | 698 | else filler($a, $l[$i]) | |
696 | 699 | ||
697 | 700 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
698 | 701 | then $a | |
699 | 702 | else throw("List size exceeds 50") | |
700 | 703 | ||
701 | 704 | $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 | |
702 | 705 | func producer (acc,j) = { | |
703 | 706 | let needMat = ((parseIntValue(recipe[j]) * MULT6) * quantity) | |
704 | 707 | let haveMat = parseIntValue(matList[j]) | |
705 | 708 | if ((needMat > haveMat)) | |
706 | 709 | then throw(((((((("You have " + fixedPoint(haveMat, 8)) + " of ") + matTypes[j]) + ", but recipe requires ") + fixedPoint(needMat, 8)) + " for quantity ") + toString(quantity))) | |
707 | 710 | else if ((needMat > 0)) | |
708 | 711 | then $Tuple2((acc._1 :+ toString((haveMat - needMat))), (acc._2 + needMat)) | |
709 | 712 | else $Tuple2((acc._1 :+ matList[j]), acc._2) | |
710 | 713 | } | |
711 | 714 | ||
712 | 715 | let merged = { | |
713 | 716 | let $l = [0, 1, 2, 3, 4, 5] | |
714 | 717 | let $s = size($l) | |
715 | 718 | let $acc0 = $Tuple2(nil, 0) | |
716 | 719 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
717 | 720 | then $a | |
718 | 721 | else producer($a, $l[$i]) | |
719 | 722 | ||
720 | 723 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
721 | 724 | then $a | |
722 | 725 | else throw("List size exceeds 6") | |
723 | 726 | ||
724 | 727 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
725 | 728 | } | |
726 | 729 | let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._1, "_"), makeString(bpProd, "_")], ":") | |
727 | 730 | let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
728 | 731 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpCraft, merged._2, MULT8)], nil)) | |
729 | 732 | $Tuple2(nil, $Tuple3(result, prologResult, statsResult)) | |
730 | 733 | } | |
731 | 734 | } | |
732 | 735 | } | |
733 | 736 | } | |
734 | 737 | } | |
735 | 738 | } | |
736 | 739 | } | |
737 | 740 | ||
738 | 741 | ||
739 | 742 | ||
740 | 743 | @Callable(i) | |
741 | 744 | func setWarehouseOrder (newOrderStr,landAssetId) = { | |
742 | 745 | let user = i.originCaller | |
743 | 746 | let addr = toString(user) | |
744 | 747 | let result = if ((user != restContract)) | |
745 | 748 | then checkBlocked() | |
746 | 749 | else false | |
747 | 750 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
748 | 751 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
749 | 752 | then throw((("NFT " + asset.name) + " is not staked")) | |
750 | 753 | else { | |
751 | 754 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
752 | 755 | if (if ((user != restContract)) | |
753 | 756 | then (owner != addr) | |
754 | 757 | else false) | |
755 | 758 | then throw((LANDPREFIX + " is not yours")) | |
756 | 759 | else { | |
757 | 760 | let newOrder = split_4C(newOrderStr, ":") | |
758 | 761 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
759 | 762 | let currentWh = split_4C(wh, ":") | |
760 | 763 | let loft = split(currentWh[whIdxLOFT], "_") | |
761 | 764 | let whTotal = parseIntValue(loft[volTotal]) | |
762 | 765 | let ordKey = keyOrderByLand(landAssetId) | |
763 | 766 | let currentOrd = getOrder(ordKey) | |
764 | 767 | let z = setInternal(currentWh, currentOrd, newOrder) | |
765 | 768 | let buyVolSaldo = z._4 | |
766 | 769 | let sellVolSaldo = z._5 | |
767 | 770 | let whOccupied = z._7 | |
768 | 771 | let whLocked = (buyVolSaldo + sellVolSaldo) | |
769 | 772 | let whFree = ((whTotal - whOccupied) - whLocked) | |
770 | 773 | if ((0 > whFree)) | |
771 | 774 | then throw((((((("Attempt to reserve " + toString(buyVolSaldo)) + " space for buy orders, and ") + toString(sellVolSaldo)) + " space for sell orders (and occupied=") + toString(whOccupied)) + "), leads to negative free space")) | |
772 | 775 | else { | |
773 | 776 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(z._1, "_"), makeString(z._2, "_"), makeString(z._3, "_"), toString(whLocked)], ":") | |
774 | 777 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
775 | 778 | let usdSaldo = z._6 | |
776 | 779 | let actions = if ((usdSaldo > 0)) | |
777 | 780 | then if ((size(i.payments) != 1)) | |
778 | 781 | then throw("exactly 1 payment must be attached") | |
779 | 782 | else { | |
780 | 783 | let pmt = i.payments[0] | |
781 | 784 | let amt = pmt.amount | |
782 | 785 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
783 | 786 | if ((pmtAssetId != usdtAssetId)) | |
784 | 787 | then throw("USDT payments only!") | |
785 | 788 | else if ((amt != usdSaldo)) | |
786 | 789 | then throw(("Payment needed is " + toString(usdSaldo))) | |
787 | 790 | else [StringEntry(ordKey, newOrderStr)] | |
788 | 791 | } | |
789 | 792 | else if ((usdSaldo == 0)) | |
790 | 793 | then if ((size(i.payments) != 0)) | |
791 | 794 | then throw("No payments needed") | |
792 | 795 | else [StringEntry(ordKey, newOrderStr)] | |
793 | 796 | else if ((size(i.payments) != 0)) | |
794 | 797 | then throw("No payments needed") | |
795 | 798 | else [ScriptTransfer(addressFromStringValue(owner), -(usdSaldo), usdtAssetId), StringEntry(ordKey, newOrderStr)] | |
796 | 799 | $Tuple2(actions, $Tuple2(result, whSave)) | |
797 | 800 | } | |
798 | 801 | } | |
799 | 802 | } | |
800 | 803 | } | |
801 | 804 | ||
802 | 805 | ||
803 | 806 | ||
804 | 807 | @Callable(i) | |
805 | 808 | func acceptWarehouseOrder (bpOrderStr,landAssetId,duckAssetId) = { | |
806 | 809 | let prologResult = prolog() | |
807 | 810 | let caller = i.originCaller | |
808 | 811 | let callerAddr = toString(caller) | |
809 | 812 | let stakedDuckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked") | |
810 | 813 | let curLocation = valueOrElse(getString(stakingContract, keyDuckLocation(stakedDuckAssetId)), DEFAULTLOCATION) | |
811 | 814 | let loc = split(value(curLocation), "_") | |
812 | 815 | if ((loc[locIdxType] != "L")) | |
813 | 816 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
814 | 817 | else if ((stakedDuckAssetId != duckAssetId)) | |
815 | 818 | then throw(((("Your staked duck is " + stakedDuckAssetId) + ", but passed ") + duckAssetId)) | |
816 | 819 | else { | |
817 | 820 | let landAsset = value(assetInfo(fromBase58String(landAssetId))) | |
818 | 821 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
819 | 822 | then throw((("NFT " + landAsset.name) + " is not staked")) | |
820 | 823 | else { | |
821 | 824 | let landOwner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + landAsset.name) + " is orphaned")) | |
822 | 825 | if ((landOwner == callerAddr)) | |
823 | 826 | then throw("You cannot trade with yourself") | |
824 | 827 | else { | |
825 | 828 | let bpOrderParts = split_4C(bpOrderStr, ":") | |
826 | 829 | if ((size(bpOrderParts) != 3)) | |
827 | 830 | then throw("bpOrderStr should contain exactly 2 ':' separators") | |
828 | 831 | else { | |
829 | 832 | let bpOrdRes = split(bpOrderParts[0], "_") | |
830 | 833 | let bpOrdMat = split(bpOrderParts[1], "_") | |
831 | 834 | let bpOrdProd = if ((bpOrderParts[2] == "")) | |
832 | 835 | then nil | |
833 | 836 | else split(bpOrderParts[2], "_") | |
834 | 837 | if ((size(bpOrdRes) != NUMRES)) | |
835 | 838 | then throw("All 6 resources should be passed") | |
836 | 839 | else if ((size(bpOrdMat) != NUMRES)) | |
837 | 840 | then throw("All 6 materials should be passed") | |
838 | 841 | else { | |
839 | 842 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
840 | 843 | let currentWh = split_4C(wh, ":") | |
841 | 844 | let currWhRes = split(currentWh[whIdxRes], "_") | |
842 | 845 | let currWhMat = split(currentWh[whIdxMat], "_") | |
843 | 846 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
844 | 847 | then nil | |
845 | 848 | else split(currentWh[whIdxProd], "_") | |
846 | 849 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
847 | 850 | let bpKey = keyBackpackByDuck(duckAssetId) | |
848 | 851 | let currentPack = getBackpack(bpKey) | |
849 | 852 | let bpResList = split(currentPack[bpIdxRes], "_") | |
850 | 853 | let bpMatList = split(currentPack[bpIdxMat], "_") | |
851 | 854 | let bpProdList = if ((currentPack[bpIdxProd] == "")) | |
852 | 855 | then nil | |
853 | 856 | else split(currentPack[bpIdxProd], "_") | |
854 | 857 | let ordKey = keyOrderByLand(landAssetId) | |
855 | 858 | let whOrd = getOrder(ordKey) | |
856 | 859 | let whOrdRes = split(whOrd[ordIdxRes], "_") | |
857 | 860 | let whOrdMat = split(whOrd[ordIdxMat], "_") | |
858 | 861 | let whOrdProd = if ((whOrd[ordIdxProd] == "")) | |
859 | 862 | then nil | |
860 | 863 | else split(whOrd[ordIdxProd], "_") | |
861 | 864 | let r = { | |
862 | 865 | let $l = bpOrdRes | |
863 | 866 | let $s = size($l) | |
864 | 867 | let $acc0 = $Tuple13(nil, nil, nil, 0, 0, 0, 0, bpResList, currWhRes, whOrdRes, resTypes, false, 0) | |
865 | 868 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
866 | 869 | then $a | |
867 | 870 | else acceptCommon($a, $l[$i]) | |
868 | 871 | ||
869 | 872 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
870 | 873 | then $a | |
871 | 874 | else throw("List size exceeds 6") | |
872 | 875 | ||
873 | 876 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
874 | 877 | } | |
875 | 878 | let m = { | |
876 | 879 | let $l = bpOrdMat | |
877 | 880 | let $s = size($l) | |
878 | 881 | let $acc0 = $Tuple13(nil, nil, nil, r._4, r._5, r._6, 0, bpMatList, currWhMat, whOrdMat, matTypes, false, r._13) | |
879 | 882 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
880 | 883 | then $a | |
881 | 884 | else acceptCommon($a, $l[$i]) | |
882 | 885 | ||
883 | 886 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
884 | 887 | then $a | |
885 | 888 | else throw("List size exceeds 6") | |
886 | 889 | ||
887 | 890 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
888 | 891 | } | |
889 | 892 | let p = if ((size(bpOrdProd) != 0)) | |
890 | 893 | then { | |
891 | 894 | let $l = bpOrdProd | |
892 | 895 | let $s = size($l) | |
893 | 896 | let $acc0 = $Tuple13(nil, nil, nil, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13) | |
894 | 897 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
895 | 898 | then $a | |
896 | 899 | else acceptCommon($a, $l[$i]) | |
897 | 900 | ||
898 | 901 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
899 | 902 | then $a | |
900 | 903 | else throw("List size exceeds 50") | |
901 | 904 | ||
902 | 905 | $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) | |
903 | 906 | } | |
904 | 907 | else $Tuple13(currWhProd, whOrdProd, bpProdList, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13) | |
905 | 908 | let volSaldo = p._4 | |
906 | 909 | let newLockedVol = if ((0 > (currWhLockedVol - volSaldo))) | |
907 | 910 | then 0 | |
908 | 911 | else (currWhLockedVol - volSaldo) | |
909 | 912 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._1, "_"), makeString(m._1, "_"), makeString(p._1, "_"), toString(newLockedVol)], ":") | |
910 | 913 | let newWhOrdStr = makeString_2C([makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_")], ":") | |
911 | 914 | let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_")], ":") | |
912 | 915 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
913 | 916 | let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)) | |
914 | 917 | let duckStatsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpShop, p._13, MULT8)], nil)) | |
915 | 918 | let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [landOwner, fraction(xpShop, p._13, MULT8)], nil)) | |
916 | 919 | let actions = [StringEntry(ordKey, newWhOrdStr)] | |
917 | 920 | let usdWh2BpSaldo = p._5 | |
918 | 921 | let actions1 = if ((usdWh2BpSaldo > 0)) | |
919 | 922 | then { | |
920 | 923 | let usdWh2BpFee = fraction(p._5, AUCTIONFEE, MULT6) | |
921 | 924 | let refByKey = keyAddressRefBy(callerAddr) | |
922 | 925 | let refBy = getString(stakingContract, refByKey) | |
923 | 926 | if (isDefined(refBy)) | |
924 | 927 | then (((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdWh2BpFee, usdtAssetId)) | |
925 | 928 | else ((actions :+ ScriptTransfer(caller, (p._5 - (3 * usdWh2BpFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) | |
926 | 929 | } | |
927 | 930 | else actions | |
928 | 931 | let usdBp2WhSaldo = p._6 | |
929 | 932 | let actions2 = if ((usdBp2WhSaldo > 0)) | |
930 | 933 | then if ((size(i.payments) != 1)) | |
931 | 934 | then throw("exactly 1 payment must be attached") | |
932 | 935 | else { | |
933 | 936 | let pmt = i.payments[0] | |
934 | 937 | let amt = pmt.amount | |
935 | 938 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
936 | 939 | if ((pmtAssetId != usdtAssetId)) | |
937 | 940 | then throw("USDT payments only!") | |
938 | 941 | else if ((amt != usdBp2WhSaldo)) | |
939 | 942 | then throw(("Payment needed is " + toString(usdBp2WhSaldo))) | |
940 | 943 | else if ((MINSHOPPAYMENT > amt)) | |
941 | 944 | then throw(("Payment should be at least " + toString(MINSHOPPAYMENT))) | |
942 | 945 | else { | |
943 | 946 | let usdBp2WhFee = fraction(p._6, AUCTIONFEE, MULT6) | |
944 | 947 | let refByKey = keyAddressRefBy(landOwner) | |
945 | 948 | let refBy = getString(stakingContract, refByKey) | |
946 | 949 | if (isDefined(refBy)) | |
947 | 950 | then (((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) :+ ScriptTransfer(addressFromStringValue(value(refBy)), usdBp2WhFee, usdtAssetId)) | |
948 | 951 | else ((actions1 :+ ScriptTransfer(addressFromStringValue(landOwner), (p._6 - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) | |
949 | 952 | } | |
950 | 953 | } | |
951 | 954 | else if ((size(i.payments) != 0)) | |
952 | 955 | then throw("No payments needed") | |
953 | 956 | else actions1 | |
954 | 957 | $Tuple2(actions2, $Tuple5(prologResult, whSave, bpSave, duckStatsResult, accStatsResult)) | |
955 | 958 | } | |
956 | 959 | } | |
957 | 960 | } | |
958 | 961 | } | |
959 | 962 | } | |
960 | 963 | } | |
961 | 964 | ||
962 | 965 | ||
963 | 966 | ||
964 | 967 | @Callable(i) | |
965 | 968 | func sellProductsToES (amounts) = { | |
966 | 969 | let prologResult = prolog() | |
967 | 970 | if ((size(i.payments) != 0)) | |
968 | 971 | then throw("No payments needed") | |
969 | 972 | else { | |
970 | 973 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
971 | 974 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
972 | 975 | if ((curLocation[locIdxType] != "A")) | |
973 | 976 | then throw(("Duck location type should be Airport, but is " + curLocation[locIdxType])) | |
974 | 977 | else { | |
975 | 978 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
976 | 979 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
977 | 980 | then nil | |
978 | 981 | else split(currentPack[bpIdxProd], "_") | |
979 | 982 | let esKey = keyEsWarehouse() | |
980 | 983 | let existStr = getString(esKey) | |
981 | 984 | let existAmounts = if (isDefined(existStr)) | |
982 | 985 | then split(value(existStr), "_") | |
983 | 986 | else nil | |
984 | 987 | func moveProd (acc,recipeStr) = { | |
985 | 988 | let j = acc._1 | |
986 | 989 | let quantity = if ((size(amounts) > j)) | |
987 | 990 | then amounts[j] | |
988 | 991 | else 0 | |
989 | 992 | if ((0 > quantity)) | |
990 | 993 | then throw("Quantity cannot be negative") | |
991 | 994 | else { | |
992 | 995 | let recipe = split(recipeStr, "_") | |
993 | 996 | if ((size(recipe) != RECIPESIZE)) | |
994 | 997 | then throw(("Fatal: unknown recipe: " + recipeStr)) | |
995 | 998 | else { | |
996 | 999 | let maxAmount = (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
997 | 1000 | let existAmount = if ((size(existAmounts) > j)) | |
998 | 1001 | then parseIntValue(existAmounts[j]) | |
999 | 1002 | else 0 | |
1000 | 1003 | let canBuy = (maxAmount - existAmount) | |
1001 | 1004 | if ((quantity > canBuy)) | |
1002 | 1005 | then throw(((("Warehouse can buy only " + toString(canBuy)) + " of ") + prodTypes[j])) | |
1003 | 1006 | else { | |
1004 | 1007 | let totalMat = getRecipeMaterials(recipe) | |
1005 | 1008 | let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1006 | 1009 | let bpProdAmount = if ((size(prodList) > j)) | |
1007 | 1010 | then parseIntValue(prodList[j]) | |
1008 | 1011 | else 0 | |
1009 | 1012 | if ((quantity > bpProdAmount)) | |
1010 | 1013 | then throw(((("You have only " + toString(bpProdAmount)) + " of ") + prodTypes[j])) | |
1011 | 1014 | else $Tuple5((j + 1), (acc._2 + (unitPrice * quantity)), (acc._3 :+ toString((bpProdAmount - quantity))), (acc._4 :+ toString((existAmount + quantity))), (acc._5 + (totalMat * quantity))) | |
1012 | 1015 | } | |
1013 | 1016 | } | |
1014 | 1017 | } | |
1015 | 1018 | } | |
1016 | 1019 | ||
1017 | 1020 | let merged = { | |
1018 | 1021 | let $l = productionMatrix | |
1019 | 1022 | let $s = size($l) | |
1020 | 1023 | let $acc0 = $Tuple5(0, 0, nil, nil, 0) | |
1021 | 1024 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1022 | 1025 | then $a | |
1023 | 1026 | else moveProd($a, $l[$i]) | |
1024 | 1027 | ||
1025 | 1028 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1026 | 1029 | then $a | |
1027 | 1030 | else throw("List size exceeds 50") | |
1028 | 1031 | ||
1029 | 1032 | $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) | |
1030 | 1033 | } | |
1031 | 1034 | let newBpStr = makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(merged._3, "_")], ":") | |
1032 | 1035 | let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)) | |
1033 | 1036 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpSellToEs, merged._5, (MULT8 * 10))], nil)) | |
1034 | 1037 | $Tuple2([StringEntry(esKey, makeString(merged._4, "_")), ScriptTransfer(i.caller, merged._2, usdtAssetId)], $Tuple3(bpSave, prologResult, statsResult)) | |
1035 | 1038 | } | |
1036 | 1039 | } | |
1037 | 1040 | } | |
1038 | 1041 | ||
1039 | 1042 | ||
1040 | 1043 | ||
1041 | 1044 | @Callable(i) | |
1042 | 1045 | func updateEsStorage (newStorage) = if ((i.caller != stakingContract)) | |
1043 | 1046 | then throw("Permission denied") | |
1044 | 1047 | else $Tuple2([StringEntry(keyEsWarehouse(), newStorage)], newStorage) | |
1045 | 1048 | ||
1046 | 1049 |
github/deemru/w8io/169f3d6 159.69 ms ◑