tx · 61mWhTJ6ootfGoKXpB9Uq2bWGBdaDTRB5LBbUgs6P88a 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep: -0.03600000 Waves 2023.07.31 15:26 [2690058] smart account 3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep > SELF 0.00000000 Waves
{ "type": 13, "id": "61mWhTJ6ootfGoKXpB9Uq2bWGBdaDTRB5LBbUgs6P88a", "fee": 3600000, "feeAssetId": null, "timestamp": 1690806445697, "version": 2, "chainId": 84, "sender": "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep", "senderPublicKey": "7v5L7QkXxfkirALdyqmox38QCsa9jtfAtgUfHTh34eWq", "proofs": [ "5U9zqjS3QcyJVMuX8iuMBBYPsPX9rQPg9m6vgxQQCyKy8h46P6XeGHnNqnJuvRXSREb7YF8GYwd5To1A8CQL3NeQ" ], "script": "base64:BgI7CAISBAoCCBgSAwoBCBIECgIRERIECgIRERIDCgEREgQKAgEBEgQKAggIEgUKAwgICBIDCgEREgMKAQhSAAd4cFRyYWRlAJBOAAd4cENyYWZ0AJBOAAp4cFNlbGxUb0VzAJBOAAZ4cFNob3AAkE4ACkxBTkRQUkVGSVgCBExBTkQABk5VTVJFUwAGAA9ERUZBVUxUTE9DQVRJT04CD0FmcmljYV9GX0FmcmljYQAQUkVTT1VSQ0VQUklDRU1JTgDVtQIADUVTTUFYUEFDS0FHRVMAAwAJRVNCVVlDT0VGAAQACHJlc1R5cGVzCQDMCAICA09pbAkAzAgCAgNPcmUJAMwIAgIEV29vZAkAzAgCAgRTYW5kCQDMCAICBENsYXkJAMwIAgIHT3JnYW5pYwUDbmlsAAhtYXRUeXBlcwkAzAgCAgRGdWVsCQDMCAICBU1ldGFsCQDMCAICBVBsYW5rCQDMCAICBUdsYXNzCQDMCAICB1BsYXN0aWMJAMwIAgIHUHJvdGVpbgUDbmlsAAlwcm9kVHlwZXMJAMwIAgIQRmlyc3QgQWlkIEtpdCBMMQkAzAgCAhBGaXJzdCBBaWQ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9zdGFraW5nQ29udHJhY3QJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQ5rZXlFc1dhcmVob3VzZQAFCm5ld1N0b3JhZ2UFA25pbAUKbmV3U3RvcmFnZQCCLlIA", "height": 2690058, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HW4dRmCJDYAvUEa4oKK9YLu6UBXScVKcSirNFsCwvvta Next: Gt715AXgjyyUeq3fSX3czVf8VE4tjAac4vUHmiv6bmp5 Diff:
Old | New | Differences | |
---|---|---|---|
1008 | 1008 | then throw(((("Warehouse can buy only " + toString(ej)) + " of ") + m[bs])) | |
1009 | 1009 | else { | |
1010 | 1010 | let ek = W(X) | |
1011 | - | let el = fraction((ek * j), h, ( | |
1011 | + | let el = fraction((ek * j), h, (ae * t)) | |
1012 | 1012 | let em = if ((size(cU) > bs)) | |
1013 | 1013 | then parseIntValue(cU[bs]) | |
1014 | 1014 | else 0 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 10000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | let c = 10000 | |
9 | 9 | ||
10 | 10 | let d = 10000 | |
11 | 11 | ||
12 | 12 | let e = "LAND" | |
13 | 13 | ||
14 | 14 | let f = 6 | |
15 | 15 | ||
16 | 16 | let g = "Africa_F_Africa" | |
17 | 17 | ||
18 | 18 | let h = 39637 | |
19 | 19 | ||
20 | 20 | let i = 3 | |
21 | 21 | ||
22 | 22 | let j = 4 | |
23 | 23 | ||
24 | 24 | let k = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
25 | 25 | ||
26 | 26 | let l = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
27 | 27 | ||
28 | 28 | let m = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
29 | 29 | ||
30 | 30 | let n = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
31 | 31 | ||
32 | 32 | let o = 10000000 | |
33 | 33 | ||
34 | 34 | let p = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201"] | |
35 | 35 | ||
36 | 36 | let q = 6 | |
37 | 37 | ||
38 | 38 | let r = 7 | |
39 | 39 | ||
40 | 40 | let s = 11 | |
41 | 41 | ||
42 | 42 | let t = 10 | |
43 | 43 | ||
44 | 44 | let u = 0 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 3 | |
51 | 51 | ||
52 | 52 | let y = 4 | |
53 | 53 | ||
54 | 54 | let z = 0 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 0 | |
59 | 59 | ||
60 | 60 | let C = 1 | |
61 | 61 | ||
62 | 62 | let D = 2 | |
63 | 63 | ||
64 | 64 | let E = 3 | |
65 | 65 | ||
66 | 66 | func F (G) = ("nftOwner_" + G) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func H (G) = ("stakedTime_" + G) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func I (J) = ("accRefBy_" + J) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func K (L) = ("stakedDuckByOwner_" + L) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func M (N) = ("backPack_" + N) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func O (N) = ("duckLocation_" + N) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func P () = "contractsBlocked" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func Q (R) = ("landOrder_" + R) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "emergencyWarehouseProducts" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | let T = 0 | |
94 | 94 | ||
95 | 95 | let U = 1 | |
96 | 96 | ||
97 | 97 | let V = 2 | |
98 | 98 | ||
99 | 99 | func W (X) = (parseIntValue(X[q]) * o) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let Y = take(drop(this.bytes, 1), 1) | |
103 | 103 | ||
104 | 104 | let Z = { | |
105 | 105 | let aa = Y | |
106 | 106 | if ((base58'2W' == aa)) | |
107 | 107 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
108 | 108 | else if ((base58'2T' == aa)) | |
109 | 109 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
110 | 110 | else throw("Unknown chain") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | let ab = { | |
114 | 114 | let aa = Y | |
115 | 115 | if ((base58'2W' == aa)) | |
116 | 116 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
117 | 117 | else if ((base58'2T' == aa)) | |
118 | 118 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
119 | 119 | else throw("Unknown chain") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | let ac = "__" | |
123 | 123 | ||
124 | 124 | let ad = 1000000 | |
125 | 125 | ||
126 | 126 | let ae = 100000000 | |
127 | 127 | ||
128 | 128 | let af = 10000000000 | |
129 | 129 | ||
130 | 130 | let ag = 100000 | |
131 | 131 | ||
132 | 132 | func ah (ai,aj) = valueOrErrorMessage(getString(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | let ak = 1 | |
136 | 136 | ||
137 | 137 | func al () = "%s__restConfig" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func am () = "%s__restAddr" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func an (ao) = split_4C(ah(ao, al()), ac) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ap (aq,ar) = valueOrErrorMessage(addressFromString(aq[ar]), ("Rest cfg doesn't contain address at index " + toString(ar))) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let as = addressFromStringValue(valueOrElse(getString(this, am()), ab)) | |
150 | 150 | ||
151 | 151 | let aq = an(as) | |
152 | 152 | ||
153 | 153 | let at = ap(aq, ak) | |
154 | 154 | ||
155 | 155 | func au (av) = { | |
156 | 156 | let aa = av | |
157 | 157 | if ($isInstanceOf(aa, "String")) | |
158 | 158 | then { | |
159 | 159 | let aw = aa | |
160 | 160 | aw | |
161 | 161 | } | |
162 | 162 | else throw("fail to cast into String") | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ax (av) = { | |
167 | 167 | let aa = av | |
168 | 168 | if ($isInstanceOf(aa, "Int")) | |
169 | 169 | then { | |
170 | 170 | let ay = aa | |
171 | 171 | ay | |
172 | 172 | } | |
173 | 173 | else throw("fail to cast into Int") | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func az (aA,aB) = { | |
178 | 178 | let aC = pow(10, 0, aB, 0, 0, DOWN) | |
179 | 179 | ((toString((aA / aC)) + ".") + toString((aA % aC))) | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | let aD = 10000000000 | |
184 | 184 | ||
185 | 185 | let aE = 200 | |
186 | 186 | ||
187 | 187 | let aF = 300 | |
188 | 188 | ||
189 | 189 | let aG = 10000 | |
190 | 190 | ||
191 | 191 | func aH (aI,aJ) = ((("factoryWhByContinentAndRes_" + aI) + "_") + toString(aJ)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | let aK = 0 | |
195 | 195 | ||
196 | 196 | let aL = 1 | |
197 | 197 | ||
198 | 198 | let aM = 2 | |
199 | 199 | ||
200 | 200 | func aN (aO) = { | |
201 | 201 | let aP = split(valueOrElse(getString(aO), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"), ":") | |
202 | 202 | [if ((size(split(aP[aK], "_")) == f)) | |
203 | 203 | then aP[aK] | |
204 | 204 | else "0@0_0@0_0@0_0@0_0@0_0@0", if ((size(split(aP[aL], "_")) == f)) | |
205 | 205 | then aP[aL] | |
206 | 206 | else "0@0_0@0_0@0_0@0_0@0_0@0", aP[aM]] | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aQ (aR,aS,aT) = if (aT) | |
211 | 211 | then { | |
212 | 212 | let aU = if ((aR >= 0)) | |
213 | 213 | then (((aR + aS) - 1) / aS) | |
214 | 214 | else -((((-(aR) + aS) - 1) / aS)) | |
215 | 215 | (aU * ae) | |
216 | 216 | } | |
217 | 217 | else aR | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aV (aW,aJ,aR,aX) = { | |
221 | 221 | let aY = aH(aW, aJ) | |
222 | 222 | let aZ = valueOrElse(getInteger(aY), 0) | |
223 | 223 | let ba = if ((aZ > aD)) | |
224 | 224 | then 0 | |
225 | 225 | else if (((aZ + aR) > aD)) | |
226 | 226 | then (aD - aZ) | |
227 | 227 | else aR | |
228 | 228 | let bb = (fraction(ba, ((aE * h) - fraction(((100 * aZ) + (50 * ba)), h, aD)), af) + fraction((aR - ba), h, ae)) | |
229 | 229 | let bc = (aX - (aX / 100)) | |
230 | 230 | if (((bc * aR) > (bb * ae))) | |
231 | 231 | then throw((((((((((("Actual price = " + toString(bb)) + " / ") + toString(aR)) + " < minPrice = ") + toString(aX)) + ", (") + aW) + ", ") + k[aJ]) + ")")) | |
232 | 232 | else $Tuple2(IntegerEntry(aY, (aZ + aR)), bb) | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bd (aW,be,aR,bf) = { | |
237 | 237 | let aY = aH(aW, be) | |
238 | 238 | let aZ = valueOrElse(getInteger(aY), 0) | |
239 | 239 | let bg = if ((aZ > aD)) | |
240 | 240 | then min([aR, (aZ - aD)]) | |
241 | 241 | else 0 | |
242 | 242 | let bh = min([aZ, (aR - bg)]) | |
243 | 243 | let bi = (bh + bg) | |
244 | 244 | let bj = (fraction(bh, ((aF * h) - fraction(((100 * aZ) - (50 * bh)), h, aD)), af) + fraction(bg, (2 * h), ae)) | |
245 | 245 | let bk = (bf + (bf / 100)) | |
246 | 246 | if (((bj * ae) > (bk * bi))) | |
247 | 247 | then throw((((((((((("Actual price = " + toString(bj)) + " / ") + toString(bi)) + " > maxPrice = ") + toString(bf)) + ", (") + aW) + ", ") + l[be]) + ")")) | |
248 | 248 | else $Tuple3(IntegerEntry(aY, (aZ - bi)), bj, bi) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func bl (bm) = { | |
253 | 253 | let aP = split(valueOrElse(getString(at, bm), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
254 | 254 | [toString(valueOrElse(parseInt(aP[B]), 0)), if ((size(split(aP[C], "_")) == f)) | |
255 | 255 | then aP[C] | |
256 | 256 | else "0_0_0_0_0_0", if ((size(split(aP[D], "_")) == f)) | |
257 | 257 | then aP[D] | |
258 | 258 | else "0_0_0_0_0_0", aP[E]] | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bn () = if (valueOrElse(getBoolean(at, P()), false)) | |
263 | 263 | then throw("Contracts are under maintenance") | |
264 | 264 | else unit | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func bo () = ax(invoke(at, "saveLastTx", nil, nil)) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func bp (bq,br) = { | |
271 | 271 | let bs = bq._1 | |
272 | 272 | let bt = bq._8 | |
273 | 273 | let bu = split(br, "@") | |
274 | 274 | if ((size(bu) != 2)) | |
275 | 275 | then throw("Incorrect order format, should be amount@price") | |
276 | 276 | else { | |
277 | 277 | let bv = parseIntValue(bu[0]) | |
278 | 278 | let bw = parseIntValue(bu[1]) | |
279 | 279 | let bx = fraction(bv, bw, ae) | |
280 | 280 | let by = aQ(bv, t, bt) | |
281 | 281 | let bz = if ((size(bq._6) > bs)) | |
282 | 282 | then parseIntValue(bq._6[bs]) | |
283 | 283 | else 0 | |
284 | 284 | let bA = split(if ((size(bq._7) > bs)) | |
285 | 285 | then bq._7[bs] | |
286 | 286 | else "0@0", "@") | |
287 | 287 | let bB = parseIntValue(bA[0]) | |
288 | 288 | let bC = parseIntValue(bA[1]) | |
289 | 289 | if (if ((0 > bC)) | |
290 | 290 | then true | |
291 | 291 | else (0 > bw)) | |
292 | 292 | then throw("Price can't be negative") | |
293 | 293 | else { | |
294 | 294 | let bD = fraction(bB, bC, ae) | |
295 | 295 | if ((bv == 0)) | |
296 | 296 | then if ((bB > 0)) | |
297 | 297 | then $Tuple9((bs + 1), (bq._2 :+ toString(bz)), bq._3, bq._4, (bq._5 - bD), bq._6, bq._7, bt, (bq._9 + aQ(bz, t, bt))) | |
298 | 298 | else $Tuple9((bs + 1), (bq._2 :+ toString((bz - bB))), bq._3, bq._4, bq._5, bq._6, bq._7, bt, (bq._9 + aQ((bz - bB), t, bt))) | |
299 | 299 | else if ((bv > 0)) | |
300 | 300 | then if ((0 > bB)) | |
301 | 301 | then $Tuple9((bs + 1), (bq._2 :+ toString((bz - bB))), (bq._3 + by), bq._4, (bq._5 + bx), bq._6, bq._7, bt, aQ((bz - bB), t, bt)) | |
302 | 302 | else $Tuple9((bs + 1), (bq._2 :+ toString(bz)), (bq._3 + by), bq._4, ((bq._5 + bx) - bD), bq._6, bq._7, bt, aQ(bz, t, bt)) | |
303 | 303 | else if ((0 > bB)) | |
304 | 304 | then { | |
305 | 305 | let bE = (bB - bv) | |
306 | 306 | if ((0 > (bz - bE))) | |
307 | 307 | then throw((((("Attempt to take " + toString(bE)) + " from warehouse, but only ") + toString(bz)) + " available")) | |
308 | 308 | else $Tuple9((bs + 1), (bq._2 :+ toString((bz - bE))), bq._3, (bq._4 - by), bq._5, bq._6, bq._7, bt, aQ((bz - bE), t, bt)) | |
309 | 309 | } | |
310 | 310 | else if ((0 > (bz + bv))) | |
311 | 311 | then throw((((("Attempt to take " + toString(-(bv))) + " from warehouse, but only ") + toString(bz)) + " available")) | |
312 | 312 | else $Tuple9((bs + 1), (bq._2 :+ toString((bz + bv))), bq._3, (bq._4 - by), (bq._5 - bD), bq._6, bq._7, bt, aQ((bz + bv), t, bt)) | |
313 | 313 | } | |
314 | 314 | } | |
315 | 315 | } | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | func bF (bG,bH,bI) = { | |
319 | 319 | let bJ = split(bG[v], "_") | |
320 | 320 | let bK = split(bG[w], "_") | |
321 | 321 | let bL = if ((bG[x] == "")) | |
322 | 322 | then nil | |
323 | 323 | else split(bG[x], "_") | |
324 | 324 | let bM = split(bH[aK], "_") | |
325 | 325 | let bN = split(bH[aL], "_") | |
326 | 326 | let bO = if ((bH[aM] == "")) | |
327 | 327 | then nil | |
328 | 328 | else split(bH[aM], "_") | |
329 | 329 | if ((size(bI) != 3)) | |
330 | 330 | then throw("newOrderStr should contain exactly 2 ':' separators") | |
331 | 331 | else { | |
332 | 332 | let bP = split(bI[0], "_") | |
333 | 333 | let bQ = split(bI[1], "_") | |
334 | 334 | let bR = if ((bI[2] == "")) | |
335 | 335 | then nil | |
336 | 336 | else split(bI[2], "_") | |
337 | 337 | if ((size(bP) != f)) | |
338 | 338 | then throw("All 6 resources should be passed") | |
339 | 339 | else if ((size(bQ) != f)) | |
340 | 340 | then throw("All 6 materials should be passed") | |
341 | 341 | else { | |
342 | 342 | let bS = { | |
343 | 343 | let bT = bP | |
344 | 344 | let bU = size(bT) | |
345 | 345 | let bV = $Tuple9(0, nil, 0, 0, 0, bJ, bM, false, 0) | |
346 | 346 | func bW (bX,bY) = if ((bY >= bU)) | |
347 | 347 | then bX | |
348 | 348 | else bp(bX, bT[bY]) | |
349 | 349 | ||
350 | 350 | func bZ (bX,bY) = if ((bY >= bU)) | |
351 | 351 | then bX | |
352 | 352 | else throw("List size exceeds 6") | |
353 | 353 | ||
354 | 354 | bZ(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6) | |
355 | 355 | } | |
356 | 356 | let bi = { | |
357 | 357 | let bT = bQ | |
358 | 358 | let bU = size(bT) | |
359 | 359 | let bV = $Tuple9(0, nil, bS._3, bS._4, bS._5, bK, bN, false, bS._9) | |
360 | 360 | func ca (bX,bY) = if ((bY >= bU)) | |
361 | 361 | then bX | |
362 | 362 | else bp(bX, bT[bY]) | |
363 | 363 | ||
364 | 364 | func cb (bX,bY) = if ((bY >= bU)) | |
365 | 365 | then bX | |
366 | 366 | else throw("List size exceeds 6") | |
367 | 367 | ||
368 | 368 | cb(ca(ca(ca(ca(ca(ca(bV, 0), 1), 2), 3), 4), 5), 6) | |
369 | 369 | } | |
370 | 370 | let aP = if ((size(bR) != 0)) | |
371 | 371 | then { | |
372 | 372 | let bT = bR | |
373 | 373 | let bU = size(bT) | |
374 | 374 | let bV = $Tuple9(0, nil, bi._3, bi._4, bi._5, bL, bO, true, bi._9) | |
375 | 375 | func cc (bX,bY) = if ((bY >= bU)) | |
376 | 376 | then bX | |
377 | 377 | else bp(bX, bT[bY]) | |
378 | 378 | ||
379 | 379 | func cd (bX,bY) = if ((bY >= bU)) | |
380 | 380 | then bX | |
381 | 381 | else throw("List size exceeds 50") | |
382 | 382 | ||
383 | 383 | cd(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(bV, 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) | |
384 | 384 | } | |
385 | 385 | else $Tuple9(0, bL, bi._3, bi._4, bi._5, bL, bO, true, bi._9) | |
386 | 386 | $Tuple7(bS._2, bi._2, aP._2, aP._3, aP._4, aP._5, aP._9) | |
387 | 387 | } | |
388 | 388 | } | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func ce (bq,cf) = { | |
393 | 393 | let bs = bq._7 | |
394 | 394 | let bt = bq._12 | |
395 | 395 | let cg = split(cf, "@") | |
396 | 396 | if ((size(cg) != 2)) | |
397 | 397 | then throw("Incorrect order format, should be amount@price") | |
398 | 398 | else { | |
399 | 399 | let ch = parseIntValue(cg[0]) | |
400 | 400 | let ci = parseIntValue(cg[1]) | |
401 | 401 | if ((0 > ci)) | |
402 | 402 | then throw("Price can't be negative") | |
403 | 403 | else { | |
404 | 404 | let cj = fraction(ch, ci, ae) | |
405 | 405 | let ck = if ((size(bq._8) > bs)) | |
406 | 406 | then parseIntValue(bq._8[bs]) | |
407 | 407 | else 0 | |
408 | 408 | let bz = if ((size(bq._9) > bs)) | |
409 | 409 | then parseIntValue(bq._9[bs]) | |
410 | 410 | else 0 | |
411 | 411 | let cl = if ((size(bq._10) > bs)) | |
412 | 412 | then bq._10[bs] | |
413 | 413 | else "0@0" | |
414 | 414 | let cm = split(cl, "@") | |
415 | 415 | let cn = parseIntValue(cm[0]) | |
416 | 416 | let co = parseIntValue(cm[1]) | |
417 | 417 | if (if ((ch != 0)) | |
418 | 418 | then (ci != co) | |
419 | 419 | else false) | |
420 | 420 | then throw(((((("Prices of " + bq._11[bs]) + " don't match! WH price=") + toString(co)) + ", your price=") + toString(ci))) | |
421 | 421 | else { | |
422 | 422 | let cp = fraction(cn, co, ae) | |
423 | 423 | let cq = aQ(ch, t, bt) | |
424 | 424 | if ((ch == 0)) | |
425 | 425 | then $Tuple13((bq._1 :+ toString(bz)), (bq._2 :+ cl), (bq._3 :+ toString(ck)), bq._4, bq._5, bq._6, (bq._7 + 1), bq._8, bq._9, bq._10, bq._11, bt, bq._13) | |
426 | 426 | else if ((ch > 0)) | |
427 | 427 | then if ((0 > cn)) | |
428 | 428 | then if ((ch > -(cn))) | |
429 | 429 | then throw(((((("Attempt to buy " + toString(ch)) + " of ") + bq._11[bs]) + ", but warehouse only sells ") + toString(-(cn)))) | |
430 | 430 | else $Tuple13((bq._1 :+ toString(bz)), (bq._2 :+ ((toString((cn + ch)) + "@") + toString(co))), (bq._3 :+ toString((ck + ch))), (bq._4 + cq), bq._5, (bq._6 + cj), (bq._7 + 1), bq._8, bq._9, bq._10, bq._11, bt, (bq._13 + (if (bt) | |
431 | 431 | then (ch * ae) | |
432 | 432 | else ch))) | |
433 | 433 | else throw((("Attempt to buy " + bq._11[bs]) + " while warehouse doesn't sell it")) | |
434 | 434 | else if ((cn > 0)) | |
435 | 435 | then if ((-(ch) > cn)) | |
436 | 436 | then throw(((((("Attempt to sell " + toString(-(ch))) + " of ") + bq._11[bs]) + ", but warehouse only buys ") + toString(cn))) | |
437 | 437 | else if ((-(ch) > ck)) | |
438 | 438 | then throw(((((("Attempt to sell " + toString(-(ch))) + ", but you only have ") + toString(ck)) + " of ") + bq._11[bs])) | |
439 | 439 | else $Tuple13((bq._1 :+ toString((bz - ch))), (bq._2 :+ ((toString((cn + ch)) + "@") + toString(co))), (bq._3 :+ toString((ck + ch))), (bq._4 - cq), (bq._5 - cj), bq._6, (bq._7 + 1), bq._8, bq._9, bq._10, bq._11, bt, (bq._13 - (if (bt) | |
440 | 440 | then (ch * ae) | |
441 | 441 | else ch))) | |
442 | 442 | else throw((("Attempt to sell " + bq._11[bs]) + " while warehouse doesn't buy it")) | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(cr) | |
450 | 450 | func recalcLockedVolumeREADONLY (R,cs) = { | |
451 | 451 | let bH = aN(Q(R)) | |
452 | 452 | let ct = bF(cs, bH, bH) | |
453 | 453 | $Tuple2(nil, (ct._4 + ct._5)) | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | ||
458 | 458 | @Callable(cr) | |
459 | 459 | func constructorV1 (cu) = if ((cr.caller != this)) | |
460 | 460 | then throw("Permission denied") | |
461 | 461 | else [StringEntry(am(), cu)] | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | ||
465 | 465 | @Callable(cr) | |
466 | 466 | func sellResources (cv,cw) = { | |
467 | 467 | let cx = bo() | |
468 | 468 | let N = valueOrErrorMessage(getString(at, K(toString(cr.caller))), "You don't have a duck staked") | |
469 | 469 | if ((size(cr.payments) != 0)) | |
470 | 470 | then throw("sellResources doesn't require any payments") | |
471 | 471 | else { | |
472 | 472 | let cy = split(valueOrElse(getString(at, O(N)), g), "_") | |
473 | 473 | if ((cy[U] != "F")) | |
474 | 474 | then throw(("Duck location type should be Factory, but is " + cy[U])) | |
475 | 475 | else { | |
476 | 476 | let aW = cy[V] | |
477 | 477 | let cz = bl(M(N)) | |
478 | 478 | let cA = split(cz[C], "_") | |
479 | 479 | func cB (bq,bs) = if ((cv[bs] > parseIntValue(cA[bs]))) | |
480 | 480 | then throw(((((("You have " + cA[bs]) + " of ") + k[bs]) + ", but tried to sell ") + toString(cv[bs]))) | |
481 | 481 | else if ((0 > cv[bs])) | |
482 | 482 | then throw(((("You tried to sell negative amount of " + k[bs]) + ": ") + toString(cv[bs]))) | |
483 | 483 | else if ((cv[bs] > 0)) | |
484 | 484 | then { | |
485 | 485 | let cC = aV(aW, bs, cv[bs], cw[bs]) | |
486 | 486 | $Tuple4((bq._1 :+ cC._1), (bq._2 :+ toString((parseIntValue(cA[bs]) - cv[bs]))), (bq._3 + cC._2), (bq._4 + cv[bs])) | |
487 | 487 | } | |
488 | 488 | else $Tuple4(bq._1, (bq._2 :+ cA[bs]), bq._3, bq._4) | |
489 | 489 | ||
490 | 490 | let cD = { | |
491 | 491 | let bT = [0, 1, 2, 3, 4, 5] | |
492 | 492 | let bU = size(bT) | |
493 | 493 | let bV = $Tuple4(nil, nil, 0, 0) | |
494 | 494 | func bW (bX,bY) = if ((bY >= bU)) | |
495 | 495 | then bX | |
496 | 496 | else cB(bX, bT[bY]) | |
497 | 497 | ||
498 | 498 | func bZ (bX,bY) = if ((bY >= bU)) | |
499 | 499 | then bX | |
500 | 500 | else throw("List size exceeds 6") | |
501 | 501 | ||
502 | 502 | bZ(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6) | |
503 | 503 | } | |
504 | 504 | let cE = makeString([cz[B], makeString(cD._2, "_"), cz[D], cz[E]], ":") | |
505 | 505 | let cF = au(invoke(at, "updateBackpack", [N, cE], nil)) | |
506 | 506 | let cG = ax(invoke(at, "updateDuckStats", [N, fraction(a, cD._4, ae)], nil)) | |
507 | 507 | $Tuple2((cD._1 :+ ScriptTransfer(cr.caller, cD._3, Z)), $Tuple3(cF, cx, cG)) | |
508 | 508 | } | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | ||
514 | 514 | @Callable(cr) | |
515 | 515 | func buyMaterials (cv,cH) = { | |
516 | 516 | let cx = bo() | |
517 | 517 | let N = valueOrErrorMessage(getString(at, K(toString(cr.caller))), "You don't have a duck staked") | |
518 | 518 | if ((size(cr.payments) != 1)) | |
519 | 519 | then throw("exactly 1 payment must be attached") | |
520 | 520 | else { | |
521 | 521 | let cI = cr.payments[0] | |
522 | 522 | let cJ = cI.amount | |
523 | 523 | let cK = valueOrErrorMessage(cI.assetId, "WAVES can't be used as payment") | |
524 | 524 | if ((cK != Z)) | |
525 | 525 | then throw("USDT payments only!") | |
526 | 526 | else { | |
527 | 527 | let cy = split(valueOrElse(getString(at, O(N)), g), "_") | |
528 | 528 | if ((cy[U] != "F")) | |
529 | 529 | then throw(("Duck location type should be Factory, but is " + cy[U])) | |
530 | 530 | else { | |
531 | 531 | let aW = cy[V] | |
532 | 532 | let cz = bl(M(N)) | |
533 | 533 | let cL = split(cz[D], "_") | |
534 | 534 | func cM (bq,bs) = if ((0 > cv[bs])) | |
535 | 535 | then throw(((("You tried to buy negative amount of " + l[bs]) + ": ") + toString(cv[bs]))) | |
536 | 536 | else if ((cv[bs] > 0)) | |
537 | 537 | then { | |
538 | 538 | let cC = bd(aW, bs, cv[bs], cH[bs]) | |
539 | 539 | $Tuple4((bq._1 :+ cC._1), (bq._2 :+ toString((parseIntValue(cL[bs]) + cC._3))), (bq._3 + cC._2), (bq._4 + cv[bs])) | |
540 | 540 | } | |
541 | 541 | else $Tuple4(bq._1, (bq._2 :+ cL[bs]), bq._3, bq._4) | |
542 | 542 | ||
543 | 543 | let cD = { | |
544 | 544 | let bT = [0, 1, 2, 3, 4, 5] | |
545 | 545 | let bU = size(bT) | |
546 | 546 | let bV = $Tuple4(nil, nil, 0, 0) | |
547 | 547 | func bW (bX,bY) = if ((bY >= bU)) | |
548 | 548 | then bX | |
549 | 549 | else cM(bX, bT[bY]) | |
550 | 550 | ||
551 | 551 | func bZ (bX,bY) = if ((bY >= bU)) | |
552 | 552 | then bX | |
553 | 553 | else throw("List size exceeds 6") | |
554 | 554 | ||
555 | 555 | bZ(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6) | |
556 | 556 | } | |
557 | 557 | if ((cD._3 > cJ)) | |
558 | 558 | then throw(((("Insufficient payment! Attached=" + toString(cJ)) + ", required=") + toString(cD._3))) | |
559 | 559 | else { | |
560 | 560 | let cE = makeString([cz[B], cz[C], makeString(cD._2, "_"), cz[E]], ":") | |
561 | 561 | let cF = au(invoke(at, "updateBackpack", [N, cE], nil)) | |
562 | 562 | let ao = if (((cJ - cD._3) > 0)) | |
563 | 563 | then [ScriptTransfer(cr.caller, (cJ - cD._3), Z)] | |
564 | 564 | else nil | |
565 | 565 | let cN = (cD._3 / 100) | |
566 | 566 | let cG = ax(invoke(at, "updateDuckStats", [N, fraction(a, cD._4, ae)], nil)) | |
567 | 567 | $Tuple2(((cD._1 ++ ao) :+ ScriptTransfer(as, cN, Z)), $Tuple3(cF, cx, cG)) | |
568 | 568 | } | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | } | |
572 | 572 | } | |
573 | 573 | ||
574 | 574 | ||
575 | 575 | ||
576 | 576 | @Callable(cr) | |
577 | 577 | func exchangeResources (cv) = { | |
578 | 578 | let cx = bo() | |
579 | 579 | let N = valueOrErrorMessage(getString(at, K(toString(cr.caller))), "You don't have a duck staked") | |
580 | 580 | if ((size(cr.payments) != 1)) | |
581 | 581 | then throw("exactly 1 payment must be attached") | |
582 | 582 | else { | |
583 | 583 | let cI = cr.payments[0] | |
584 | 584 | let cJ = cI.amount | |
585 | 585 | let cK = valueOrErrorMessage(cI.assetId, "WAVES can't be used as payment") | |
586 | 586 | if ((cK != Z)) | |
587 | 587 | then throw("USDT payments only!") | |
588 | 588 | else { | |
589 | 589 | let cy = split(valueOrElse(getString(at, O(N)), g), "_") | |
590 | 590 | if ((cy[U] != "F")) | |
591 | 591 | then throw(("Duck location type should be Factory, but is " + cy[U])) | |
592 | 592 | else { | |
593 | 593 | let aW = cy[V] | |
594 | 594 | let cz = bl(M(N)) | |
595 | 595 | let cA = split(cz[C], "_") | |
596 | 596 | let cL = split(cz[D], "_") | |
597 | 597 | func cO (bq,bs) = { | |
598 | 598 | let aY = aH(aW, bs) | |
599 | 599 | let aZ = valueOrElse(getInteger(aY), 0) | |
600 | 600 | let cP = cv[bs] | |
601 | 601 | if ((cP > parseIntValue(cA[bs]))) | |
602 | 602 | then throw(((((("You have " + cA[bs]) + " of ") + k[bs]) + ", but tried to exchange ") + toString(cP))) | |
603 | 603 | else if ((0 > cP)) | |
604 | 604 | then throw(((("You tried to exchange negative amount of " + k[bs]) + ": ") + toString(cP))) | |
605 | 605 | else if ((cP > 0)) | |
606 | 606 | then $Tuple5((bq._1 :+ toString((parseIntValue(cA[bs]) - cP))), (bq._2 :+ toString((parseIntValue(cL[bs]) + cP))), (bq._3 + fraction(cP, h, ae)), (bq._4 :+ IntegerEntry(aY, aZ)), (bq._5 + cP)) | |
607 | 607 | else $Tuple5((bq._1 :+ cA[bs]), (bq._2 :+ cL[bs]), bq._3, bq._4, bq._5) | |
608 | 608 | } | |
609 | 609 | ||
610 | 610 | let cD = { | |
611 | 611 | let bT = [0, 1, 2, 3, 4, 5] | |
612 | 612 | let bU = size(bT) | |
613 | 613 | let bV = $Tuple5(nil, nil, 0, nil, 0) | |
614 | 614 | func bW (bX,bY) = if ((bY >= bU)) | |
615 | 615 | then bX | |
616 | 616 | else cO(bX, bT[bY]) | |
617 | 617 | ||
618 | 618 | func bZ (bX,bY) = if ((bY >= bU)) | |
619 | 619 | then bX | |
620 | 620 | else throw("List size exceeds 6") | |
621 | 621 | ||
622 | 622 | bZ(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6) | |
623 | 623 | } | |
624 | 624 | if ((cD._3 > cJ)) | |
625 | 625 | then throw(((("Insufficient payment! Attached=" + toString(cJ)) + ", required=") + toString(cD._3))) | |
626 | 626 | else { | |
627 | 627 | let cE = makeString([cz[B], makeString(cD._1, "_"), makeString(cD._2, "_"), cz[E]], ":") | |
628 | 628 | let cF = au(invoke(at, "updateBackpack", [N, cE], nil)) | |
629 | 629 | let ao = if (((cJ - cD._3) > 0)) | |
630 | 630 | then [ScriptTransfer(cr.caller, (cJ - cD._3), Z)] | |
631 | 631 | else nil | |
632 | 632 | let cN = (cD._3 / 100) | |
633 | 633 | let cG = ax(invoke(at, "updateDuckStats", [N, fraction(a, cD._5, ae)], nil)) | |
634 | 634 | $Tuple2(((ao ++ cD._4) :+ ScriptTransfer(as, cN, Z)), $Tuple3(cF, cx, cG)) | |
635 | 635 | } | |
636 | 636 | } | |
637 | 637 | } | |
638 | 638 | } | |
639 | 639 | } | |
640 | 640 | ||
641 | 641 | ||
642 | 642 | ||
643 | 643 | @Callable(cr) | |
644 | 644 | func craftGoods (cQ,cR) = { | |
645 | 645 | let cx = bo() | |
646 | 646 | if ((size(cr.payments) != 1)) | |
647 | 647 | then throw("exactly 1 payment must be attached") | |
648 | 648 | else { | |
649 | 649 | let cI = cr.payments[0] | |
650 | 650 | let cJ = cI.amount | |
651 | 651 | let cK = valueOrErrorMessage(cI.assetId, "WAVES can't be used as payment") | |
652 | 652 | if ((cK != Z)) | |
653 | 653 | then throw("USDT payments only!") | |
654 | 654 | else if ((cJ != ad)) | |
655 | 655 | then throw("exactly 1 USDT must be attached as payment") | |
656 | 656 | else if ((0 >= cR)) | |
657 | 657 | then throw("Quantity should be positive") | |
658 | 658 | else { | |
659 | 659 | let N = valueOrErrorMessage(getString(at, K(toString(cr.caller))), "You don't have a duck staked") | |
660 | 660 | let cy = split(valueOrElse(getString(at, O(N)), g), "_") | |
661 | 661 | if ((cy[U] != "M")) | |
662 | 662 | then throw(("Duck location type should be Manufactory, but is " + cy[U])) | |
663 | 663 | else { | |
664 | 664 | let cS = cy[T] | |
665 | 665 | let cz = bl(M(N)) | |
666 | 666 | let cL = split(cz[D], "_") | |
667 | 667 | if (if ((0 > cQ)) | |
668 | 668 | then true | |
669 | 669 | else (cQ >= size(p))) | |
670 | 670 | then throw(("Unknown product idx=" + toString(cQ))) | |
671 | 671 | else { | |
672 | 672 | let X = split(p[cQ], "_") | |
673 | 673 | if ((size(X) != s)) | |
674 | 674 | then throw(("Fatal: unknown recipe: " + p[cQ])) | |
675 | 675 | else { | |
676 | 676 | let cT = parseIntValue(X[r]) | |
677 | 677 | if ((n[cT] != cS)) | |
678 | 678 | then throw(((("This product is available in " + n[cT]) + ", but you are in ") + cS)) | |
679 | 679 | else { | |
680 | 680 | let cU = if ((cz[E] == "")) | |
681 | 681 | then nil | |
682 | 682 | else split(cz[E], "_") | |
683 | 683 | func cV (bq,cW) = { | |
684 | 684 | let ay = bq._2 | |
685 | 685 | let cX = if ((size(cU) > ay)) | |
686 | 686 | then cU[ay] | |
687 | 687 | else "0" | |
688 | 688 | let cY = parseIntValue(cX) | |
689 | 689 | let aR = (cR * t) | |
690 | 690 | let cZ = if ((ay == cQ)) | |
691 | 691 | then toString((cY + aR)) | |
692 | 692 | else cX | |
693 | 693 | $Tuple2((bq._1 :+ cZ), (ay + 1)) | |
694 | 694 | } | |
695 | 695 | ||
696 | 696 | let da = ( let bT = p | |
697 | 697 | let bU = size(bT) | |
698 | 698 | let bV = $Tuple2(nil, 0) | |
699 | 699 | func bW (bX,bY) = if ((bY >= bU)) | |
700 | 700 | then bX | |
701 | 701 | else cV(bX, bT[bY]) | |
702 | 702 | ||
703 | 703 | func bZ (bX,bY) = if ((bY >= bU)) | |
704 | 704 | then bX | |
705 | 705 | else throw("List size exceeds 50") | |
706 | 706 | ||
707 | 707 | bZ(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bV, 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 | |
708 | 708 | func db (bq,bs) = { | |
709 | 709 | let dc = ((parseIntValue(X[bs]) * ad) * cR) | |
710 | 710 | let dd = parseIntValue(cL[bs]) | |
711 | 711 | if ((dc > dd)) | |
712 | 712 | then throw(((((((("You have " + az(dd, 8)) + " of ") + l[bs]) + ", but recipe requires ") + az(dc, 8)) + " for quantity ") + toString(cR))) | |
713 | 713 | else if ((dc > 0)) | |
714 | 714 | then $Tuple2((bq._1 :+ toString((dd - dc))), (bq._2 + dc)) | |
715 | 715 | else $Tuple2((bq._1 :+ cL[bs]), bq._2) | |
716 | 716 | } | |
717 | 717 | ||
718 | 718 | let cD = { | |
719 | 719 | let bT = [0, 1, 2, 3, 4, 5] | |
720 | 720 | let bU = size(bT) | |
721 | 721 | let bV = $Tuple2(nil, 0) | |
722 | 722 | func ca (bX,bY) = if ((bY >= bU)) | |
723 | 723 | then bX | |
724 | 724 | else db(bX, bT[bY]) | |
725 | 725 | ||
726 | 726 | func cb (bX,bY) = if ((bY >= bU)) | |
727 | 727 | then bX | |
728 | 728 | else throw("List size exceeds 6") | |
729 | 729 | ||
730 | 730 | cb(ca(ca(ca(ca(ca(ca(bV, 0), 1), 2), 3), 4), 5), 6) | |
731 | 731 | } | |
732 | 732 | let cE = makeString([cz[B], cz[C], makeString(cD._1, "_"), makeString(da, "_")], ":") | |
733 | 733 | let cF = au(invoke(at, "updateBackpack", [N, cE], nil)) | |
734 | 734 | let cG = ax(invoke(at, "updateDuckStats", [N, fraction(b, cD._2, ae)], nil)) | |
735 | 735 | $Tuple2(nil, $Tuple3(cF, cx, cG)) | |
736 | 736 | } | |
737 | 737 | } | |
738 | 738 | } | |
739 | 739 | } | |
740 | 740 | } | |
741 | 741 | } | |
742 | 742 | } | |
743 | 743 | ||
744 | 744 | ||
745 | 745 | ||
746 | 746 | @Callable(cr) | |
747 | 747 | func setWarehouseOrder (de,R) = { | |
748 | 748 | let df = cr.originCaller | |
749 | 749 | let J = toString(df) | |
750 | 750 | let cF = if ((df != as)) | |
751 | 751 | then bn() | |
752 | 752 | else false | |
753 | 753 | let dg = value(assetInfo(fromBase58String(R))) | |
754 | 754 | if (!(isDefined(getInteger(at, H(R))))) | |
755 | 755 | then throw((("NFT " + dg.name) + " is not staked")) | |
756 | 756 | else { | |
757 | 757 | let dh = valueOrErrorMessage(getString(at, F(R)), (("NFT " + dg.name) + " is orphaned")) | |
758 | 758 | if (if ((df != as)) | |
759 | 759 | then (dh != J) | |
760 | 760 | else false) | |
761 | 761 | then throw((e + " is not yours")) | |
762 | 762 | else { | |
763 | 763 | let di = split_4C(de, ":") | |
764 | 764 | let cs = au(invoke(at, "getWarehouseREADONLY", [R], nil)) | |
765 | 765 | let bG = split_4C(cs, ":") | |
766 | 766 | let dj = split(bG[y], "_") | |
767 | 767 | let dk = parseIntValue(dj[A]) | |
768 | 768 | let aO = Q(R) | |
769 | 769 | let bH = aN(aO) | |
770 | 770 | let ct = bF(bG, bH, di) | |
771 | 771 | let dl = ct._4 | |
772 | 772 | let dm = ct._5 | |
773 | 773 | let dn = ct._7 | |
774 | 774 | let do = (dl + dm) | |
775 | 775 | let dp = ((dk - dn) - do) | |
776 | 776 | if ((0 > dp)) | |
777 | 777 | then throw((((((("Attempt to reserve " + toString(dl)) + " space for buy orders, and ") + toString(dm)) + " space for sell orders (and occupied=") + toString(dn)) + "), leads to negative free space")) | |
778 | 778 | else { | |
779 | 779 | let dq = makeString_2C([bG[u], makeString(ct._1, "_"), makeString(ct._2, "_"), makeString(ct._3, "_"), toString(do)], ":") | |
780 | 780 | let dr = au(invoke(at, "saveWarehouse", [dq, R], nil)) | |
781 | 781 | let ds = ct._6 | |
782 | 782 | let dt = if ((ds > 0)) | |
783 | 783 | then if ((size(cr.payments) != 1)) | |
784 | 784 | then throw("exactly 1 payment must be attached") | |
785 | 785 | else { | |
786 | 786 | let cI = cr.payments[0] | |
787 | 787 | let cJ = cI.amount | |
788 | 788 | let cK = valueOrErrorMessage(cI.assetId, "WAVES can't be used as payment") | |
789 | 789 | if ((cK != Z)) | |
790 | 790 | then throw("USDT payments only!") | |
791 | 791 | else if ((cJ != ds)) | |
792 | 792 | then throw(("Payment needed is " + toString(ds))) | |
793 | 793 | else [StringEntry(aO, de)] | |
794 | 794 | } | |
795 | 795 | else if ((ds == 0)) | |
796 | 796 | then if ((size(cr.payments) != 0)) | |
797 | 797 | then throw("No payments needed") | |
798 | 798 | else [StringEntry(aO, de)] | |
799 | 799 | else if ((size(cr.payments) != 0)) | |
800 | 800 | then throw("No payments needed") | |
801 | 801 | else [ScriptTransfer(addressFromStringValue(dh), -(ds), Z), StringEntry(aO, de)] | |
802 | 802 | $Tuple2(dt, $Tuple2(cF, dr)) | |
803 | 803 | } | |
804 | 804 | } | |
805 | 805 | } | |
806 | 806 | } | |
807 | 807 | ||
808 | 808 | ||
809 | 809 | ||
810 | 810 | @Callable(cr) | |
811 | 811 | func acceptWarehouseOrder (du,R,N) = { | |
812 | 812 | let cx = bo() | |
813 | 813 | let dv = cr.originCaller | |
814 | 814 | let dw = toString(dv) | |
815 | 815 | let dx = valueOrErrorMessage(getString(at, K(dw)), "You don't have a duck staked") | |
816 | 816 | let cy = valueOrElse(getString(at, O(dx)), g) | |
817 | 817 | let dy = split(value(cy), "_") | |
818 | 818 | if ((dy[U] != "L")) | |
819 | 819 | then throw((("Duck location type is " + dy[U]) + ", but should be L")) | |
820 | 820 | else if ((dx != N)) | |
821 | 821 | then throw(((("Your staked duck is " + dx) + ", but passed ") + N)) | |
822 | 822 | else { | |
823 | 823 | let dz = value(assetInfo(fromBase58String(R))) | |
824 | 824 | if (!(isDefined(getInteger(at, H(R))))) | |
825 | 825 | then throw((("NFT " + dz.name) + " is not staked")) | |
826 | 826 | else { | |
827 | 827 | let dA = valueOrErrorMessage(getString(at, F(R)), (("NFT " + dz.name) + " is orphaned")) | |
828 | 828 | if ((dA == dw)) | |
829 | 829 | then throw("You cannot trade with yourself") | |
830 | 830 | else { | |
831 | 831 | let dB = split_4C(du, ":") | |
832 | 832 | if ((size(dB) != 3)) | |
833 | 833 | then throw("bpOrderStr should contain exactly 2 ':' separators") | |
834 | 834 | else { | |
835 | 835 | let dC = split(dB[0], "_") | |
836 | 836 | let dD = split(dB[1], "_") | |
837 | 837 | let dE = if ((dB[2] == "")) | |
838 | 838 | then nil | |
839 | 839 | else split(dB[2], "_") | |
840 | 840 | if ((size(dC) != f)) | |
841 | 841 | then throw("All 6 resources should be passed") | |
842 | 842 | else if ((size(dD) != f)) | |
843 | 843 | then throw("All 6 materials should be passed") | |
844 | 844 | else { | |
845 | 845 | let cs = au(invoke(at, "getWarehouseREADONLY", [R], nil)) | |
846 | 846 | let bG = split_4C(cs, ":") | |
847 | 847 | let bJ = split(bG[v], "_") | |
848 | 848 | let bK = split(bG[w], "_") | |
849 | 849 | let bL = if ((bG[x] == "")) | |
850 | 850 | then nil | |
851 | 851 | else split(bG[x], "_") | |
852 | 852 | let dF = parseIntValue(split(bG[y], "_")[z]) | |
853 | 853 | let bm = M(N) | |
854 | 854 | let cz = bl(bm) | |
855 | 855 | let dG = split(cz[C], "_") | |
856 | 856 | let dH = split(cz[D], "_") | |
857 | 857 | let dI = if ((cz[E] == "")) | |
858 | 858 | then nil | |
859 | 859 | else split(cz[E], "_") | |
860 | 860 | let aO = Q(R) | |
861 | 861 | let dJ = aN(aO) | |
862 | 862 | let dK = split(dJ[aK], "_") | |
863 | 863 | let dL = split(dJ[aL], "_") | |
864 | 864 | let dM = if ((dJ[aM] == "")) | |
865 | 865 | then nil | |
866 | 866 | else split(dJ[aM], "_") | |
867 | 867 | let bS = { | |
868 | 868 | let bT = dC | |
869 | 869 | let bU = size(bT) | |
870 | 870 | let bV = $Tuple13(nil, nil, nil, 0, 0, 0, 0, dG, bJ, dK, k, false, 0) | |
871 | 871 | func bW (bX,bY) = if ((bY >= bU)) | |
872 | 872 | then bX | |
873 | 873 | else ce(bX, bT[bY]) | |
874 | 874 | ||
875 | 875 | func bZ (bX,bY) = if ((bY >= bU)) | |
876 | 876 | then bX | |
877 | 877 | else throw("List size exceeds 6") | |
878 | 878 | ||
879 | 879 | bZ(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6) | |
880 | 880 | } | |
881 | 881 | let bi = { | |
882 | 882 | let bT = dD | |
883 | 883 | let bU = size(bT) | |
884 | 884 | let bV = $Tuple13(nil, nil, nil, bS._4, bS._5, bS._6, 0, dH, bK, dL, l, false, bS._13) | |
885 | 885 | func ca (bX,bY) = if ((bY >= bU)) | |
886 | 886 | then bX | |
887 | 887 | else ce(bX, bT[bY]) | |
888 | 888 | ||
889 | 889 | func cb (bX,bY) = if ((bY >= bU)) | |
890 | 890 | then bX | |
891 | 891 | else throw("List size exceeds 6") | |
892 | 892 | ||
893 | 893 | cb(ca(ca(ca(ca(ca(ca(bV, 0), 1), 2), 3), 4), 5), 6) | |
894 | 894 | } | |
895 | 895 | let aP = if ((size(dE) != 0)) | |
896 | 896 | then { | |
897 | 897 | let bT = dE | |
898 | 898 | let bU = size(bT) | |
899 | 899 | let bV = $Tuple13(nil, nil, nil, bi._4, bi._5, bi._6, 0, dI, bL, dM, m, true, bi._13) | |
900 | 900 | func cc (bX,bY) = if ((bY >= bU)) | |
901 | 901 | then bX | |
902 | 902 | else ce(bX, bT[bY]) | |
903 | 903 | ||
904 | 904 | func cd (bX,bY) = if ((bY >= bU)) | |
905 | 905 | then bX | |
906 | 906 | else throw("List size exceeds 50") | |
907 | 907 | ||
908 | 908 | cd(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(bV, 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) | |
909 | 909 | } | |
910 | 910 | else $Tuple13(bL, dM, dI, bi._4, bi._5, bi._6, 0, dI, bL, dM, m, true, bi._13) | |
911 | 911 | let dN = aP._4 | |
912 | 912 | let dO = if ((0 > (dF - dN))) | |
913 | 913 | then 0 | |
914 | 914 | else (dF - dN) | |
915 | 915 | let dq = makeString_2C([bG[u], makeString(bS._1, "_"), makeString(bi._1, "_"), makeString(aP._1, "_"), toString(dO)], ":") | |
916 | 916 | let dP = makeString_2C([makeString(bS._2, "_"), makeString(bi._2, "_"), makeString(aP._2, "_")], ":") | |
917 | 917 | let dQ = makeString_2C([cz[B], makeString(bS._3, "_"), makeString(bi._3, "_"), makeString(aP._3, "_")], ":") | |
918 | 918 | let dr = au(invoke(at, "saveWarehouse", [dq, R], nil)) | |
919 | 919 | let dR = au(invoke(at, "updateBackpack", [N, dQ], nil)) | |
920 | 920 | let dS = ax(invoke(at, "updateDuckStats", [N, fraction(d, aP._13, ae)], nil)) | |
921 | 921 | let dT = ax(invoke(at, "updateAccStats", [dA, fraction(d, aP._13, ae)], nil)) | |
922 | 922 | let dt = [StringEntry(aO, dP)] | |
923 | 923 | let dU = aP._5 | |
924 | 924 | let dV = if ((dU > 0)) | |
925 | 925 | then { | |
926 | 926 | let dW = fraction(aP._5, aG, ad) | |
927 | 927 | let dX = I(dw) | |
928 | 928 | let dY = getString(at, dX) | |
929 | 929 | if (isDefined(dY)) | |
930 | 930 | then (((dt :+ ScriptTransfer(dv, (aP._5 - (3 * dW)), Z)) :+ ScriptTransfer(as, dW, Z)) :+ ScriptTransfer(addressFromStringValue(value(dY)), dW, Z)) | |
931 | 931 | else ((dt :+ ScriptTransfer(dv, (aP._5 - (3 * dW)), Z)) :+ ScriptTransfer(as, dW, Z)) | |
932 | 932 | } | |
933 | 933 | else dt | |
934 | 934 | let dZ = aP._6 | |
935 | 935 | let ea = if ((dZ > 0)) | |
936 | 936 | then if ((size(cr.payments) != 1)) | |
937 | 937 | then throw("exactly 1 payment must be attached") | |
938 | 938 | else { | |
939 | 939 | let cI = cr.payments[0] | |
940 | 940 | let cJ = cI.amount | |
941 | 941 | let cK = valueOrErrorMessage(cI.assetId, "WAVES can't be used as payment") | |
942 | 942 | if ((cK != Z)) | |
943 | 943 | then throw("USDT payments only!") | |
944 | 944 | else if ((cJ != dZ)) | |
945 | 945 | then throw(("Payment needed is " + toString(dZ))) | |
946 | 946 | else if ((ag > cJ)) | |
947 | 947 | then throw(("Payment should be at least " + toString(ag))) | |
948 | 948 | else { | |
949 | 949 | let eb = fraction(aP._6, aG, ad) | |
950 | 950 | let dX = I(dA) | |
951 | 951 | let dY = getString(at, dX) | |
952 | 952 | if (isDefined(dY)) | |
953 | 953 | then (((dV :+ ScriptTransfer(addressFromStringValue(dA), (aP._6 - (3 * eb)), Z)) :+ ScriptTransfer(as, eb, Z)) :+ ScriptTransfer(addressFromStringValue(value(dY)), eb, Z)) | |
954 | 954 | else ((dV :+ ScriptTransfer(addressFromStringValue(dA), (aP._6 - (3 * eb)), Z)) :+ ScriptTransfer(as, eb, Z)) | |
955 | 955 | } | |
956 | 956 | } | |
957 | 957 | else if ((size(cr.payments) != 0)) | |
958 | 958 | then throw("No payments needed") | |
959 | 959 | else dV | |
960 | 960 | $Tuple2(ea, $Tuple5(cx, dr, dR, dS, dT)) | |
961 | 961 | } | |
962 | 962 | } | |
963 | 963 | } | |
964 | 964 | } | |
965 | 965 | } | |
966 | 966 | } | |
967 | 967 | ||
968 | 968 | ||
969 | 969 | ||
970 | 970 | @Callable(cr) | |
971 | 971 | func sellProductsToES (cv) = { | |
972 | 972 | let cx = bo() | |
973 | 973 | if ((size(cr.payments) != 0)) | |
974 | 974 | then throw("No payments needed") | |
975 | 975 | else { | |
976 | 976 | let N = valueOrErrorMessage(getString(at, K(toString(cr.caller))), "You don't have a duck staked") | |
977 | 977 | let cy = split(valueOrElse(getString(at, O(N)), g), "_") | |
978 | 978 | if ((cy[U] != "A")) | |
979 | 979 | then throw(("Duck location type should be Airport, but is " + cy[U])) | |
980 | 980 | else { | |
981 | 981 | let cz = bl(M(N)) | |
982 | 982 | let cU = if ((cz[E] == "")) | |
983 | 983 | then nil | |
984 | 984 | else split(cz[E], "_") | |
985 | 985 | let ec = S() | |
986 | 986 | let ed = getString(ec) | |
987 | 987 | let ee = if (isDefined(ed)) | |
988 | 988 | then split(value(ed), "_") | |
989 | 989 | else nil | |
990 | 990 | func ef (bq,eg) = { | |
991 | 991 | let bs = bq._1 | |
992 | 992 | let cR = if ((size(cv) > bs)) | |
993 | 993 | then cv[bs] | |
994 | 994 | else 0 | |
995 | 995 | if ((0 > cR)) | |
996 | 996 | then throw("Quantity cannot be negative") | |
997 | 997 | else { | |
998 | 998 | let X = split(eg, "_") | |
999 | 999 | if ((size(X) != s)) | |
1000 | 1000 | then throw(("Fatal: unknown recipe: " + eg)) | |
1001 | 1001 | else { | |
1002 | 1002 | let eh = (i * t) | |
1003 | 1003 | let ei = if ((size(ee) > bs)) | |
1004 | 1004 | then parseIntValue(ee[bs]) | |
1005 | 1005 | else 0 | |
1006 | 1006 | let ej = (eh - ei) | |
1007 | 1007 | if ((cR > ej)) | |
1008 | 1008 | then throw(((("Warehouse can buy only " + toString(ej)) + " of ") + m[bs])) | |
1009 | 1009 | else { | |
1010 | 1010 | let ek = W(X) | |
1011 | - | let el = fraction((ek * j), h, ( | |
1011 | + | let el = fraction((ek * j), h, (ae * t)) | |
1012 | 1012 | let em = if ((size(cU) > bs)) | |
1013 | 1013 | then parseIntValue(cU[bs]) | |
1014 | 1014 | else 0 | |
1015 | 1015 | if ((cR > em)) | |
1016 | 1016 | then throw(((("You have only " + toString(em)) + " of ") + m[bs])) | |
1017 | 1017 | else $Tuple5((bs + 1), (bq._2 + (el * cR)), (bq._3 :+ toString((em - cR))), (bq._4 :+ toString((ei + cR))), (bq._5 + (ek * cR))) | |
1018 | 1018 | } | |
1019 | 1019 | } | |
1020 | 1020 | } | |
1021 | 1021 | } | |
1022 | 1022 | ||
1023 | 1023 | let cD = { | |
1024 | 1024 | let bT = p | |
1025 | 1025 | let bU = size(bT) | |
1026 | 1026 | let bV = $Tuple5(0, 0, nil, nil, 0) | |
1027 | 1027 | func bW (bX,bY) = if ((bY >= bU)) | |
1028 | 1028 | then bX | |
1029 | 1029 | else ef(bX, bT[bY]) | |
1030 | 1030 | ||
1031 | 1031 | func bZ (bX,bY) = if ((bY >= bU)) | |
1032 | 1032 | then bX | |
1033 | 1033 | else throw("List size exceeds 50") | |
1034 | 1034 | ||
1035 | 1035 | bZ(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bW(bV, 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) | |
1036 | 1036 | } | |
1037 | 1037 | let dQ = makeString_2C([cz[B], cz[C], cz[D], makeString(cD._3, "_")], ":") | |
1038 | 1038 | let dR = au(invoke(at, "updateBackpack", [N, dQ], nil)) | |
1039 | 1039 | let cG = ax(invoke(at, "updateDuckStats", [N, fraction(c, cD._5, (ae * 10))], nil)) | |
1040 | 1040 | $Tuple2([StringEntry(ec, makeString(cD._4, "_")), ScriptTransfer(cr.caller, cD._2, Z)], $Tuple3(dR, cx, cG)) | |
1041 | 1041 | } | |
1042 | 1042 | } | |
1043 | 1043 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | ||
1047 | 1047 | @Callable(cr) | |
1048 | 1048 | func updateEsStorage (en) = if ((cr.caller != at)) | |
1049 | 1049 | then throw("Permission denied") | |
1050 | 1050 | else $Tuple2([StringEntry(S(), en)], en) | |
1051 | 1051 | ||
1052 | 1052 |
github/deemru/w8io/169f3d6 146.89 ms ◑