tx · CFCvr7Be2F22wqM8hoaisFpj9fxdubE8Kyu98mxqVrAB 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep: -0.05700000 Waves 2023.10.08 19:54 [2789922] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves
{ "type": 13, "id": "CFCvr7Be2F22wqM8hoaisFpj9fxdubE8Kyu98mxqVrAB", "fee": 5700000, "feeAssetId": null, "timestamp": 1696784091651, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "2PbFXyp9ASntVeGwtYsVL5i6QDyhpzCzn2y6HJKQ4NRYXerF2shNcMKY6oHGv5ak5UKv1VpV25jiS6m9H5fK5j1U" ], "script": "base64:BgKGAQgCEgQKAggYEgMKAQgSBAoCERESBAoCCAESAwoBARIFCgMREQgSBgoEEREICBIECgIRERIFCgMREQgSBgoEEREICBIDCgEREgMKARESBAoCEQgSBAoCAQESBAoCCAgSBQoDCAgIEgQKAggIEgUKAwgICBIDCgEREgMKAQgSAwoBARIDCgEIZgAHeHBUcmFkZQCQTgAHeHBDcmFmdACQTgAKeHBTZWxsVG9FcwCQTgAGeHBTaG9wAJBOAApMQU5EUFJFRklYAgRMQU5EAAZOVU1SRVMABgAPREVGQVVMVExPQ0FUSU9OAg9BZnJpY2FfRl9BZnJpY2EAEFJFU09VUkNFUFJJQ0VNSU4A1bUCAA1FU01BWFBBQ0tBR0VTAAoACUVTQlVZQ09FRgAEABVNSU5fVVNEVF9GRUVfREVMSVZFUlkA0IYDABdNSU5fVVNEVF9GRUVfREVMSVZFUlkxNQD4yQQACHJlc1R5cGVzCQDMCAICA09pbAkAzAgCAgNPcmUJAMwIAgIEV29vZAkAzAgCAgRTYW5kCQDMCAICBENsYXkJAMwIAgIHT3JnYW5pYwUDbmlsAAhtYXRUeXBlcwkAzAgCAgRGdWVsC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QFpBmNhbGxlcgUPc3Rha2luZ0NvbnRyYWN0CQACAQIRUGVybWlzc2lvbiBkZW5pZWQECWZ1bmRUb3RhbAkBC3ZhbHVlT3JFbHNlAgkAnwgBBQ9kZWxpdmVyeUZ1bmRLZXkAAAQLbG9ja2VkVG90YWwJAQt2YWx1ZU9yRWxzZQIJAJ8IAQURZGVsaXZlcnlMb2NrZWRLZXkAAAkAlAoCCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJARFAZXh0ck5hdGl2ZSgxMDYyKQEFBGFkZHIFFU1JTl9VU0RUX0ZFRV9ERUxJVkVSWQULdXNkdEFzc2V0SWQJAMwIAgkBDEludGVnZXJFbnRyeQIFD2RlbGl2ZXJ5RnVuZEtleQkAZQIFCWZ1bmRUb3RhbAUVTUlOX1VTRFRfRkVFX0RFTElWRVJZCQDMCAIJAQxJbnRlZ2VyRW50cnkCBRFkZWxpdmVyeUxvY2tlZEtleQkAZQIFC2xvY2tlZFRvdGFsBRVNSU5fVVNEVF9GRUVfREVMSVZFUlkFA25pbAUVTUlOX1VTRFRfRkVFX0RFTElWRVJZACmV+mI=", "height": 2789922, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AreAx8kG7V8V5i5rwFUViSjZrBAJnypDtxCYXezDVzG1 Next: 8eSJCWgEJfRnCYctmbGMCRkmqG78RysEbLFcwPJsKuQE Diff:
Old | New | Differences | |
---|---|---|---|
104 | 104 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
105 | 105 | ||
106 | 106 | ||
107 | - | let KS_ALLOW_DELIVERY = | |
107 | + | let KS_ALLOW_DELIVERY = true | |
108 | 108 | ||
109 | 109 | let chain = take(drop(this.bytes, 1), 1) | |
110 | 110 |
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 = 10 | |
21 | 21 | ||
22 | 22 | let ESBUYCOEF = 4 | |
23 | 23 | ||
24 | 24 | let MIN_USDT_FEE_DELIVERY = 50000 | |
25 | 25 | ||
26 | 26 | let MIN_USDT_FEE_DELIVERY15 = 75000 | |
27 | 27 | ||
28 | 28 | let resTypes = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
29 | 29 | ||
30 | 30 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
31 | 31 | ||
32 | 32 | 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"] | |
33 | 33 | ||
34 | 34 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
35 | 35 | ||
36 | 36 | let COEFF2MAT = 10000000 | |
37 | 37 | ||
38 | 38 | 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_"] | |
39 | 39 | ||
40 | 40 | let rIdxCoeff = 6 | |
41 | 41 | ||
42 | 42 | let rIdxContinent = 7 | |
43 | 43 | ||
44 | 44 | let RECIPESIZE = 11 | |
45 | 45 | ||
46 | 46 | let PRODUCTPKGSIZE = 10 | |
47 | 47 | ||
48 | 48 | let whIdxLevels = 0 | |
49 | 49 | ||
50 | 50 | let whIdxRes = 1 | |
51 | 51 | ||
52 | 52 | let whIdxMat = 2 | |
53 | 53 | ||
54 | 54 | let whIdxProd = 3 | |
55 | 55 | ||
56 | 56 | let whIdxLOFT = 4 | |
57 | 57 | ||
58 | 58 | let volLocked = 0 | |
59 | 59 | ||
60 | 60 | let volTotal = 3 | |
61 | 61 | ||
62 | 62 | let bpIdxLevel = 0 | |
63 | 63 | ||
64 | 64 | let bpIdxRes = 1 | |
65 | 65 | ||
66 | 66 | let bpIdxMat = 2 | |
67 | 67 | ||
68 | 68 | let bpIdxProd = 3 | |
69 | 69 | ||
70 | 70 | let locIdxContinent = 0 | |
71 | 71 | ||
72 | 72 | let locIdxType = 1 | |
73 | 73 | ||
74 | 74 | let locIdxId = 2 | |
75 | 75 | ||
76 | 76 | func keyLandAssetIdToOwner (assetId) = ("no_" + assetId) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyStakedTimeByAssetId (assetId) = ("st_" + assetId) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | let deliveryFundKey = "deliveryFund" | |
101 | 101 | ||
102 | 102 | let deliveryLockedKey = "deliveryLocked" | |
103 | 103 | ||
104 | 104 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
105 | 105 | ||
106 | 106 | ||
107 | - | let KS_ALLOW_DELIVERY = | |
107 | + | let KS_ALLOW_DELIVERY = true | |
108 | 108 | ||
109 | 109 | let chain = take(drop(this.bytes, 1), 1) | |
110 | 110 | ||
111 | 111 | let usdtAssetId = match chain { | |
112 | 112 | case _ => | |
113 | 113 | if ((base58'2W' == $match0)) | |
114 | 114 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
115 | 115 | else if ((base58'2T' == $match0)) | |
116 | 116 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
117 | 117 | else throw("Unknown chain") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | let defaultRestAddressStr = match chain { | |
121 | 121 | case _ => | |
122 | 122 | if ((base58'2W' == $match0)) | |
123 | 123 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
124 | 124 | else if ((base58'2T' == $match0)) | |
125 | 125 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
126 | 126 | else throw("Unknown chain") | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | let SEP = "__" | |
130 | 130 | ||
131 | 131 | let MULT5 = 100000 | |
132 | 132 | ||
133 | 133 | let MULT6 = 1000000 | |
134 | 134 | ||
135 | 135 | let MULT8 = 100000000 | |
136 | 136 | ||
137 | 137 | let MULT10 = 10000000000 | |
138 | 138 | ||
139 | 139 | let MINSHOPPAYMENT = 100000 | |
140 | 140 | ||
141 | 141 | let ITER6 = [0, 1, 2, 3, 4, 5] | |
142 | 142 | ||
143 | 143 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | let IdxCfgStakingDapp = 1 | |
147 | 147 | ||
148 | 148 | let IdxCfgInvestFundDapp = 6 | |
149 | 149 | ||
150 | 150 | let IdxCfgAcresDapp = 8 | |
151 | 151 | ||
152 | 152 | func keyRestCfg () = "%s__restConfig" | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyRestAddress () = "%s__restAddr" | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
165 | 165 | ||
166 | 166 | let restCfg = readRestCfgOrFail(restContract) | |
167 | 167 | ||
168 | 168 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
169 | 169 | ||
170 | 170 | let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp) | |
171 | 171 | ||
172 | 172 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
173 | 173 | ||
174 | 174 | func asString (v) = match v { | |
175 | 175 | case s: String => | |
176 | 176 | s | |
177 | 177 | case _ => | |
178 | 178 | throw("fail to cast into String") | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func asInt (v) = match v { | |
183 | 183 | case n: Int => | |
184 | 184 | n | |
185 | 185 | case _ => | |
186 | 186 | throw("fail to cast into Int") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func keyBlocked () = "contractsBlocked" | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func fixedPoint (val,decimals) = { | |
194 | 194 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
195 | 195 | let lowPart = toString((val % tenPow)) | |
196 | 196 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
197 | 197 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | let FACTORYMAXWAREHOUSE = 10000000000 | |
202 | 202 | ||
203 | 203 | let SELLMULTIPLIER = 200 | |
204 | 204 | ||
205 | 205 | let BUYMULTIPLIER = 300 | |
206 | 206 | ||
207 | 207 | let AUCTIONFEE = 10000 | |
208 | 208 | ||
209 | 209 | let DELIVERY_FEE = 10000 | |
210 | 210 | ||
211 | 211 | let DELIVERY_FEE15 = 15000 | |
212 | 212 | ||
213 | 213 | func keyFactoryWarehouseByIdAndType (factoryId,resType) = ((("factoryWhByContinentAndRes_" + factoryId) + "_") + toString(resType)) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | let ordIdxRes = 0 | |
217 | 217 | ||
218 | 218 | let ordIdxMat = 1 | |
219 | 219 | ||
220 | 220 | let ordIdxProd = 2 | |
221 | 221 | ||
222 | 222 | func getOrder (ordKey) = { | |
223 | 223 | 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:"), ":") | |
224 | 224 | [if ((size(split(p[ordIdxRes], "_")) == NUMRES)) | |
225 | 225 | then p[ordIdxRes] | |
226 | 226 | else "0@0_0@0_0@0_0@0_0@0_0@0", if ((size(split(p[ordIdxMat], "_")) == NUMRES)) | |
227 | 227 | then p[ordIdxMat] | |
228 | 228 | else "0@0_0@0_0@0_0@0_0@0_0@0", p[ordIdxProd]] | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func toVolume (amount,pkgSize,isProduct) = if (isProduct) | |
233 | 233 | then { | |
234 | 234 | let pkgs = if ((amount >= 0)) | |
235 | 235 | then (((amount + pkgSize) - 1) / pkgSize) | |
236 | 236 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
237 | 237 | (pkgs * MULT8) | |
238 | 238 | } | |
239 | 239 | else amount | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func sellInternal (locId,resType,amount,minPrice) = { | |
243 | 243 | let whKey = keyFactoryWarehouseByIdAndType(locId, resType) | |
244 | 244 | let w0 = valueOrElse(getInteger(whKey), 0) | |
245 | 245 | let r0 = if ((w0 > FACTORYMAXWAREHOUSE)) | |
246 | 246 | then 0 | |
247 | 247 | else if (((w0 + amount) > FACTORYMAXWAREHOUSE)) | |
248 | 248 | then (FACTORYMAXWAREHOUSE - w0) | |
249 | 249 | else amount | |
250 | 250 | let usdtReceived = (fraction(r0, ((SELLMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0) + (50 * r0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction((amount - r0), RESOURCEPRICEMIN, MULT8)) | |
251 | 251 | let min99 = (minPrice - (minPrice / 100)) | |
252 | 252 | if (((min99 * amount) > (usdtReceived * MULT8))) | |
253 | 253 | then throw((((((((((("Actual price = " + toString(usdtReceived)) + " / ") + toString(amount)) + " < minPrice = ") + toString(minPrice)) + ", (") + locId) + ", ") + resTypes[resType]) + ")")) | |
254 | 254 | else $Tuple2(IntegerEntry(whKey, (w0 + amount)), usdtReceived) | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func buyInternal (locId,matType,amount,maxPrice) = { | |
259 | 259 | let whKey = keyFactoryWarehouseByIdAndType(locId, matType) | |
260 | 260 | let w0 = valueOrElse(getInteger(whKey), 0) | |
261 | 261 | let m1 = if ((w0 > FACTORYMAXWAREHOUSE)) | |
262 | 262 | then min([amount, (w0 - FACTORYMAXWAREHOUSE)]) | |
263 | 263 | else 0 | |
264 | 264 | let m0 = min([w0, (amount - m1)]) | |
265 | 265 | let m = (m0 + m1) | |
266 | 266 | let w0min = min([w0, FACTORYMAXWAREHOUSE]) | |
267 | 267 | let usdtSpent = (fraction(m0, ((BUYMULTIPLIER * RESOURCEPRICEMIN) - fraction(((100 * w0min) - (50 * m0)), RESOURCEPRICEMIN, FACTORYMAXWAREHOUSE)), MULT10) + fraction(m1, (2 * RESOURCEPRICEMIN), MULT8)) | |
268 | 268 | let max101 = (maxPrice + (maxPrice / 100)) | |
269 | 269 | if (((usdtSpent * MULT8) > (max101 * m))) | |
270 | 270 | then throw((((((((((("Actual price = " + toString(usdtSpent)) + " / ") + toString(m)) + " > maxPrice = ") + toString(maxPrice)) + ", (") + locId) + ", ") + matTypes[matType]) + ")")) | |
271 | 271 | else $Tuple3(IntegerEntry(whKey, (w0 - m)), usdtSpent, m) | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func getBackpack (bpKey) = { | |
276 | 276 | let p = split_4C(valueOrElse(getString(stakingContract, bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
277 | 277 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
278 | 278 | then p[bpIdxRes] | |
279 | 279 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
280 | 280 | then p[bpIdxMat] | |
281 | 281 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func checkBlocked () = if (valueOrElse(getBoolean(stakingContract, keyBlocked()), false)) | |
286 | 286 | then throw("Contracts are under maintenance") | |
287 | 287 | else unit | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func prolog () = asInt(invoke(stakingContract, "saveLastTx", nil, nil)) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func setCommon (acc,ignoredIterator) = { | |
294 | 294 | let j = acc._1 | |
295 | 295 | let item = if ((size(acc._10) > j)) | |
296 | 296 | then acc._10[j] | |
297 | 297 | else "0@0" | |
298 | 298 | let isProd = acc._8 | |
299 | 299 | let itemParts = split(item, "@") | |
300 | 300 | if ((size(itemParts) != 2)) | |
301 | 301 | then throw("Incorrect order format, should be amount@price") | |
302 | 302 | else { | |
303 | 303 | let newOrdAm = parseIntValue(itemParts[0]) | |
304 | 304 | let newOrdPr = parseIntValue(itemParts[1]) | |
305 | 305 | let newOrdUsd = if (isProd) | |
306 | 306 | then (newOrdAm * newOrdPr) | |
307 | 307 | else fraction(newOrdAm, newOrdPr, MULT8) | |
308 | 308 | let newOrdVol = toVolume(newOrdAm, PRODUCTPKGSIZE, isProd) | |
309 | 309 | let whInit = if ((size(acc._6) > j)) | |
310 | 310 | then parseIntValue(acc._6[j]) | |
311 | 311 | else 0 | |
312 | 312 | let curOrdParts = split(if ((size(acc._7) > j)) | |
313 | 313 | then acc._7[j] | |
314 | 314 | else "0@0", "@") | |
315 | 315 | let curOrdAm = parseIntValue(curOrdParts[0]) | |
316 | 316 | let curOrdPr = parseIntValue(curOrdParts[1]) | |
317 | 317 | if (if ((0 > curOrdPr)) | |
318 | 318 | then true | |
319 | 319 | else (0 > newOrdPr)) | |
320 | 320 | then throw("Price can't be negative") | |
321 | 321 | else { | |
322 | 322 | let curOrdUsd = if (isProd) | |
323 | 323 | then (curOrdAm * curOrdPr) | |
324 | 324 | else fraction(curOrdAm, curOrdPr, MULT8) | |
325 | 325 | if ((newOrdAm == 0)) | |
326 | 326 | then if ((curOrdAm > 0)) | |
327 | 327 | then $Tuple10((j + 1), (acc._2 :+ toString(whInit)), acc._3, acc._4, (acc._5 - curOrdUsd), acc._6, acc._7, isProd, (acc._9 + toVolume(whInit, PRODUCTPKGSIZE, isProd)), acc._10) | |
328 | 328 | else $Tuple10((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)), acc._10) | |
329 | 329 | else if ((newOrdAm > 0)) | |
330 | 330 | then if ((0 > curOrdAm)) | |
331 | 331 | then $Tuple10((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), acc._10) | |
332 | 332 | else $Tuple10((j + 1), (acc._2 :+ toString(whInit)), (acc._3 + newOrdVol), acc._4, ((acc._5 + newOrdUsd) - curOrdUsd), acc._6, acc._7, isProd, toVolume(whInit, PRODUCTPKGSIZE, isProd), acc._10) | |
333 | 333 | else if ((0 > curOrdAm)) | |
334 | 334 | then { | |
335 | 335 | let amDiff = (curOrdAm - newOrdAm) | |
336 | 336 | if ((0 > (whInit - amDiff))) | |
337 | 337 | then throw((((("Attempt to take " + toString(amDiff)) + " from warehouse, but only ") + toString(whInit)) + " available")) | |
338 | 338 | else $Tuple10((j + 1), (acc._2 :+ toString((whInit - amDiff))), acc._3, (acc._4 - newOrdVol), acc._5, acc._6, acc._7, isProd, toVolume((whInit - amDiff), PRODUCTPKGSIZE, isProd), acc._10) | |
339 | 339 | } | |
340 | 340 | else if ((0 > (whInit + newOrdAm))) | |
341 | 341 | then throw((((("Attempt to take " + toString(-(newOrdAm))) + " from warehouse, but only ") + toString(whInit)) + " available")) | |
342 | 342 | else $Tuple10((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), acc._10) | |
343 | 343 | } | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func setInternal (currentWh,currentOrd,newOrd) = { | |
349 | 349 | let currWhRes = split(currentWh[whIdxRes], "_") | |
350 | 350 | let currWhMat = split(currentWh[whIdxMat], "_") | |
351 | 351 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
352 | 352 | then nil | |
353 | 353 | else split_4C(currentWh[whIdxProd], "_") | |
354 | 354 | let currentOrdRes = split(currentOrd[ordIdxRes], "_") | |
355 | 355 | let currentOrdMat = split(currentOrd[ordIdxMat], "_") | |
356 | 356 | let currentOrdProd = if ((currentOrd[ordIdxProd] == "")) | |
357 | 357 | then nil | |
358 | 358 | else split_4C(currentOrd[ordIdxProd], "_") | |
359 | 359 | if ((size(newOrd) != 3)) | |
360 | 360 | then throw("newOrderStr should contain exactly 2 ':' separators") | |
361 | 361 | else { | |
362 | 362 | let resParts = split(newOrd[0], "_") | |
363 | 363 | let matParts = split(newOrd[1], "_") | |
364 | 364 | let prodParts = if ((newOrd[2] == "")) | |
365 | 365 | then nil | |
366 | 366 | else split_4C(newOrd[2], "_") | |
367 | 367 | if ((size(resParts) != NUMRES)) | |
368 | 368 | then throw("All 6 resources should be passed") | |
369 | 369 | else if ((size(matParts) != NUMRES)) | |
370 | 370 | then throw("All 6 materials should be passed") | |
371 | 371 | else { | |
372 | 372 | let r = { | |
373 | 373 | let $l = resTypes | |
374 | 374 | let $s = size($l) | |
375 | 375 | let $acc0 = $Tuple10(0, nil, 0, 0, 0, currWhRes, currentOrdRes, false, 0, resParts) | |
376 | 376 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
377 | 377 | then $a | |
378 | 378 | else setCommon($a, $l[$i]) | |
379 | 379 | ||
380 | 380 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
381 | 381 | then $a | |
382 | 382 | else throw("List size exceeds 6") | |
383 | 383 | ||
384 | 384 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
385 | 385 | } | |
386 | 386 | let m = { | |
387 | 387 | let $l = matTypes | |
388 | 388 | let $s = size($l) | |
389 | 389 | let $acc0 = $Tuple10(0, nil, r._3, r._4, r._5, currWhMat, currentOrdMat, false, r._9, matParts) | |
390 | 390 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
391 | 391 | then $a | |
392 | 392 | else setCommon($a, $l[$i]) | |
393 | 393 | ||
394 | 394 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
395 | 395 | then $a | |
396 | 396 | else throw("List size exceeds 6") | |
397 | 397 | ||
398 | 398 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
399 | 399 | } | |
400 | 400 | let p = { | |
401 | 401 | let $l = prodTypes | |
402 | 402 | let $s = size($l) | |
403 | 403 | let $acc0 = $Tuple10(0, nil, m._3, m._4, m._5, currWhProd, currentOrdProd, true, m._9, prodParts) | |
404 | 404 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
405 | 405 | then $a | |
406 | 406 | else setCommon($a, $l[$i]) | |
407 | 407 | ||
408 | 408 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
409 | 409 | then $a | |
410 | 410 | else throw("List size exceeds 50") | |
411 | 411 | ||
412 | 412 | $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) | |
413 | 413 | } | |
414 | 414 | $Tuple7(r._2, m._2, p._2, p._3, p._4, p._5, p._9) | |
415 | 415 | } | |
416 | 416 | } | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | func acceptCommon (acc,bpOrdItem) = { | |
421 | 421 | let j = acc._7 | |
422 | 422 | let isProd = acc._12 | |
423 | 423 | let bpOrdParts = split(bpOrdItem, "@") | |
424 | 424 | if ((size(bpOrdParts) != 2)) | |
425 | 425 | then throw("Incorrect order format, should be amount@price") | |
426 | 426 | else { | |
427 | 427 | let bpOrdAm = parseIntValue(bpOrdParts[0]) | |
428 | 428 | let bpOrdPr = parseIntValue(bpOrdParts[1]) | |
429 | 429 | if ((0 > bpOrdPr)) | |
430 | 430 | then throw("Price can't be negative") | |
431 | 431 | else { | |
432 | 432 | let bpOrdUsd = if (isProd) | |
433 | 433 | then (bpOrdAm * bpOrdPr) | |
434 | 434 | else fraction(bpOrdAm, bpOrdPr, MULT8) | |
435 | 435 | let bpInit = if ((size(acc._8) > j)) | |
436 | 436 | then parseIntValue(acc._8[j]) | |
437 | 437 | else 0 | |
438 | 438 | let whInit = if ((size(acc._9) > j)) | |
439 | 439 | then parseIntValue(acc._9[j]) | |
440 | 440 | else 0 | |
441 | 441 | let whOrdInit = if ((size(acc._10) > j)) | |
442 | 442 | then acc._10[j] | |
443 | 443 | else "0@0" | |
444 | 444 | let whOrdParts = split(whOrdInit, "@") | |
445 | 445 | let whOrdAm = parseIntValue(whOrdParts[0]) | |
446 | 446 | let whOrdPr = parseIntValue(whOrdParts[1]) | |
447 | 447 | if (if ((bpOrdAm != 0)) | |
448 | 448 | then (bpOrdPr != whOrdPr) | |
449 | 449 | else false) | |
450 | 450 | then throw(((((("Prices of " + acc._11[j]) + " don't match! WH price=") + toString(whOrdPr)) + ", your price=") + toString(bpOrdPr))) | |
451 | 451 | else { | |
452 | 452 | let whOrdUsd = if (isProd) | |
453 | 453 | then (whOrdAm * whOrdPr) | |
454 | 454 | else fraction(whOrdAm, whOrdPr, MULT8) | |
455 | 455 | let deltaVol = toVolume(bpOrdAm, PRODUCTPKGSIZE, isProd) | |
456 | 456 | if ((bpOrdAm == 0)) | |
457 | 457 | 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) | |
458 | 458 | else if ((bpOrdAm > 0)) | |
459 | 459 | then if ((0 > whOrdAm)) | |
460 | 460 | then if ((bpOrdAm > -(whOrdAm))) | |
461 | 461 | then throw(((((("Attempt to buy " + toString(bpOrdAm)) + " of ") + acc._11[j]) + ", but warehouse only sells ") + toString(-(whOrdAm)))) | |
462 | 462 | 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) | |
463 | 463 | then (bpOrdAm * MULT8) | |
464 | 464 | else bpOrdAm))) | |
465 | 465 | else throw((("Attempt to buy " + acc._11[j]) + " while warehouse doesn't sell it")) | |
466 | 466 | else if ((whOrdAm > 0)) | |
467 | 467 | then if ((-(bpOrdAm) > whOrdAm)) | |
468 | 468 | then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + " of ") + acc._11[j]) + ", but warehouse only buys ") + toString(whOrdAm))) | |
469 | 469 | else if ((-(bpOrdAm) > bpInit)) | |
470 | 470 | then throw(((((("Attempt to sell " + toString(-(bpOrdAm))) + ", but you only have ") + toString(bpInit)) + " of ") + acc._11[j])) | |
471 | 471 | 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) | |
472 | 472 | then (bpOrdAm * MULT8) | |
473 | 473 | else bpOrdAm))) | |
474 | 474 | else throw((("Attempt to sell " + acc._11[j]) + " while warehouse doesn't buy it")) | |
475 | 475 | } | |
476 | 476 | } | |
477 | 477 | } | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | func sellResourcesCommon (resList,factoryLocId,amounts,minPrices) = { | |
482 | 482 | func adder (acc,j) = if ((amounts[j] > parseIntValue(resList[j]))) | |
483 | 483 | then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to sell ") + toString(amounts[j]))) | |
484 | 484 | else if ((0 > amounts[j])) | |
485 | 485 | then throw(((("You tried to sell negative amount of " + resTypes[j]) + ": ") + toString(amounts[j]))) | |
486 | 486 | else if ((amounts[j] > 0)) | |
487 | 487 | then { | |
488 | 488 | let b = sellInternal(factoryLocId, j, amounts[j], minPrices[j]) | |
489 | 489 | $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(resList[j]) - amounts[j]))), (acc._3 + b._2), (acc._4 + amounts[j])) | |
490 | 490 | } | |
491 | 491 | else $Tuple4(acc._1, (acc._2 :+ resList[j]), acc._3, acc._4) | |
492 | 492 | ||
493 | 493 | let $l = ITER6 | |
494 | 494 | let $s = size($l) | |
495 | 495 | let $acc0 = $Tuple4(nil, nil, 0, 0) | |
496 | 496 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
497 | 497 | then $a | |
498 | 498 | else adder($a, $l[$i]) | |
499 | 499 | ||
500 | 500 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
501 | 501 | then $a | |
502 | 502 | else throw("List size exceeds 6") | |
503 | 503 | ||
504 | 504 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
505 | 505 | } | |
506 | 506 | ||
507 | 507 | ||
508 | 508 | func buyMaterialsCommon (matList,factoryLocId,amounts,maxPrices) = { | |
509 | 509 | func mUpdater (acc,j) = if ((0 > amounts[j])) | |
510 | 510 | then throw(((("You tried to buy negative amount of " + matTypes[j]) + ": ") + toString(amounts[j]))) | |
511 | 511 | else if ((amounts[j] > 0)) | |
512 | 512 | then { | |
513 | 513 | let b = buyInternal(factoryLocId, j, amounts[j], maxPrices[j]) | |
514 | 514 | $Tuple4((acc._1 :+ b._1), (acc._2 :+ toString((parseIntValue(matList[j]) + b._3))), (acc._3 + b._2), (acc._4 + amounts[j])) | |
515 | 515 | } | |
516 | 516 | else $Tuple4(acc._1, (acc._2 :+ matList[j]), acc._3, acc._4) | |
517 | 517 | ||
518 | 518 | let $l = ITER6 | |
519 | 519 | let $s = size($l) | |
520 | 520 | let $acc0 = $Tuple4(nil, nil, 0, 0) | |
521 | 521 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
522 | 522 | then $a | |
523 | 523 | else mUpdater($a, $l[$i]) | |
524 | 524 | ||
525 | 525 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
526 | 526 | then $a | |
527 | 527 | else throw("List size exceeds 6") | |
528 | 528 | ||
529 | 529 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
530 | 530 | } | |
531 | 531 | ||
532 | 532 | ||
533 | 533 | func exchangeResourcesCommon (resList,matList,amounts) = { | |
534 | 534 | func exchanger (acc,j) = { | |
535 | 535 | let amj = amounts[j] | |
536 | 536 | if ((amj > parseIntValue(resList[j]))) | |
537 | 537 | then throw(((((("You have " + resList[j]) + " of ") + resTypes[j]) + ", but tried to exchange ") + toString(amj))) | |
538 | 538 | else if ((0 > amj)) | |
539 | 539 | then throw(((("You tried to exchange negative amount of " + resTypes[j]) + ": ") + toString(amj))) | |
540 | 540 | else if ((amj > 0)) | |
541 | 541 | then $Tuple4((acc._1 :+ toString((parseIntValue(resList[j]) - amj))), (acc._2 :+ toString((parseIntValue(matList[j]) + amj))), (acc._3 + fraction(amj, RESOURCEPRICEMIN, MULT8)), (acc._4 + amj)) | |
542 | 542 | else $Tuple4((acc._1 :+ resList[j]), (acc._2 :+ matList[j]), acc._3, acc._4) | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | let $l = ITER6 | |
546 | 546 | let $s = size($l) | |
547 | 547 | let $acc0 = $Tuple4(nil, nil, 0, 0) | |
548 | 548 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
549 | 549 | then $a | |
550 | 550 | else exchanger($a, $l[$i]) | |
551 | 551 | ||
552 | 552 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
553 | 553 | then $a | |
554 | 554 | else throw("List size exceeds 6") | |
555 | 555 | ||
556 | 556 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func shop2userActions (usdWh2BpSaldo,callerAddr,receivedFee) = if ((usdWh2BpSaldo > 0)) | |
561 | 561 | then { | |
562 | 562 | let usdWh2BpFee = fraction(usdWh2BpSaldo, AUCTIONFEE, MULT6) | |
563 | 563 | if ((receivedFee >= (usdWh2BpSaldo - (3 * usdWh2BpFee)))) | |
564 | 564 | then throw(("This trade does not cover delivery cost of " + fixedPoint(receivedFee, 6))) | |
565 | 565 | else { | |
566 | 566 | let refByKey = keyAddressRefBy(callerAddr) | |
567 | 567 | let refBy = getString(stakingContract, refByKey) | |
568 | 568 | let caller = addressFromStringValue(callerAddr) | |
569 | 569 | (((if (isDefined(refBy)) | |
570 | 570 | then [ScriptTransfer(addressFromStringValue(value(refBy)), usdWh2BpFee, usdtAssetId)] | |
571 | 571 | else nil) :+ ScriptTransfer(caller, ((usdWh2BpSaldo - (3 * usdWh2BpFee)) - receivedFee), usdtAssetId)) :+ ScriptTransfer(restContract, usdWh2BpFee, usdtAssetId)) | |
572 | 572 | } | |
573 | 573 | } | |
574 | 574 | else nil | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | func user2shopActions (usdBp2WhSaldo,pmts,shopLandOwner,spentFee) = if ((usdBp2WhSaldo > 0)) | |
578 | 578 | then if ((size(pmts) != 1)) | |
579 | 579 | then throw("exactly 1 payment must be attached") | |
580 | 580 | else { | |
581 | 581 | let pmt = pmts[0] | |
582 | 582 | let amt = pmt.amount | |
583 | 583 | if (if (!(isDefined(pmt.assetId))) | |
584 | 584 | then true | |
585 | 585 | else (value(pmt.assetId) != usdtAssetId)) | |
586 | 586 | then throw("USDT payments only!") | |
587 | 587 | else { | |
588 | 588 | let usdtSpentWithFee = (usdBp2WhSaldo + spentFee) | |
589 | 589 | if ((amt != usdtSpentWithFee)) | |
590 | 590 | then throw((((((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdBp2WhSaldo, 6)) + "+") + fixedPoint(spentFee, 6)) + "(delivery fee)")) | |
591 | 591 | else if ((MINSHOPPAYMENT > usdBp2WhSaldo)) | |
592 | 592 | then throw(("Min shop trade is " + fixedPoint(MINSHOPPAYMENT, 6))) | |
593 | 593 | else { | |
594 | 594 | let usdBp2WhFee = fraction(usdBp2WhSaldo, AUCTIONFEE, MULT6) | |
595 | 595 | let refByKey = keyAddressRefBy(shopLandOwner) | |
596 | 596 | let refBy = getString(stakingContract, refByKey) | |
597 | 597 | (((if (isDefined(refBy)) | |
598 | 598 | then [ScriptTransfer(addressFromStringValue(value(refBy)), usdBp2WhFee, usdtAssetId)] | |
599 | 599 | else nil) :+ ScriptTransfer(addressFromStringValue(shopLandOwner), (usdBp2WhSaldo - (3 * usdBp2WhFee)), usdtAssetId)) :+ ScriptTransfer(restContract, usdBp2WhFee, usdtAssetId)) | |
600 | 600 | } | |
601 | 601 | } | |
602 | 602 | } | |
603 | 603 | else if ((size(pmts) != 0)) | |
604 | 604 | then throw("No payments needed") | |
605 | 605 | else nil | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | func acceptShopOrderCommon (shopLandAssetId,callerAddr,bpOrderStr,bpResList,bpMatList,bpProdList) = { | |
609 | 609 | let landAsset = value(assetInfo(fromBase58String(shopLandAssetId))) | |
610 | 610 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(shopLandAssetId))))) | |
611 | 611 | then throw((("NFT " + landAsset.name) + " is not staked")) | |
612 | 612 | else { | |
613 | 613 | let shopLandOwner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(shopLandAssetId)), (("NFT " + landAsset.name) + " is orphaned")) | |
614 | 614 | if ((shopLandOwner == callerAddr)) | |
615 | 615 | then throw("You cannot trade with yourself") | |
616 | 616 | else { | |
617 | 617 | let bpOrderParts = split_4C(bpOrderStr, ":") | |
618 | 618 | if ((size(bpOrderParts) != 3)) | |
619 | 619 | then throw("bpOrderStr should contain exactly 2 ':' separators") | |
620 | 620 | else { | |
621 | 621 | let bpOrdRes = split(bpOrderParts[0], "_") | |
622 | 622 | let bpOrdMat = split(bpOrderParts[1], "_") | |
623 | 623 | let bpOrdProd = if ((bpOrderParts[2] == "")) | |
624 | 624 | then nil | |
625 | 625 | else split_4C(bpOrderParts[2], "_") | |
626 | 626 | if ((size(bpOrdRes) != NUMRES)) | |
627 | 627 | then throw("All 6 resources should be passed") | |
628 | 628 | else if ((size(bpOrdMat) != NUMRES)) | |
629 | 629 | then throw("All 6 materials should be passed") | |
630 | 630 | else { | |
631 | 631 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [shopLandAssetId], nil)) | |
632 | 632 | let currentWh = split_4C(wh, ":") | |
633 | 633 | let currWhRes = split(currentWh[whIdxRes], "_") | |
634 | 634 | let currWhMat = split(currentWh[whIdxMat], "_") | |
635 | 635 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
636 | 636 | then nil | |
637 | 637 | else split_4C(currentWh[whIdxProd], "_") | |
638 | 638 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
639 | 639 | let ordKey = keyOrderByLand(shopLandAssetId) | |
640 | 640 | let whOrd = getOrder(ordKey) | |
641 | 641 | let whOrdRes = split(whOrd[ordIdxRes], "_") | |
642 | 642 | let whOrdMat = split(whOrd[ordIdxMat], "_") | |
643 | 643 | let whOrdProd = if ((whOrd[ordIdxProd] == "")) | |
644 | 644 | then nil | |
645 | 645 | else split_4C(whOrd[ordIdxProd], "_") | |
646 | 646 | let r = { | |
647 | 647 | let $l = bpOrdRes | |
648 | 648 | let $s = size($l) | |
649 | 649 | let $acc0 = $Tuple13(nil, nil, nil, 0, 0, 0, 0, bpResList, currWhRes, whOrdRes, resTypes, false, 0) | |
650 | 650 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
651 | 651 | then $a | |
652 | 652 | else acceptCommon($a, $l[$i]) | |
653 | 653 | ||
654 | 654 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
655 | 655 | then $a | |
656 | 656 | else throw("List size exceeds 6") | |
657 | 657 | ||
658 | 658 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
659 | 659 | } | |
660 | 660 | let m = { | |
661 | 661 | let $l = bpOrdMat | |
662 | 662 | let $s = size($l) | |
663 | 663 | let $acc0 = $Tuple13(nil, nil, nil, r._4, r._5, r._6, 0, bpMatList, currWhMat, whOrdMat, matTypes, false, r._13) | |
664 | 664 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
665 | 665 | then $a | |
666 | 666 | else acceptCommon($a, $l[$i]) | |
667 | 667 | ||
668 | 668 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
669 | 669 | then $a | |
670 | 670 | else throw("List size exceeds 6") | |
671 | 671 | ||
672 | 672 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
673 | 673 | } | |
674 | 674 | let p = if ((size(bpOrdProd) != 0)) | |
675 | 675 | then { | |
676 | 676 | let $l = bpOrdProd | |
677 | 677 | let $s = size($l) | |
678 | 678 | let $acc0 = $Tuple13(nil, nil, nil, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13) | |
679 | 679 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
680 | 680 | then $a | |
681 | 681 | else acceptCommon($a, $l[$i]) | |
682 | 682 | ||
683 | 683 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
684 | 684 | then $a | |
685 | 685 | else throw("List size exceeds 50") | |
686 | 686 | ||
687 | 687 | $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) | |
688 | 688 | } | |
689 | 689 | else $Tuple13(currWhProd, whOrdProd, bpProdList, m._4, m._5, m._6, 0, bpProdList, currWhProd, whOrdProd, prodTypes, true, m._13) | |
690 | 690 | let volSaldo = p._4 | |
691 | 691 | let newLockedVol = if ((0 > (currWhLockedVol - volSaldo))) | |
692 | 692 | then 0 | |
693 | 693 | else (currWhLockedVol - volSaldo) | |
694 | 694 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(r._1, "_"), makeString(m._1, "_"), makeString_2C(p._1, "_"), toString(newLockedVol)], ":") | |
695 | 695 | let newWhOrdStr = makeString_2C([makeString(r._2, "_"), makeString(m._2, "_"), makeString_2C(p._2, "_")], ":") | |
696 | 696 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, shopLandAssetId], nil)) | |
697 | 697 | let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [shopLandOwner, fraction(xpShop, p._13, MULT8)], nil)) | |
698 | 698 | $Tuple10(StringEntry(ordKey, newWhOrdStr), r._3, m._3, p._3, p._5, p._6, p._13, shopLandOwner, whSave, accStatsResult) | |
699 | 699 | } | |
700 | 700 | } | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | func sellResourcesWorldInternal (amount) = { | |
707 | 707 | let oneRes = (amount / 30) | |
708 | 708 | let oneFactoryAmounts = [oneRes, oneRes, oneRes, oneRes, oneRes, oneRes] | |
709 | 709 | let s = toString(oneRes) | |
710 | 710 | let resList = [s, s, s, s, s, s] | |
711 | 711 | let minPrices = [0, 0, 0, 0, 0, 0] | |
712 | 712 | func oneFactory (acc,continent) = { | |
713 | 713 | let x = sellResourcesCommon(resList, continent, oneFactoryAmounts, minPrices) | |
714 | 714 | $Tuple3((acc._1 ++ x._1), (acc._2 + x._3), (acc._3 + x._4)) | |
715 | 715 | } | |
716 | 716 | ||
717 | 717 | let $t02526125351 = { | |
718 | 718 | let $l = continents | |
719 | 719 | let $s = size($l) | |
720 | 720 | let $acc0 = $Tuple3(nil, 0, 0) | |
721 | 721 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
722 | 722 | then $a | |
723 | 723 | else oneFactory($a, $l[$i]) | |
724 | 724 | ||
725 | 725 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
726 | 726 | then $a | |
727 | 727 | else throw("List size exceeds 5") | |
728 | 728 | ||
729 | 729 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
730 | 730 | } | |
731 | 731 | let factoryActions = $t02526125351._1 | |
732 | 732 | let usdtReceived = $t02526125351._2 | |
733 | 733 | let totalRes = $t02526125351._3 | |
734 | 734 | let fee = fraction(usdtReceived, DELIVERY_FEE, MULT6) | |
735 | 735 | let activitiesAmount = (usdtReceived / 100) | |
736 | 736 | let usdtLeft = ((usdtReceived - activitiesAmount) - fee) | |
737 | 737 | $Tuple5(factoryActions, usdtLeft, fee, activitiesAmount, totalRes) | |
738 | 738 | } | |
739 | 739 | ||
740 | 740 | ||
741 | 741 | @Callable(i) | |
742 | 742 | func recalcLockedVolumeREADONLY (landAssetId,wh) = { | |
743 | 743 | let currentOrd = getOrder(keyOrderByLand(landAssetId)) | |
744 | 744 | let z = setInternal(wh, currentOrd, currentOrd) | |
745 | 745 | $Tuple2(nil, (z._4 + z._5)) | |
746 | 746 | } | |
747 | 747 | ||
748 | 748 | ||
749 | 749 | ||
750 | 750 | @Callable(i) | |
751 | 751 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
752 | 752 | then throw("Permission denied") | |
753 | 753 | else [StringEntry(keyRestAddress(), restAddr)] | |
754 | 754 | ||
755 | 755 | ||
756 | 756 | ||
757 | 757 | @Callable(i) | |
758 | 758 | func sellResources (amounts,minPrices) = { | |
759 | 759 | let prologResult = prolog() | |
760 | 760 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
761 | 761 | if ((size(i.payments) != 0)) | |
762 | 762 | then throw("sellResources doesn't require any payments") | |
763 | 763 | else { | |
764 | 764 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
765 | 765 | if ((curLocation[locIdxType] != "F")) | |
766 | 766 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
767 | 767 | else { | |
768 | 768 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
769 | 769 | let resList = split(currentPack[bpIdxRes], "_") | |
770 | 770 | let $t02680326929 = sellResourcesCommon(resList, curLocation[locIdxId], amounts, minPrices) | |
771 | 771 | let factoryActions = $t02680326929._1 | |
772 | 772 | let newRes = $t02680326929._2 | |
773 | 773 | let usdtReceived = $t02680326929._3 | |
774 | 774 | let totalRes = $t02680326929._4 | |
775 | 775 | let activitiesAmount = (usdtReceived / 100) | |
776 | 776 | let newPack = makeString_2C([currentPack[bpIdxLevel], makeString(newRes, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":") | |
777 | 777 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
778 | 778 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalRes, MULT8)], nil)) | |
779 | 779 | $Tuple2(((factoryActions :+ ScriptTransfer(i.caller, (usdtReceived - activitiesAmount), usdtAssetId)) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(backpackResult, prologResult, statsResult)) | |
780 | 780 | } | |
781 | 781 | } | |
782 | 782 | } | |
783 | 783 | ||
784 | 784 | ||
785 | 785 | ||
786 | 786 | @Callable(i) | |
787 | 787 | func sellResourcesWorld (addr,amount) = if ((i.caller != acresContract)) | |
788 | 788 | then throw("Permission denied") | |
789 | 789 | else { | |
790 | 790 | let $t02772127878 = sellResourcesWorldInternal(amount) | |
791 | 791 | let factoryActions = $t02772127878._1 | |
792 | 792 | let usdtLeft = $t02772127878._2 | |
793 | 793 | let fee = $t02772127878._3 | |
794 | 794 | let activitiesAmount = $t02772127878._4 | |
795 | 795 | let totalRes = $t02772127878._5 | |
796 | 796 | if ((0 >= usdtLeft)) | |
797 | 797 | then throw(("This trade does not cover delivery cost of " + fixedPoint(fee, 6))) | |
798 | 798 | else { | |
799 | 799 | let statsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, fraction(xpTrade, totalRes, MULT8)], nil)) | |
800 | 800 | $Tuple2((((factoryActions :+ IntegerEntry(deliveryFundKey, (valueOrElse(getInteger(deliveryFundKey), 0) + fee))) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)) :+ ScriptTransfer(investFundContract, usdtLeft, usdtAssetId)), $Tuple2(usdtLeft, statsResult)) | |
801 | 801 | } | |
802 | 802 | } | |
803 | 803 | ||
804 | 804 | ||
805 | 805 | ||
806 | 806 | @Callable(i) | |
807 | 807 | func sellResourcesWorldREADONLY (amount) = { | |
808 | 808 | let usdtLeft = sellResourcesWorldInternal(amount)._2 | |
809 | 809 | $Tuple2(nil, usdtLeft) | |
810 | 810 | } | |
811 | 811 | ||
812 | 812 | ||
813 | 813 | ||
814 | 814 | @Callable(i) | |
815 | 815 | func sellResourcesDuckDelivery (amounts,minPrices,factoryContinent) = if (!(KS_ALLOW_DELIVERY)) | |
816 | 816 | then throw("Delivery feature is turned off!") | |
817 | 817 | else { | |
818 | 818 | let prologResult = prolog() | |
819 | 819 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
820 | 820 | if ((size(i.payments) != 0)) | |
821 | 821 | then throw("sellResources doesn't require any payments") | |
822 | 822 | else { | |
823 | 823 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
824 | 824 | let resList = split(currentPack[bpIdxRes], "_") | |
825 | 825 | let $t02911129232 = sellResourcesCommon(resList, factoryContinent, amounts, minPrices) | |
826 | 826 | let factoryActions = $t02911129232._1 | |
827 | 827 | let newRes = $t02911129232._2 | |
828 | 828 | let usdtReceived = $t02911129232._3 | |
829 | 829 | let totalRes = $t02911129232._4 | |
830 | 830 | let newPack = makeString_2C([currentPack[bpIdxLevel], makeString(newRes, "_"), currentPack[bpIdxMat], currentPack[bpIdxProd]], ":") | |
831 | 831 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
832 | 832 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalRes, MULT8)], nil)) | |
833 | 833 | let feePart = fraction(usdtReceived, DELIVERY_FEE, MULT6) | |
834 | 834 | let fee = if ((MIN_USDT_FEE_DELIVERY > feePart)) | |
835 | 835 | then MIN_USDT_FEE_DELIVERY | |
836 | 836 | else feePart | |
837 | 837 | let activitiesAmount = (usdtReceived / 100) | |
838 | 838 | if ((fee >= (usdtReceived - activitiesAmount))) | |
839 | 839 | then throw(("This trade does not cover delivery cost of " + fixedPoint(fee, 6))) | |
840 | 840 | else { | |
841 | 841 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
842 | 842 | $Tuple2((((factoryActions :+ ScriptTransfer(i.caller, ((usdtReceived - activitiesAmount) - fee), usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(backpackResult, prologResult, statsResult)) | |
843 | 843 | } | |
844 | 844 | } | |
845 | 845 | } | |
846 | 846 | ||
847 | 847 | ||
848 | 848 | ||
849 | 849 | @Callable(i) | |
850 | 850 | func sellResourcesLandDelivery (amounts,minPrices,landAssetId,factoryContinent) = if (!(KS_ALLOW_DELIVERY)) | |
851 | 851 | then throw("Delivery feature is turned off!") | |
852 | 852 | else { | |
853 | 853 | let prologResult = prolog() | |
854 | 854 | if ((size(i.payments) != 0)) | |
855 | 855 | then throw("sellResources doesn't require any payments") | |
856 | 856 | else { | |
857 | 857 | let user = i.caller | |
858 | 858 | let addr = toString(user) | |
859 | 859 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
860 | 860 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
861 | 861 | then throw((("NFT " + asset.name) + " is not staked")) | |
862 | 862 | else { | |
863 | 863 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
864 | 864 | if ((owner != addr)) | |
865 | 865 | then throw((LANDPREFIX + " is not yours")) | |
866 | 866 | else { | |
867 | 867 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
868 | 868 | let currentWh = split_4C(wh, ":") | |
869 | 869 | let resList = split(currentWh[whIdxRes], "_") | |
870 | 870 | let $t03125931380 = sellResourcesCommon(resList, factoryContinent, amounts, minPrices) | |
871 | 871 | let factoryActions = $t03125931380._1 | |
872 | 872 | let newRes = $t03125931380._2 | |
873 | 873 | let usdtReceived = $t03125931380._3 | |
874 | 874 | let totalRes = $t03125931380._4 | |
875 | 875 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(newRes, "_"), currentWh[whIdxMat], currentWh[whIdxProd], currentWh[whIdxLOFT]], ":") | |
876 | 876 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
877 | 877 | let statsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, fraction(xpTrade, totalRes, MULT8)], nil)) | |
878 | 878 | let feePart = fraction(usdtReceived, DELIVERY_FEE, MULT6) | |
879 | 879 | let fee = if ((MIN_USDT_FEE_DELIVERY > feePart)) | |
880 | 880 | then MIN_USDT_FEE_DELIVERY | |
881 | 881 | else feePart | |
882 | 882 | let activitiesAmount = (usdtReceived / 100) | |
883 | 883 | if ((fee >= (usdtReceived - activitiesAmount))) | |
884 | 884 | then throw(("This trade does not cover delivery cost of " + fixedPoint(fee, 6))) | |
885 | 885 | else { | |
886 | 886 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
887 | 887 | $Tuple2((((factoryActions :+ ScriptTransfer(i.caller, ((usdtReceived - activitiesAmount) - fee), usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(whSave, prologResult, statsResult)) | |
888 | 888 | } | |
889 | 889 | } | |
890 | 890 | } | |
891 | 891 | } | |
892 | 892 | } | |
893 | 893 | ||
894 | 894 | ||
895 | 895 | ||
896 | 896 | @Callable(i) | |
897 | 897 | func buyMaterials (amounts,maxPrices) = { | |
898 | 898 | let prologResult = prolog() | |
899 | 899 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
900 | 900 | if ((size(i.payments) != 1)) | |
901 | 901 | then throw("exactly 1 payment must be attached") | |
902 | 902 | else { | |
903 | 903 | let pmt = i.payments[0] | |
904 | 904 | let amt = pmt.amount | |
905 | 905 | if (if (!(isDefined(pmt.assetId))) | |
906 | 906 | then true | |
907 | 907 | else (value(pmt.assetId) != usdtAssetId)) | |
908 | 908 | then throw("USDT payments only!") | |
909 | 909 | else { | |
910 | 910 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
911 | 911 | if ((curLocation[locIdxType] != "F")) | |
912 | 912 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
913 | 913 | else { | |
914 | 914 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
915 | 915 | let matList = split(currentPack[bpIdxMat], "_") | |
916 | 916 | let $t03324033362 = buyMaterialsCommon(matList, curLocation[locIdxId], amounts, maxPrices) | |
917 | 917 | let factoryActions = $t03324033362._1 | |
918 | 918 | let newMat = $t03324033362._2 | |
919 | 919 | let usdtSpent = $t03324033362._3 | |
920 | 920 | let totalMat = $t03324033362._4 | |
921 | 921 | if ((usdtSpent > amt)) | |
922 | 922 | then throw(((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6))) | |
923 | 923 | else { | |
924 | 924 | let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(newMat, "_"), currentPack[bpIdxProd]], ":") | |
925 | 925 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
926 | 926 | let rest = if (((amt - usdtSpent) > 0)) | |
927 | 927 | then [ScriptTransfer(i.caller, (amt - usdtSpent), usdtAssetId)] | |
928 | 928 | else nil | |
929 | 929 | let activitiesAmount = (usdtSpent / 100) | |
930 | 930 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalMat, MULT8)], nil)) | |
931 | 931 | $Tuple2(((factoryActions ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(backpackResult, prologResult, statsResult)) | |
932 | 932 | } | |
933 | 933 | } | |
934 | 934 | } | |
935 | 935 | } | |
936 | 936 | } | |
937 | 937 | ||
938 | 938 | ||
939 | 939 | ||
940 | 940 | @Callable(i) | |
941 | 941 | func buyMaterialsDuckDelivery (amounts,maxPrices,factoryContinent) = if (!(KS_ALLOW_DELIVERY)) | |
942 | 942 | then throw("Delivery feature is turned off!") | |
943 | 943 | else { | |
944 | 944 | let prologResult = prolog() | |
945 | 945 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
946 | 946 | if ((size(i.payments) != 1)) | |
947 | 947 | then throw("exactly 1 payment must be attached") | |
948 | 948 | else { | |
949 | 949 | let pmt = i.payments[0] | |
950 | 950 | let amt = pmt.amount | |
951 | 951 | if (if (!(isDefined(pmt.assetId))) | |
952 | 952 | then true | |
953 | 953 | else (value(pmt.assetId) != usdtAssetId)) | |
954 | 954 | then throw("USDT payments only!") | |
955 | 955 | else { | |
956 | 956 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
957 | 957 | let matList = split(currentPack[bpIdxMat], "_") | |
958 | 958 | let $t03488034997 = buyMaterialsCommon(matList, factoryContinent, amounts, maxPrices) | |
959 | 959 | let factoryActions = $t03488034997._1 | |
960 | 960 | let newMat = $t03488034997._2 | |
961 | 961 | let usdtSpent = $t03488034997._3 | |
962 | 962 | let totalMat = $t03488034997._4 | |
963 | 963 | let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(newMat, "_"), currentPack[bpIdxProd]], ":") | |
964 | 964 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
965 | 965 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalMat, MULT8)], nil)) | |
966 | 966 | let feePart = fraction(usdtSpent, DELIVERY_FEE, MULT6) | |
967 | 967 | let fee = if ((MIN_USDT_FEE_DELIVERY > feePart)) | |
968 | 968 | then MIN_USDT_FEE_DELIVERY | |
969 | 969 | else feePart | |
970 | 970 | let usdtSpentWithFee = (usdtSpent + fee) | |
971 | 971 | if ((usdtSpentWithFee > amt)) | |
972 | 972 | then throw((((((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6)) + "+") + fixedPoint(fee, 6)) + "(delivery fee)")) | |
973 | 973 | else { | |
974 | 974 | let rest = if (((amt - usdtSpentWithFee) > 0)) | |
975 | 975 | then [ScriptTransfer(i.caller, (amt - usdtSpentWithFee), usdtAssetId)] | |
976 | 976 | else nil | |
977 | 977 | let activitiesAmount = (usdtSpent / 100) | |
978 | 978 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
979 | 979 | $Tuple2((((factoryActions ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))), $Tuple3(backpackResult, prologResult, statsResult)) | |
980 | 980 | } | |
981 | 981 | } | |
982 | 982 | } | |
983 | 983 | } | |
984 | 984 | ||
985 | 985 | ||
986 | 986 | ||
987 | 987 | @Callable(i) | |
988 | 988 | func buyMaterialsLandDelivery (amounts,maxPrices,landAssetId,factoryContinent) = if (!(KS_ALLOW_DELIVERY)) | |
989 | 989 | then throw("Delivery feature is turned off!") | |
990 | 990 | else { | |
991 | 991 | let prologResult = prolog() | |
992 | 992 | if ((size(i.payments) != 1)) | |
993 | 993 | then throw("exactly 1 payment must be attached") | |
994 | 994 | else { | |
995 | 995 | let pmt = i.payments[0] | |
996 | 996 | let amt = pmt.amount | |
997 | 997 | if (if (!(isDefined(pmt.assetId))) | |
998 | 998 | then true | |
999 | 999 | else (value(pmt.assetId) != usdtAssetId)) | |
1000 | 1000 | then throw("USDT payments only!") | |
1001 | 1001 | else { | |
1002 | 1002 | let user = i.caller | |
1003 | 1003 | let addr = toString(user) | |
1004 | 1004 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1005 | 1005 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
1006 | 1006 | then throw((("NFT " + asset.name) + " is not staked")) | |
1007 | 1007 | else { | |
1008 | 1008 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1009 | 1009 | if ((owner != addr)) | |
1010 | 1010 | then throw((LANDPREFIX + " is not yours")) | |
1011 | 1011 | else { | |
1012 | 1012 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
1013 | 1013 | let currentWh = split_4C(wh, ":") | |
1014 | 1014 | let matList = split(currentWh[whIdxMat], "_") | |
1015 | 1015 | let $t03727537392 = buyMaterialsCommon(matList, factoryContinent, amounts, maxPrices) | |
1016 | 1016 | let factoryActions = $t03727537392._1 | |
1017 | 1017 | let newMat = $t03727537392._2 | |
1018 | 1018 | let usdtSpent = $t03727537392._3 | |
1019 | 1019 | let totalMat = $t03727537392._4 | |
1020 | 1020 | let whStr = makeString_2C([currentWh[whIdxLevels], currentWh[whIdxRes], makeString(newMat, "_"), currentWh[whIdxProd], currentWh[whIdxLOFT]], ":") | |
1021 | 1021 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
1022 | 1022 | let statsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, fraction(xpTrade, totalMat, MULT8)], nil)) | |
1023 | 1023 | let feePart = fraction(usdtSpent, DELIVERY_FEE, MULT6) | |
1024 | 1024 | let fee = if ((MIN_USDT_FEE_DELIVERY > feePart)) | |
1025 | 1025 | then MIN_USDT_FEE_DELIVERY | |
1026 | 1026 | else feePart | |
1027 | 1027 | let usdtSpentWithFee = (usdtSpent + fee) | |
1028 | 1028 | if ((usdtSpentWithFee > amt)) | |
1029 | 1029 | then throw((((((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6)) + "+") + fixedPoint(fee, 6)) + "(delivery fee)")) | |
1030 | 1030 | else { | |
1031 | 1031 | let rest = if (((amt - usdtSpentWithFee) > 0)) | |
1032 | 1032 | then [ScriptTransfer(i.caller, (amt - usdtSpentWithFee), usdtAssetId)] | |
1033 | 1033 | else nil | |
1034 | 1034 | let activitiesAmount = (usdtSpent / 100) | |
1035 | 1035 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1036 | 1036 | $Tuple2((((factoryActions ++ rest) :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))), $Tuple3(whSave, prologResult, statsResult)) | |
1037 | 1037 | } | |
1038 | 1038 | } | |
1039 | 1039 | } | |
1040 | 1040 | } | |
1041 | 1041 | } | |
1042 | 1042 | } | |
1043 | 1043 | ||
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | @Callable(i) | |
1047 | 1047 | func exchangeResources (amounts) = { | |
1048 | 1048 | let prologResult = prolog() | |
1049 | 1049 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1050 | 1050 | if ((size(i.payments) != 1)) | |
1051 | 1051 | then throw("exactly 1 payment must be attached") | |
1052 | 1052 | else { | |
1053 | 1053 | let pmt = i.payments[0] | |
1054 | 1054 | let amt = pmt.amount | |
1055 | 1055 | if (if (!(isDefined(pmt.assetId))) | |
1056 | 1056 | then true | |
1057 | 1057 | else (value(pmt.assetId) != usdtAssetId)) | |
1058 | 1058 | then throw("USDT payments only!") | |
1059 | 1059 | else { | |
1060 | 1060 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1061 | 1061 | if ((curLocation[locIdxType] != "F")) | |
1062 | 1062 | then throw(("Duck location type should be Factory, but is " + curLocation[locIdxType])) | |
1063 | 1063 | else { | |
1064 | 1064 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
1065 | 1065 | let resList = split(currentPack[bpIdxRes], "_") | |
1066 | 1066 | let matList = split(currentPack[bpIdxMat], "_") | |
1067 | 1067 | let $t03950639612 = exchangeResourcesCommon(resList, matList, amounts) | |
1068 | 1068 | let newRes = $t03950639612._1 | |
1069 | 1069 | let newMat = $t03950639612._2 | |
1070 | 1070 | let usdtSpent = $t03950639612._3 | |
1071 | 1071 | let totalAmountConverted = $t03950639612._4 | |
1072 | 1072 | if ((usdtSpent > amt)) | |
1073 | 1073 | then throw(((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6))) | |
1074 | 1074 | else { | |
1075 | 1075 | let newPack = makeString([currentPack[bpIdxLevel], makeString(newRes, "_"), makeString(newMat, "_"), currentPack[bpIdxProd]], ":") | |
1076 | 1076 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
1077 | 1077 | let rest = if (((amt - usdtSpent) > 0)) | |
1078 | 1078 | then [ScriptTransfer(i.caller, (amt - usdtSpent), usdtAssetId)] | |
1079 | 1079 | else nil | |
1080 | 1080 | let activitiesAmount = (usdtSpent / 100) | |
1081 | 1081 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalAmountConverted, MULT8)], nil)) | |
1082 | 1082 | $Tuple2((rest :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)), $Tuple3(backpackResult, prologResult, statsResult)) | |
1083 | 1083 | } | |
1084 | 1084 | } | |
1085 | 1085 | } | |
1086 | 1086 | } | |
1087 | 1087 | } | |
1088 | 1088 | ||
1089 | 1089 | ||
1090 | 1090 | ||
1091 | 1091 | @Callable(i) | |
1092 | 1092 | func exchangeResourcesDuckDelivery (amounts) = if (!(KS_ALLOW_DELIVERY)) | |
1093 | 1093 | then throw("Delivery feature is turned off!") | |
1094 | 1094 | else { | |
1095 | 1095 | let prologResult = prolog() | |
1096 | 1096 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1097 | 1097 | if ((size(i.payments) != 1)) | |
1098 | 1098 | then throw("exactly 1 payment must be attached") | |
1099 | 1099 | else { | |
1100 | 1100 | let pmt = i.payments[0] | |
1101 | 1101 | let amt = pmt.amount | |
1102 | 1102 | if (if (!(isDefined(pmt.assetId))) | |
1103 | 1103 | then true | |
1104 | 1104 | else (value(pmt.assetId) != usdtAssetId)) | |
1105 | 1105 | then throw("USDT payments only!") | |
1106 | 1106 | else { | |
1107 | 1107 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
1108 | 1108 | let resList = split(currentPack[bpIdxRes], "_") | |
1109 | 1109 | let matList = split(currentPack[bpIdxMat], "_") | |
1110 | 1110 | let $t04112441230 = exchangeResourcesCommon(resList, matList, amounts) | |
1111 | 1111 | let newRes = $t04112441230._1 | |
1112 | 1112 | let newMat = $t04112441230._2 | |
1113 | 1113 | let usdtSpent = $t04112441230._3 | |
1114 | 1114 | let totalAmountConverted = $t04112441230._4 | |
1115 | 1115 | let feePart = fraction(usdtSpent, DELIVERY_FEE15, MULT6) | |
1116 | 1116 | let fee = if ((MIN_USDT_FEE_DELIVERY15 > feePart)) | |
1117 | 1117 | then MIN_USDT_FEE_DELIVERY15 | |
1118 | 1118 | else feePart | |
1119 | 1119 | let usdtSpentWithFee = (usdtSpent + fee) | |
1120 | 1120 | if ((usdtSpentWithFee > amt)) | |
1121 | 1121 | then throw((((((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6)) + "+") + fixedPoint(fee, 6)) + "(delivery fee)")) | |
1122 | 1122 | else { | |
1123 | 1123 | let newPack = makeString([currentPack[bpIdxLevel], makeString(newRes, "_"), makeString(newMat, "_"), currentPack[bpIdxProd]], ":") | |
1124 | 1124 | let backpackResult = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
1125 | 1125 | let rest = if (((amt - usdtSpentWithFee) > 0)) | |
1126 | 1126 | then [ScriptTransfer(i.caller, (amt - usdtSpentWithFee), usdtAssetId)] | |
1127 | 1127 | else nil | |
1128 | 1128 | let activitiesAmount = (usdtSpent / 100) | |
1129 | 1129 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpTrade, totalAmountConverted, MULT8)], nil)) | |
1130 | 1130 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1131 | 1131 | $Tuple2(((rest :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))), $Tuple3(backpackResult, prologResult, statsResult)) | |
1132 | 1132 | } | |
1133 | 1133 | } | |
1134 | 1134 | } | |
1135 | 1135 | } | |
1136 | 1136 | ||
1137 | 1137 | ||
1138 | 1138 | ||
1139 | 1139 | @Callable(i) | |
1140 | 1140 | func exchangeResourcesLandDelivery (amounts,landAssetId) = if (!(KS_ALLOW_DELIVERY)) | |
1141 | 1141 | then throw("Delivery feature is turned off!") | |
1142 | 1142 | else { | |
1143 | 1143 | let prologResult = prolog() | |
1144 | 1144 | if ((size(i.payments) != 1)) | |
1145 | 1145 | then throw("exactly 1 payment must be attached") | |
1146 | 1146 | else { | |
1147 | 1147 | let pmt = i.payments[0] | |
1148 | 1148 | let amt = pmt.amount | |
1149 | 1149 | if (if (!(isDefined(pmt.assetId))) | |
1150 | 1150 | then true | |
1151 | 1151 | else (value(pmt.assetId) != usdtAssetId)) | |
1152 | 1152 | then throw("USDT payments only!") | |
1153 | 1153 | else { | |
1154 | 1154 | let user = i.caller | |
1155 | 1155 | let addr = toString(user) | |
1156 | 1156 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1157 | 1157 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
1158 | 1158 | then throw((("NFT " + asset.name) + " is not staked")) | |
1159 | 1159 | else { | |
1160 | 1160 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1161 | 1161 | if ((owner != addr)) | |
1162 | 1162 | then throw((LANDPREFIX + " is not yours")) | |
1163 | 1163 | else { | |
1164 | 1164 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
1165 | 1165 | let currentWh = split_4C(wh, ":") | |
1166 | 1166 | let resList = split(currentWh[whIdxRes], "_") | |
1167 | 1167 | let matList = split(currentWh[whIdxMat], "_") | |
1168 | 1168 | let $t04353043636 = exchangeResourcesCommon(resList, matList, amounts) | |
1169 | 1169 | let newRes = $t04353043636._1 | |
1170 | 1170 | let newMat = $t04353043636._2 | |
1171 | 1171 | let usdtSpent = $t04353043636._3 | |
1172 | 1172 | let totalAmountConverted = $t04353043636._4 | |
1173 | 1173 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(newRes, "_"), makeString(newMat, "_"), currentWh[whIdxProd], currentWh[whIdxLOFT]], ":") | |
1174 | 1174 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
1175 | 1175 | let statsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, fraction(xpTrade, totalAmountConverted, MULT8)], nil)) | |
1176 | 1176 | let feePart = fraction(usdtSpent, DELIVERY_FEE15, MULT6) | |
1177 | 1177 | let fee = if ((MIN_USDT_FEE_DELIVERY15 > feePart)) | |
1178 | 1178 | then MIN_USDT_FEE_DELIVERY15 | |
1179 | 1179 | else feePart | |
1180 | 1180 | let usdtSpentWithFee = (usdtSpent + fee) | |
1181 | 1181 | if ((usdtSpentWithFee > amt)) | |
1182 | 1182 | then throw((((((("Insufficient payment! Attached=" + fixedPoint(amt, 6)) + ", required=") + fixedPoint(usdtSpent, 6)) + "+") + fixedPoint(fee, 6)) + "(delivery fee)")) | |
1183 | 1183 | else { | |
1184 | 1184 | let rest = if (((amt - usdtSpentWithFee) > 0)) | |
1185 | 1185 | then [ScriptTransfer(i.caller, (amt - usdtSpentWithFee), usdtAssetId)] | |
1186 | 1186 | else nil | |
1187 | 1187 | let activitiesAmount = (usdtSpent / 100) | |
1188 | 1188 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1189 | 1189 | $Tuple2(((rest :+ ScriptTransfer(restContract, activitiesAmount, usdtAssetId)) :+ IntegerEntry(deliveryFundKey, (fundTotal + fee))), $Tuple3(whSave, prologResult, statsResult)) | |
1190 | 1190 | } | |
1191 | 1191 | } | |
1192 | 1192 | } | |
1193 | 1193 | } | |
1194 | 1194 | } | |
1195 | 1195 | } | |
1196 | 1196 | ||
1197 | 1197 | ||
1198 | 1198 | ||
1199 | 1199 | @Callable(i) | |
1200 | 1200 | func craftGoods (productIdx,quantity) = { | |
1201 | 1201 | let prologResult = prolog() | |
1202 | 1202 | if ((size(i.payments) != 1)) | |
1203 | 1203 | then throw("exactly 1 payment must be attached") | |
1204 | 1204 | else { | |
1205 | 1205 | let pmt = i.payments[0] | |
1206 | 1206 | let amt = pmt.amount | |
1207 | 1207 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
1208 | 1208 | if ((pmtAssetId != usdtAssetId)) | |
1209 | 1209 | then throw("USDT payments only!") | |
1210 | 1210 | else if ((amt != MULT6)) | |
1211 | 1211 | then throw("exactly 1 USDT must be attached as payment") | |
1212 | 1212 | else if ((0 >= quantity)) | |
1213 | 1213 | then throw("Quantity should be positive") | |
1214 | 1214 | else { | |
1215 | 1215 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1216 | 1216 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1217 | 1217 | if ((curLocation[locIdxType] != "M")) | |
1218 | 1218 | then throw(("Duck location type should be Manufactory, but is " + curLocation[locIdxType])) | |
1219 | 1219 | else { | |
1220 | 1220 | let cont = curLocation[locIdxContinent] | |
1221 | 1221 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
1222 | 1222 | let matList = split(currentPack[bpIdxMat], "_") | |
1223 | 1223 | if (if ((0 > productIdx)) | |
1224 | 1224 | then true | |
1225 | 1225 | else (productIdx >= size(productionMatrix))) | |
1226 | 1226 | then throw(("Unknown product idx=" + toString(productIdx))) | |
1227 | 1227 | else { | |
1228 | 1228 | let recipe = split(productionMatrix[productIdx], "_") | |
1229 | 1229 | if ((size(recipe) != RECIPESIZE)) | |
1230 | 1230 | then throw(("Fatal: unknown recipe: " + productionMatrix[productIdx])) | |
1231 | 1231 | else { | |
1232 | 1232 | let productContIdx = parseIntValue(recipe[rIdxContinent]) | |
1233 | 1233 | if ((continents[productContIdx] != cont)) | |
1234 | 1234 | then throw(((("This product is available in " + continents[productContIdx]) + ", but you are in ") + cont)) | |
1235 | 1235 | else { | |
1236 | 1236 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1237 | 1237 | then nil | |
1238 | 1238 | else split_4C(currentPack[bpIdxProd], "_") | |
1239 | 1239 | func filler (acc,ignoredItem) = { | |
1240 | 1240 | let n = acc._2 | |
1241 | 1241 | let xs = if ((size(prodList) > n)) | |
1242 | 1242 | then prodList[n] | |
1243 | 1243 | else "0" | |
1244 | 1244 | let x = parseIntValue(xs) | |
1245 | 1245 | let amount = (quantity * PRODUCTPKGSIZE) | |
1246 | 1246 | let y = if ((n == productIdx)) | |
1247 | 1247 | then toString((x + amount)) | |
1248 | 1248 | else xs | |
1249 | 1249 | $Tuple2((acc._1 :+ y), (n + 1)) | |
1250 | 1250 | } | |
1251 | 1251 | ||
1252 | 1252 | let bpProd = ( let $l = productionMatrix | |
1253 | 1253 | let $s = size($l) | |
1254 | 1254 | let $acc0 = $Tuple2(nil, 0) | |
1255 | 1255 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1256 | 1256 | then $a | |
1257 | 1257 | else filler($a, $l[$i]) | |
1258 | 1258 | ||
1259 | 1259 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1260 | 1260 | then $a | |
1261 | 1261 | else throw("List size exceeds 50") | |
1262 | 1262 | ||
1263 | 1263 | $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 | |
1264 | 1264 | func producer (acc,j) = { | |
1265 | 1265 | let needMat = (((parseIntValue(recipe[j]) * MULT5) * quantity) * parseIntValue(recipe[rIdxCoeff])) | |
1266 | 1266 | let haveMat = parseIntValue(matList[j]) | |
1267 | 1267 | if ((needMat > haveMat)) | |
1268 | 1268 | then throw(((((((("You have " + fixedPoint(haveMat, 8)) + " of ") + matTypes[j]) + ", but recipe requires ") + fixedPoint(needMat, 8)) + " for quantity ") + toString(quantity))) | |
1269 | 1269 | else if ((needMat > 0)) | |
1270 | 1270 | then $Tuple2((acc._1 :+ toString((haveMat - needMat))), (acc._2 + needMat)) | |
1271 | 1271 | else $Tuple2((acc._1 :+ matList[j]), acc._2) | |
1272 | 1272 | } | |
1273 | 1273 | ||
1274 | 1274 | let merged = { | |
1275 | 1275 | let $l = ITER6 | |
1276 | 1276 | let $s = size($l) | |
1277 | 1277 | let $acc0 = $Tuple2(nil, 0) | |
1278 | 1278 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1279 | 1279 | then $a | |
1280 | 1280 | else producer($a, $l[$i]) | |
1281 | 1281 | ||
1282 | 1282 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1283 | 1283 | then $a | |
1284 | 1284 | else throw("List size exceeds 6") | |
1285 | 1285 | ||
1286 | 1286 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1287 | 1287 | } | |
1288 | 1288 | let newPack = makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], makeString(merged._1, "_"), makeString_2C(bpProd, "_")], ":") | |
1289 | 1289 | let result = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newPack], nil)) | |
1290 | 1290 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpCraft, merged._2, MULT8)], nil)) | |
1291 | 1291 | $Tuple2(nil, $Tuple3(result, prologResult, statsResult)) | |
1292 | 1292 | } | |
1293 | 1293 | } | |
1294 | 1294 | } | |
1295 | 1295 | } | |
1296 | 1296 | } | |
1297 | 1297 | } | |
1298 | 1298 | } | |
1299 | 1299 | ||
1300 | 1300 | ||
1301 | 1301 | ||
1302 | 1302 | @Callable(i) | |
1303 | 1303 | func setWarehouseOrder (newOrderStr,landAssetId) = { | |
1304 | 1304 | let user = i.originCaller | |
1305 | 1305 | let addr = toString(user) | |
1306 | 1306 | let result = if ((user != restContract)) | |
1307 | 1307 | then checkBlocked() | |
1308 | 1308 | else false | |
1309 | 1309 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1310 | 1310 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId))))) | |
1311 | 1311 | then throw((("NFT " + asset.name) + " is not staked")) | |
1312 | 1312 | else { | |
1313 | 1313 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1314 | 1314 | if (if ((user != restContract)) | |
1315 | 1315 | then (owner != addr) | |
1316 | 1316 | else false) | |
1317 | 1317 | then throw((LANDPREFIX + " is not yours")) | |
1318 | 1318 | else { | |
1319 | 1319 | let newOrder = split_4C(newOrderStr, ":") | |
1320 | 1320 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [landAssetId], nil)) | |
1321 | 1321 | let currentWh = split_4C(wh, ":") | |
1322 | 1322 | let loft = split(currentWh[whIdxLOFT], "_") | |
1323 | 1323 | let whTotal = parseIntValue(loft[volTotal]) | |
1324 | 1324 | let ordKey = keyOrderByLand(landAssetId) | |
1325 | 1325 | let currentOrd = getOrder(ordKey) | |
1326 | 1326 | let z = setInternal(currentWh, currentOrd, newOrder) | |
1327 | 1327 | let buyVolSaldo = z._4 | |
1328 | 1328 | let sellVolSaldo = z._5 | |
1329 | 1329 | let whOccupied = z._7 | |
1330 | 1330 | let whLocked = (buyVolSaldo + sellVolSaldo) | |
1331 | 1331 | let whFree = ((whTotal - whOccupied) - whLocked) | |
1332 | 1332 | if ((0 > whFree)) | |
1333 | 1333 | 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")) | |
1334 | 1334 | else { | |
1335 | 1335 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(z._1, "_"), makeString(z._2, "_"), makeString_2C(z._3, "_"), toString(whLocked)], ":") | |
1336 | 1336 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, landAssetId], nil)) | |
1337 | 1337 | let usdSaldo = z._6 | |
1338 | 1338 | let actions = if ((usdSaldo > 0)) | |
1339 | 1339 | then if ((size(i.payments) != 1)) | |
1340 | 1340 | then throw("exactly 1 payment must be attached") | |
1341 | 1341 | else { | |
1342 | 1342 | let pmt = i.payments[0] | |
1343 | 1343 | let amt = pmt.amount | |
1344 | 1344 | let pmtAssetId = valueOrErrorMessage(pmt.assetId, "WAVES can't be used as payment") | |
1345 | 1345 | if ((pmtAssetId != usdtAssetId)) | |
1346 | 1346 | then throw("USDT payments only!") | |
1347 | 1347 | else if ((amt != usdSaldo)) | |
1348 | 1348 | then throw(("Payment needed is " + toString(usdSaldo))) | |
1349 | 1349 | else [StringEntry(ordKey, newOrderStr)] | |
1350 | 1350 | } | |
1351 | 1351 | else if ((usdSaldo == 0)) | |
1352 | 1352 | then if ((size(i.payments) != 0)) | |
1353 | 1353 | then throw("No payments needed") | |
1354 | 1354 | else [StringEntry(ordKey, newOrderStr)] | |
1355 | 1355 | else if ((size(i.payments) != 0)) | |
1356 | 1356 | then throw("No payments needed") | |
1357 | 1357 | else [ScriptTransfer(addressFromStringValue(owner), -(usdSaldo), usdtAssetId), StringEntry(ordKey, newOrderStr)] | |
1358 | 1358 | $Tuple2(actions, $Tuple2(result, whSave)) | |
1359 | 1359 | } | |
1360 | 1360 | } | |
1361 | 1361 | } | |
1362 | 1362 | } | |
1363 | 1363 | ||
1364 | 1364 | ||
1365 | 1365 | ||
1366 | 1366 | @Callable(i) | |
1367 | 1367 | func acceptWarehouseOrder (bpOrderStr,shopLandAssetId,duckAssetId) = { | |
1368 | 1368 | let prologResult = prolog() | |
1369 | 1369 | let caller = i.originCaller | |
1370 | 1370 | let callerAddr = toString(caller) | |
1371 | 1371 | let stakedDuckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked") | |
1372 | 1372 | let curLocation = valueOrElse(getString(stakingContract, keyDuckLocation(stakedDuckAssetId)), DEFAULTLOCATION) | |
1373 | 1373 | let loc = split(value(curLocation), "_") | |
1374 | 1374 | if ((loc[locIdxType] != "L")) | |
1375 | 1375 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1376 | 1376 | else if ((stakedDuckAssetId != duckAssetId)) | |
1377 | 1377 | then throw(((("Your staked duck is " + stakedDuckAssetId) + ", but passed ") + duckAssetId)) | |
1378 | 1378 | else { | |
1379 | 1379 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1380 | 1380 | let currentPack = getBackpack(bpKey) | |
1381 | 1381 | let bpResList = split(currentPack[bpIdxRes], "_") | |
1382 | 1382 | let bpMatList = split(currentPack[bpIdxMat], "_") | |
1383 | 1383 | let bpProdList = if ((currentPack[bpIdxProd] == "")) | |
1384 | 1384 | then nil | |
1385 | 1385 | else split_4C(currentPack[bpIdxProd], "_") | |
1386 | 1386 | let $t05314853388 = acceptShopOrderCommon(shopLandAssetId, callerAddr, bpOrderStr, bpResList, bpMatList, bpProdList) | |
1387 | 1387 | let shopAction = $t05314853388._1 | |
1388 | 1388 | let newUserRes = $t05314853388._2 | |
1389 | 1389 | let newUserMat = $t05314853388._3 | |
1390 | 1390 | let newUserProd = $t05314853388._4 | |
1391 | 1391 | let usdWh2BpSaldo = $t05314853388._5 | |
1392 | 1392 | let usdBp2WhSaldo = $t05314853388._6 | |
1393 | 1393 | let xpAmount = $t05314853388._7 | |
1394 | 1394 | let shopLandOwner = $t05314853388._8 | |
1395 | 1395 | let shopWhSave = $t05314853388._9 | |
1396 | 1396 | let accStatsResult = $t05314853388._10 | |
1397 | 1397 | let actions1 = [shopAction, shop2userActions(usdWh2BpSaldo, callerAddr, 0)] | |
1398 | 1398 | let actions2 = user2shopActions(usdBp2WhSaldo, i.payments, shopLandOwner, 0) | |
1399 | 1399 | let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(newUserRes, "_"), makeString(newUserMat, "_"), makeString_2C(newUserProd, "_")], ":") | |
1400 | 1400 | let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)) | |
1401 | 1401 | let duckStatsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpShop, xpAmount, MULT8)], nil)) | |
1402 | 1402 | $Tuple2((actions1 ++ actions2), $Tuple5(prologResult, shopWhSave, bpSave, duckStatsResult, accStatsResult)) | |
1403 | 1403 | } | |
1404 | 1404 | } | |
1405 | 1405 | ||
1406 | 1406 | ||
1407 | 1407 | ||
1408 | 1408 | @Callable(i) | |
1409 | 1409 | func acceptShopOrderDuckDelivery (orderStr,shopLandAssetId) = if (!(KS_ALLOW_DELIVERY)) | |
1410 | 1410 | then throw("Delivery feature is turned off!") | |
1411 | 1411 | else { | |
1412 | 1412 | let prologResult = prolog() | |
1413 | 1413 | let caller = i.originCaller | |
1414 | 1414 | let callerAddr = toString(caller) | |
1415 | 1415 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(callerAddr)), "You don't have a duck staked") | |
1416 | 1416 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1417 | 1417 | let currentPack = getBackpack(bpKey) | |
1418 | 1418 | let bpResList = split(currentPack[bpIdxRes], "_") | |
1419 | 1419 | let bpMatList = split(currentPack[bpIdxMat], "_") | |
1420 | 1420 | let bpProdList = if ((currentPack[bpIdxProd] == "")) | |
1421 | 1421 | then nil | |
1422 | 1422 | else split_4C(currentPack[bpIdxProd], "_") | |
1423 | 1423 | let $t05482755065 = acceptShopOrderCommon(shopLandAssetId, callerAddr, orderStr, bpResList, bpMatList, bpProdList) | |
1424 | 1424 | let shopAction = $t05482755065._1 | |
1425 | 1425 | let newUserRes = $t05482755065._2 | |
1426 | 1426 | let newUserMat = $t05482755065._3 | |
1427 | 1427 | let newUserProd = $t05482755065._4 | |
1428 | 1428 | let usdWh2BpSaldo = $t05482755065._5 | |
1429 | 1429 | let usdBp2WhSaldo = $t05482755065._6 | |
1430 | 1430 | let xpAmount = $t05482755065._7 | |
1431 | 1431 | let shopLandOwner = $t05482755065._8 | |
1432 | 1432 | let shopWhSave = $t05482755065._9 | |
1433 | 1433 | let accStatsResult = $t05482755065._10 | |
1434 | 1434 | let deliveryFeePart = fraction((usdBp2WhSaldo + usdWh2BpSaldo), DELIVERY_FEE, MULT6) | |
1435 | 1435 | let deliveryFee = if ((MIN_USDT_FEE_DELIVERY > deliveryFeePart)) | |
1436 | 1436 | then MIN_USDT_FEE_DELIVERY | |
1437 | 1437 | else deliveryFeePart | |
1438 | 1438 | let spentFee = fraction(deliveryFee, usdBp2WhSaldo, (usdBp2WhSaldo + usdWh2BpSaldo)) | |
1439 | 1439 | let receivedFee = (deliveryFee - spentFee) | |
1440 | 1440 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1441 | 1441 | let actions1 = [shopAction, shop2userActions(usdWh2BpSaldo, callerAddr, receivedFee)] | |
1442 | 1442 | let actions2 = user2shopActions(usdBp2WhSaldo, i.payments, shopLandOwner, spentFee) | |
1443 | 1443 | let newBpStr = makeString_2C([currentPack[bpIdxLevel], makeString(newUserRes, "_"), makeString(newUserMat, "_"), makeString_2C(newUserProd, "_")], ":") | |
1444 | 1444 | let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)) | |
1445 | 1445 | let duckStatsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpShop, xpAmount, MULT8)], nil)) | |
1446 | 1446 | $Tuple2(((actions1 ++ actions2) :+ IntegerEntry(deliveryFundKey, (fundTotal + deliveryFee))), $Tuple5(prologResult, shopWhSave, bpSave, duckStatsResult, accStatsResult)) | |
1447 | 1447 | } | |
1448 | 1448 | ||
1449 | 1449 | ||
1450 | 1450 | ||
1451 | 1451 | @Callable(i) | |
1452 | 1452 | func acceptShopOrderLandDelivery (orderStr,shopLandAssetId,myLandAssetId) = if (!(KS_ALLOW_DELIVERY)) | |
1453 | 1453 | then throw("Delivery feature is turned off!") | |
1454 | 1454 | else { | |
1455 | 1455 | let prologResult = prolog() | |
1456 | 1456 | let caller = i.originCaller | |
1457 | 1457 | let callerAddr = toString(caller) | |
1458 | 1458 | let asset = value(assetInfo(fromBase58String(myLandAssetId))) | |
1459 | 1459 | if (!(isDefined(getInteger(stakingContract, keyStakedTimeByAssetId(myLandAssetId))))) | |
1460 | 1460 | then throw((("NFT " + asset.name) + " is not staked")) | |
1461 | 1461 | else { | |
1462 | 1462 | let owner = valueOrErrorMessage(getString(stakingContract, keyLandAssetIdToOwner(myLandAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1463 | 1463 | if ((owner != callerAddr)) | |
1464 | 1464 | then throw((LANDPREFIX + " is not yours")) | |
1465 | 1465 | else { | |
1466 | 1466 | let wh = asString(invoke(stakingContract, "getWarehouseREADONLY", [myLandAssetId], nil)) | |
1467 | 1467 | let currentWh = split_4C(wh, ":") | |
1468 | 1468 | let resList = split(currentWh[whIdxRes], "_") | |
1469 | 1469 | let matList = split(currentWh[whIdxMat], "_") | |
1470 | 1470 | let prodList = if ((currentWh[whIdxProd] == "")) | |
1471 | 1471 | then nil | |
1472 | 1472 | else split(currentWh[whIdxProd], "_") | |
1473 | 1473 | let $t05730457536 = acceptShopOrderCommon(shopLandAssetId, callerAddr, orderStr, resList, matList, prodList) | |
1474 | 1474 | let shopAction = $t05730457536._1 | |
1475 | 1475 | let newUserRes = $t05730457536._2 | |
1476 | 1476 | let newUserMat = $t05730457536._3 | |
1477 | 1477 | let newUserProd = $t05730457536._4 | |
1478 | 1478 | let usdWh2BpSaldo = $t05730457536._5 | |
1479 | 1479 | let usdBp2WhSaldo = $t05730457536._6 | |
1480 | 1480 | let xpAmount = $t05730457536._7 | |
1481 | 1481 | let shopLandOwner = $t05730457536._8 | |
1482 | 1482 | let shopWhSave = $t05730457536._9 | |
1483 | 1483 | let accStatsResult = $t05730457536._10 | |
1484 | 1484 | let deliveryFeePart = fraction((usdBp2WhSaldo + usdWh2BpSaldo), DELIVERY_FEE, MULT6) | |
1485 | 1485 | let deliveryFee = if ((MIN_USDT_FEE_DELIVERY > deliveryFeePart)) | |
1486 | 1486 | then MIN_USDT_FEE_DELIVERY | |
1487 | 1487 | else deliveryFeePart | |
1488 | 1488 | let spentFee = fraction(deliveryFee, usdBp2WhSaldo, (usdBp2WhSaldo + usdWh2BpSaldo)) | |
1489 | 1489 | let receivedFee = (deliveryFee - spentFee) | |
1490 | 1490 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1491 | 1491 | let actions1 = [shopAction, shop2userActions(usdWh2BpSaldo, callerAddr, receivedFee)] | |
1492 | 1492 | let actions2 = user2shopActions(usdBp2WhSaldo, i.payments, shopLandOwner, spentFee) | |
1493 | 1493 | let whStr = makeString_2C([currentWh[whIdxLevels], makeString(newUserRes, "_"), makeString(newUserMat, "_"), makeString(newUserProd, "_"), currentWh[whIdxLOFT]], ":") | |
1494 | 1494 | let whSave = asString(invoke(stakingContract, "saveWarehouse", [whStr, myLandAssetId], nil)) | |
1495 | 1495 | let statsResult = asInt(invoke(stakingContract, "updateAccStats", [callerAddr, fraction(xpShop, xpAmount, MULT8)], nil)) | |
1496 | 1496 | $Tuple2(((actions1 ++ actions2) :+ IntegerEntry(deliveryFundKey, (fundTotal + deliveryFee))), $Tuple5(prologResult, shopWhSave, whSave, statsResult, accStatsResult)) | |
1497 | 1497 | } | |
1498 | 1498 | } | |
1499 | 1499 | } | |
1500 | 1500 | ||
1501 | 1501 | ||
1502 | 1502 | ||
1503 | 1503 | @Callable(i) | |
1504 | 1504 | func sellProductsToES (amounts) = { | |
1505 | 1505 | let prologResult = prolog() | |
1506 | 1506 | if ((size(i.payments) != 0)) | |
1507 | 1507 | then throw("No payments needed") | |
1508 | 1508 | else { | |
1509 | 1509 | let duckAssetId = valueOrErrorMessage(getString(stakingContract, keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1510 | 1510 | let curLocation = split(valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1511 | 1511 | if ((curLocation[locIdxType] != "A")) | |
1512 | 1512 | then throw(("Duck location type should be Airport, but is " + curLocation[locIdxType])) | |
1513 | 1513 | else { | |
1514 | 1514 | let currentPack = getBackpack(keyBackpackByDuck(duckAssetId)) | |
1515 | 1515 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1516 | 1516 | then nil | |
1517 | 1517 | else split_4C(currentPack[bpIdxProd], "_") | |
1518 | 1518 | let esKey = keyEsWarehouse() | |
1519 | 1519 | let existStr = getString(esKey) | |
1520 | 1520 | let existAmounts = if (isDefined(existStr)) | |
1521 | 1521 | then split_4C(value(existStr), "_") | |
1522 | 1522 | else nil | |
1523 | 1523 | func moveProd (acc,recipeStr) = { | |
1524 | 1524 | let j = acc._1 | |
1525 | 1525 | let quantity = if ((size(amounts) > j)) | |
1526 | 1526 | then amounts[j] | |
1527 | 1527 | else 0 | |
1528 | 1528 | if ((0 > quantity)) | |
1529 | 1529 | then throw("Quantity cannot be negative") | |
1530 | 1530 | else { | |
1531 | 1531 | let recipe = split(recipeStr, "_") | |
1532 | 1532 | if ((size(recipe) != RECIPESIZE)) | |
1533 | 1533 | then throw(("Fatal: unknown recipe: " + recipeStr)) | |
1534 | 1534 | else { | |
1535 | 1535 | let maxAmount = (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
1536 | 1536 | let existAmount = if ((size(existAmounts) > j)) | |
1537 | 1537 | then parseIntValue(existAmounts[j]) | |
1538 | 1538 | else 0 | |
1539 | 1539 | let canBuy = (maxAmount - existAmount) | |
1540 | 1540 | if ((quantity > canBuy)) | |
1541 | 1541 | then throw(((("Warehouse can buy only " + toString(canBuy)) + " of ") + prodTypes[j])) | |
1542 | 1542 | else { | |
1543 | 1543 | let totalMat = getRecipeMaterials(recipe) | |
1544 | 1544 | let unitPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1545 | 1545 | let bpProdAmount = if ((size(prodList) > j)) | |
1546 | 1546 | then parseIntValue(prodList[j]) | |
1547 | 1547 | else 0 | |
1548 | 1548 | if ((quantity > bpProdAmount)) | |
1549 | 1549 | then throw(((("You have only " + toString(bpProdAmount)) + " of ") + prodTypes[j])) | |
1550 | 1550 | else $Tuple5((j + 1), (acc._2 + (unitPrice * quantity)), (acc._3 :+ toString((bpProdAmount - quantity))), (acc._4 :+ toString((existAmount + quantity))), (acc._5 + (totalMat * quantity))) | |
1551 | 1551 | } | |
1552 | 1552 | } | |
1553 | 1553 | } | |
1554 | 1554 | } | |
1555 | 1555 | ||
1556 | 1556 | let merged = { | |
1557 | 1557 | let $l = productionMatrix | |
1558 | 1558 | let $s = size($l) | |
1559 | 1559 | let $acc0 = $Tuple5(0, 0, nil, nil, 0) | |
1560 | 1560 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1561 | 1561 | then $a | |
1562 | 1562 | else moveProd($a, $l[$i]) | |
1563 | 1563 | ||
1564 | 1564 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1565 | 1565 | then $a | |
1566 | 1566 | else throw("List size exceeds 50") | |
1567 | 1567 | ||
1568 | 1568 | $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) | |
1569 | 1569 | } | |
1570 | 1570 | let newBpStr = makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString_2C(merged._3, "_")], ":") | |
1571 | 1571 | let bpSave = asString(invoke(stakingContract, "updateBackpack", [duckAssetId, newBpStr], nil)) | |
1572 | 1572 | let statsResult = asInt(invoke(stakingContract, "updateDuckStats", [duckAssetId, fraction(xpSellToEs, merged._5, (MULT8 * 10))], nil)) | |
1573 | 1573 | $Tuple2([StringEntry(esKey, makeString_2C(merged._4, "_")), ScriptTransfer(i.caller, merged._2, usdtAssetId)], $Tuple3(bpSave, prologResult, statsResult)) | |
1574 | 1574 | } | |
1575 | 1575 | } | |
1576 | 1576 | } | |
1577 | 1577 | ||
1578 | 1578 | ||
1579 | 1579 | ||
1580 | 1580 | @Callable(i) | |
1581 | 1581 | func updateEsStorage (newStorage) = if ((i.caller != stakingContract)) | |
1582 | 1582 | then throw("Permission denied") | |
1583 | 1583 | else $Tuple2([StringEntry(keyEsWarehouse(), newStorage)], newStorage) | |
1584 | 1584 | ||
1585 | 1585 | ||
1586 | 1586 | ||
1587 | 1587 | @Callable(i) | |
1588 | 1588 | func updateDeliveryLocked (newAmount) = if ((i.caller != stakingContract)) | |
1589 | 1589 | then throw("Permission denied") | |
1590 | 1590 | else $Tuple2([IntegerEntry(deliveryLockedKey, newAmount)], newAmount) | |
1591 | 1591 | ||
1592 | 1592 | ||
1593 | 1593 | ||
1594 | 1594 | @Callable(i) | |
1595 | 1595 | func sendDeliveryReward (addr) = if ((i.caller != stakingContract)) | |
1596 | 1596 | then throw("Permission denied") | |
1597 | 1597 | else { | |
1598 | 1598 | let fundTotal = valueOrElse(getInteger(deliveryFundKey), 0) | |
1599 | 1599 | let lockedTotal = valueOrElse(getInteger(deliveryLockedKey), 0) | |
1600 | 1600 | $Tuple2([ScriptTransfer(addressFromStringValue(addr), MIN_USDT_FEE_DELIVERY, usdtAssetId), IntegerEntry(deliveryFundKey, (fundTotal - MIN_USDT_FEE_DELIVERY)), IntegerEntry(deliveryLockedKey, (lockedTotal - MIN_USDT_FEE_DELIVERY))], MIN_USDT_FEE_DELIVERY) | |
1601 | 1601 | } | |
1602 | 1602 | ||
1603 | 1603 |
github/deemru/w8io/169f3d6 206.07 ms ◑