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