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