tx · DFGgByrUGKfhXoGKggvZCC1NjhiFkCW6K6ixAS3Cy7Vz 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.01800000 Waves 2023.09.21 20:55 [2765466] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "DFGgByrUGKfhXoGKggvZCC1NjhiFkCW6K6ixAS3Cy7Vz", "fee": 1800000, "feeAssetId": null, "timestamp": 1695318922265, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "37aVJbnFNYgGzsfyEfynnVcv9wENsH2qtiRhta6e4VqtRu3JFUbduWRaJYLso6goBWachLYQkAMHNyaMKiLe57K9" ], "script": "base64:BgIiCAISBgoECAgICBIDCgEBEgMKAQESABIDCgEIEgUKAwgIAV8AAk02AMCEPQACTTgAgMLXLwAITUlMTElPTjYAgIDpg7HeFgAOTUFSS0VUSU5HU0hBUkUAoI0GAAlURUFNU0hBUkUAwJoMAA1BQ1RJVklUWVNIQVJFAKCNBgALUExBWUVSU0hBUkUAgLUYAApZRUFSTUlMTElTAICG68d1AAlDSEVDS1RJTUUAgMngq7ABAANEQVkAgLiZKQAQbWFya2V0aW5nQWRkcktleQINbWFya2V0aW5nQWRkcgALdGVhbUFkZHJLZXkCCHRlYW1BZGRyABRsYXN0TWFya2V0aW5nVGltZUtleQIZbGFzdENsYWltZWRUaW1lX21hcmtldGluZwAWbWFya2V0aW5nQW1vdW50TGVmdEtleQITbWFya2V0aW5nQW1vdW50TGVmdAAPbGFzdFRlYW1UaW1lS2V5AhRsYXN0Q2xhaW1lZFRpbWVfdGVhbQARdGVhbUFtb3VudExlZnRLZXkCDnRlYW1BbW91bnRMZWZ0ABVsYXN0QWN0aXZpdGllc1RpbWVLZXkCGmxhc3RDbGFpbWVkVGltZV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zEFCndsZ0Fzc2V0SWQIBQFyAl8yAWkBCGNsYWltUm9iAwVvd25lcgZyb2JiZXIQb3duZXJQcm9wb3J0aW9uNgMJAQIhPQIIBQFpBmNhbGxlcgUPc3Rha2luZ0NvbnRyYWN0CQACAQIRUGVybWlzc2lvbiBkZW5pZWQEAXIJAQ1jbGFpbUludGVybmFsAgUFb3duZXIFEG93bmVyUHJvcG9ydGlvbjYJAJQKAgkAzQgCCAUBcgJfMQkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUGcm9iYmVyCQBlAggIBQFyAl8yAl8yCAgFAXICXzICXzEFCndsZ0Fzc2V0SWQIBQFyAl8yAH1Ry2A=", "height": 2765466, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9VQuDGFLUrBnd7APVrPU87TzweDG9s16mdxpEYBkoRwF Next: BMMddS311xDH9XWxdgzgbDBjA6YghZ4suizwnGtrXEVV Diff:
Old | New | Differences | |
---|---|---|---|
54 | 54 | ||
55 | 55 | let A = "zbill_issuedAmount" | |
56 | 56 | ||
57 | - | ||
57 | + | func B (u) = ("acresStakedAmountByUser_" + u) | |
58 | 58 | ||
59 | - | let C = 1 | |
60 | 59 | ||
61 | - | let | |
60 | + | let C = "acresStakedAmountTotal" | |
62 | 61 | ||
63 | - | let | |
62 | + | let D = 0 | |
64 | 63 | ||
65 | - | let | |
64 | + | let E = 1 | |
66 | 65 | ||
67 | - | let | |
66 | + | let F = 2 | |
68 | 67 | ||
69 | - | let | |
68 | + | let G = 7 | |
70 | 69 | ||
71 | - | let | |
70 | + | let H = 10 | |
72 | 71 | ||
73 | - | let | |
72 | + | let I = 11 | |
74 | 73 | ||
75 | - | let | |
74 | + | let J = 14 | |
76 | 75 | ||
77 | - | let | |
76 | + | let K = 15 | |
78 | 77 | ||
79 | - | let | |
78 | + | let L = 18 | |
80 | 79 | ||
81 | - | let | |
80 | + | let M = 19 | |
82 | 81 | ||
83 | - | let | |
82 | + | let N = 22 | |
84 | 83 | ||
85 | - | let | |
84 | + | let O = 25 | |
86 | 85 | ||
87 | - | let | |
86 | + | let P = 28 | |
88 | 87 | ||
89 | - | let | |
88 | + | let Q = 29 | |
90 | 89 | ||
91 | - | let | |
90 | + | let R = 0 | |
92 | 91 | ||
93 | - | let | |
92 | + | let S = 1 | |
94 | 93 | ||
95 | - | let | |
94 | + | let T = 2 | |
96 | 95 | ||
97 | - | func V (W,X) = { | |
98 | - | let Y = split(valueOrElse(getString(X, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
99 | - | func Z (aa,ab) = (aa + parseIntValue(ab)) | |
96 | + | let U = 3 | |
100 | 97 | ||
101 | - | let ac = { | |
102 | - | let ad = Y | |
103 | - | let ae = size(ad) | |
104 | - | let af = 0 | |
105 | - | func ag (ah,ai) = if ((ai >= ae)) | |
106 | - | then ah | |
107 | - | else Z(ah, ad[ai]) | |
98 | + | let V = 4 | |
108 | 99 | ||
109 | - | func aj (ah,ai) = if ((ai >= ae)) | |
110 | - | then ah | |
100 | + | let W = 5 | |
101 | + | ||
102 | + | let X = 6 | |
103 | + | ||
104 | + | func Y (Z,aa,ab) = { | |
105 | + | let ac = split(valueOrElse(getString(aa, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
106 | + | func ad (ae,af) = (ae + parseIntValue(af)) | |
107 | + | ||
108 | + | let ag = { | |
109 | + | let ah = ac | |
110 | + | let ai = size(ah) | |
111 | + | let aj = 0 | |
112 | + | func ak (al,am) = if ((am >= ai)) | |
113 | + | then al | |
114 | + | else ad(al, ah[am]) | |
115 | + | ||
116 | + | func an (al,am) = if ((am >= ai)) | |
117 | + | then al | |
111 | 118 | else throw("List size exceeds 6") | |
112 | 119 | ||
113 | - | aj | |
120 | + | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
114 | 121 | } | |
115 | - | let ak = valueOrElse(getInteger(X, ("stakedPiecesByOwner_" + W)), 0) | |
116 | - | [ac, ak] | |
122 | + | let ao = valueOrElse(getInteger(aa, ("stakedPiecesByOwner_" + Z)), 0) | |
123 | + | let ap = valueOrElse(getInteger(ab, C), 0) | |
124 | + | let aq = valueOrElse(getInteger(ab, B(Z)), 0) | |
125 | + | [ag, ao, ap, aq] | |
117 | 126 | } | |
118 | 127 | ||
119 | 128 | ||
120 | - | func al (am,an,ao,ap,aq) = { | |
121 | - | let ar = valueOrErrorMessage(getInteger(an[S], z), "WLGOLD is not issued yet") | |
122 | - | let as = assetBalance(an[R], ao) | |
123 | - | let at = assetBalance(an[P], ao) | |
124 | - | let au = (assetBalance(an[S], ao) - ap) | |
125 | - | let av = assetBalance(an[T], ao) | |
126 | - | let aw = an[U] | |
127 | - | let ax = (assetBalance(aw, ao) + valueOrElse(getInteger(aw, A), 0)) | |
128 | - | let ay = ((as + au) + ax) | |
129 | - | let az = valueOrErrorMessage(getBinary(an[S], "wlg_assetId"), "Not initialized yet") | |
130 | - | let aA = lastBlock.timestamp | |
131 | - | let aB = valueOrErrorMessage(getInteger(an[S], y), "Not initialized") | |
132 | - | let aC = fraction(c, d, a) | |
133 | - | let aD = valueOrElse(getInteger(an[S], n), aC) | |
134 | - | let aE = valueOrElse(getInteger(an[S], m), aB) | |
135 | - | let aF = addressFromStringValue(value(getString(an[S], k))) | |
136 | - | let aG = min([fraction(aC, (aA - aE), h), aD]) | |
137 | - | let aH = assetBalance(aF, az) | |
138 | - | let aI = fraction(c, e, a) | |
139 | - | let aJ = valueOrElse(getInteger(an[S], p), aI) | |
140 | - | let aK = valueOrElse(getInteger(an[S], o), aB) | |
141 | - | let aL = addressFromStringValue(value(getString(an[S], l))) | |
142 | - | let aM = min([fraction(aI, (aA - aK), (3 * h)), aJ]) | |
143 | - | let aN = assetBalance(aL, az) | |
144 | - | let aO = fraction(c, f, a) | |
145 | - | let aP = valueOrElse(getInteger(an[S], r), aO) | |
146 | - | let aQ = valueOrElse(getInteger(an[S], q), aB) | |
147 | - | let aR = min([fraction(aO, (aA - aQ), (3 * h)), aP]) | |
148 | - | let aS = assetBalance(an[P], az) | |
149 | - | let aT = valueOrElse(getInteger(an[S], t(am)), aB) | |
150 | - | let aU = ((aT - aB) / h) | |
151 | - | let aV = min([aA, (aB + (3 * h))]) | |
152 | - | let aW = min([((aA - aB) / h), 2]) | |
153 | - | let aX = V(am, an[Q]) | |
154 | - | let aY = w(aW) | |
155 | - | let aZ = if ((aU == aW)) | |
129 | + | let ar = 0 | |
130 | + | ||
131 | + | let as = 1 | |
132 | + | ||
133 | + | let at = 2 | |
134 | + | ||
135 | + | let au = 3 | |
136 | + | ||
137 | + | func av (aw,ax,ay,az,aA) = { | |
138 | + | let aB = valueOrErrorMessage(getInteger(ax[U], z), "WLGOLD is not issued yet") | |
139 | + | let aC = assetBalance(ax[T], ay) | |
140 | + | let aD = assetBalance(ax[R], ay) | |
141 | + | let aE = (assetBalance(ax[U], ay) - az) | |
142 | + | let aF = assetBalance(ax[V], ay) | |
143 | + | let aG = ax[W] | |
144 | + | let aH = (assetBalance(aG, ay) + valueOrElse(getInteger(aG, A), 0)) | |
145 | + | let aI = ((aC + aE) + aH) | |
146 | + | let aJ = valueOrErrorMessage(getBinary(ax[U], "wlg_assetId"), "Not initialized yet") | |
147 | + | let aK = lastBlock.timestamp | |
148 | + | let aL = valueOrErrorMessage(getInteger(ax[U], y), "Not initialized") | |
149 | + | let aM = fraction(c, d, a) | |
150 | + | let aN = valueOrElse(getInteger(ax[U], n), aM) | |
151 | + | let aO = valueOrElse(getInteger(ax[U], m), aL) | |
152 | + | let aP = addressFromStringValue(value(getString(ax[U], k))) | |
153 | + | let aQ = min([fraction(aM, (aK - aO), h), aN]) | |
154 | + | let aR = assetBalance(aP, aJ) | |
155 | + | let aS = fraction(c, e, a) | |
156 | + | let aT = valueOrElse(getInteger(ax[U], p), aS) | |
157 | + | let aU = valueOrElse(getInteger(ax[U], o), aL) | |
158 | + | let aV = addressFromStringValue(value(getString(ax[U], l))) | |
159 | + | let aW = min([fraction(aS, (aK - aU), (3 * h)), aT]) | |
160 | + | let aX = assetBalance(aV, aJ) | |
161 | + | let aY = fraction(c, f, a) | |
162 | + | let aZ = valueOrElse(getInteger(ax[U], r), aY) | |
163 | + | let ba = valueOrElse(getInteger(ax[U], q), aL) | |
164 | + | let bb = min([fraction(aY, (aK - ba), (3 * h)), aZ]) | |
165 | + | let bc = assetBalance(ax[R], aJ) | |
166 | + | let bd = valueOrElse(getInteger(ax[U], t(aw)), aL) | |
167 | + | let be = ((bd - aL) / h) | |
168 | + | let bf = min([aK, (aL + (3 * h))]) | |
169 | + | let bg = min([((aK - aL) / h), 2]) | |
170 | + | let bh = Y(aw, ax[S], ax[X]) | |
171 | + | let bi = w(bg) | |
172 | + | let bj = if ((be == bg)) | |
156 | 173 | then { | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | $Tuple3( | |
174 | + | let bk = fraction(bi, (bf - bd), h) | |
175 | + | let bl = fraction(bk, aA, a) | |
176 | + | let bm = (bd + fraction((bf - bd), aA, a)) | |
177 | + | $Tuple3(bl, bk, bm) | |
161 | 178 | } | |
162 | - | else if (( | |
179 | + | else if ((be == (bg - 1))) | |
163 | 180 | then { | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | then ( | |
170 | - | else (( | |
171 | - | $Tuple3( | |
181 | + | let bn = fraction(w((bg - 1)), ((aL + (h * bg)) - bd), h) | |
182 | + | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
183 | + | let bo = (bn + bk) | |
184 | + | let bl = fraction(bo, aA, a) | |
185 | + | let bm = if ((bn >= bl)) | |
186 | + | then (bd + fraction(h, bl, w((bg - 1)))) | |
187 | + | else ((aL + (h * bg)) + fraction(h, (bl - bn), bi)) | |
188 | + | $Tuple3(bl, bo, bm) | |
172 | 189 | } | |
173 | 190 | else { | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | then ( | |
181 | - | else if ((( | |
182 | - | then (( | |
183 | - | else (( | |
184 | - | $Tuple3( | |
191 | + | let bp = fraction(w((bg - 2)), ((aL + (h * (bg - 1))) - bd), h) | |
192 | + | let bn = w((bg - 1)) | |
193 | + | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
194 | + | let bo = ((bp + bn) + bk) | |
195 | + | let bl = fraction(bo, aA, a) | |
196 | + | let bm = if ((bp >= bl)) | |
197 | + | then (bd + fraction(h, bl, w((bg - 2)))) | |
198 | + | else if (((bp + bn) >= bl)) | |
199 | + | then ((aL + (h * (bg - 1))) + fraction(h, (bl - bp), w((bg - 1)))) | |
200 | + | else ((aL + (h * bg)) + fraction(h, ((bl - bp) - bn), bi)) | |
201 | + | $Tuple3(bl, bo, bm) | |
185 | 202 | } | |
186 | - | let bg = aZ._1 | |
187 | - | let bh = aZ._2 | |
188 | - | let bi = aZ._3 | |
189 | - | let bj = fraction(fraction(aY, j, h), 25, aX[0]) | |
190 | - | let bk = valueOrElse(getInteger(an[S], s), 0) | |
191 | - | [ar, fraction(ay, b, ar), ay, as, at, au, av, aB, aE, aC, aD, aG, aH, aI, aJ, aM, aN, aO, aP, aR, aS, aW, bk, aY, aT, fraction(bg, aX[1], aX[0]), bj, ax, fraction(bh, aX[1], aX[0]), bi] | |
203 | + | let bq = bj._1 | |
204 | + | let br = bj._2 | |
205 | + | let bs = bj._3 | |
206 | + | let bt = fraction(fraction(bi, j, h), 25, bh[ar]) | |
207 | + | let bu = valueOrElse(getInteger(ax[U], s), 0) | |
208 | + | let bv = fraction(bq, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
209 | + | let bw = fraction(br, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
210 | + | [aB, fraction(aI, b, aB), aI, aC, aD, aE, aF, aL, aO, aM, aN, aQ, aR, aS, aT, aW, aX, aY, aZ, bb, bc, bg, bu, bi, bd, bv, bt, aH, bw, bs] | |
192 | 211 | } | |
193 | 212 | ||
194 | 213 | ||
195 | - | let | |
214 | + | let bx = take(drop(this.bytes, 1), 1) | |
196 | 215 | ||
197 | - | let | |
198 | - | let | |
199 | - | if ((base58'2W' == | |
216 | + | let by = { | |
217 | + | let bz = bx | |
218 | + | if ((base58'2W' == bz)) | |
200 | 219 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
201 | - | else if ((base58'2T' == | |
220 | + | else if ((base58'2T' == bz)) | |
202 | 221 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
203 | 222 | else throw("Unknown chain") | |
204 | 223 | } | |
205 | 224 | ||
206 | - | let | |
207 | - | let | |
208 | - | if ((base58'2W' == | |
225 | + | let bA = { | |
226 | + | let bz = bx | |
227 | + | if ((base58'2W' == bz)) | |
209 | 228 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
210 | - | else if ((base58'2T' == | |
229 | + | else if ((base58'2T' == bz)) | |
211 | 230 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
212 | 231 | else throw("Unknown chain") | |
213 | 232 | } | |
214 | 233 | ||
215 | - | let | |
216 | - | let | |
217 | - | if ((base58'2W' == | |
234 | + | let bB = { | |
235 | + | let bz = bx | |
236 | + | if ((base58'2W' == bz)) | |
218 | 237 | then 86400000 | |
219 | - | else if ((base58'2T' == | |
238 | + | else if ((base58'2T' == bz)) | |
220 | 239 | then 60000 | |
221 | 240 | else throw("Unknown chain") | |
222 | 241 | } | |
223 | 242 | ||
224 | - | let | |
243 | + | let bC = "__" | |
225 | 244 | ||
226 | - | let | |
245 | + | let bD = 1000000 | |
227 | 246 | ||
228 | - | let | |
247 | + | let bE = 100000000 | |
229 | 248 | ||
230 | - | let | |
249 | + | let bF = 100000 | |
231 | 250 | ||
232 | - | func | |
251 | + | func bG (bH,bI) = valueOrErrorMessage(getString(bH, bI), makeString(["mandatory ", toString(bH), ".", bI, " is not defined"], "")) | |
233 | 252 | ||
234 | 253 | ||
235 | - | let | |
254 | + | let bJ = 1 | |
236 | 255 | ||
237 | - | let | |
256 | + | let bK = 2 | |
238 | 257 | ||
239 | - | let | |
258 | + | let bL = 4 | |
240 | 259 | ||
241 | - | let | |
260 | + | let bM = 5 | |
242 | 261 | ||
243 | - | let | |
262 | + | let bN = 6 | |
244 | 263 | ||
245 | - | func bC () = "%s__restConfig" | |
264 | + | let bO = 8 | |
265 | + | ||
266 | + | func bP () = "%s__restConfig" | |
246 | 267 | ||
247 | 268 | ||
248 | - | func | |
269 | + | func bQ () = "%s__restAddr" | |
249 | 270 | ||
250 | 271 | ||
251 | - | func | |
272 | + | func bR (bS) = split_4C(bG(bS, bP()), bC) | |
252 | 273 | ||
253 | 274 | ||
254 | - | func | |
275 | + | func bT (bU,bV) = valueOrErrorMessage(addressFromString(bU[bV]), ("Rest cfg doesn't contain address at index " + toString(bV))) | |
255 | 276 | ||
256 | 277 | ||
257 | - | let | |
278 | + | let bW = addressFromStringValue(valueOrElse(getString(this, bQ()), bA)) | |
258 | 279 | ||
259 | - | let | |
280 | + | let bU = bR(bW) | |
260 | 281 | ||
261 | - | let | |
282 | + | let aa = bT(bU, bJ) | |
262 | 283 | ||
263 | - | let | |
284 | + | let bX = bT(bU, bK) | |
264 | 285 | ||
265 | - | let | |
286 | + | let bY = bT(bU, bL) | |
266 | 287 | ||
267 | - | let | |
288 | + | let bZ = bT(bU, bM) | |
268 | 289 | ||
269 | - | let | |
290 | + | let aG = bT(bU, bN) | |
270 | 291 | ||
271 | - | let | |
292 | + | let ab = bT(bU, bO) | |
272 | 293 | ||
273 | - | let | |
294 | + | let ca = "wlg_assetId" | |
274 | 295 | ||
275 | - | let | |
296 | + | let cb = valueOrErrorMessage(getBinary(bY, ca), "WLGOLD is not issued yet") | |
276 | 297 | ||
277 | - | func bQ () = "resTypesProportions" | |
298 | + | let cc = 1 | |
299 | + | ||
300 | + | func cd () = "resTypesProportions" | |
278 | 301 | ||
279 | 302 | ||
280 | - | func | |
303 | + | func ce (cf) = ("stakedPiecesByOwner_" + cf) | |
281 | 304 | ||
282 | 305 | ||
283 | - | func | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
306 | + | func cg (ch) = { | |
307 | + | let bz = ch | |
308 | + | if ($isInstanceOf(bz, "Int")) | |
286 | 309 | then { | |
287 | - | let | |
288 | - | | |
310 | + | let ci = bz | |
311 | + | ci | |
289 | 312 | } | |
290 | 313 | else throw("fail to cast into Int") | |
291 | 314 | } | |
292 | 315 | ||
293 | 316 | ||
294 | - | func | |
295 | - | let | |
296 | - | func | |
317 | + | func cj (Z) = { | |
318 | + | let ac = split(valueOrElse(getString(aa, cd()), "0_0_0_0_0_0"), "_") | |
319 | + | func ad (ae,af) = (ae + parseIntValue(af)) | |
297 | 320 | ||
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | func | |
303 | - | then | |
304 | - | else | |
321 | + | let ck = { | |
322 | + | let ah = ac | |
323 | + | let ai = size(ah) | |
324 | + | let aj = 0 | |
325 | + | func ak (al,am) = if ((am >= ai)) | |
326 | + | then al | |
327 | + | else ad(al, ah[am]) | |
305 | 328 | ||
306 | - | func | |
307 | - | then | |
329 | + | func an (al,am) = if ((am >= ai)) | |
330 | + | then al | |
308 | 331 | else throw("List size exceeds 6") | |
309 | 332 | ||
310 | - | aj | |
333 | + | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
311 | 334 | } | |
312 | - | let | |
313 | - | [ | |
335 | + | let cl = valueOrElse(getInteger(aa, ce(Z)), 0) | |
336 | + | [ck, cl] | |
314 | 337 | } | |
315 | 338 | ||
316 | 339 | ||
317 | - | func | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | (((toString(( | |
340 | + | func cm (cn,co) = { | |
341 | + | let cp = pow(10, 0, co, 0, 0, DOWN) | |
342 | + | let cq = toString((cn % cp)) | |
343 | + | let cr = drop(toString(cp), (1 + size(cq))) | |
344 | + | (((toString((cn / cp)) + ".") + cr) + cq) | |
322 | 345 | } | |
323 | 346 | ||
324 | 347 | ||
325 | - | let | |
348 | + | let cs = "profitAddr" | |
326 | 349 | ||
327 | - | let | |
350 | + | let ct = "stakersAmountPaidTotal" | |
328 | 351 | ||
329 | - | func | |
352 | + | func cu (u) = ("stakersAmountPaidUser_" + u) | |
330 | 353 | ||
331 | 354 | ||
332 | - | func | |
355 | + | func cv () = cg(invoke(aa, "saveLastTx", nil, nil)) | |
333 | 356 | ||
334 | 357 | ||
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | if (( | |
339 | - | then throw((("Arbitrages are possible once a " + toString(( | |
358 | + | func cw (u) = { | |
359 | + | let cx = valueOrElse(getInteger(v(u)), 0) | |
360 | + | let aK = lastBlock.timestamp | |
361 | + | if ((bB > (aK - cx))) | |
362 | + | then throw((("Arbitrages are possible once a " + toString((bB / 60000))) + "min")) | |
340 | 363 | else { | |
341 | - | let cj = bW(u)[bP] | |
342 | - | (cj * bs) | |
364 | + | let cy = cj(u)[cc] | |
365 | + | let cz = valueOrElse(getInteger(ab, B(u)), 0) | |
366 | + | ((cy * bE) + cz) | |
343 | 367 | } | |
344 | 368 | } | |
345 | 369 | ||
346 | 370 | ||
347 | - | func | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | if ((( | |
371 | + | func cA (u,cB) = { | |
372 | + | let cC = addressFromStringValue(u) | |
373 | + | let cD = av(u, [bW, aa, bX, bY, bZ, aG, ab], by, 0, cB) | |
374 | + | let aK = lastBlock.timestamp | |
375 | + | let aL = cD[G] | |
376 | + | let aN = cD[H] | |
377 | + | let cE = cD[I] | |
378 | + | let aT = cD[J] | |
379 | + | let cF = cD[K] | |
380 | + | let aZ = cD[L] | |
381 | + | let cG = cD[M] | |
382 | + | if (((aK - aL) > i)) | |
359 | 383 | then throw("Please modify contract for next 1.5 years, according to stats") | |
360 | 384 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(k))), | |
385 | + | let bq = cD[O] | |
386 | + | let cH = cu(u) | |
387 | + | let cI = cD[P] | |
388 | + | let cJ = cD[Q] | |
389 | + | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(k))), cE, cb), ScriptTransfer(addressFromStringValue(value(getString(l))), cF, cb), ScriptTransfer(bW, cG, cb), IntegerEntry(cH, (valueOrElse(getInteger(cH), 0) + bq)), IntegerEntry(ct, (valueOrElse(getInteger(ct), 0) + cI)), IntegerEntry(s, (cD[N] - cI)), IntegerEntry(n, (aN - cE)), IntegerEntry(m, aK), IntegerEntry(p, (aT - cF)), IntegerEntry(o, aK), IntegerEntry(r, (aZ - cG)), IntegerEntry(q, aK), IntegerEntry(t(u), cJ)], $Tuple2(bq, cI)) | |
366 | 390 | } | |
367 | 391 | } | |
368 | 392 | ||
369 | 393 | ||
370 | - | @Callable( | |
371 | - | func constructorV1 ( | |
394 | + | @Callable(cK) | |
395 | + | func constructorV1 (cL,aP,aV,cM) = if ((cK.caller != this)) | |
372 | 396 | then throw("Permission denied") | |
373 | - | else if (isDefined(getBinary( | |
397 | + | else if (isDefined(getBinary(ca))) | |
374 | 398 | then throw("Already initialized") | |
375 | 399 | else { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | [ | |
400 | + | let aB = c | |
401 | + | let cN = Issue("WLGOLD", "WavesLands Gold investment token", aB, 8, true, unit, 0) | |
402 | + | let cO = calculateAssetId(cN) | |
403 | + | [cN, IntegerEntry(y, lastBlock.timestamp), IntegerEntry(z, aB), IntegerEntry(ct, 0), IntegerEntry(s, fraction(c, g, bD)), BinaryEntry(ca, cO), StringEntry(bQ(), cL), StringEntry(k, aP), StringEntry(l, aV), StringEntry(cs, cM)] | |
380 | 404 | } | |
381 | 405 | ||
382 | 406 | ||
383 | 407 | ||
384 | - | @Callable( | |
385 | - | func buyWlg ( | |
386 | - | let | |
387 | - | if ((size( | |
408 | + | @Callable(cK) | |
409 | + | func buyWlg (cP) = { | |
410 | + | let cQ = cv() | |
411 | + | if ((size(cK.payments) != 1)) | |
388 | 412 | then throw("exactly 1 payment must be attached") | |
389 | 413 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if (( | |
414 | + | let cR = cK.payments[0] | |
415 | + | let cS = cR.amount | |
416 | + | let cT = valueOrErrorMessage(cR.assetId, "USDT payments only!") | |
417 | + | if ((cT != by)) | |
394 | 418 | then throw("USDT payments only!") | |
395 | 419 | else { | |
396 | - | let | |
397 | - | let u = toString( | |
398 | - | if (( | |
399 | - | then throw((("You can trade min " + | |
420 | + | let cC = cK.caller | |
421 | + | let u = toString(cC) | |
422 | + | if ((bF > cS)) | |
423 | + | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
400 | 424 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then throw((("You can get max " + | |
410 | - | else if (( | |
425 | + | let cD = av("", [bW, aa, bX, bY, bZ, aG], by, cS, bD) | |
426 | + | let cU = cD[D] | |
427 | + | let cV = cD[F] | |
428 | + | let cW = fraction(cV, bE, cU) | |
429 | + | let cX = fraction(cW, 6, 5) | |
430 | + | let cY = fraction(cS, bE, cX) | |
431 | + | let cZ = cw(u) | |
432 | + | if ((cY > cZ)) | |
433 | + | then throw((("You can get max " + cm(cZ, 8)) + " WLGOLD")) | |
434 | + | else if ((cP > cY)) | |
411 | 435 | then throw("Price changed during operation, please try again") | |
412 | 436 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | $Tuple2([Reissue( | |
437 | + | let da = (cS / 6) | |
438 | + | let db = (cS - da) | |
439 | + | let dc = fraction(cU, db, cV) | |
440 | + | $Tuple2([Reissue(cb, dc, true), IntegerEntry(z, (cU + dc)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cY, cb)], cQ) | |
417 | 441 | } | |
418 | 442 | } | |
419 | 443 | } | |
422 | 446 | ||
423 | 447 | ||
424 | 448 | ||
425 | - | @Callable( | |
426 | - | func sellWlg ( | |
427 | - | let | |
428 | - | if ((size( | |
449 | + | @Callable(cK) | |
450 | + | func sellWlg (cP) = { | |
451 | + | let cQ = cv() | |
452 | + | if ((size(cK.payments) != 1)) | |
429 | 453 | then throw("exactly 1 payment must be attached") | |
430 | 454 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let u = toString( | |
435 | - | let | |
436 | - | if (( | |
437 | - | then throw((("You can spend max " + | |
455 | + | let cR = cK.payments[0] | |
456 | + | let dd = cR.amount | |
457 | + | let cC = cK.caller | |
458 | + | let u = toString(cC) | |
459 | + | let cZ = cw(u) | |
460 | + | if ((dd > cZ)) | |
461 | + | then throw((("You can spend max " + cm(cZ, 8)) + " WLGOLD")) | |
438 | 462 | else { | |
439 | - | let | |
440 | - | if (( | |
463 | + | let cT = valueOrErrorMessage(cR.assetId, "WLGOLD payments only!") | |
464 | + | if ((cT != cb)) | |
441 | 465 | then throw("WLGOLD payments only!") | |
442 | 466 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (( | |
448 | - | then throw((("You can trade min " + | |
449 | - | else if (( | |
467 | + | let cD = av("", [bW, aa, bX, bY, bZ, aG], by, 0, bD) | |
468 | + | let cU = cD[D] | |
469 | + | let de = fraction(cD[E], 4, 5) | |
470 | + | let cS = fraction(dd, de, bE) | |
471 | + | if ((bF > cS)) | |
472 | + | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
473 | + | else if ((cP > cS)) | |
450 | 474 | then throw("Price changed during operation, please try again") | |
451 | 475 | else { | |
452 | - | let | |
453 | - | let | |
454 | - | $Tuple2([Burn( | |
476 | + | let da = (cS / 4) | |
477 | + | let df = fraction((cS + da), cU, cD[F]) | |
478 | + | $Tuple2([Burn(cb, df), IntegerEntry(z, (cU - df)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cS, by)], cQ) | |
455 | 479 | } | |
456 | 480 | } | |
457 | 481 | } | |
460 | 484 | ||
461 | 485 | ||
462 | 486 | ||
463 | - | @Callable( | |
487 | + | @Callable(cK) | |
464 | 488 | func claim () = { | |
465 | - | let | |
466 | - | if ((size( | |
489 | + | let cQ = cv() | |
490 | + | if ((size(cK.payments) != 0)) | |
467 | 491 | then throw("No payments required") | |
468 | 492 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2(( | |
493 | + | let dg = cA(toString(cK.caller), bD) | |
494 | + | let dh = dg._1 | |
495 | + | $Tuple2((dh :+ ScriptTransfer(cK.caller, dg._2._1, cb)), cQ) | |
472 | 496 | } | |
473 | 497 | } | |
474 | 498 | ||
475 | 499 | ||
476 | 500 | ||
477 | - | @Callable( | |
478 | - | func onStakeUnstakeLand (u) = if (( | |
501 | + | @Callable(cK) | |
502 | + | func onStakeUnstakeLand (u) = if ((cK.caller != aa)) | |
479 | 503 | then throw("Permission denied") | |
480 | 504 | else { | |
481 | - | let | |
482 | - | let | |
483 | - | $Tuple2(( | |
505 | + | let dg = cA(u, bD) | |
506 | + | let dh = dg._1 | |
507 | + | $Tuple2((dh :+ ScriptTransfer(addressFromStringValue(u), dg._2._1, cb)), dg._2) | |
484 | 508 | } | |
485 | 509 | ||
486 | 510 | ||
487 | 511 | ||
488 | - | @Callable( | |
489 | - | func claimRob ( | |
512 | + | @Callable(cK) | |
513 | + | func claimRob (di,dj,dk) = if ((cK.caller != aa)) | |
490 | 514 | then throw("Permission denied") | |
491 | 515 | else { | |
492 | - | let | |
493 | - | $Tuple2(( | |
516 | + | let dg = cA(di, dk) | |
517 | + | $Tuple2((dg._1 :+ ScriptTransfer(addressFromStringValue(dj), (dg._2._2 - dg._2._1), cb)), dg._2) | |
494 | 518 | } | |
495 | 519 | ||
496 | 520 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 100000000000000 | |
9 | 9 | ||
10 | 10 | let d = 100000 | |
11 | 11 | ||
12 | 12 | let e = 200000 | |
13 | 13 | ||
14 | 14 | let f = 100000 | |
15 | 15 | ||
16 | 16 | let g = 400000 | |
17 | 17 | ||
18 | 18 | let h = 31557600000 | |
19 | 19 | ||
20 | 20 | let i = 47336400000 | |
21 | 21 | ||
22 | 22 | let j = 86400000 | |
23 | 23 | ||
24 | 24 | let k = "marketingAddr" | |
25 | 25 | ||
26 | 26 | let l = "teamAddr" | |
27 | 27 | ||
28 | 28 | let m = "lastClaimedTime_marketing" | |
29 | 29 | ||
30 | 30 | let n = "marketingAmountLeft" | |
31 | 31 | ||
32 | 32 | let o = "lastClaimedTime_team" | |
33 | 33 | ||
34 | 34 | let p = "teamAmountLeft" | |
35 | 35 | ||
36 | 36 | let q = "lastClaimedTime_activities" | |
37 | 37 | ||
38 | 38 | let r = "activitiesAmountLeft" | |
39 | 39 | ||
40 | 40 | let s = "stakersAmountLeft" | |
41 | 41 | ||
42 | 42 | func t (u) = ("lastClaimedTimeUser_" + u) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (u) = ("lastArbTimeUser_" + u) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func w (x) = fraction(c, (g * (x + 1)), (6 * a)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | let y = "wlg_issueTime" | |
52 | 52 | ||
53 | 53 | let z = "wlg_issuedAmount" | |
54 | 54 | ||
55 | 55 | let A = "zbill_issuedAmount" | |
56 | 56 | ||
57 | - | ||
57 | + | func B (u) = ("acresStakedAmountByUser_" + u) | |
58 | 58 | ||
59 | - | let C = 1 | |
60 | 59 | ||
61 | - | let | |
60 | + | let C = "acresStakedAmountTotal" | |
62 | 61 | ||
63 | - | let | |
62 | + | let D = 0 | |
64 | 63 | ||
65 | - | let | |
64 | + | let E = 1 | |
66 | 65 | ||
67 | - | let | |
66 | + | let F = 2 | |
68 | 67 | ||
69 | - | let | |
68 | + | let G = 7 | |
70 | 69 | ||
71 | - | let | |
70 | + | let H = 10 | |
72 | 71 | ||
73 | - | let | |
72 | + | let I = 11 | |
74 | 73 | ||
75 | - | let | |
74 | + | let J = 14 | |
76 | 75 | ||
77 | - | let | |
76 | + | let K = 15 | |
78 | 77 | ||
79 | - | let | |
78 | + | let L = 18 | |
80 | 79 | ||
81 | - | let | |
80 | + | let M = 19 | |
82 | 81 | ||
83 | - | let | |
82 | + | let N = 22 | |
84 | 83 | ||
85 | - | let | |
84 | + | let O = 25 | |
86 | 85 | ||
87 | - | let | |
86 | + | let P = 28 | |
88 | 87 | ||
89 | - | let | |
88 | + | let Q = 29 | |
90 | 89 | ||
91 | - | let | |
90 | + | let R = 0 | |
92 | 91 | ||
93 | - | let | |
92 | + | let S = 1 | |
94 | 93 | ||
95 | - | let | |
94 | + | let T = 2 | |
96 | 95 | ||
97 | - | func V (W,X) = { | |
98 | - | let Y = split(valueOrElse(getString(X, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
99 | - | func Z (aa,ab) = (aa + parseIntValue(ab)) | |
96 | + | let U = 3 | |
100 | 97 | ||
101 | - | let ac = { | |
102 | - | let ad = Y | |
103 | - | let ae = size(ad) | |
104 | - | let af = 0 | |
105 | - | func ag (ah,ai) = if ((ai >= ae)) | |
106 | - | then ah | |
107 | - | else Z(ah, ad[ai]) | |
98 | + | let V = 4 | |
108 | 99 | ||
109 | - | func aj (ah,ai) = if ((ai >= ae)) | |
110 | - | then ah | |
100 | + | let W = 5 | |
101 | + | ||
102 | + | let X = 6 | |
103 | + | ||
104 | + | func Y (Z,aa,ab) = { | |
105 | + | let ac = split(valueOrElse(getString(aa, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
106 | + | func ad (ae,af) = (ae + parseIntValue(af)) | |
107 | + | ||
108 | + | let ag = { | |
109 | + | let ah = ac | |
110 | + | let ai = size(ah) | |
111 | + | let aj = 0 | |
112 | + | func ak (al,am) = if ((am >= ai)) | |
113 | + | then al | |
114 | + | else ad(al, ah[am]) | |
115 | + | ||
116 | + | func an (al,am) = if ((am >= ai)) | |
117 | + | then al | |
111 | 118 | else throw("List size exceeds 6") | |
112 | 119 | ||
113 | - | aj | |
120 | + | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
114 | 121 | } | |
115 | - | let ak = valueOrElse(getInteger(X, ("stakedPiecesByOwner_" + W)), 0) | |
116 | - | [ac, ak] | |
122 | + | let ao = valueOrElse(getInteger(aa, ("stakedPiecesByOwner_" + Z)), 0) | |
123 | + | let ap = valueOrElse(getInteger(ab, C), 0) | |
124 | + | let aq = valueOrElse(getInteger(ab, B(Z)), 0) | |
125 | + | [ag, ao, ap, aq] | |
117 | 126 | } | |
118 | 127 | ||
119 | 128 | ||
120 | - | func al (am,an,ao,ap,aq) = { | |
121 | - | let ar = valueOrErrorMessage(getInteger(an[S], z), "WLGOLD is not issued yet") | |
122 | - | let as = assetBalance(an[R], ao) | |
123 | - | let at = assetBalance(an[P], ao) | |
124 | - | let au = (assetBalance(an[S], ao) - ap) | |
125 | - | let av = assetBalance(an[T], ao) | |
126 | - | let aw = an[U] | |
127 | - | let ax = (assetBalance(aw, ao) + valueOrElse(getInteger(aw, A), 0)) | |
128 | - | let ay = ((as + au) + ax) | |
129 | - | let az = valueOrErrorMessage(getBinary(an[S], "wlg_assetId"), "Not initialized yet") | |
130 | - | let aA = lastBlock.timestamp | |
131 | - | let aB = valueOrErrorMessage(getInteger(an[S], y), "Not initialized") | |
132 | - | let aC = fraction(c, d, a) | |
133 | - | let aD = valueOrElse(getInteger(an[S], n), aC) | |
134 | - | let aE = valueOrElse(getInteger(an[S], m), aB) | |
135 | - | let aF = addressFromStringValue(value(getString(an[S], k))) | |
136 | - | let aG = min([fraction(aC, (aA - aE), h), aD]) | |
137 | - | let aH = assetBalance(aF, az) | |
138 | - | let aI = fraction(c, e, a) | |
139 | - | let aJ = valueOrElse(getInteger(an[S], p), aI) | |
140 | - | let aK = valueOrElse(getInteger(an[S], o), aB) | |
141 | - | let aL = addressFromStringValue(value(getString(an[S], l))) | |
142 | - | let aM = min([fraction(aI, (aA - aK), (3 * h)), aJ]) | |
143 | - | let aN = assetBalance(aL, az) | |
144 | - | let aO = fraction(c, f, a) | |
145 | - | let aP = valueOrElse(getInteger(an[S], r), aO) | |
146 | - | let aQ = valueOrElse(getInteger(an[S], q), aB) | |
147 | - | let aR = min([fraction(aO, (aA - aQ), (3 * h)), aP]) | |
148 | - | let aS = assetBalance(an[P], az) | |
149 | - | let aT = valueOrElse(getInteger(an[S], t(am)), aB) | |
150 | - | let aU = ((aT - aB) / h) | |
151 | - | let aV = min([aA, (aB + (3 * h))]) | |
152 | - | let aW = min([((aA - aB) / h), 2]) | |
153 | - | let aX = V(am, an[Q]) | |
154 | - | let aY = w(aW) | |
155 | - | let aZ = if ((aU == aW)) | |
129 | + | let ar = 0 | |
130 | + | ||
131 | + | let as = 1 | |
132 | + | ||
133 | + | let at = 2 | |
134 | + | ||
135 | + | let au = 3 | |
136 | + | ||
137 | + | func av (aw,ax,ay,az,aA) = { | |
138 | + | let aB = valueOrErrorMessage(getInteger(ax[U], z), "WLGOLD is not issued yet") | |
139 | + | let aC = assetBalance(ax[T], ay) | |
140 | + | let aD = assetBalance(ax[R], ay) | |
141 | + | let aE = (assetBalance(ax[U], ay) - az) | |
142 | + | let aF = assetBalance(ax[V], ay) | |
143 | + | let aG = ax[W] | |
144 | + | let aH = (assetBalance(aG, ay) + valueOrElse(getInteger(aG, A), 0)) | |
145 | + | let aI = ((aC + aE) + aH) | |
146 | + | let aJ = valueOrErrorMessage(getBinary(ax[U], "wlg_assetId"), "Not initialized yet") | |
147 | + | let aK = lastBlock.timestamp | |
148 | + | let aL = valueOrErrorMessage(getInteger(ax[U], y), "Not initialized") | |
149 | + | let aM = fraction(c, d, a) | |
150 | + | let aN = valueOrElse(getInteger(ax[U], n), aM) | |
151 | + | let aO = valueOrElse(getInteger(ax[U], m), aL) | |
152 | + | let aP = addressFromStringValue(value(getString(ax[U], k))) | |
153 | + | let aQ = min([fraction(aM, (aK - aO), h), aN]) | |
154 | + | let aR = assetBalance(aP, aJ) | |
155 | + | let aS = fraction(c, e, a) | |
156 | + | let aT = valueOrElse(getInteger(ax[U], p), aS) | |
157 | + | let aU = valueOrElse(getInteger(ax[U], o), aL) | |
158 | + | let aV = addressFromStringValue(value(getString(ax[U], l))) | |
159 | + | let aW = min([fraction(aS, (aK - aU), (3 * h)), aT]) | |
160 | + | let aX = assetBalance(aV, aJ) | |
161 | + | let aY = fraction(c, f, a) | |
162 | + | let aZ = valueOrElse(getInteger(ax[U], r), aY) | |
163 | + | let ba = valueOrElse(getInteger(ax[U], q), aL) | |
164 | + | let bb = min([fraction(aY, (aK - ba), (3 * h)), aZ]) | |
165 | + | let bc = assetBalance(ax[R], aJ) | |
166 | + | let bd = valueOrElse(getInteger(ax[U], t(aw)), aL) | |
167 | + | let be = ((bd - aL) / h) | |
168 | + | let bf = min([aK, (aL + (3 * h))]) | |
169 | + | let bg = min([((aK - aL) / h), 2]) | |
170 | + | let bh = Y(aw, ax[S], ax[X]) | |
171 | + | let bi = w(bg) | |
172 | + | let bj = if ((be == bg)) | |
156 | 173 | then { | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | $Tuple3( | |
174 | + | let bk = fraction(bi, (bf - bd), h) | |
175 | + | let bl = fraction(bk, aA, a) | |
176 | + | let bm = (bd + fraction((bf - bd), aA, a)) | |
177 | + | $Tuple3(bl, bk, bm) | |
161 | 178 | } | |
162 | - | else if (( | |
179 | + | else if ((be == (bg - 1))) | |
163 | 180 | then { | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | then ( | |
170 | - | else (( | |
171 | - | $Tuple3( | |
181 | + | let bn = fraction(w((bg - 1)), ((aL + (h * bg)) - bd), h) | |
182 | + | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
183 | + | let bo = (bn + bk) | |
184 | + | let bl = fraction(bo, aA, a) | |
185 | + | let bm = if ((bn >= bl)) | |
186 | + | then (bd + fraction(h, bl, w((bg - 1)))) | |
187 | + | else ((aL + (h * bg)) + fraction(h, (bl - bn), bi)) | |
188 | + | $Tuple3(bl, bo, bm) | |
172 | 189 | } | |
173 | 190 | else { | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | then ( | |
181 | - | else if ((( | |
182 | - | then (( | |
183 | - | else (( | |
184 | - | $Tuple3( | |
191 | + | let bp = fraction(w((bg - 2)), ((aL + (h * (bg - 1))) - bd), h) | |
192 | + | let bn = w((bg - 1)) | |
193 | + | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
194 | + | let bo = ((bp + bn) + bk) | |
195 | + | let bl = fraction(bo, aA, a) | |
196 | + | let bm = if ((bp >= bl)) | |
197 | + | then (bd + fraction(h, bl, w((bg - 2)))) | |
198 | + | else if (((bp + bn) >= bl)) | |
199 | + | then ((aL + (h * (bg - 1))) + fraction(h, (bl - bp), w((bg - 1)))) | |
200 | + | else ((aL + (h * bg)) + fraction(h, ((bl - bp) - bn), bi)) | |
201 | + | $Tuple3(bl, bo, bm) | |
185 | 202 | } | |
186 | - | let bg = aZ._1 | |
187 | - | let bh = aZ._2 | |
188 | - | let bi = aZ._3 | |
189 | - | let bj = fraction(fraction(aY, j, h), 25, aX[0]) | |
190 | - | let bk = valueOrElse(getInteger(an[S], s), 0) | |
191 | - | [ar, fraction(ay, b, ar), ay, as, at, au, av, aB, aE, aC, aD, aG, aH, aI, aJ, aM, aN, aO, aP, aR, aS, aW, bk, aY, aT, fraction(bg, aX[1], aX[0]), bj, ax, fraction(bh, aX[1], aX[0]), bi] | |
203 | + | let bq = bj._1 | |
204 | + | let br = bj._2 | |
205 | + | let bs = bj._3 | |
206 | + | let bt = fraction(fraction(bi, j, h), 25, bh[ar]) | |
207 | + | let bu = valueOrElse(getInteger(ax[U], s), 0) | |
208 | + | let bv = fraction(bq, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
209 | + | let bw = fraction(br, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
210 | + | [aB, fraction(aI, b, aB), aI, aC, aD, aE, aF, aL, aO, aM, aN, aQ, aR, aS, aT, aW, aX, aY, aZ, bb, bc, bg, bu, bi, bd, bv, bt, aH, bw, bs] | |
192 | 211 | } | |
193 | 212 | ||
194 | 213 | ||
195 | - | let | |
214 | + | let bx = take(drop(this.bytes, 1), 1) | |
196 | 215 | ||
197 | - | let | |
198 | - | let | |
199 | - | if ((base58'2W' == | |
216 | + | let by = { | |
217 | + | let bz = bx | |
218 | + | if ((base58'2W' == bz)) | |
200 | 219 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
201 | - | else if ((base58'2T' == | |
220 | + | else if ((base58'2T' == bz)) | |
202 | 221 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
203 | 222 | else throw("Unknown chain") | |
204 | 223 | } | |
205 | 224 | ||
206 | - | let | |
207 | - | let | |
208 | - | if ((base58'2W' == | |
225 | + | let bA = { | |
226 | + | let bz = bx | |
227 | + | if ((base58'2W' == bz)) | |
209 | 228 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
210 | - | else if ((base58'2T' == | |
229 | + | else if ((base58'2T' == bz)) | |
211 | 230 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
212 | 231 | else throw("Unknown chain") | |
213 | 232 | } | |
214 | 233 | ||
215 | - | let | |
216 | - | let | |
217 | - | if ((base58'2W' == | |
234 | + | let bB = { | |
235 | + | let bz = bx | |
236 | + | if ((base58'2W' == bz)) | |
218 | 237 | then 86400000 | |
219 | - | else if ((base58'2T' == | |
238 | + | else if ((base58'2T' == bz)) | |
220 | 239 | then 60000 | |
221 | 240 | else throw("Unknown chain") | |
222 | 241 | } | |
223 | 242 | ||
224 | - | let | |
243 | + | let bC = "__" | |
225 | 244 | ||
226 | - | let | |
245 | + | let bD = 1000000 | |
227 | 246 | ||
228 | - | let | |
247 | + | let bE = 100000000 | |
229 | 248 | ||
230 | - | let | |
249 | + | let bF = 100000 | |
231 | 250 | ||
232 | - | func | |
251 | + | func bG (bH,bI) = valueOrErrorMessage(getString(bH, bI), makeString(["mandatory ", toString(bH), ".", bI, " is not defined"], "")) | |
233 | 252 | ||
234 | 253 | ||
235 | - | let | |
254 | + | let bJ = 1 | |
236 | 255 | ||
237 | - | let | |
256 | + | let bK = 2 | |
238 | 257 | ||
239 | - | let | |
258 | + | let bL = 4 | |
240 | 259 | ||
241 | - | let | |
260 | + | let bM = 5 | |
242 | 261 | ||
243 | - | let | |
262 | + | let bN = 6 | |
244 | 263 | ||
245 | - | func bC () = "%s__restConfig" | |
264 | + | let bO = 8 | |
265 | + | ||
266 | + | func bP () = "%s__restConfig" | |
246 | 267 | ||
247 | 268 | ||
248 | - | func | |
269 | + | func bQ () = "%s__restAddr" | |
249 | 270 | ||
250 | 271 | ||
251 | - | func | |
272 | + | func bR (bS) = split_4C(bG(bS, bP()), bC) | |
252 | 273 | ||
253 | 274 | ||
254 | - | func | |
275 | + | func bT (bU,bV) = valueOrErrorMessage(addressFromString(bU[bV]), ("Rest cfg doesn't contain address at index " + toString(bV))) | |
255 | 276 | ||
256 | 277 | ||
257 | - | let | |
278 | + | let bW = addressFromStringValue(valueOrElse(getString(this, bQ()), bA)) | |
258 | 279 | ||
259 | - | let | |
280 | + | let bU = bR(bW) | |
260 | 281 | ||
261 | - | let | |
282 | + | let aa = bT(bU, bJ) | |
262 | 283 | ||
263 | - | let | |
284 | + | let bX = bT(bU, bK) | |
264 | 285 | ||
265 | - | let | |
286 | + | let bY = bT(bU, bL) | |
266 | 287 | ||
267 | - | let | |
288 | + | let bZ = bT(bU, bM) | |
268 | 289 | ||
269 | - | let | |
290 | + | let aG = bT(bU, bN) | |
270 | 291 | ||
271 | - | let | |
292 | + | let ab = bT(bU, bO) | |
272 | 293 | ||
273 | - | let | |
294 | + | let ca = "wlg_assetId" | |
274 | 295 | ||
275 | - | let | |
296 | + | let cb = valueOrErrorMessage(getBinary(bY, ca), "WLGOLD is not issued yet") | |
276 | 297 | ||
277 | - | func bQ () = "resTypesProportions" | |
298 | + | let cc = 1 | |
299 | + | ||
300 | + | func cd () = "resTypesProportions" | |
278 | 301 | ||
279 | 302 | ||
280 | - | func | |
303 | + | func ce (cf) = ("stakedPiecesByOwner_" + cf) | |
281 | 304 | ||
282 | 305 | ||
283 | - | func | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
306 | + | func cg (ch) = { | |
307 | + | let bz = ch | |
308 | + | if ($isInstanceOf(bz, "Int")) | |
286 | 309 | then { | |
287 | - | let | |
288 | - | | |
310 | + | let ci = bz | |
311 | + | ci | |
289 | 312 | } | |
290 | 313 | else throw("fail to cast into Int") | |
291 | 314 | } | |
292 | 315 | ||
293 | 316 | ||
294 | - | func | |
295 | - | let | |
296 | - | func | |
317 | + | func cj (Z) = { | |
318 | + | let ac = split(valueOrElse(getString(aa, cd()), "0_0_0_0_0_0"), "_") | |
319 | + | func ad (ae,af) = (ae + parseIntValue(af)) | |
297 | 320 | ||
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | func | |
303 | - | then | |
304 | - | else | |
321 | + | let ck = { | |
322 | + | let ah = ac | |
323 | + | let ai = size(ah) | |
324 | + | let aj = 0 | |
325 | + | func ak (al,am) = if ((am >= ai)) | |
326 | + | then al | |
327 | + | else ad(al, ah[am]) | |
305 | 328 | ||
306 | - | func | |
307 | - | then | |
329 | + | func an (al,am) = if ((am >= ai)) | |
330 | + | then al | |
308 | 331 | else throw("List size exceeds 6") | |
309 | 332 | ||
310 | - | aj | |
333 | + | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
311 | 334 | } | |
312 | - | let | |
313 | - | [ | |
335 | + | let cl = valueOrElse(getInteger(aa, ce(Z)), 0) | |
336 | + | [ck, cl] | |
314 | 337 | } | |
315 | 338 | ||
316 | 339 | ||
317 | - | func | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | (((toString(( | |
340 | + | func cm (cn,co) = { | |
341 | + | let cp = pow(10, 0, co, 0, 0, DOWN) | |
342 | + | let cq = toString((cn % cp)) | |
343 | + | let cr = drop(toString(cp), (1 + size(cq))) | |
344 | + | (((toString((cn / cp)) + ".") + cr) + cq) | |
322 | 345 | } | |
323 | 346 | ||
324 | 347 | ||
325 | - | let | |
348 | + | let cs = "profitAddr" | |
326 | 349 | ||
327 | - | let | |
350 | + | let ct = "stakersAmountPaidTotal" | |
328 | 351 | ||
329 | - | func | |
352 | + | func cu (u) = ("stakersAmountPaidUser_" + u) | |
330 | 353 | ||
331 | 354 | ||
332 | - | func | |
355 | + | func cv () = cg(invoke(aa, "saveLastTx", nil, nil)) | |
333 | 356 | ||
334 | 357 | ||
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | if (( | |
339 | - | then throw((("Arbitrages are possible once a " + toString(( | |
358 | + | func cw (u) = { | |
359 | + | let cx = valueOrElse(getInteger(v(u)), 0) | |
360 | + | let aK = lastBlock.timestamp | |
361 | + | if ((bB > (aK - cx))) | |
362 | + | then throw((("Arbitrages are possible once a " + toString((bB / 60000))) + "min")) | |
340 | 363 | else { | |
341 | - | let cj = bW(u)[bP] | |
342 | - | (cj * bs) | |
364 | + | let cy = cj(u)[cc] | |
365 | + | let cz = valueOrElse(getInteger(ab, B(u)), 0) | |
366 | + | ((cy * bE) + cz) | |
343 | 367 | } | |
344 | 368 | } | |
345 | 369 | ||
346 | 370 | ||
347 | - | func | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | if ((( | |
371 | + | func cA (u,cB) = { | |
372 | + | let cC = addressFromStringValue(u) | |
373 | + | let cD = av(u, [bW, aa, bX, bY, bZ, aG, ab], by, 0, cB) | |
374 | + | let aK = lastBlock.timestamp | |
375 | + | let aL = cD[G] | |
376 | + | let aN = cD[H] | |
377 | + | let cE = cD[I] | |
378 | + | let aT = cD[J] | |
379 | + | let cF = cD[K] | |
380 | + | let aZ = cD[L] | |
381 | + | let cG = cD[M] | |
382 | + | if (((aK - aL) > i)) | |
359 | 383 | then throw("Please modify contract for next 1.5 years, according to stats") | |
360 | 384 | else { | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(k))), | |
385 | + | let bq = cD[O] | |
386 | + | let cH = cu(u) | |
387 | + | let cI = cD[P] | |
388 | + | let cJ = cD[Q] | |
389 | + | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(k))), cE, cb), ScriptTransfer(addressFromStringValue(value(getString(l))), cF, cb), ScriptTransfer(bW, cG, cb), IntegerEntry(cH, (valueOrElse(getInteger(cH), 0) + bq)), IntegerEntry(ct, (valueOrElse(getInteger(ct), 0) + cI)), IntegerEntry(s, (cD[N] - cI)), IntegerEntry(n, (aN - cE)), IntegerEntry(m, aK), IntegerEntry(p, (aT - cF)), IntegerEntry(o, aK), IntegerEntry(r, (aZ - cG)), IntegerEntry(q, aK), IntegerEntry(t(u), cJ)], $Tuple2(bq, cI)) | |
366 | 390 | } | |
367 | 391 | } | |
368 | 392 | ||
369 | 393 | ||
370 | - | @Callable( | |
371 | - | func constructorV1 ( | |
394 | + | @Callable(cK) | |
395 | + | func constructorV1 (cL,aP,aV,cM) = if ((cK.caller != this)) | |
372 | 396 | then throw("Permission denied") | |
373 | - | else if (isDefined(getBinary( | |
397 | + | else if (isDefined(getBinary(ca))) | |
374 | 398 | then throw("Already initialized") | |
375 | 399 | else { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | [ | |
400 | + | let aB = c | |
401 | + | let cN = Issue("WLGOLD", "WavesLands Gold investment token", aB, 8, true, unit, 0) | |
402 | + | let cO = calculateAssetId(cN) | |
403 | + | [cN, IntegerEntry(y, lastBlock.timestamp), IntegerEntry(z, aB), IntegerEntry(ct, 0), IntegerEntry(s, fraction(c, g, bD)), BinaryEntry(ca, cO), StringEntry(bQ(), cL), StringEntry(k, aP), StringEntry(l, aV), StringEntry(cs, cM)] | |
380 | 404 | } | |
381 | 405 | ||
382 | 406 | ||
383 | 407 | ||
384 | - | @Callable( | |
385 | - | func buyWlg ( | |
386 | - | let | |
387 | - | if ((size( | |
408 | + | @Callable(cK) | |
409 | + | func buyWlg (cP) = { | |
410 | + | let cQ = cv() | |
411 | + | if ((size(cK.payments) != 1)) | |
388 | 412 | then throw("exactly 1 payment must be attached") | |
389 | 413 | else { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if (( | |
414 | + | let cR = cK.payments[0] | |
415 | + | let cS = cR.amount | |
416 | + | let cT = valueOrErrorMessage(cR.assetId, "USDT payments only!") | |
417 | + | if ((cT != by)) | |
394 | 418 | then throw("USDT payments only!") | |
395 | 419 | else { | |
396 | - | let | |
397 | - | let u = toString( | |
398 | - | if (( | |
399 | - | then throw((("You can trade min " + | |
420 | + | let cC = cK.caller | |
421 | + | let u = toString(cC) | |
422 | + | if ((bF > cS)) | |
423 | + | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
400 | 424 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then throw((("You can get max " + | |
410 | - | else if (( | |
425 | + | let cD = av("", [bW, aa, bX, bY, bZ, aG], by, cS, bD) | |
426 | + | let cU = cD[D] | |
427 | + | let cV = cD[F] | |
428 | + | let cW = fraction(cV, bE, cU) | |
429 | + | let cX = fraction(cW, 6, 5) | |
430 | + | let cY = fraction(cS, bE, cX) | |
431 | + | let cZ = cw(u) | |
432 | + | if ((cY > cZ)) | |
433 | + | then throw((("You can get max " + cm(cZ, 8)) + " WLGOLD")) | |
434 | + | else if ((cP > cY)) | |
411 | 435 | then throw("Price changed during operation, please try again") | |
412 | 436 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | $Tuple2([Reissue( | |
437 | + | let da = (cS / 6) | |
438 | + | let db = (cS - da) | |
439 | + | let dc = fraction(cU, db, cV) | |
440 | + | $Tuple2([Reissue(cb, dc, true), IntegerEntry(z, (cU + dc)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cY, cb)], cQ) | |
417 | 441 | } | |
418 | 442 | } | |
419 | 443 | } | |
420 | 444 | } | |
421 | 445 | } | |
422 | 446 | ||
423 | 447 | ||
424 | 448 | ||
425 | - | @Callable( | |
426 | - | func sellWlg ( | |
427 | - | let | |
428 | - | if ((size( | |
449 | + | @Callable(cK) | |
450 | + | func sellWlg (cP) = { | |
451 | + | let cQ = cv() | |
452 | + | if ((size(cK.payments) != 1)) | |
429 | 453 | then throw("exactly 1 payment must be attached") | |
430 | 454 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let u = toString( | |
435 | - | let | |
436 | - | if (( | |
437 | - | then throw((("You can spend max " + | |
455 | + | let cR = cK.payments[0] | |
456 | + | let dd = cR.amount | |
457 | + | let cC = cK.caller | |
458 | + | let u = toString(cC) | |
459 | + | let cZ = cw(u) | |
460 | + | if ((dd > cZ)) | |
461 | + | then throw((("You can spend max " + cm(cZ, 8)) + " WLGOLD")) | |
438 | 462 | else { | |
439 | - | let | |
440 | - | if (( | |
463 | + | let cT = valueOrErrorMessage(cR.assetId, "WLGOLD payments only!") | |
464 | + | if ((cT != cb)) | |
441 | 465 | then throw("WLGOLD payments only!") | |
442 | 466 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (( | |
448 | - | then throw((("You can trade min " + | |
449 | - | else if (( | |
467 | + | let cD = av("", [bW, aa, bX, bY, bZ, aG], by, 0, bD) | |
468 | + | let cU = cD[D] | |
469 | + | let de = fraction(cD[E], 4, 5) | |
470 | + | let cS = fraction(dd, de, bE) | |
471 | + | if ((bF > cS)) | |
472 | + | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
473 | + | else if ((cP > cS)) | |
450 | 474 | then throw("Price changed during operation, please try again") | |
451 | 475 | else { | |
452 | - | let | |
453 | - | let | |
454 | - | $Tuple2([Burn( | |
476 | + | let da = (cS / 4) | |
477 | + | let df = fraction((cS + da), cU, cD[F]) | |
478 | + | $Tuple2([Burn(cb, df), IntegerEntry(z, (cU - df)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cS, by)], cQ) | |
455 | 479 | } | |
456 | 480 | } | |
457 | 481 | } | |
458 | 482 | } | |
459 | 483 | } | |
460 | 484 | ||
461 | 485 | ||
462 | 486 | ||
463 | - | @Callable( | |
487 | + | @Callable(cK) | |
464 | 488 | func claim () = { | |
465 | - | let | |
466 | - | if ((size( | |
489 | + | let cQ = cv() | |
490 | + | if ((size(cK.payments) != 0)) | |
467 | 491 | then throw("No payments required") | |
468 | 492 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2(( | |
493 | + | let dg = cA(toString(cK.caller), bD) | |
494 | + | let dh = dg._1 | |
495 | + | $Tuple2((dh :+ ScriptTransfer(cK.caller, dg._2._1, cb)), cQ) | |
472 | 496 | } | |
473 | 497 | } | |
474 | 498 | ||
475 | 499 | ||
476 | 500 | ||
477 | - | @Callable( | |
478 | - | func onStakeUnstakeLand (u) = if (( | |
501 | + | @Callable(cK) | |
502 | + | func onStakeUnstakeLand (u) = if ((cK.caller != aa)) | |
479 | 503 | then throw("Permission denied") | |
480 | 504 | else { | |
481 | - | let | |
482 | - | let | |
483 | - | $Tuple2(( | |
505 | + | let dg = cA(u, bD) | |
506 | + | let dh = dg._1 | |
507 | + | $Tuple2((dh :+ ScriptTransfer(addressFromStringValue(u), dg._2._1, cb)), dg._2) | |
484 | 508 | } | |
485 | 509 | ||
486 | 510 | ||
487 | 511 | ||
488 | - | @Callable( | |
489 | - | func claimRob ( | |
512 | + | @Callable(cK) | |
513 | + | func claimRob (di,dj,dk) = if ((cK.caller != aa)) | |
490 | 514 | then throw("Permission denied") | |
491 | 515 | else { | |
492 | - | let | |
493 | - | $Tuple2(( | |
516 | + | let dg = cA(di, dk) | |
517 | + | $Tuple2((dg._1 :+ ScriptTransfer(addressFromStringValue(dj), (dg._2._2 - dg._2._1), cb)), dg._2) | |
494 | 518 | } | |
495 | 519 | ||
496 | 520 |
github/deemru/w8io/169f3d6 173.83 ms ◑