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