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