tx · Ct8W11t2G1ttQsodNs5mHhYVhHNptaAmvS9NpgtE5rCK 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy: -0.03100000 Waves 2022.11.21 13:53 [2326779] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves
{ "type": 13, "id": "Ct8W11t2G1ttQsodNs5mHhYVhHNptaAmvS9NpgtE5rCK", "fee": 3100000, "feeAssetId": null, "timestamp": 1669027994735, "version": 2, "chainId": 84, "sender": "3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy", "senderPublicKey": "FK9j3YFWVChXKESTn33fMZz1JseCNMMqHhfB7smxJo4e", "proofs": [ "4n49kb9DK2TnNncpgdrtGiYwqU6EGmMEmYvKJVnzF8wocq4CKt8XL9miJyBvF642tnDT834XJ6BfC9zhFnCnbLt7" ], "script": "base64:BgIvCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSAwoBCBIECgIIARIDCgEBEgBpAAlzZXBhcmF0b3ICAl9fAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ABk1VTFRYNgkAtgIBBQVNVUxUNgAGTVVMVFg4CQC2AgEFBU1VTFQ4AAdNVUxUWDE4CQC2AgEAgICQu7rWrfANAApXQVZFU0lEU1RSAgVXQVZFUwAHV0FWRVNJRAkA2QQBBQpXQVZFU0lEU1RSAAlEQVlNSUxMSVMAgLiZKQANREVGQVVMVFBFUklPRAkAaAIAoAsADgAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAABABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAgAUSWR4Q29udHJvbENmZ1JwZERhcHAAAwAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAQAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAABQAVSWR4Q29udHJvbENmZ1Jlc3REYXBwAAYAHUlkeENvbnRyb2xDZmdOb2RlUmVnaXN0cnlEYXBwAAcAHElkeENvbnRyb2xD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2CQDMCAIFIHN1cmZWb3RpbmdQb3dlclJlc3RyaWN0aXZlUGVyaW9kCQDMCAIFG2JyVG9TdGFydFN1cmZUcmFuc2Zvcm1hdGlvbgUDbmlsAJG7t6A=", "height": 2326779, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8jMpDxhfGn11M1m7QqTccXb6n7P8EDQju6YCe2kjdH2J Next: BPc8E4DJmBDdKqE58NFoQaajKT35tKuEqz8aBYMFufUR Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = 86400000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = (1440 * 14) | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 1 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 2 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 3 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 4 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 5 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 6 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 7 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 8 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 9 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 10 | |
45 | 45 | ||
46 | - | func v (w,x) = valueOrErrorMessage(getString(w, x), (((("mandatory " + toString(w)) + ".") + x) + " is not defined")) | |
46 | + | let v = 11 | |
47 | + | ||
48 | + | let w = 12 | |
49 | + | ||
50 | + | let x = 13 | |
51 | + | ||
52 | + | func y (z,A) = valueOrErrorMessage(getString(z, A), (((("mandatory " + toString(z)) + ".") + A) + " is not defined")) | |
47 | 53 | ||
48 | 54 | ||
49 | - | func | |
55 | + | func B () = "%s%s__config__controlAddress" | |
50 | 56 | ||
51 | 57 | ||
52 | - | func | |
58 | + | func C () = "%s__controlConfig" | |
53 | 59 | ||
54 | 60 | ||
55 | - | func | |
61 | + | func D () = "%s%s__cfg__gnsbtFromSurfCoeff" | |
56 | 62 | ||
57 | 63 | ||
58 | - | func | |
64 | + | func E (F) = split_4C(y(F, C()), b) | |
59 | 65 | ||
60 | 66 | ||
61 | - | func | |
67 | + | func G (H,I) = valueOrErrorMessage(addressFromString(H[I]), ("Control cfg doesn't contain address at index " + toString(I))) | |
62 | 68 | ||
63 | 69 | ||
64 | - | let | |
70 | + | let J = addressFromStringValue(valueOrElse(getString(this, B()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
65 | 71 | ||
66 | - | let | |
72 | + | let H = E(J) | |
67 | 73 | ||
68 | - | let | |
74 | + | let K = G(H, o) | |
69 | 75 | ||
70 | - | let | |
76 | + | let L = G(H, l) | |
71 | 77 | ||
72 | - | let | |
78 | + | let M = G(H, m) | |
73 | 79 | ||
74 | - | let | |
80 | + | let N = G(H, x) | |
75 | 81 | ||
76 | - | func L () = "bond_asset_id" | |
82 | + | let O = valueOrElse(getInteger(this, D()), 300) | |
83 | + | ||
84 | + | func P () = "bond_asset_id" | |
77 | 85 | ||
78 | 86 | ||
79 | - | func | |
87 | + | func Q () = "auction_contract" | |
80 | 88 | ||
81 | 89 | ||
82 | - | func | |
90 | + | func R () = "%s__minLockAmount" | |
83 | 91 | ||
84 | 92 | ||
85 | - | func | |
93 | + | func S () = "%s__stakedAssetId" | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
96 | + | func T (U) = makeString(["%s%s%s", "paramByUser", toString(U), "amount"], a) | |
89 | 97 | ||
90 | 98 | ||
91 | - | func | |
99 | + | func V (U) = makeString(["%s%s%s", "paramByUser", toString(U), "start"], a) | |
92 | 100 | ||
93 | 101 | ||
94 | - | func | |
102 | + | func W (U) = makeString(["%s%s%s", "paramByUser", toString(U), "vpEffectiveHeight"], a) | |
95 | 103 | ||
96 | 104 | ||
97 | - | func | |
105 | + | func X (Y,U,Z) = makeString(["%s%s%s%s", "history", Y, toString(U), toBase58String(Z)], a) | |
98 | 106 | ||
99 | 107 | ||
100 | - | func | |
108 | + | func aa () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
101 | 109 | ||
102 | 110 | ||
103 | - | func | |
111 | + | func ab () = makeString(["%s%s", "stats", "locksCount"], a) | |
104 | 112 | ||
105 | 113 | ||
106 | - | func | |
114 | + | func ac () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
107 | 115 | ||
108 | 116 | ||
109 | - | func | |
117 | + | func ad (ae) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(ae)], a) | |
110 | 118 | ||
111 | 119 | ||
112 | - | func | |
120 | + | func af () = makeString(["%s%s", "stats", "depositAmtTotals"], a) | |
113 | 121 | ||
114 | 122 | ||
115 | - | func | |
123 | + | func ag () = "supportedRewardAssets" | |
116 | 124 | ||
117 | 125 | ||
118 | - | func | |
126 | + | func ah () = makeString(["%s%s", "dep", "lastNum"], a) | |
119 | 127 | ||
120 | 128 | ||
121 | - | func | |
129 | + | func ai (U) = makeString(["%s%s", "userRwdFromDepNum", U], a) | |
122 | 130 | ||
123 | 131 | ||
124 | - | func | |
132 | + | func aj (ak,al) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(ak), al], a) | |
125 | 133 | ||
126 | 134 | ||
127 | - | func | |
135 | + | func am (U,al) = makeString(["%s%s%s", "rwd", U, al], a) | |
128 | 136 | ||
129 | 137 | ||
130 | - | func | |
138 | + | func an (U,al) = makeString(["%s%s%s", "clm", U, al], a) | |
131 | 139 | ||
132 | 140 | ||
133 | - | func | |
141 | + | func ao (al) = makeString(["%s%s", "notDistributed", al], a) | |
134 | 142 | ||
135 | 143 | ||
136 | - | func | |
144 | + | func ap () = makeString(["%s%s", "vp", "periodDuration"], a) | |
137 | 145 | ||
138 | 146 | ||
139 | - | func | |
147 | + | func aq () = makeString(["%s%s", "vp", "lastTotalsPeriodProcessed"], a) | |
140 | 148 | ||
141 | 149 | ||
142 | - | func | |
150 | + | func ar (U) = makeString(["%s%s%s", "vp", "lastUserPeriodProcessed", U], a) | |
143 | 151 | ||
144 | 152 | ||
145 | - | func | |
153 | + | func as () = makeString(["%s%s", "vp", "totalMature"], a) | |
146 | 154 | ||
147 | 155 | ||
148 | - | func | |
156 | + | func at () = makeString(["%s%s", "vp", "totalTeen"], a) | |
149 | 157 | ||
150 | 158 | ||
151 | - | func | |
159 | + | func au () = makeString(["%s%s", "vp", "totalKid"], a) | |
152 | 160 | ||
153 | 161 | ||
154 | - | func | |
162 | + | func av (U) = makeString(["%s%s%s", "vp", "userMature", U], a) | |
155 | 163 | ||
156 | 164 | ||
157 | - | func aw (ax) = if ((ax == h)) | |
158 | - | then unit | |
159 | - | else fromBase58String(ax) | |
165 | + | func aw (U) = makeString(["%s%s%s", "vp", "userTeen", U], a) | |
160 | 166 | ||
161 | 167 | ||
162 | - | func ay (az) = { | |
163 | - | let aA = az | |
164 | - | if ($isInstanceOf(aA, "Int")) | |
168 | + | func ax (U) = makeString(["%s%s%s", "vp", "userKid", U], a) | |
169 | + | ||
170 | + | ||
171 | + | func ay (az,aA) = fraction(toBigInt(az), g, aA) | |
172 | + | ||
173 | + | ||
174 | + | func aB (A) = valueOrElse(getInteger(this, A), 0) | |
175 | + | ||
176 | + | ||
177 | + | func aC (A,aD) = valueOrElse(getInteger(this, A), aD) | |
178 | + | ||
179 | + | ||
180 | + | func aE (A) = valueOrErrorMessage(getInteger(this, A), (("Mandatory this." + A) + " is not defined")) | |
181 | + | ||
182 | + | ||
183 | + | func aF (A,aD) = valueOrElse(getString(this, A), aD) | |
184 | + | ||
185 | + | ||
186 | + | func aG (aH) = valueOrErrorMessage(addressFromString(aH), ("couldn't parse passed addressStr=" + aH)) | |
187 | + | ||
188 | + | ||
189 | + | func aI (aJ) = if ((aJ == h)) | |
190 | + | then unit | |
191 | + | else fromBase58String(aJ) | |
192 | + | ||
193 | + | ||
194 | + | func aK (aL) = { | |
195 | + | let aM = aL | |
196 | + | if ($isInstanceOf(aM, "Int")) | |
165 | 197 | then { | |
166 | - | let | |
167 | - | | |
198 | + | let aN = aM | |
199 | + | aN | |
168 | 200 | } | |
169 | 201 | else throw("fail to cast into Int") | |
170 | 202 | } | |
171 | 203 | ||
172 | 204 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
205 | + | func aO (aP) = { | |
206 | + | let aM = aP | |
207 | + | if ($isInstanceOf(aM, "(Int, Int, Int, Int, Int, Int, Int)")) | |
176 | 208 | then { | |
177 | - | let | |
178 | - | | |
209 | + | let aQ = aM | |
210 | + | aQ | |
179 | 211 | } | |
180 | 212 | else throw("fail to cast into Int") | |
181 | 213 | } | |
182 | 214 | ||
183 | 215 | ||
184 | - | func | |
216 | + | func aR (aS,aT,aU,aV) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aS), toString(aT), toString(aU), toString(aV)], a) | |
185 | 217 | ||
186 | 218 | ||
187 | - | func | |
219 | + | func aW (aX,aY) = makeString(["%s%d%d%s", aX, toString(lastBlock.height), toString(lastBlock.timestamp), aY], a) | |
188 | 220 | ||
189 | 221 | ||
190 | - | func | |
222 | + | func aZ (Y,U,Z,aS,aT,aU,aV) = StringEntry(X(Y, U, Z), aR(aS, aT, aU, aV)) | |
191 | 223 | ||
192 | 224 | ||
193 | - | func | |
225 | + | func ba (U,Z,aY) = StringEntry(X("claim", U, Z), aW(toString(U), aY)) | |
194 | 226 | ||
195 | 227 | ||
196 | - | func | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | $Tuple3([IntegerEntry( | |
228 | + | func bb (bc,bd,be) = { | |
229 | + | let bf = aB(ab()) | |
230 | + | let bg = aB(ac()) | |
231 | + | let bh = aB(aa()) | |
232 | + | let bi = (bh + bc) | |
233 | + | $Tuple3([IntegerEntry(ab(), (bf + bd)), IntegerEntry(ac(), (bg + be)), IntegerEntry(aa(), bi)], bh, bi) | |
202 | 234 | } | |
203 | 235 | ||
204 | 236 | ||
205 | - | func | |
237 | + | func bj (U,bk,bl) = [IntegerEntry(T(U), bk), IntegerEntry(V(U), bl)] | |
206 | 238 | ||
207 | 239 | ||
208 | - | func | |
240 | + | func bm () = $Tuple2(fromBase58String(y(this, S())), aE(R())) | |
209 | 241 | ||
210 | 242 | ||
211 | - | func | |
243 | + | func bn (U) = (aC(T(U), 0) > 0) | |
212 | 244 | ||
213 | 245 | ||
214 | - | func | |
215 | - | then $Tuple3(false, | |
246 | + | func bo (U) = if (bn(U)) | |
247 | + | then $Tuple3(false, aE(T(U)), aE(V(U))) | |
216 | 248 | else unit | |
217 | 249 | ||
218 | 250 | ||
219 | - | func | |
251 | + | func bp (U) = valueOrErrorMessage(bo(U), (("User " + toString(U)) + " is not defined")) | |
220 | 252 | ||
221 | 253 | ||
222 | - | let | |
254 | + | let bq = aF(ag(), "") | |
223 | 255 | ||
224 | - | let | |
256 | + | let br = split(bq, "_") | |
225 | 257 | ||
226 | - | func | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | $Tuple4(( | |
258 | + | func bs (U,bt,bu,bv,bw) = { | |
259 | + | let bx = aj(bw, bt) | |
260 | + | let by = parseBigIntValue(aF(aj(bw, bt), "0")) | |
261 | + | let bz = parseBigIntValue(aF(aj(bv, bt), "0")) | |
262 | + | let bA = toInt(fraction((by - bz), bu, g)) | |
263 | + | let bB = am(U, bt) | |
264 | + | let bC = aC(bB, 0) | |
265 | + | $Tuple4((bC + bA), bC, bA, bB) | |
234 | 266 | } | |
235 | 267 | ||
236 | 268 | ||
237 | - | func | |
269 | + | func bD (ae) = ((ae / j) * j) | |
238 | 270 | ||
239 | 271 | ||
240 | - | func | |
241 | - | let | |
242 | - | if (( | |
272 | + | func bE (bF,bG,bH) = { | |
273 | + | let bI = valueOrErrorMessage(indexOf(bF, bG), ((("there is no substring " + bG) + " in ") + bF)) | |
274 | + | if ((bI == 0)) | |
243 | 275 | then 0 | |
244 | 276 | else { | |
245 | - | let | |
246 | - | (size(split( | |
277 | + | let bJ = take(bF, bI) | |
278 | + | (size(split(bJ, bH)) - 1) | |
247 | 279 | } | |
248 | 280 | } | |
249 | 281 | ||
250 | 282 | ||
251 | - | let | |
283 | + | let bK = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d" | |
252 | 284 | ||
253 | - | func | |
254 | - | let | |
255 | - | func | |
256 | - | then | |
257 | - | else toString((parseIntValue( | |
285 | + | func bL (bM,bN,bO) = { | |
286 | + | let bP = split(bM, b) | |
287 | + | func bQ (I) = if ((I != bN)) | |
288 | + | then bP[I] | |
289 | + | else toString((parseIntValue(bP[I]) + bO)) | |
258 | 290 | ||
259 | - | makeString([ | |
291 | + | makeString([bK, bQ(1), bQ(2), bQ(3), bQ(4), bQ(5), bQ(6), bQ(7), bQ(8), bQ(9), bQ(10), bQ(11), bQ(12), bQ(13), bQ(14), bQ(15), bQ(16), bQ(17), bQ(18)], b) | |
260 | 292 | } | |
261 | 293 | ||
262 | 294 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | [StringEntry( | |
295 | + | func bR (bS,bT) = { | |
296 | + | let bU = bD(lastBlock.timestamp) | |
297 | + | let bV = ad(bU) | |
298 | + | let bW = af() | |
299 | + | let bX = bE(bq, bT, "_") | |
300 | + | let bY = (bK + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0") | |
301 | + | let bZ = valueOrElse(getString(this, bW), bY) | |
302 | + | let ca = bL(bZ, (bX + 1), bS) | |
303 | + | [StringEntry(bW, ca), StringEntry(bV, ca)] | |
272 | 304 | } | |
273 | 305 | ||
274 | 306 | ||
275 | - | func | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | ( | |
307 | + | func cb (cc,U,cd) = { | |
308 | + | let bu = toBigInt(cd) | |
309 | + | let ce = ai(U) | |
310 | + | let bv = aC(ce, -1) | |
311 | + | let bw = aC(ah(), -1) | |
312 | + | func cf (cg,ch) = { | |
313 | + | let ci = bs(U, ch, bu, bv, bw) | |
314 | + | let cj = ci._1 | |
315 | + | let ck = ci._2 | |
316 | + | let cl = ci._3 | |
317 | + | let bB = ci._4 | |
318 | + | (cg :+ IntegerEntry(bB, cj)) | |
287 | 319 | } | |
288 | 320 | ||
289 | - | if (if (( | |
290 | - | then ( | |
321 | + | if (if ((bw == -1)) | |
322 | + | then (bv == -1) | |
291 | 323 | else false) | |
292 | 324 | then nil | |
293 | - | else if (if (( | |
294 | - | then ( | |
325 | + | else if (if ((bw == -1)) | |
326 | + | then (bv > -1) | |
295 | 327 | else false) | |
296 | 328 | then throw("invalid depositNumLast and depositNumUser state") | |
297 | - | else if (if (( | |
298 | - | then ( | |
329 | + | else if (if ((bw > -1)) | |
330 | + | then (bv >= -1) | |
299 | 331 | else false) | |
300 | - | then if ( | |
301 | - | then [IntegerEntry( | |
332 | + | then if (cc) | |
333 | + | then [IntegerEntry(ce, bw)] | |
302 | 334 | else ({ | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | func | |
307 | - | then | |
308 | - | else | |
335 | + | let cm = br | |
336 | + | let cn = size(cm) | |
337 | + | let co = nil | |
338 | + | func cp (cq,cr) = if ((cr >= cn)) | |
339 | + | then cq | |
340 | + | else cf(cq, cm[cr]) | |
309 | 341 | ||
310 | - | func | |
311 | - | then | |
342 | + | func cs (cq,cr) = if ((cr >= cn)) | |
343 | + | then cq | |
312 | 344 | else throw("List size exceeds 9") | |
313 | 345 | ||
314 | - | | |
315 | - | } :+ IntegerEntry( | |
316 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
346 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
347 | + | } :+ IntegerEntry(ce, bw)) | |
348 | + | else throw(((("uncovered condition: depositNumLast=" + toString(bw)) + " depositNumUser=") + toString(bv))) | |
317 | 349 | } | |
318 | 350 | ||
319 | 351 | ||
320 | - | func | |
321 | - | let | |
322 | - | let | |
323 | - | [IntegerEntry( | |
352 | + | func ct (al,cu) = { | |
353 | + | let cv = ao(al) | |
354 | + | let cw = aC(cv, 0) | |
355 | + | [IntegerEntry(cv, (cw + cu))] | |
324 | 356 | } | |
325 | 357 | ||
326 | 358 | ||
327 | - | func | |
359 | + | func cx (cy) = (cy / O) | |
328 | 360 | ||
329 | 361 | ||
330 | - | func cn (co,cp,cq,cr) = { | |
331 | - | let cs = (cp - height) | |
332 | - | if ((0 >= cs)) | |
333 | - | then (height + co) | |
334 | - | else { | |
335 | - | let ct = (co - cs) | |
336 | - | let cu = if ((cr != 0)) | |
337 | - | then fraction(cq, d, cr) | |
338 | - | else cp | |
339 | - | ((co + height) - fraction(ct, cu, d)) | |
340 | - | } | |
362 | + | func cz (U,cA,cB,cC) = { | |
363 | + | let cD = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
364 | + | let cc = cD._1 | |
365 | + | let cd = cD._2 | |
366 | + | let cE = cD._3 | |
367 | + | let cF = if (cc) | |
368 | + | then cA | |
369 | + | else (cA + cd) | |
370 | + | let cG = aC(ap(), k) | |
371 | + | let cH = (height / cG) | |
372 | + | let cI = if ((cC > 0)) | |
373 | + | then (cH + 2) | |
374 | + | else if ((cB > 0)) | |
375 | + | then (cH + 1) | |
376 | + | else cH | |
377 | + | $Tuple5(cc, cd, cE, cF, (cI * cG)) | |
341 | 378 | } | |
342 | 379 | ||
343 | 380 | ||
344 | - | func cv (Q,cw) = { | |
345 | - | let cx = valueOrElse(bc(Q), $Tuple3(true, 0, 0)) | |
346 | - | let bQ = cx._1 | |
347 | - | let bR = cx._2 | |
348 | - | let cp = cx._3 | |
349 | - | let cy = if (bQ) | |
350 | - | then cw | |
351 | - | else (cw + bR) | |
352 | - | let co = (1440 * 14) | |
353 | - | let cz = if (bQ) | |
354 | - | then (co + height) | |
355 | - | else cn(co, cp, bR, cy) | |
356 | - | $Tuple5(bQ, bR, cp, cy, cz) | |
381 | + | func cJ () = { | |
382 | + | let cH = (height / aC(ap(), k)) | |
383 | + | if ((cH > aB(aq()))) | |
384 | + | then { | |
385 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
386 | + | [IntegerEntry(as(), (cK + aB(at()))), IntegerEntry(at(), aB(au())), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)] | |
387 | + | } | |
388 | + | else nil | |
357 | 389 | } | |
358 | 390 | ||
359 | 391 | ||
360 | - | func cA (Q,cB) = { | |
361 | - | let cC = ba() | |
362 | - | let cD = cC._1 | |
363 | - | let cE = cC._2 | |
364 | - | if ((size(cB.payments) != 1)) | |
392 | + | func cL (cM,cA) = if ((0 > cA)) | |
393 | + | then throw("amountToAdd should be >= 0") | |
394 | + | else { | |
395 | + | let cG = aC(ap(), k) | |
396 | + | let cH = (height / cG) | |
397 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
398 | + | let cN = aB(at()) | |
399 | + | let cO = aB(au()) | |
400 | + | let cP = valueOrElse(getInteger(av(cM)), aB(T(addressFromStringValue(cM)))) | |
401 | + | let cB = aB(aw(cM)) | |
402 | + | let cC = aB(ax(cM)) | |
403 | + | let cQ = if ((cH > aB(ar(cM)))) | |
404 | + | then $Tuple7((cK + cB), (cN + (cC - cB)), (cO - cC), (cP + cB), cC, 0, [IntegerEntry(ar(cM), cH)]) | |
405 | + | else $Tuple7(cK, cN, cO, cP, cB, cC, nil) | |
406 | + | let cR = if ((cH > aB(aq()))) | |
407 | + | then $Tuple4([IntegerEntry(as(), (cQ._1 + cQ._2)), IntegerEntry(at(), cQ._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)], (cQ._1 + cQ._2), cQ._3, 0) | |
408 | + | else $Tuple4(nil, cK, cN, cO) | |
409 | + | let cS = fraction(cA, (height % cG), cG) | |
410 | + | let cT = (cA - cS) | |
411 | + | $Tuple7(((((cR._1 :+ IntegerEntry(av(cM), cQ._4)) :+ IntegerEntry(aw(cM), (cQ._5 + cT))) :+ IntegerEntry(ax(cM), (cQ._6 + cS))) ++ cQ._7), cR._2, cR._3, cR._4, cQ._4, (cQ._5 + cT), (cQ._6 + cS)) | |
412 | + | } | |
413 | + | ||
414 | + | ||
415 | + | let cU = 0 | |
416 | + | ||
417 | + | let cV = 1 | |
418 | + | ||
419 | + | func cW (cX,cY) = if ((cY >= cX)) | |
420 | + | then [(cY - cX), 0] | |
421 | + | else [0, (cX - cY)] | |
422 | + | ||
423 | + | ||
424 | + | func cZ (cM,da) = if ((da >= 0)) | |
425 | + | then throw("amountToRemove should be < 0") | |
426 | + | else { | |
427 | + | let cG = aC(ap(), k) | |
428 | + | let cH = (height / cG) | |
429 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
430 | + | let cN = aB(at()) | |
431 | + | let cO = aB(au()) | |
432 | + | let cP = valueOrElse(getInteger(av(cM)), aB(T(addressFromStringValue(cM)))) | |
433 | + | let cB = aB(aw(cM)) | |
434 | + | let cC = aB(ax(cM)) | |
435 | + | let db = cW(cP, da) | |
436 | + | let dc = cW(cB, db[cU]) | |
437 | + | let dd = cW(cC, dc[cU]) | |
438 | + | if ((dd[cU] != 0)) | |
439 | + | then throw("Should not happen") | |
440 | + | else { | |
441 | + | let cQ = if ((cH > aB(ar(cM)))) | |
442 | + | then $Tuple7((cK + dc[cV]), (cN + (dd[cV] - dc[cV])), (cO - dd[cV]), (db[cV] + dc[cV]), dd[cV], 0, [IntegerEntry(ar(cM), cH)]) | |
443 | + | else $Tuple7(cK, cN, cO, db[cV], dc[cV], dd[cV], nil) | |
444 | + | let cR = if ((cH > aB(aq()))) | |
445 | + | then $Tuple4([IntegerEntry(as(), (cQ._1 + cQ._2)), IntegerEntry(at(), cQ._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)], (cQ._1 + cQ._2), cQ._3, 0) | |
446 | + | else $Tuple4(nil, cK, cN, cO) | |
447 | + | $Tuple7(((((cR._1 :+ IntegerEntry(av(cM), cQ._4)) :+ IntegerEntry(aw(cM), cQ._5)) :+ IntegerEntry(ax(cM), cQ._6)) ++ cQ._7), cR._2, cR._3, cR._4, cQ._4, cQ._5, cQ._6) | |
448 | + | } | |
449 | + | } | |
450 | + | ||
451 | + | ||
452 | + | func de (U,df) = { | |
453 | + | let dg = bm() | |
454 | + | let dh = dg._1 | |
455 | + | let di = dg._2 | |
456 | + | if ((size(df.payments) != 1)) | |
365 | 457 | then throw("Invalid payments size") | |
366 | 458 | else { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | if (( | |
372 | - | then throw( | |
459 | + | let dj = df.payments[0] | |
460 | + | let bk = dj.amount | |
461 | + | let dk = (("Invalid asset. " + toBase58String(dh)) + " is expected") | |
462 | + | let bt = valueOrErrorMessage(dj.assetId, dk) | |
463 | + | if ((bt != dh)) | |
464 | + | then throw(dk) | |
373 | 465 | else { | |
374 | - | let cH = toString(Q) | |
375 | - | let cI = cv(Q, aY) | |
376 | - | let bQ = cI._1 | |
377 | - | let bR = cI._2 | |
378 | - | let cp = cI._3 | |
379 | - | let cy = cI._4 | |
380 | - | let cz = cI._5 | |
381 | - | if ((cE > cy)) | |
382 | - | then throw(("Min lock amount is " + toString(cE))) | |
466 | + | let cM = toString(U) | |
467 | + | let dl = cL(cM, bk) | |
468 | + | let dm = cz(U, bk, dl._6, dl._7) | |
469 | + | let cc = dm._1 | |
470 | + | let cd = dm._2 | |
471 | + | let cE = dm._3 | |
472 | + | let cF = dm._4 | |
473 | + | let dn = dm._5 | |
474 | + | if ((di > cF)) | |
475 | + | then throw(("Min lock amount is " + toString(di))) | |
383 | 476 | else { | |
384 | - | let | |
477 | + | let do = bb(bk, 1, if (cc) | |
385 | 478 | then 1 | |
386 | 479 | else 0) | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | ((([ | |
480 | + | let dp = do._1 | |
481 | + | let dq = do._2 | |
482 | + | let dr = do._3 | |
483 | + | (((([aZ("stake", U, df.transactionId, cd, cE, cF, dn)] ++ cb(cc, cM, cd)) ++ bj(U, cF, dn)) ++ dp) ++ dl._1) | |
391 | 484 | } | |
392 | 485 | } | |
393 | 486 | } | |
394 | 487 | } | |
395 | 488 | ||
396 | 489 | ||
397 | - | func | |
398 | - | let | |
399 | - | if ((size( | |
490 | + | func ds (U,df) = { | |
491 | + | let cM = toString(U) | |
492 | + | if ((size(df.payments) > 0)) | |
400 | 493 | then throw("payments are not accepted") | |
401 | 494 | else { | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | func | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if ((0 >= | |
423 | - | then $Tuple2( | |
424 | - | else $Tuple2(((( | |
495 | + | let dt = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
496 | + | let cc = dt._1 | |
497 | + | let cd = dt._2 | |
498 | + | let du = dt._3 | |
499 | + | let bu = toBigInt(cd) | |
500 | + | let ce = ai(cM) | |
501 | + | let bv = aC(ce, -1) | |
502 | + | let bw = aC(ah(), -1) | |
503 | + | func dv (cg,ch) = { | |
504 | + | let dw = bs(cM, ch, bu, bv, bw) | |
505 | + | let cj = dw._1 | |
506 | + | let ck = dw._2 | |
507 | + | let cl = dw._3 | |
508 | + | let bB = dw._4 | |
509 | + | let dx = an(cM, ch) | |
510 | + | let dy = cg | |
511 | + | let dz = dy._1 | |
512 | + | let dA = dy._2 | |
513 | + | let dB = makeString([ch, toString(cj)], ":") | |
514 | + | let dC = makeString([dA, dB], "_") | |
515 | + | if ((0 >= cj)) | |
516 | + | then $Tuple2(dz, dC) | |
517 | + | else $Tuple2((((dz :+ ScriptTransfer(U, cj, aI(ch))) :+ IntegerEntry(dx, (valueOrElse(getInteger(dx), 0) + cj))) :+ IntegerEntry(bB, 0)), dC) | |
425 | 518 | } | |
426 | 519 | ||
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | func | |
432 | - | then | |
433 | - | else | |
520 | + | let dD = { | |
521 | + | let cm = br | |
522 | + | let cn = size(cm) | |
523 | + | let co = $Tuple2(nil, "") | |
524 | + | func cp (cq,cr) = if ((cr >= cn)) | |
525 | + | then cq | |
526 | + | else dv(cq, cm[cr]) | |
434 | 527 | ||
435 | - | func | |
436 | - | then | |
528 | + | func cs (cq,cr) = if ((cr >= cn)) | |
529 | + | then cq | |
437 | 530 | else throw("List size exceeds 9") | |
438 | 531 | ||
439 | - | | |
532 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
440 | 533 | } | |
441 | - | let | |
442 | - | let | |
443 | - | if ((0 >= size( | |
534 | + | let dE = dD._1 | |
535 | + | let dF = dD._2 | |
536 | + | if ((0 >= size(dE))) | |
444 | 537 | then $Tuple2(nil, 0) | |
445 | - | else $Tuple2((( | |
538 | + | else $Tuple2(((dE :+ IntegerEntry(ce, bw)) :+ ba(U, df.transactionId, drop(dF, 1))), size(dE)) | |
446 | 539 | } | |
447 | 540 | } | |
448 | 541 | ||
449 | 542 | ||
450 | - | @Callable( | |
451 | - | func constructor ( | |
543 | + | @Callable(df) | |
544 | + | func constructor (di,dG,dh) = if ((df.caller != this)) | |
452 | 545 | then throw("Permission denied") | |
453 | - | else [IntegerEntry( | |
546 | + | else [IntegerEntry(R(), di), StringEntry(ag(), dG), StringEntry(S(), dh)] | |
454 | 547 | ||
455 | 548 | ||
456 | 549 | ||
457 | - | @Callable( | |
458 | - | func stake () = | |
550 | + | @Callable(df) | |
551 | + | func stake () = de(df.caller, df) | |
459 | 552 | ||
460 | 553 | ||
461 | 554 | ||
462 | - | @Callable( | |
463 | - | func stakeByOriginCaller () = | |
555 | + | @Callable(df) | |
556 | + | func stakeByOriginCaller () = de(df.originCaller, df) | |
464 | 557 | ||
465 | 558 | ||
466 | 559 | ||
467 | - | @Callable( | |
468 | - | func unstake ( | |
560 | + | @Callable(df) | |
561 | + | func unstake (bk) = if ((size(df.payments) != 0)) | |
469 | 562 | then throw("unstake doesn't require any payment") | |
470 | 563 | else { | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | if (( | |
484 | - | then throw((("You have already made a swap operation. Wait " + toString((height + | |
485 | - | else if ((0 >= | |
564 | + | let U = df.caller | |
565 | + | let cM = toString(U) | |
566 | + | let dH = bm() | |
567 | + | let dh = dH._1 | |
568 | + | let di = dH._2 | |
569 | + | let dI = bp(U) | |
570 | + | let cc = dI._1 | |
571 | + | let cd = dI._2 | |
572 | + | let cE = dI._3 | |
573 | + | let dJ = aO(reentrantInvoke(L, "swapParamsByUserSYSREADONLY", [cM, 0], nil)) | |
574 | + | let dK = dJ._2 | |
575 | + | let dL = dJ._3 | |
576 | + | if ((dK > 0)) | |
577 | + | then throw((("You have already made a swap operation. Wait " + toString((height + dL))) + " height to unstake")) | |
578 | + | else if ((0 >= cd)) | |
486 | 579 | then throw("Nothing to unstake") | |
487 | - | else if (( | |
488 | - | then throw(((("Requested " + toString( | |
580 | + | else if ((bk > cd)) | |
581 | + | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString(cd))) | |
489 | 582 | else { | |
490 | - | let | |
491 | - | let | |
583 | + | let cF = (cd - bk) | |
584 | + | let dM = bb(-(bk), if ((bk == cd)) | |
492 | 585 | then -1 | |
493 | - | else 0, if (( | |
586 | + | else 0, if ((bk == cd)) | |
494 | 587 | then -1 | |
495 | 588 | else 0) | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | ((([ScriptTransfer( | |
589 | + | let dp = dM._1 | |
590 | + | let dq = dM._2 | |
591 | + | let dr = dM._3 | |
592 | + | (((([ScriptTransfer(U, bk, dh), aZ("unstake", U, df.transactionId, cd, cE, cF, cE)] ++ cb(false, cM, cd)) ++ bj(U, cF, cE)) ++ dp) ++ cZ(cM, bk)._1) | |
500 | 593 | } | |
501 | 594 | } | |
502 | 595 | ||
503 | 596 | ||
504 | 597 | ||
505 | - | @Callable( | |
506 | - | func deposit () = if ((size( | |
598 | + | @Callable(df) | |
599 | + | func deposit () = if ((size(df.payments) != 1)) | |
507 | 600 | then throw("exact 1 payment is allowed only") | |
508 | 601 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
602 | + | let dN = df.payments[0] | |
603 | + | let bk = dN.amount | |
604 | + | let dO = valueOrElse(dN.assetId, i) | |
605 | + | let dP = toBase58String(dO) | |
606 | + | let dQ = if ((dO == i)) | |
514 | 607 | then f | |
515 | 608 | else e | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | if ((0 > | |
609 | + | let dR = toBigInt(bk) | |
610 | + | let dq = aC(aa(), 0) | |
611 | + | let dS = toBigInt(dq) | |
612 | + | if ((0 > dq)) | |
520 | 613 | then throw("TODO: case is not supported") | |
521 | - | else if (( | |
522 | - | then | |
614 | + | else if ((dq == 0)) | |
615 | + | then ct(dP, bk) | |
523 | 616 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | if (!(contains( | |
529 | - | then throw((( | |
617 | + | let dT = fraction(dR, g, dS) | |
618 | + | let dU = ah() | |
619 | + | let bw = aC(dU, -1) | |
620 | + | let dV = (bw + 1) | |
621 | + | if (!(contains(bq, dP))) | |
622 | + | then throw(((bq + " doesn't contain ") + dP)) | |
530 | 623 | else { | |
531 | - | func | |
532 | - | let | |
533 | - | let | |
534 | - | ( | |
535 | - | then StringEntry( | |
536 | - | else StringEntry( | |
624 | + | func dW (cg,dX) = { | |
625 | + | let dY = aj(dV, dX) | |
626 | + | let dZ = aF(aj(bw, dX), "0") | |
627 | + | (cg :+ (if ((dX == dP)) | |
628 | + | then StringEntry(dY, toString((parseBigIntValue(dZ) + dT))) | |
629 | + | else StringEntry(dY, dZ))) | |
537 | 630 | } | |
538 | 631 | ||
539 | - | (({ | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | func | |
544 | - | then | |
545 | - | else | |
632 | + | ((({ | |
633 | + | let cm = br | |
634 | + | let cn = size(cm) | |
635 | + | let co = nil | |
636 | + | func cp (cq,cr) = if ((cr >= cn)) | |
637 | + | then cq | |
638 | + | else dW(cq, cm[cr]) | |
546 | 639 | ||
547 | - | func | |
548 | - | then | |
640 | + | func cs (cq,cr) = if ((cr >= cn)) | |
641 | + | then cq | |
549 | 642 | else throw("List size exceeds 9") | |
550 | 643 | ||
551 | - | | |
552 | - | } :+ IntegerEntry( | |
644 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
645 | + | } :+ IntegerEntry(dU, dV)) ++ bR(bk, dP)) ++ cJ()) | |
553 | 646 | } | |
554 | 647 | } | |
555 | 648 | } | |
556 | 649 | ||
557 | 650 | ||
558 | 651 | ||
559 | - | @Callable( | |
560 | - | func claimRewards () = | |
652 | + | @Callable(df) | |
653 | + | func claimRewards () = ds(df.caller, df) | |
561 | 654 | ||
562 | 655 | ||
563 | 656 | ||
564 | - | @Callable( | |
565 | - | func claimRewardsByOriginCaller () = | |
657 | + | @Callable(df) | |
658 | + | func claimRewardsByOriginCaller () = ds(df.originCaller, df) | |
566 | 659 | ||
567 | 660 | ||
568 | 661 | ||
569 | - | @Callable( | |
570 | - | func unclaimedRewardsREADONLY ( | |
571 | - | func | |
662 | + | @Callable(df) | |
663 | + | func unclaimedRewardsREADONLY (cM) = { | |
664 | + | func ea (cg,ch) = ((cg + makeString([ch, "0", "0"], ":")) + "_") | |
572 | 665 | ||
573 | - | let | |
666 | + | let eb = if ((cM == "")) | |
574 | 667 | then { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | func | |
579 | - | then | |
580 | - | else | |
668 | + | let cm = br | |
669 | + | let cn = size(cm) | |
670 | + | let co = "" | |
671 | + | func cp (cq,cr) = if ((cr >= cn)) | |
672 | + | then cq | |
673 | + | else ea(cq, cm[cr]) | |
581 | 674 | ||
582 | - | func | |
583 | - | then | |
675 | + | func cs (cq,cr) = if ((cr >= cn)) | |
676 | + | then cq | |
584 | 677 | else throw("List size exceeds 9") | |
585 | 678 | ||
586 | - | | |
679 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
587 | 680 | } | |
588 | 681 | else { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | func | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | (( | |
682 | + | let U = addressFromStringValue(cM) | |
683 | + | let ec = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
684 | + | let cc = ec._1 | |
685 | + | let cd = ec._2 | |
686 | + | let du = ec._3 | |
687 | + | let bu = toBigInt(cd) | |
688 | + | let ce = ai(cM) | |
689 | + | let bv = aC(ce, -1) | |
690 | + | let bw = aC(ah(), -1) | |
691 | + | func dv (cg,ch) = { | |
692 | + | let ed = bs(cM, ch, bu, bv, bw) | |
693 | + | let cj = ed._1 | |
694 | + | let ck = ed._2 | |
695 | + | let cl = ed._3 | |
696 | + | let bB = ed._4 | |
697 | + | let ee = valueOrElse(getInteger(an(cM, ch)), 0) | |
698 | + | ((cg + makeString([ch, toString(cj), toString(ee)], ":")) + "_") | |
606 | 699 | } | |
607 | 700 | ||
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | func | |
612 | - | then | |
613 | - | else | |
701 | + | let cm = br | |
702 | + | let cn = size(cm) | |
703 | + | let co = "" | |
704 | + | func cp (cq,cr) = if ((cr >= cn)) | |
705 | + | then cq | |
706 | + | else dv(cq, cm[cr]) | |
614 | 707 | ||
615 | - | func | |
616 | - | then | |
708 | + | func cs (cq,cr) = if ((cr >= cn)) | |
709 | + | then cq | |
617 | 710 | else throw("List size exceeds 9") | |
618 | 711 | ||
619 | - | | |
712 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
620 | 713 | } | |
621 | - | $Tuple2(nil, dropRight( | |
714 | + | $Tuple2(nil, dropRight(eb, 1)) | |
622 | 715 | } | |
623 | 716 | ||
624 | 717 | ||
625 | 718 | ||
626 | - | @Callable(cB) | |
627 | - | func surfStakingSYSREADONLY (dA,dB) = { | |
628 | - | let dC = aq(W(), 0) | |
629 | - | let dD = cl(dC) | |
630 | - | if ((dA == "")) | |
631 | - | then $Tuple2(nil, [0, dC, 0, dD, 0, height, height]) | |
719 | + | @Callable(df) | |
720 | + | func updateVotingPower (cM) = if (!(isDefined(addressFromString(cM)))) | |
721 | + | then throw("Invalid user address") | |
722 | + | else { | |
723 | + | let dl = cL(cM, 0) | |
724 | + | $Tuple2(dl._1, [cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
725 | + | } | |
726 | + | ||
727 | + | ||
728 | + | ||
729 | + | @Callable(df) | |
730 | + | func surfStakingSYSREADONLY (ef,eg) = { | |
731 | + | let eh = aC(aa(), 0) | |
732 | + | let ei = cx(eh) | |
733 | + | let dl = if ((eg >= 0)) | |
734 | + | then cL(ef, eg) | |
735 | + | else cZ(ef, eg) | |
736 | + | if ((ef == "")) | |
737 | + | then $Tuple2(nil, [0, eh, 0, ei, height, height, cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
632 | 738 | else { | |
633 | - | let Q = au(dA) | |
634 | - | let cI = cv(Q, dB) | |
635 | - | let bQ = cI._1 | |
636 | - | let bR = cI._2 | |
637 | - | let cp = cI._3 | |
638 | - | let cy = cI._4 | |
639 | - | let cz = cI._5 | |
640 | - | let dE = bR | |
641 | - | let dF = cl(dE) | |
642 | - | $Tuple2(nil, [dE, dC, dF, dD, cp, cz]) | |
739 | + | let U = aG(ef) | |
740 | + | let dm = cz(U, eg, dl._6, dl._7) | |
741 | + | let cd = dm._2 | |
742 | + | let cE = dm._3 | |
743 | + | let cF = dm._4 | |
744 | + | let dn = dm._5 | |
745 | + | let ej = cd | |
746 | + | let ek = cx(ej) | |
747 | + | $Tuple2(nil, [ej, eh, ek, ei, cE, dn, cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
643 | 748 | } | |
644 | 749 | } | |
645 | 750 | ||
646 | 751 | ||
647 | 752 | ||
648 | - | @Callable( | |
649 | - | func gnsbtFromSurfSYSREADONLY ( | |
753 | + | @Callable(df) | |
754 | + | func gnsbtFromSurfSYSREADONLY (cy) = $Tuple2(nil, cx(cy)) | |
650 | 755 | ||
651 | 756 | ||
652 | 757 | ||
653 | - | @Callable( | |
758 | + | @Callable(df) | |
654 | 759 | func configSYSREADONLY () = { | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | $Tuple2(nil, [ | |
760 | + | let el = getIntegerValue(R()) | |
761 | + | let em = k | |
762 | + | let en = 1150000 | |
763 | + | $Tuple2(nil, [el, (O * c), em, en]) | |
659 | 764 | } | |
660 | 765 | ||
661 | 766 |
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 = "__" | |
7 | 7 | ||
8 | 8 | let c = 1000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(c) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(d) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | 18 | let h = "WAVES" | |
19 | 19 | ||
20 | 20 | let i = fromBase58String(h) | |
21 | 21 | ||
22 | 22 | let j = 86400000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = (1440 * 14) | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 1 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 2 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 3 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 4 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 5 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 6 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 7 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 8 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 9 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 10 | |
45 | 45 | ||
46 | - | func v (w,x) = valueOrErrorMessage(getString(w, x), (((("mandatory " + toString(w)) + ".") + x) + " is not defined")) | |
46 | + | let v = 11 | |
47 | + | ||
48 | + | let w = 12 | |
49 | + | ||
50 | + | let x = 13 | |
51 | + | ||
52 | + | func y (z,A) = valueOrErrorMessage(getString(z, A), (((("mandatory " + toString(z)) + ".") + A) + " is not defined")) | |
47 | 53 | ||
48 | 54 | ||
49 | - | func | |
55 | + | func B () = "%s%s__config__controlAddress" | |
50 | 56 | ||
51 | 57 | ||
52 | - | func | |
58 | + | func C () = "%s__controlConfig" | |
53 | 59 | ||
54 | 60 | ||
55 | - | func | |
61 | + | func D () = "%s%s__cfg__gnsbtFromSurfCoeff" | |
56 | 62 | ||
57 | 63 | ||
58 | - | func | |
64 | + | func E (F) = split_4C(y(F, C()), b) | |
59 | 65 | ||
60 | 66 | ||
61 | - | func | |
67 | + | func G (H,I) = valueOrErrorMessage(addressFromString(H[I]), ("Control cfg doesn't contain address at index " + toString(I))) | |
62 | 68 | ||
63 | 69 | ||
64 | - | let | |
70 | + | let J = addressFromStringValue(valueOrElse(getString(this, B()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
65 | 71 | ||
66 | - | let | |
72 | + | let H = E(J) | |
67 | 73 | ||
68 | - | let | |
74 | + | let K = G(H, o) | |
69 | 75 | ||
70 | - | let | |
76 | + | let L = G(H, l) | |
71 | 77 | ||
72 | - | let | |
78 | + | let M = G(H, m) | |
73 | 79 | ||
74 | - | let | |
80 | + | let N = G(H, x) | |
75 | 81 | ||
76 | - | func L () = "bond_asset_id" | |
82 | + | let O = valueOrElse(getInteger(this, D()), 300) | |
83 | + | ||
84 | + | func P () = "bond_asset_id" | |
77 | 85 | ||
78 | 86 | ||
79 | - | func | |
87 | + | func Q () = "auction_contract" | |
80 | 88 | ||
81 | 89 | ||
82 | - | func | |
90 | + | func R () = "%s__minLockAmount" | |
83 | 91 | ||
84 | 92 | ||
85 | - | func | |
93 | + | func S () = "%s__stakedAssetId" | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
96 | + | func T (U) = makeString(["%s%s%s", "paramByUser", toString(U), "amount"], a) | |
89 | 97 | ||
90 | 98 | ||
91 | - | func | |
99 | + | func V (U) = makeString(["%s%s%s", "paramByUser", toString(U), "start"], a) | |
92 | 100 | ||
93 | 101 | ||
94 | - | func | |
102 | + | func W (U) = makeString(["%s%s%s", "paramByUser", toString(U), "vpEffectiveHeight"], a) | |
95 | 103 | ||
96 | 104 | ||
97 | - | func | |
105 | + | func X (Y,U,Z) = makeString(["%s%s%s%s", "history", Y, toString(U), toBase58String(Z)], a) | |
98 | 106 | ||
99 | 107 | ||
100 | - | func | |
108 | + | func aa () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
101 | 109 | ||
102 | 110 | ||
103 | - | func | |
111 | + | func ab () = makeString(["%s%s", "stats", "locksCount"], a) | |
104 | 112 | ||
105 | 113 | ||
106 | - | func | |
114 | + | func ac () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
107 | 115 | ||
108 | 116 | ||
109 | - | func | |
117 | + | func ad (ae) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(ae)], a) | |
110 | 118 | ||
111 | 119 | ||
112 | - | func | |
120 | + | func af () = makeString(["%s%s", "stats", "depositAmtTotals"], a) | |
113 | 121 | ||
114 | 122 | ||
115 | - | func | |
123 | + | func ag () = "supportedRewardAssets" | |
116 | 124 | ||
117 | 125 | ||
118 | - | func | |
126 | + | func ah () = makeString(["%s%s", "dep", "lastNum"], a) | |
119 | 127 | ||
120 | 128 | ||
121 | - | func | |
129 | + | func ai (U) = makeString(["%s%s", "userRwdFromDepNum", U], a) | |
122 | 130 | ||
123 | 131 | ||
124 | - | func | |
132 | + | func aj (ak,al) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(ak), al], a) | |
125 | 133 | ||
126 | 134 | ||
127 | - | func | |
135 | + | func am (U,al) = makeString(["%s%s%s", "rwd", U, al], a) | |
128 | 136 | ||
129 | 137 | ||
130 | - | func | |
138 | + | func an (U,al) = makeString(["%s%s%s", "clm", U, al], a) | |
131 | 139 | ||
132 | 140 | ||
133 | - | func | |
141 | + | func ao (al) = makeString(["%s%s", "notDistributed", al], a) | |
134 | 142 | ||
135 | 143 | ||
136 | - | func | |
144 | + | func ap () = makeString(["%s%s", "vp", "periodDuration"], a) | |
137 | 145 | ||
138 | 146 | ||
139 | - | func | |
147 | + | func aq () = makeString(["%s%s", "vp", "lastTotalsPeriodProcessed"], a) | |
140 | 148 | ||
141 | 149 | ||
142 | - | func | |
150 | + | func ar (U) = makeString(["%s%s%s", "vp", "lastUserPeriodProcessed", U], a) | |
143 | 151 | ||
144 | 152 | ||
145 | - | func | |
153 | + | func as () = makeString(["%s%s", "vp", "totalMature"], a) | |
146 | 154 | ||
147 | 155 | ||
148 | - | func | |
156 | + | func at () = makeString(["%s%s", "vp", "totalTeen"], a) | |
149 | 157 | ||
150 | 158 | ||
151 | - | func | |
159 | + | func au () = makeString(["%s%s", "vp", "totalKid"], a) | |
152 | 160 | ||
153 | 161 | ||
154 | - | func | |
162 | + | func av (U) = makeString(["%s%s%s", "vp", "userMature", U], a) | |
155 | 163 | ||
156 | 164 | ||
157 | - | func aw (ax) = if ((ax == h)) | |
158 | - | then unit | |
159 | - | else fromBase58String(ax) | |
165 | + | func aw (U) = makeString(["%s%s%s", "vp", "userTeen", U], a) | |
160 | 166 | ||
161 | 167 | ||
162 | - | func ay (az) = { | |
163 | - | let aA = az | |
164 | - | if ($isInstanceOf(aA, "Int")) | |
168 | + | func ax (U) = makeString(["%s%s%s", "vp", "userKid", U], a) | |
169 | + | ||
170 | + | ||
171 | + | func ay (az,aA) = fraction(toBigInt(az), g, aA) | |
172 | + | ||
173 | + | ||
174 | + | func aB (A) = valueOrElse(getInteger(this, A), 0) | |
175 | + | ||
176 | + | ||
177 | + | func aC (A,aD) = valueOrElse(getInteger(this, A), aD) | |
178 | + | ||
179 | + | ||
180 | + | func aE (A) = valueOrErrorMessage(getInteger(this, A), (("Mandatory this." + A) + " is not defined")) | |
181 | + | ||
182 | + | ||
183 | + | func aF (A,aD) = valueOrElse(getString(this, A), aD) | |
184 | + | ||
185 | + | ||
186 | + | func aG (aH) = valueOrErrorMessage(addressFromString(aH), ("couldn't parse passed addressStr=" + aH)) | |
187 | + | ||
188 | + | ||
189 | + | func aI (aJ) = if ((aJ == h)) | |
190 | + | then unit | |
191 | + | else fromBase58String(aJ) | |
192 | + | ||
193 | + | ||
194 | + | func aK (aL) = { | |
195 | + | let aM = aL | |
196 | + | if ($isInstanceOf(aM, "Int")) | |
165 | 197 | then { | |
166 | - | let | |
167 | - | | |
198 | + | let aN = aM | |
199 | + | aN | |
168 | 200 | } | |
169 | 201 | else throw("fail to cast into Int") | |
170 | 202 | } | |
171 | 203 | ||
172 | 204 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
205 | + | func aO (aP) = { | |
206 | + | let aM = aP | |
207 | + | if ($isInstanceOf(aM, "(Int, Int, Int, Int, Int, Int, Int)")) | |
176 | 208 | then { | |
177 | - | let | |
178 | - | | |
209 | + | let aQ = aM | |
210 | + | aQ | |
179 | 211 | } | |
180 | 212 | else throw("fail to cast into Int") | |
181 | 213 | } | |
182 | 214 | ||
183 | 215 | ||
184 | - | func | |
216 | + | func aR (aS,aT,aU,aV) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aS), toString(aT), toString(aU), toString(aV)], a) | |
185 | 217 | ||
186 | 218 | ||
187 | - | func | |
219 | + | func aW (aX,aY) = makeString(["%s%d%d%s", aX, toString(lastBlock.height), toString(lastBlock.timestamp), aY], a) | |
188 | 220 | ||
189 | 221 | ||
190 | - | func | |
222 | + | func aZ (Y,U,Z,aS,aT,aU,aV) = StringEntry(X(Y, U, Z), aR(aS, aT, aU, aV)) | |
191 | 223 | ||
192 | 224 | ||
193 | - | func | |
225 | + | func ba (U,Z,aY) = StringEntry(X("claim", U, Z), aW(toString(U), aY)) | |
194 | 226 | ||
195 | 227 | ||
196 | - | func | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | $Tuple3([IntegerEntry( | |
228 | + | func bb (bc,bd,be) = { | |
229 | + | let bf = aB(ab()) | |
230 | + | let bg = aB(ac()) | |
231 | + | let bh = aB(aa()) | |
232 | + | let bi = (bh + bc) | |
233 | + | $Tuple3([IntegerEntry(ab(), (bf + bd)), IntegerEntry(ac(), (bg + be)), IntegerEntry(aa(), bi)], bh, bi) | |
202 | 234 | } | |
203 | 235 | ||
204 | 236 | ||
205 | - | func | |
237 | + | func bj (U,bk,bl) = [IntegerEntry(T(U), bk), IntegerEntry(V(U), bl)] | |
206 | 238 | ||
207 | 239 | ||
208 | - | func | |
240 | + | func bm () = $Tuple2(fromBase58String(y(this, S())), aE(R())) | |
209 | 241 | ||
210 | 242 | ||
211 | - | func | |
243 | + | func bn (U) = (aC(T(U), 0) > 0) | |
212 | 244 | ||
213 | 245 | ||
214 | - | func | |
215 | - | then $Tuple3(false, | |
246 | + | func bo (U) = if (bn(U)) | |
247 | + | then $Tuple3(false, aE(T(U)), aE(V(U))) | |
216 | 248 | else unit | |
217 | 249 | ||
218 | 250 | ||
219 | - | func | |
251 | + | func bp (U) = valueOrErrorMessage(bo(U), (("User " + toString(U)) + " is not defined")) | |
220 | 252 | ||
221 | 253 | ||
222 | - | let | |
254 | + | let bq = aF(ag(), "") | |
223 | 255 | ||
224 | - | let | |
256 | + | let br = split(bq, "_") | |
225 | 257 | ||
226 | - | func | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | $Tuple4(( | |
258 | + | func bs (U,bt,bu,bv,bw) = { | |
259 | + | let bx = aj(bw, bt) | |
260 | + | let by = parseBigIntValue(aF(aj(bw, bt), "0")) | |
261 | + | let bz = parseBigIntValue(aF(aj(bv, bt), "0")) | |
262 | + | let bA = toInt(fraction((by - bz), bu, g)) | |
263 | + | let bB = am(U, bt) | |
264 | + | let bC = aC(bB, 0) | |
265 | + | $Tuple4((bC + bA), bC, bA, bB) | |
234 | 266 | } | |
235 | 267 | ||
236 | 268 | ||
237 | - | func | |
269 | + | func bD (ae) = ((ae / j) * j) | |
238 | 270 | ||
239 | 271 | ||
240 | - | func | |
241 | - | let | |
242 | - | if (( | |
272 | + | func bE (bF,bG,bH) = { | |
273 | + | let bI = valueOrErrorMessage(indexOf(bF, bG), ((("there is no substring " + bG) + " in ") + bF)) | |
274 | + | if ((bI == 0)) | |
243 | 275 | then 0 | |
244 | 276 | else { | |
245 | - | let | |
246 | - | (size(split( | |
277 | + | let bJ = take(bF, bI) | |
278 | + | (size(split(bJ, bH)) - 1) | |
247 | 279 | } | |
248 | 280 | } | |
249 | 281 | ||
250 | 282 | ||
251 | - | let | |
283 | + | let bK = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d" | |
252 | 284 | ||
253 | - | func | |
254 | - | let | |
255 | - | func | |
256 | - | then | |
257 | - | else toString((parseIntValue( | |
285 | + | func bL (bM,bN,bO) = { | |
286 | + | let bP = split(bM, b) | |
287 | + | func bQ (I) = if ((I != bN)) | |
288 | + | then bP[I] | |
289 | + | else toString((parseIntValue(bP[I]) + bO)) | |
258 | 290 | ||
259 | - | makeString([ | |
291 | + | makeString([bK, bQ(1), bQ(2), bQ(3), bQ(4), bQ(5), bQ(6), bQ(7), bQ(8), bQ(9), bQ(10), bQ(11), bQ(12), bQ(13), bQ(14), bQ(15), bQ(16), bQ(17), bQ(18)], b) | |
260 | 292 | } | |
261 | 293 | ||
262 | 294 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | [StringEntry( | |
295 | + | func bR (bS,bT) = { | |
296 | + | let bU = bD(lastBlock.timestamp) | |
297 | + | let bV = ad(bU) | |
298 | + | let bW = af() | |
299 | + | let bX = bE(bq, bT, "_") | |
300 | + | let bY = (bK + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0") | |
301 | + | let bZ = valueOrElse(getString(this, bW), bY) | |
302 | + | let ca = bL(bZ, (bX + 1), bS) | |
303 | + | [StringEntry(bW, ca), StringEntry(bV, ca)] | |
272 | 304 | } | |
273 | 305 | ||
274 | 306 | ||
275 | - | func | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | ( | |
307 | + | func cb (cc,U,cd) = { | |
308 | + | let bu = toBigInt(cd) | |
309 | + | let ce = ai(U) | |
310 | + | let bv = aC(ce, -1) | |
311 | + | let bw = aC(ah(), -1) | |
312 | + | func cf (cg,ch) = { | |
313 | + | let ci = bs(U, ch, bu, bv, bw) | |
314 | + | let cj = ci._1 | |
315 | + | let ck = ci._2 | |
316 | + | let cl = ci._3 | |
317 | + | let bB = ci._4 | |
318 | + | (cg :+ IntegerEntry(bB, cj)) | |
287 | 319 | } | |
288 | 320 | ||
289 | - | if (if (( | |
290 | - | then ( | |
321 | + | if (if ((bw == -1)) | |
322 | + | then (bv == -1) | |
291 | 323 | else false) | |
292 | 324 | then nil | |
293 | - | else if (if (( | |
294 | - | then ( | |
325 | + | else if (if ((bw == -1)) | |
326 | + | then (bv > -1) | |
295 | 327 | else false) | |
296 | 328 | then throw("invalid depositNumLast and depositNumUser state") | |
297 | - | else if (if (( | |
298 | - | then ( | |
329 | + | else if (if ((bw > -1)) | |
330 | + | then (bv >= -1) | |
299 | 331 | else false) | |
300 | - | then if ( | |
301 | - | then [IntegerEntry( | |
332 | + | then if (cc) | |
333 | + | then [IntegerEntry(ce, bw)] | |
302 | 334 | else ({ | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | func | |
307 | - | then | |
308 | - | else | |
335 | + | let cm = br | |
336 | + | let cn = size(cm) | |
337 | + | let co = nil | |
338 | + | func cp (cq,cr) = if ((cr >= cn)) | |
339 | + | then cq | |
340 | + | else cf(cq, cm[cr]) | |
309 | 341 | ||
310 | - | func | |
311 | - | then | |
342 | + | func cs (cq,cr) = if ((cr >= cn)) | |
343 | + | then cq | |
312 | 344 | else throw("List size exceeds 9") | |
313 | 345 | ||
314 | - | | |
315 | - | } :+ IntegerEntry( | |
316 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
346 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
347 | + | } :+ IntegerEntry(ce, bw)) | |
348 | + | else throw(((("uncovered condition: depositNumLast=" + toString(bw)) + " depositNumUser=") + toString(bv))) | |
317 | 349 | } | |
318 | 350 | ||
319 | 351 | ||
320 | - | func | |
321 | - | let | |
322 | - | let | |
323 | - | [IntegerEntry( | |
352 | + | func ct (al,cu) = { | |
353 | + | let cv = ao(al) | |
354 | + | let cw = aC(cv, 0) | |
355 | + | [IntegerEntry(cv, (cw + cu))] | |
324 | 356 | } | |
325 | 357 | ||
326 | 358 | ||
327 | - | func | |
359 | + | func cx (cy) = (cy / O) | |
328 | 360 | ||
329 | 361 | ||
330 | - | func cn (co,cp,cq,cr) = { | |
331 | - | let cs = (cp - height) | |
332 | - | if ((0 >= cs)) | |
333 | - | then (height + co) | |
334 | - | else { | |
335 | - | let ct = (co - cs) | |
336 | - | let cu = if ((cr != 0)) | |
337 | - | then fraction(cq, d, cr) | |
338 | - | else cp | |
339 | - | ((co + height) - fraction(ct, cu, d)) | |
340 | - | } | |
362 | + | func cz (U,cA,cB,cC) = { | |
363 | + | let cD = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
364 | + | let cc = cD._1 | |
365 | + | let cd = cD._2 | |
366 | + | let cE = cD._3 | |
367 | + | let cF = if (cc) | |
368 | + | then cA | |
369 | + | else (cA + cd) | |
370 | + | let cG = aC(ap(), k) | |
371 | + | let cH = (height / cG) | |
372 | + | let cI = if ((cC > 0)) | |
373 | + | then (cH + 2) | |
374 | + | else if ((cB > 0)) | |
375 | + | then (cH + 1) | |
376 | + | else cH | |
377 | + | $Tuple5(cc, cd, cE, cF, (cI * cG)) | |
341 | 378 | } | |
342 | 379 | ||
343 | 380 | ||
344 | - | func cv (Q,cw) = { | |
345 | - | let cx = valueOrElse(bc(Q), $Tuple3(true, 0, 0)) | |
346 | - | let bQ = cx._1 | |
347 | - | let bR = cx._2 | |
348 | - | let cp = cx._3 | |
349 | - | let cy = if (bQ) | |
350 | - | then cw | |
351 | - | else (cw + bR) | |
352 | - | let co = (1440 * 14) | |
353 | - | let cz = if (bQ) | |
354 | - | then (co + height) | |
355 | - | else cn(co, cp, bR, cy) | |
356 | - | $Tuple5(bQ, bR, cp, cy, cz) | |
381 | + | func cJ () = { | |
382 | + | let cH = (height / aC(ap(), k)) | |
383 | + | if ((cH > aB(aq()))) | |
384 | + | then { | |
385 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
386 | + | [IntegerEntry(as(), (cK + aB(at()))), IntegerEntry(at(), aB(au())), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)] | |
387 | + | } | |
388 | + | else nil | |
357 | 389 | } | |
358 | 390 | ||
359 | 391 | ||
360 | - | func cA (Q,cB) = { | |
361 | - | let cC = ba() | |
362 | - | let cD = cC._1 | |
363 | - | let cE = cC._2 | |
364 | - | if ((size(cB.payments) != 1)) | |
392 | + | func cL (cM,cA) = if ((0 > cA)) | |
393 | + | then throw("amountToAdd should be >= 0") | |
394 | + | else { | |
395 | + | let cG = aC(ap(), k) | |
396 | + | let cH = (height / cG) | |
397 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
398 | + | let cN = aB(at()) | |
399 | + | let cO = aB(au()) | |
400 | + | let cP = valueOrElse(getInteger(av(cM)), aB(T(addressFromStringValue(cM)))) | |
401 | + | let cB = aB(aw(cM)) | |
402 | + | let cC = aB(ax(cM)) | |
403 | + | let cQ = if ((cH > aB(ar(cM)))) | |
404 | + | then $Tuple7((cK + cB), (cN + (cC - cB)), (cO - cC), (cP + cB), cC, 0, [IntegerEntry(ar(cM), cH)]) | |
405 | + | else $Tuple7(cK, cN, cO, cP, cB, cC, nil) | |
406 | + | let cR = if ((cH > aB(aq()))) | |
407 | + | then $Tuple4([IntegerEntry(as(), (cQ._1 + cQ._2)), IntegerEntry(at(), cQ._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)], (cQ._1 + cQ._2), cQ._3, 0) | |
408 | + | else $Tuple4(nil, cK, cN, cO) | |
409 | + | let cS = fraction(cA, (height % cG), cG) | |
410 | + | let cT = (cA - cS) | |
411 | + | $Tuple7(((((cR._1 :+ IntegerEntry(av(cM), cQ._4)) :+ IntegerEntry(aw(cM), (cQ._5 + cT))) :+ IntegerEntry(ax(cM), (cQ._6 + cS))) ++ cQ._7), cR._2, cR._3, cR._4, cQ._4, (cQ._5 + cT), (cQ._6 + cS)) | |
412 | + | } | |
413 | + | ||
414 | + | ||
415 | + | let cU = 0 | |
416 | + | ||
417 | + | let cV = 1 | |
418 | + | ||
419 | + | func cW (cX,cY) = if ((cY >= cX)) | |
420 | + | then [(cY - cX), 0] | |
421 | + | else [0, (cX - cY)] | |
422 | + | ||
423 | + | ||
424 | + | func cZ (cM,da) = if ((da >= 0)) | |
425 | + | then throw("amountToRemove should be < 0") | |
426 | + | else { | |
427 | + | let cG = aC(ap(), k) | |
428 | + | let cH = (height / cG) | |
429 | + | let cK = valueOrElse(getInteger(as()), aB(aa())) | |
430 | + | let cN = aB(at()) | |
431 | + | let cO = aB(au()) | |
432 | + | let cP = valueOrElse(getInteger(av(cM)), aB(T(addressFromStringValue(cM)))) | |
433 | + | let cB = aB(aw(cM)) | |
434 | + | let cC = aB(ax(cM)) | |
435 | + | let db = cW(cP, da) | |
436 | + | let dc = cW(cB, db[cU]) | |
437 | + | let dd = cW(cC, dc[cU]) | |
438 | + | if ((dd[cU] != 0)) | |
439 | + | then throw("Should not happen") | |
440 | + | else { | |
441 | + | let cQ = if ((cH > aB(ar(cM)))) | |
442 | + | then $Tuple7((cK + dc[cV]), (cN + (dd[cV] - dc[cV])), (cO - dd[cV]), (db[cV] + dc[cV]), dd[cV], 0, [IntegerEntry(ar(cM), cH)]) | |
443 | + | else $Tuple7(cK, cN, cO, db[cV], dc[cV], dd[cV], nil) | |
444 | + | let cR = if ((cH > aB(aq()))) | |
445 | + | then $Tuple4([IntegerEntry(as(), (cQ._1 + cQ._2)), IntegerEntry(at(), cQ._3), IntegerEntry(au(), 0), IntegerEntry(aq(), cH)], (cQ._1 + cQ._2), cQ._3, 0) | |
446 | + | else $Tuple4(nil, cK, cN, cO) | |
447 | + | $Tuple7(((((cR._1 :+ IntegerEntry(av(cM), cQ._4)) :+ IntegerEntry(aw(cM), cQ._5)) :+ IntegerEntry(ax(cM), cQ._6)) ++ cQ._7), cR._2, cR._3, cR._4, cQ._4, cQ._5, cQ._6) | |
448 | + | } | |
449 | + | } | |
450 | + | ||
451 | + | ||
452 | + | func de (U,df) = { | |
453 | + | let dg = bm() | |
454 | + | let dh = dg._1 | |
455 | + | let di = dg._2 | |
456 | + | if ((size(df.payments) != 1)) | |
365 | 457 | then throw("Invalid payments size") | |
366 | 458 | else { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | if (( | |
372 | - | then throw( | |
459 | + | let dj = df.payments[0] | |
460 | + | let bk = dj.amount | |
461 | + | let dk = (("Invalid asset. " + toBase58String(dh)) + " is expected") | |
462 | + | let bt = valueOrErrorMessage(dj.assetId, dk) | |
463 | + | if ((bt != dh)) | |
464 | + | then throw(dk) | |
373 | 465 | else { | |
374 | - | let cH = toString(Q) | |
375 | - | let cI = cv(Q, aY) | |
376 | - | let bQ = cI._1 | |
377 | - | let bR = cI._2 | |
378 | - | let cp = cI._3 | |
379 | - | let cy = cI._4 | |
380 | - | let cz = cI._5 | |
381 | - | if ((cE > cy)) | |
382 | - | then throw(("Min lock amount is " + toString(cE))) | |
466 | + | let cM = toString(U) | |
467 | + | let dl = cL(cM, bk) | |
468 | + | let dm = cz(U, bk, dl._6, dl._7) | |
469 | + | let cc = dm._1 | |
470 | + | let cd = dm._2 | |
471 | + | let cE = dm._3 | |
472 | + | let cF = dm._4 | |
473 | + | let dn = dm._5 | |
474 | + | if ((di > cF)) | |
475 | + | then throw(("Min lock amount is " + toString(di))) | |
383 | 476 | else { | |
384 | - | let | |
477 | + | let do = bb(bk, 1, if (cc) | |
385 | 478 | then 1 | |
386 | 479 | else 0) | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | ((([ | |
480 | + | let dp = do._1 | |
481 | + | let dq = do._2 | |
482 | + | let dr = do._3 | |
483 | + | (((([aZ("stake", U, df.transactionId, cd, cE, cF, dn)] ++ cb(cc, cM, cd)) ++ bj(U, cF, dn)) ++ dp) ++ dl._1) | |
391 | 484 | } | |
392 | 485 | } | |
393 | 486 | } | |
394 | 487 | } | |
395 | 488 | ||
396 | 489 | ||
397 | - | func | |
398 | - | let | |
399 | - | if ((size( | |
490 | + | func ds (U,df) = { | |
491 | + | let cM = toString(U) | |
492 | + | if ((size(df.payments) > 0)) | |
400 | 493 | then throw("payments are not accepted") | |
401 | 494 | else { | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | func | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | if ((0 >= | |
423 | - | then $Tuple2( | |
424 | - | else $Tuple2(((( | |
495 | + | let dt = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
496 | + | let cc = dt._1 | |
497 | + | let cd = dt._2 | |
498 | + | let du = dt._3 | |
499 | + | let bu = toBigInt(cd) | |
500 | + | let ce = ai(cM) | |
501 | + | let bv = aC(ce, -1) | |
502 | + | let bw = aC(ah(), -1) | |
503 | + | func dv (cg,ch) = { | |
504 | + | let dw = bs(cM, ch, bu, bv, bw) | |
505 | + | let cj = dw._1 | |
506 | + | let ck = dw._2 | |
507 | + | let cl = dw._3 | |
508 | + | let bB = dw._4 | |
509 | + | let dx = an(cM, ch) | |
510 | + | let dy = cg | |
511 | + | let dz = dy._1 | |
512 | + | let dA = dy._2 | |
513 | + | let dB = makeString([ch, toString(cj)], ":") | |
514 | + | let dC = makeString([dA, dB], "_") | |
515 | + | if ((0 >= cj)) | |
516 | + | then $Tuple2(dz, dC) | |
517 | + | else $Tuple2((((dz :+ ScriptTransfer(U, cj, aI(ch))) :+ IntegerEntry(dx, (valueOrElse(getInteger(dx), 0) + cj))) :+ IntegerEntry(bB, 0)), dC) | |
425 | 518 | } | |
426 | 519 | ||
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | func | |
432 | - | then | |
433 | - | else | |
520 | + | let dD = { | |
521 | + | let cm = br | |
522 | + | let cn = size(cm) | |
523 | + | let co = $Tuple2(nil, "") | |
524 | + | func cp (cq,cr) = if ((cr >= cn)) | |
525 | + | then cq | |
526 | + | else dv(cq, cm[cr]) | |
434 | 527 | ||
435 | - | func | |
436 | - | then | |
528 | + | func cs (cq,cr) = if ((cr >= cn)) | |
529 | + | then cq | |
437 | 530 | else throw("List size exceeds 9") | |
438 | 531 | ||
439 | - | | |
532 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
440 | 533 | } | |
441 | - | let | |
442 | - | let | |
443 | - | if ((0 >= size( | |
534 | + | let dE = dD._1 | |
535 | + | let dF = dD._2 | |
536 | + | if ((0 >= size(dE))) | |
444 | 537 | then $Tuple2(nil, 0) | |
445 | - | else $Tuple2((( | |
538 | + | else $Tuple2(((dE :+ IntegerEntry(ce, bw)) :+ ba(U, df.transactionId, drop(dF, 1))), size(dE)) | |
446 | 539 | } | |
447 | 540 | } | |
448 | 541 | ||
449 | 542 | ||
450 | - | @Callable( | |
451 | - | func constructor ( | |
543 | + | @Callable(df) | |
544 | + | func constructor (di,dG,dh) = if ((df.caller != this)) | |
452 | 545 | then throw("Permission denied") | |
453 | - | else [IntegerEntry( | |
546 | + | else [IntegerEntry(R(), di), StringEntry(ag(), dG), StringEntry(S(), dh)] | |
454 | 547 | ||
455 | 548 | ||
456 | 549 | ||
457 | - | @Callable( | |
458 | - | func stake () = | |
550 | + | @Callable(df) | |
551 | + | func stake () = de(df.caller, df) | |
459 | 552 | ||
460 | 553 | ||
461 | 554 | ||
462 | - | @Callable( | |
463 | - | func stakeByOriginCaller () = | |
555 | + | @Callable(df) | |
556 | + | func stakeByOriginCaller () = de(df.originCaller, df) | |
464 | 557 | ||
465 | 558 | ||
466 | 559 | ||
467 | - | @Callable( | |
468 | - | func unstake ( | |
560 | + | @Callable(df) | |
561 | + | func unstake (bk) = if ((size(df.payments) != 0)) | |
469 | 562 | then throw("unstake doesn't require any payment") | |
470 | 563 | else { | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | if (( | |
484 | - | then throw((("You have already made a swap operation. Wait " + toString((height + | |
485 | - | else if ((0 >= | |
564 | + | let U = df.caller | |
565 | + | let cM = toString(U) | |
566 | + | let dH = bm() | |
567 | + | let dh = dH._1 | |
568 | + | let di = dH._2 | |
569 | + | let dI = bp(U) | |
570 | + | let cc = dI._1 | |
571 | + | let cd = dI._2 | |
572 | + | let cE = dI._3 | |
573 | + | let dJ = aO(reentrantInvoke(L, "swapParamsByUserSYSREADONLY", [cM, 0], nil)) | |
574 | + | let dK = dJ._2 | |
575 | + | let dL = dJ._3 | |
576 | + | if ((dK > 0)) | |
577 | + | then throw((("You have already made a swap operation. Wait " + toString((height + dL))) + " height to unstake")) | |
578 | + | else if ((0 >= cd)) | |
486 | 579 | then throw("Nothing to unstake") | |
487 | - | else if (( | |
488 | - | then throw(((("Requested " + toString( | |
580 | + | else if ((bk > cd)) | |
581 | + | then throw(((("Requested " + toString(bk)) + ", but staked only ") + toString(cd))) | |
489 | 582 | else { | |
490 | - | let | |
491 | - | let | |
583 | + | let cF = (cd - bk) | |
584 | + | let dM = bb(-(bk), if ((bk == cd)) | |
492 | 585 | then -1 | |
493 | - | else 0, if (( | |
586 | + | else 0, if ((bk == cd)) | |
494 | 587 | then -1 | |
495 | 588 | else 0) | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | ((([ScriptTransfer( | |
589 | + | let dp = dM._1 | |
590 | + | let dq = dM._2 | |
591 | + | let dr = dM._3 | |
592 | + | (((([ScriptTransfer(U, bk, dh), aZ("unstake", U, df.transactionId, cd, cE, cF, cE)] ++ cb(false, cM, cd)) ++ bj(U, cF, cE)) ++ dp) ++ cZ(cM, bk)._1) | |
500 | 593 | } | |
501 | 594 | } | |
502 | 595 | ||
503 | 596 | ||
504 | 597 | ||
505 | - | @Callable( | |
506 | - | func deposit () = if ((size( | |
598 | + | @Callable(df) | |
599 | + | func deposit () = if ((size(df.payments) != 1)) | |
507 | 600 | then throw("exact 1 payment is allowed only") | |
508 | 601 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
602 | + | let dN = df.payments[0] | |
603 | + | let bk = dN.amount | |
604 | + | let dO = valueOrElse(dN.assetId, i) | |
605 | + | let dP = toBase58String(dO) | |
606 | + | let dQ = if ((dO == i)) | |
514 | 607 | then f | |
515 | 608 | else e | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | if ((0 > | |
609 | + | let dR = toBigInt(bk) | |
610 | + | let dq = aC(aa(), 0) | |
611 | + | let dS = toBigInt(dq) | |
612 | + | if ((0 > dq)) | |
520 | 613 | then throw("TODO: case is not supported") | |
521 | - | else if (( | |
522 | - | then | |
614 | + | else if ((dq == 0)) | |
615 | + | then ct(dP, bk) | |
523 | 616 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | if (!(contains( | |
529 | - | then throw((( | |
617 | + | let dT = fraction(dR, g, dS) | |
618 | + | let dU = ah() | |
619 | + | let bw = aC(dU, -1) | |
620 | + | let dV = (bw + 1) | |
621 | + | if (!(contains(bq, dP))) | |
622 | + | then throw(((bq + " doesn't contain ") + dP)) | |
530 | 623 | else { | |
531 | - | func | |
532 | - | let | |
533 | - | let | |
534 | - | ( | |
535 | - | then StringEntry( | |
536 | - | else StringEntry( | |
624 | + | func dW (cg,dX) = { | |
625 | + | let dY = aj(dV, dX) | |
626 | + | let dZ = aF(aj(bw, dX), "0") | |
627 | + | (cg :+ (if ((dX == dP)) | |
628 | + | then StringEntry(dY, toString((parseBigIntValue(dZ) + dT))) | |
629 | + | else StringEntry(dY, dZ))) | |
537 | 630 | } | |
538 | 631 | ||
539 | - | (({ | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | func | |
544 | - | then | |
545 | - | else | |
632 | + | ((({ | |
633 | + | let cm = br | |
634 | + | let cn = size(cm) | |
635 | + | let co = nil | |
636 | + | func cp (cq,cr) = if ((cr >= cn)) | |
637 | + | then cq | |
638 | + | else dW(cq, cm[cr]) | |
546 | 639 | ||
547 | - | func | |
548 | - | then | |
640 | + | func cs (cq,cr) = if ((cr >= cn)) | |
641 | + | then cq | |
549 | 642 | else throw("List size exceeds 9") | |
550 | 643 | ||
551 | - | | |
552 | - | } :+ IntegerEntry( | |
644 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
645 | + | } :+ IntegerEntry(dU, dV)) ++ bR(bk, dP)) ++ cJ()) | |
553 | 646 | } | |
554 | 647 | } | |
555 | 648 | } | |
556 | 649 | ||
557 | 650 | ||
558 | 651 | ||
559 | - | @Callable( | |
560 | - | func claimRewards () = | |
652 | + | @Callable(df) | |
653 | + | func claimRewards () = ds(df.caller, df) | |
561 | 654 | ||
562 | 655 | ||
563 | 656 | ||
564 | - | @Callable( | |
565 | - | func claimRewardsByOriginCaller () = | |
657 | + | @Callable(df) | |
658 | + | func claimRewardsByOriginCaller () = ds(df.originCaller, df) | |
566 | 659 | ||
567 | 660 | ||
568 | 661 | ||
569 | - | @Callable( | |
570 | - | func unclaimedRewardsREADONLY ( | |
571 | - | func | |
662 | + | @Callable(df) | |
663 | + | func unclaimedRewardsREADONLY (cM) = { | |
664 | + | func ea (cg,ch) = ((cg + makeString([ch, "0", "0"], ":")) + "_") | |
572 | 665 | ||
573 | - | let | |
666 | + | let eb = if ((cM == "")) | |
574 | 667 | then { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | func | |
579 | - | then | |
580 | - | else | |
668 | + | let cm = br | |
669 | + | let cn = size(cm) | |
670 | + | let co = "" | |
671 | + | func cp (cq,cr) = if ((cr >= cn)) | |
672 | + | then cq | |
673 | + | else ea(cq, cm[cr]) | |
581 | 674 | ||
582 | - | func | |
583 | - | then | |
675 | + | func cs (cq,cr) = if ((cr >= cn)) | |
676 | + | then cq | |
584 | 677 | else throw("List size exceeds 9") | |
585 | 678 | ||
586 | - | | |
679 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
587 | 680 | } | |
588 | 681 | else { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | func | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | (( | |
682 | + | let U = addressFromStringValue(cM) | |
683 | + | let ec = valueOrElse(bo(U), $Tuple3(true, 0, 0)) | |
684 | + | let cc = ec._1 | |
685 | + | let cd = ec._2 | |
686 | + | let du = ec._3 | |
687 | + | let bu = toBigInt(cd) | |
688 | + | let ce = ai(cM) | |
689 | + | let bv = aC(ce, -1) | |
690 | + | let bw = aC(ah(), -1) | |
691 | + | func dv (cg,ch) = { | |
692 | + | let ed = bs(cM, ch, bu, bv, bw) | |
693 | + | let cj = ed._1 | |
694 | + | let ck = ed._2 | |
695 | + | let cl = ed._3 | |
696 | + | let bB = ed._4 | |
697 | + | let ee = valueOrElse(getInteger(an(cM, ch)), 0) | |
698 | + | ((cg + makeString([ch, toString(cj), toString(ee)], ":")) + "_") | |
606 | 699 | } | |
607 | 700 | ||
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | func | |
612 | - | then | |
613 | - | else | |
701 | + | let cm = br | |
702 | + | let cn = size(cm) | |
703 | + | let co = "" | |
704 | + | func cp (cq,cr) = if ((cr >= cn)) | |
705 | + | then cq | |
706 | + | else dv(cq, cm[cr]) | |
614 | 707 | ||
615 | - | func | |
616 | - | then | |
708 | + | func cs (cq,cr) = if ((cr >= cn)) | |
709 | + | then cq | |
617 | 710 | else throw("List size exceeds 9") | |
618 | 711 | ||
619 | - | | |
712 | + | cs(cp(cp(cp(cp(cp(cp(cp(cp(cp(co, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9) | |
620 | 713 | } | |
621 | - | $Tuple2(nil, dropRight( | |
714 | + | $Tuple2(nil, dropRight(eb, 1)) | |
622 | 715 | } | |
623 | 716 | ||
624 | 717 | ||
625 | 718 | ||
626 | - | @Callable(cB) | |
627 | - | func surfStakingSYSREADONLY (dA,dB) = { | |
628 | - | let dC = aq(W(), 0) | |
629 | - | let dD = cl(dC) | |
630 | - | if ((dA == "")) | |
631 | - | then $Tuple2(nil, [0, dC, 0, dD, 0, height, height]) | |
719 | + | @Callable(df) | |
720 | + | func updateVotingPower (cM) = if (!(isDefined(addressFromString(cM)))) | |
721 | + | then throw("Invalid user address") | |
722 | + | else { | |
723 | + | let dl = cL(cM, 0) | |
724 | + | $Tuple2(dl._1, [cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
725 | + | } | |
726 | + | ||
727 | + | ||
728 | + | ||
729 | + | @Callable(df) | |
730 | + | func surfStakingSYSREADONLY (ef,eg) = { | |
731 | + | let eh = aC(aa(), 0) | |
732 | + | let ei = cx(eh) | |
733 | + | let dl = if ((eg >= 0)) | |
734 | + | then cL(ef, eg) | |
735 | + | else cZ(ef, eg) | |
736 | + | if ((ef == "")) | |
737 | + | then $Tuple2(nil, [0, eh, 0, ei, height, height, cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
632 | 738 | else { | |
633 | - | let Q = au(dA) | |
634 | - | let cI = cv(Q, dB) | |
635 | - | let bQ = cI._1 | |
636 | - | let bR = cI._2 | |
637 | - | let cp = cI._3 | |
638 | - | let cy = cI._4 | |
639 | - | let cz = cI._5 | |
640 | - | let dE = bR | |
641 | - | let dF = cl(dE) | |
642 | - | $Tuple2(nil, [dE, dC, dF, dD, cp, cz]) | |
739 | + | let U = aG(ef) | |
740 | + | let dm = cz(U, eg, dl._6, dl._7) | |
741 | + | let cd = dm._2 | |
742 | + | let cE = dm._3 | |
743 | + | let cF = dm._4 | |
744 | + | let dn = dm._5 | |
745 | + | let ej = cd | |
746 | + | let ek = cx(ej) | |
747 | + | $Tuple2(nil, [ej, eh, ek, ei, cE, dn, cx(dl._2), cx(dl._3), cx(dl._4), cx(dl._5), cx(dl._6), cx(dl._7)]) | |
643 | 748 | } | |
644 | 749 | } | |
645 | 750 | ||
646 | 751 | ||
647 | 752 | ||
648 | - | @Callable( | |
649 | - | func gnsbtFromSurfSYSREADONLY ( | |
753 | + | @Callable(df) | |
754 | + | func gnsbtFromSurfSYSREADONLY (cy) = $Tuple2(nil, cx(cy)) | |
650 | 755 | ||
651 | 756 | ||
652 | 757 | ||
653 | - | @Callable( | |
758 | + | @Callable(df) | |
654 | 759 | func configSYSREADONLY () = { | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | $Tuple2(nil, [ | |
760 | + | let el = getIntegerValue(R()) | |
761 | + | let em = k | |
762 | + | let en = 1150000 | |
763 | + | $Tuple2(nil, [el, (O * c), em, en]) | |
659 | 764 | } | |
660 | 765 | ||
661 | 766 |
github/deemru/w8io/169f3d6 266.19 ms ◑