tx · 7he1ggiUFVYdSUwdM6v4HwCLgo1SoT7ys8KRGUpcE2pq 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.03500000 Waves 2022.06.28 15:04 [2116262] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "7he1ggiUFVYdSUwdM6v4HwCLgo1SoT7ys8KRGUpcE2pq", "fee": 3500000, "feeAssetId": null, "timestamp": 1656417854022, "version": 2, "chainId": 84, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "3vTXrWZ33BD8oLFfAMr152re73118ZwfYrFgztux6hYUrpZ5Tc7jCdsgsLtHReqi151y3UZM6dhvpAzgwqArGt4Z" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABTAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF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AAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXkGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAARbWlncmF0b3JQdWJsaWNLZXkgYM0T", "height": 2116262, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BecFheBjTurW9FBz7e27FvvcgqBYioLXz3SfBGcWkVah Next: CQ5nnArRDFZ6uTT2V3jvpeBzLt84peT4XGhas1RDEW4Z Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
101 | 101 | func I () = "%s%s__config__factoryAddress" | |
102 | 102 | ||
103 | 103 | ||
104 | - | func J () = "%s__votingEmissionContract" | |
104 | + | let J = 1 | |
105 | + | ||
106 | + | let K = 2 | |
107 | + | ||
108 | + | let L = 3 | |
109 | + | ||
110 | + | let M = 4 | |
111 | + | ||
112 | + | let N = 5 | |
113 | + | ||
114 | + | let O = 6 | |
115 | + | ||
116 | + | let P = 7 | |
117 | + | ||
118 | + | func Q () = "%s__factoryConfig" | |
105 | 119 | ||
106 | 120 | ||
107 | - | let K = 1 | |
108 | - | ||
109 | - | let L = 2 | |
110 | - | ||
111 | - | let M = 3 | |
112 | - | ||
113 | - | let N = 4 | |
114 | - | ||
115 | - | let O = 5 | |
116 | - | ||
117 | - | let P = 6 | |
118 | - | ||
119 | - | let Q = 7 | |
120 | - | ||
121 | - | func R () = "%s__factoryConfig" | |
121 | + | func R () = "%s__managerPublicKey" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func S () = "%s__ | |
124 | + | func S () = "%s__migratorPublicKey" | |
125 | 125 | ||
126 | 126 | ||
127 | - | func T () = "%s__ | |
127 | + | func T () = "%s__pendingManagerPublicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | - | func U () = "%s__ | |
130 | + | func U () = "%s__stablePoolAddonAddr" | |
131 | 131 | ||
132 | 132 | ||
133 | - | func V () = "%s__ | |
133 | + | func V (W) = makeString(["%s%s%s", W, "mappings__lpAsset2PoolContract"], e) | |
134 | 134 | ||
135 | 135 | ||
136 | - | func | |
136 | + | func X () = "%s__lpTokensList" | |
137 | 137 | ||
138 | 138 | ||
139 | - | func Y () = "%s__ | |
139 | + | func Y (W) = makeString(["%s%s%s", W, "mappings__lpAsset2PoolContract"], e) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func Z ( | |
142 | + | func Z (aa) = makeString(["%s%s", "poolWeight", aa], e) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ab (ac) = split(valueOrElse(getString(ac, X()), ""), e) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func ad (ac) = split(v(ac, Q()), e) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ae ( | |
151 | + | func ae (af) = addressFromStringValue(af[K]) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func | |
154 | + | func ag (af) = addressFromStringValue(af[N]) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func ah ( | |
157 | + | func ah (af) = addressFromStringValue(af[J]) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ai ( | |
160 | + | func ai () = "%s%s__ratePerBlock__current" | |
161 | 161 | ||
162 | 162 | ||
163 | - | func aj () = "%s%s__ | |
163 | + | func aj () = "%s%s__ratePerBlockMax__current" | |
164 | 164 | ||
165 | 165 | ||
166 | - | func ak () = "%s%s__ | |
166 | + | func ak () = "%s%s__emission__startBlock" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func al () = "%s%s__emission__ | |
169 | + | func al () = "%s%s__emission__duration" | |
170 | 170 | ||
171 | 171 | ||
172 | - | func am () = "%s%s__emission__ | |
172 | + | func am () = "%s%s__emission__endBlock" | |
173 | 173 | ||
174 | 174 | ||
175 | - | func an () = "%s%s__ | |
175 | + | func an (ao,ap) = makeString(["%s%s%s__staked", ao, ap], e) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func aq (ap) = ("%s%s%s__staked__total__" + ap) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar ( | |
181 | + | func ar (ap,ao) = makeString(["%s%s%s__claimed", ao, ap], e) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func as ( | |
184 | + | func as (ap,ao) = makeString(["%s%s%s__claimedMinReward", ao, ap], e) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func at ( | |
187 | + | func at (ap,ao) = makeString(["%s%s%s__claimedBoostReward", ao, ap], e) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func au ( | |
190 | + | func au (ap) = makeString(["%s%s%s__claimed__total", ap], e) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func av ( | |
193 | + | func av (u) = valueOrElse(getInteger(this, u), 0) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func aw ( | |
196 | + | func aw (ax) = makeString(["%s%s%s", ax, "total", "bal"], e) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func | |
199 | + | func ay (ax,az) = makeString(["%s%s%s", ax, az, "bal"], e) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func | |
202 | + | func aA (ax) = makeString(["%s%s%s", ax, "total", "balINT"], e) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func aB ( | |
205 | + | func aB (ax,az) = makeString(["%s%s%s", ax, az, "balINT"], e) | |
206 | 206 | ||
207 | 207 | ||
208 | - | func aC ( | |
208 | + | func aC (ax) = makeString(["%s%s%s", ax, "total", "lastUpd"], e) | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aD ( | |
211 | + | func aD (ax,az) = makeString(["%s%s%s", ax, az, "lastUpd"], e) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aE ( | |
214 | + | func aE (ax) = makeString(["%s%s%s%s", ax, "common", "lpInt"], e) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func aF ( | |
217 | + | func aF (ax) = makeString(["%s%s%s%s", ax, "common", "lpIntH"], e) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aG ( | |
220 | + | func aG (ax,az) = makeString(["%s%s%s%s", ax, az, "lpInt"], e) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aH ( | |
223 | + | func aH (ax,az) = makeString(["%s%s%s%s", ax, az, "lpIntH"], e) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aI ( | |
226 | + | func aI (ax) = makeString(["%s", ax, "wxPerLp"], e) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aJ ( | |
229 | + | func aJ (ax) = makeString(["%s", ax, "wxPerLpX18"], e) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aK ( | |
232 | + | func aK (ax,az) = makeString(["%s%s%s%s", ax, az, "uIntL"], e) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aL ( | |
235 | + | func aL (aM,az,aN) = makeString(["%s%s%s%s__history", aM, az, aN], e) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aO (az,ax,aM,aP) = makeString(["%s%s%s%d%d%d", az, ax, aM, toString(height), toString(lastBlock.timestamp), toString(aP)], e) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aQ (aM,az,ax,aP,aR) = StringEntry(aL(aM, az, toBase58String(aR)), aO(az, ax, aM, aP)) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func aR (aN,aA,ay,aQ,aS) = StringEntry(aM(aN, aA, toBase58String(aS)), aP(aA, ay, aN, aQ)) | |
244 | + | let aS = s(this, I()) | |
245 | + | ||
246 | + | let aT = addressFromStringValue(aS) | |
247 | + | ||
248 | + | let af = ad(aT) | |
249 | + | ||
250 | + | let aU = ag(af) | |
251 | + | ||
252 | + | let aV = ae(af) | |
253 | + | ||
254 | + | func aW (aX,aY,aZ,ba) = if (if ((aY == g)) | |
255 | + | then (aX > g) | |
256 | + | else false) | |
257 | + | then g | |
258 | + | else if ((aX == g)) | |
259 | + | then aZ | |
260 | + | else if (if ((aY > g)) | |
261 | + | then (aX > g) | |
262 | + | else false) | |
263 | + | then value(parseBigInt(s(this, ba))) | |
264 | + | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
245 | 265 | ||
246 | 266 | ||
247 | - | let aT = s(this, I()) | |
248 | - | ||
249 | - | let aU = addressFromStringValue(aT) | |
250 | - | ||
251 | - | let ag = ae(aU) | |
252 | - | ||
253 | - | let aV = ah(ag) | |
254 | - | ||
255 | - | let aW = af(ag) | |
256 | - | ||
257 | - | func aX (ay) = makeString(["%s%s", ay, "nextUser"], e) | |
258 | - | ||
259 | - | ||
260 | - | func aY (ay) = makeString(["users", ay], e) | |
261 | - | ||
262 | - | ||
263 | - | func aZ (ba) = makeString(["%s%s%s", ba, "head"], e) | |
264 | - | ||
265 | - | ||
266 | - | func bb (ba) = makeString(["%s%s%s", ba, "size"], e) | |
267 | - | ||
268 | - | ||
269 | - | func bc (ba,bd) = makeString(["%s%s%s%s", ba, bd, "prev"], e) | |
270 | - | ||
271 | - | ||
272 | - | func be (ba,bd) = makeString(["%s%s%s%s", ba, bd, "next"], e) | |
273 | - | ||
274 | - | ||
275 | - | func bf (ba,bd) = { | |
276 | - | let bg = getString(this, aZ(ba)) | |
277 | - | let bh = getString(this, bc(ba, bd)) | |
278 | - | let bi = getString(this, be(ba, bd)) | |
279 | - | if (if ((bd == valueOrElse(bg, ""))) | |
280 | - | then true | |
281 | - | else (bh != unit)) | |
282 | - | then true | |
283 | - | else (bi != unit) | |
267 | + | func bb (ap,bc,bd) = { | |
268 | + | let be = aq(ap) | |
269 | + | let bf = toBigInt(av(be)) | |
270 | + | let bg = if ((bf == g)) | |
271 | + | then h | |
272 | + | else bf | |
273 | + | let bh = getIntegerValue(aT, Z(bc)) | |
274 | + | let bi = z(aU, ak()) | |
275 | + | let bj = 1000 | |
276 | + | let bk = (z(aU, ai()) * bj) | |
277 | + | let bl = fraction(bk, bh, (f * 3)) | |
278 | + | let bm = aE(ap) | |
279 | + | let bn = aF(ap) | |
280 | + | let bo = aI(ap) | |
281 | + | let bp = x(this, bn, bi) | |
282 | + | let bq = A(this, bm) | |
283 | + | let br = 0 | |
284 | + | let bs = max([(height - bp), 0]) | |
285 | + | let bt = if ((br != 0)) | |
286 | + | then toBigInt(br) | |
287 | + | else fraction(toBigInt(bl), toBigInt(b), bg) | |
288 | + | let bu = (bf + toBigInt(bd)) | |
289 | + | let bv = if ((bu == g)) | |
290 | + | then h | |
291 | + | else bu | |
292 | + | let aZ = (bq + (bt * toBigInt(bs))) | |
293 | + | let bw = (toBigInt(bl) / bv) | |
294 | + | let bx = height | |
295 | + | let by = makeString([toString(aZ), "dh=", toString(bs), "wxPerLpX3=", toString(bt), "stakedTotal=", toString(bf), toString(bl), toString(bk), "poolWeight=", toString(bh)], "::") | |
296 | + | $Tuple3(aZ, [StringEntry(bm, toString(aZ)), IntegerEntry(bn, bx), StringEntry(bo, toString(bw))], by) | |
284 | 297 | } | |
285 | 298 | ||
286 | 299 | ||
287 | - | func bj (ba,bd) = { | |
288 | - | let bg = getString(this, aZ(ba)) | |
289 | - | let bk = valueOrElse(getInteger(this, bb(ba)), 0) | |
290 | - | let bl = if (!(bf(ba, bd))) | |
291 | - | then true | |
292 | - | else throw("Node exists") | |
293 | - | if ((bl == bl)) | |
294 | - | then (([IntegerEntry(bb(ba), (bk + 1))] ++ (if ((bg != unit)) | |
295 | - | then [StringEntry(be(ba, bd), value(bg)), StringEntry(bc(ba, value(bg)), bd)] | |
296 | - | else nil)) ++ [StringEntry(aZ(ba), bd)]) | |
297 | - | else throw("Strict value is not equal to itself.") | |
300 | + | func bz (ap,ao,bc,bd) = { | |
301 | + | let bA = bb(ap, bc, bd) | |
302 | + | let aZ = bA._1 | |
303 | + | let bB = bA._2 | |
304 | + | let bC = bA._3 | |
305 | + | let bj = 1000 | |
306 | + | let bD = an(ao, ap) | |
307 | + | let aX = av(bD) | |
308 | + | let bE = aG(ap, ao) | |
309 | + | let bF = aH(ap, ao) | |
310 | + | let ba = aK(ap, ao) | |
311 | + | let bG = A(this, bE) | |
312 | + | let aY = w(this, bF) | |
313 | + | let bH = aW(toBigInt(aX), toBigInt(aY), aZ, ba) | |
314 | + | let bI = (b * bj) | |
315 | + | let bJ = (bG + fraction((aZ - bH), toBigInt(aX), toBigInt(bI))) | |
316 | + | let bK = aZ | |
317 | + | let bL = height | |
318 | + | let by = makeString(["wxToClaimUser", toString(bG), "wxPerLpInteg", toString(aY), "this.getString", toString(value(parseBigInt(s(this, ba)))), "wxPerLpIntegralNew", toString(aZ), "wxToClaimUserNew", toString(bJ), "wxPerLpIntegralUserLast", toString(bH), toString(aX), "poolDEBUG=", bC, "height=", toString(height)], "::") | |
319 | + | $Tuple3(bJ, (bB ++ [StringEntry(bE, toString(bJ)), IntegerEntry(bF, bL), StringEntry(ba, toString(bK))]), by) | |
298 | 320 | } | |
299 | 321 | ||
300 | 322 | ||
301 | - | func bm (ba,bd) = { | |
302 | - | let bg = getString(this, aZ(ba)) | |
303 | - | let bk = valueOrElse(getInteger(this, bb(ba)), 0) | |
304 | - | let bh = getString(this, bc(ba, bd)) | |
305 | - | let bi = getString(this, be(ba, bd)) | |
306 | - | ([IntegerEntry(bb(ba), (bk - 1))] ++ (if (if ((bh != unit)) | |
307 | - | then (bi != unit) | |
308 | - | else false) | |
309 | - | then [StringEntry(be(ba, value(bh)), value(bi)), StringEntry(bc(ba, value(bi)), value(bh)), DeleteEntry(bc(ba, bd)), DeleteEntry(be(ba, bd))] | |
310 | - | else if ((bi != unit)) | |
311 | - | then [StringEntry(aZ(ba), value(bi)), DeleteEntry(be(ba, bd)), DeleteEntry(bc(ba, value(bi)))] | |
312 | - | else if ((bh != unit)) | |
313 | - | then [DeleteEntry(bc(ba, bd)), DeleteEntry(be(ba, value(bh)))] | |
314 | - | else if ((bd == valueOrElse(bg, ""))) | |
315 | - | then [DeleteEntry(aZ(ba))] | |
316 | - | else throw(((("invalid node: " + ba) + ".") + bd)))) | |
323 | + | func bM () = { | |
324 | + | let k = getString(R()) | |
325 | + | if ($isInstanceOf(k, "String")) | |
326 | + | then { | |
327 | + | let C = k | |
328 | + | fromBase58String(C) | |
329 | + | } | |
330 | + | else if ($isInstanceOf(k, "Unit")) | |
331 | + | then unit | |
332 | + | else throw("Match error") | |
317 | 333 | } | |
318 | 334 | ||
319 | 335 | ||
320 | - | func bn (bo,bp,bq,br) = if (if ((bp == g)) | |
321 | - | then (bo > g) | |
322 | - | else false) | |
323 | - | then g | |
324 | - | else if ((bo == g)) | |
325 | - | then bq | |
326 | - | else if (if ((bp > g)) | |
327 | - | then (bo > g) | |
328 | - | else false) | |
329 | - | then value(parseBigInt(s(this, br))) | |
330 | - | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
331 | - | ||
332 | - | ||
333 | - | func bs (aq,bt,bu) = { | |
334 | - | let bv = ar(aq) | |
335 | - | let bw = toBigInt(aw(bv)) | |
336 | - | let bx = if ((bw == g)) | |
337 | - | then h | |
338 | - | else bw | |
339 | - | let by = getIntegerValue(aU, aa(bt)) | |
340 | - | let bz = z(aV, al()) | |
341 | - | let bA = 1000 | |
342 | - | let bB = (z(aV, aj()) * bA) | |
343 | - | let bC = fraction(bB, by, (f * 3)) | |
344 | - | let bD = aF(aq) | |
345 | - | let bE = aG(aq) | |
346 | - | let bF = aJ(aq) | |
347 | - | let bG = x(this, bE, bz) | |
348 | - | let bH = A(this, bD) | |
349 | - | let bI = 0 | |
350 | - | let bJ = max([(height - bG), 0]) | |
351 | - | let bK = if ((bI != 0)) | |
352 | - | then toBigInt(bI) | |
353 | - | else fraction(toBigInt(bC), toBigInt(b), bx) | |
354 | - | let bL = (bw + toBigInt(bu)) | |
355 | - | let bM = if ((bL == g)) | |
356 | - | then h | |
357 | - | else bL | |
358 | - | let bq = (bH + (bK * toBigInt(bJ))) | |
359 | - | let bN = (toBigInt(bC) / bM) | |
360 | - | let bO = height | |
361 | - | let bP = makeString([toString(bq), toString(bJ), toString(bK), toString(bw), toString(bC), toString(bB), toString(by)], "::") | |
362 | - | $Tuple3(bq, [StringEntry(bD, toString(bq)), IntegerEntry(bE, bO), StringEntry(bF, toString(bN))], bP) | |
363 | - | } | |
364 | - | ||
365 | - | ||
366 | - | func bQ (aq,ap,bt,bu) = { | |
367 | - | let bR = bs(aq, bt, bu) | |
368 | - | let bq = bR._1 | |
369 | - | let bS = bR._2 | |
370 | - | let bT = bR._3 | |
371 | - | let bA = 1000 | |
372 | - | let bU = ao(ap, aq) | |
373 | - | let bo = aw(bU) | |
374 | - | let bV = aH(aq, ap) | |
375 | - | let bW = aI(aq, ap) | |
376 | - | let br = aL(aq, ap) | |
377 | - | let bX = A(this, bV) | |
378 | - | let bp = w(this, bW) | |
379 | - | let bY = bn(toBigInt(bo), toBigInt(bp), bq, br) | |
380 | - | let bZ = (b * bA) | |
381 | - | let ca = (bX + fraction((bq - bY), toBigInt(bo), toBigInt(bZ))) | |
382 | - | let cb = bq | |
383 | - | let cc = height | |
384 | - | let bP = makeString([toString(bX), toString(bY), toString(bo), bT, toString(height)], "::") | |
385 | - | $Tuple3(ca, (bS ++ [StringEntry(bV, toString(ca)), IntegerEntry(bW, cc), StringEntry(br, toString(cb))]), bP) | |
386 | - | } | |
387 | - | ||
388 | - | ||
389 | - | func cd () = { | |
336 | + | func bN () = { | |
390 | 337 | let k = getString(S()) | |
391 | 338 | if ($isInstanceOf(k, "String")) | |
392 | 339 | then { | |
399 | 346 | } | |
400 | 347 | ||
401 | 348 | ||
402 | - | func | |
349 | + | func bO () = { | |
403 | 350 | let k = getString(T()) | |
404 | 351 | if ($isInstanceOf(k, "String")) | |
405 | 352 | then { | |
412 | 359 | } | |
413 | 360 | ||
414 | 361 | ||
415 | - | func cf () = { | |
416 | - | let k = getString(U()) | |
417 | - | if ($isInstanceOf(k, "String")) | |
362 | + | func bP (bQ) = { | |
363 | + | let bR = throw("Permission denied") | |
364 | + | let k = bM() | |
365 | + | if ($isInstanceOf(k, "ByteVector")) | |
418 | 366 | then { | |
419 | - | let C = k | |
420 | - | fromBase58String(C) | |
367 | + | let bS = k | |
368 | + | if ((bQ.callerPublicKey == bS)) | |
369 | + | then true | |
370 | + | else bR | |
421 | 371 | } | |
422 | 372 | else if ($isInstanceOf(k, "Unit")) | |
423 | - | then unit | |
373 | + | then if ((bQ.caller == this)) | |
374 | + | then true | |
375 | + | else bR | |
424 | 376 | else throw("Match error") | |
425 | 377 | } | |
426 | 378 | ||
427 | 379 | ||
428 | - | let cg = throw("Permission denied") | |
429 | - | ||
430 | - | func ch (ci) = if ((ci.caller == this)) | |
431 | - | then true | |
432 | - | else cg | |
433 | - | ||
434 | - | ||
435 | - | func cj (ci) = { | |
436 | - | let k = cd() | |
437 | - | if ($isInstanceOf(k, "ByteVector")) | |
438 | - | then { | |
439 | - | let ck = k | |
440 | - | if ((ci.callerPublicKey == ck)) | |
441 | - | then true | |
442 | - | else cg | |
443 | - | } | |
444 | - | else if ($isInstanceOf(k, "Unit")) | |
445 | - | then if ((ci.caller == this)) | |
446 | - | then true | |
447 | - | else cg | |
448 | - | else throw("Match error") | |
449 | - | } | |
450 | - | ||
451 | - | ||
452 | - | @Callable(ci) | |
453 | - | func constructor (cl) = { | |
454 | - | let cm = cj(ci) | |
455 | - | if ((cm == cm)) | |
456 | - | then [StringEntry(I(), cl)] | |
380 | + | @Callable(bQ) | |
381 | + | func constructor (bT) = { | |
382 | + | let bU = bP(bQ) | |
383 | + | if ((bU == bU)) | |
384 | + | then [StringEntry(I(), bT)] | |
457 | 385 | else throw("Strict value is not equal to itself.") | |
458 | 386 | } | |
459 | 387 | ||
460 | 388 | ||
461 | 389 | ||
462 | - | @Callable(ci) | |
463 | - | func constructorV2 (cn) = { | |
464 | - | let co = [cj(ci), if ((addressFromString(cn) != unit)) | |
465 | - | then true | |
466 | - | else "invalid voting emission contract address"] | |
467 | - | if ((co == co)) | |
468 | - | then [StringEntry(J(), cn)] | |
469 | - | else throw("Strict value is not equal to itself.") | |
470 | - | } | |
471 | - | ||
472 | - | ||
473 | - | ||
474 | - | @Callable(ci) | |
475 | - | func setManager (cp) = { | |
476 | - | let cm = cj(ci) | |
477 | - | if ((cm == cm)) | |
390 | + | @Callable(bQ) | |
391 | + | func setManager (bV) = { | |
392 | + | let bU = bP(bQ) | |
393 | + | if ((bU == bU)) | |
478 | 394 | then { | |
479 | - | let | |
480 | - | if (( | |
481 | - | then [StringEntry( | |
395 | + | let bW = fromBase58String(bV) | |
396 | + | if ((bW == bW)) | |
397 | + | then [StringEntry(T(), bV)] | |
482 | 398 | else throw("Strict value is not equal to itself.") | |
483 | 399 | } | |
484 | 400 | else throw("Strict value is not equal to itself.") | |
486 | 402 | ||
487 | 403 | ||
488 | 404 | ||
489 | - | @Callable( | |
405 | + | @Callable(bQ) | |
490 | 406 | func confirmManager () = { | |
491 | - | let | |
492 | - | let | |
407 | + | let bX = bO() | |
408 | + | let bY = if (isDefined(bX)) | |
493 | 409 | then true | |
494 | 410 | else throw("No pending manager") | |
495 | - | if (( | |
411 | + | if ((bY == bY)) | |
496 | 412 | then { | |
497 | - | let | |
413 | + | let bZ = if ((bQ.callerPublicKey == value(bX))) | |
498 | 414 | then true | |
499 | 415 | else throw("You are not pending manager") | |
500 | - | if (( | |
501 | - | then [StringEntry( | |
416 | + | if ((bZ == bZ)) | |
417 | + | then [StringEntry(R(), toBase58String(value(bX))), DeleteEntry(T())] | |
502 | 418 | else throw("Strict value is not equal to itself.") | |
503 | 419 | } | |
504 | 420 | else throw("Strict value is not equal to itself.") | |
506 | 422 | ||
507 | 423 | ||
508 | 424 | ||
509 | - | @Callable( | |
510 | - | func stake () = if ((size( | |
425 | + | @Callable(bQ) | |
426 | + | func stake () = if ((size(bQ.payments) != 1)) | |
511 | 427 | then throw("invalid payment - exact one payment must be attached") | |
512 | 428 | else { | |
513 | - | let cu = ci.payments[0] | |
514 | - | let ay = value(cu.assetId) | |
515 | - | let aq = toBase58String(ay) | |
516 | - | let aQ = cu.amount | |
517 | - | let bt = valueOrErrorMessage(getString(aU, W(aq)), ("unsupported lp asset " + aq)) | |
518 | - | let cv = toString(ci.caller) | |
519 | - | let ap = if ((cv == bt)) | |
520 | - | then toString(ci.originCaller) | |
521 | - | else cv | |
522 | - | let bU = ao(ap, aq) | |
523 | - | let bv = ar(aq) | |
524 | - | let bo = aw(bU) | |
525 | - | let bw = aw(bv) | |
526 | - | let cw = bQ(aq, ap, bt, aQ) | |
527 | - | let ca = cw._1 | |
528 | - | let cx = cw._2 | |
529 | - | let bP = cw._3 | |
530 | - | let ba = aY(aq) | |
531 | - | let cy = if (bf(ba, ap)) | |
532 | - | then nil | |
533 | - | else bj(ba, ap) | |
534 | - | (([IntegerEntry(bU, (bo + aQ)), IntegerEntry(bv, (bw + aQ)), aR("stake", ap, aq, aQ, ci.transactionId)] ++ cx) ++ cy) | |
429 | + | let ca = bQ.payments[0] | |
430 | + | let ax = value(ca.assetId) | |
431 | + | let ap = toBase58String(ax) | |
432 | + | let aP = ca.amount | |
433 | + | let bc = valueOrErrorMessage(getString(aT, V(ap)), ("unsupported lp asset " + ap)) | |
434 | + | let cb = toString(bQ.caller) | |
435 | + | let ao = if ((cb == bc)) | |
436 | + | then toString(bQ.originCaller) | |
437 | + | else cb | |
438 | + | let bD = an(ao, ap) | |
439 | + | let be = aq(ap) | |
440 | + | let aX = av(bD) | |
441 | + | let bf = av(be) | |
442 | + | let cc = bz(ap, ao, bc, aP) | |
443 | + | let bJ = cc._1 | |
444 | + | let cd = cc._2 | |
445 | + | let by = cc._3 | |
446 | + | ([IntegerEntry(bD, (aX + aP)), IntegerEntry(be, (bf + aP)), aQ("stake", ao, ap, aP, bQ.transactionId)] ++ cd) | |
535 | 447 | } | |
536 | 448 | ||
537 | 449 | ||
538 | 450 | ||
539 | - | @Callable( | |
540 | - | func unstake ( | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
451 | + | @Callable(bQ) | |
452 | + | func unstake (ap,aP) = { | |
453 | + | let ax = fromBase58String(ap) | |
454 | + | let bc = valueOrErrorMessage(getString(aT, V(ap)), ("unsupported lp asset " + ap)) | |
455 | + | let ce = valueOrElse(getString(this, U()), bc) | |
456 | + | let cb = toString(bQ.caller) | |
457 | + | let ao = if (if ((cb == bc)) | |
546 | 458 | then true | |
547 | - | else (cv == cz)) | |
548 | - | then toString(ci.originCaller) | |
549 | - | else cv | |
550 | - | let bU = ao(ap, aq) | |
551 | - | let bv = ar(aq) | |
552 | - | let bo = aw(bU) | |
553 | - | let bw = aw(bv) | |
554 | - | let cA = bQ(aq, ap, bt, -(aQ)) | |
555 | - | let ca = cA._1 | |
556 | - | let cx = cA._2 | |
557 | - | let bP = cA._3 | |
558 | - | let ba = aY(aq) | |
559 | - | let cy = if (bf(ba, ap)) | |
560 | - | then bm(ba, ap) | |
561 | - | else nil | |
562 | - | if ((aQ > bo)) | |
459 | + | else (cb == ce)) | |
460 | + | then toString(bQ.originCaller) | |
461 | + | else cb | |
462 | + | let bD = an(ao, ap) | |
463 | + | let be = aq(ap) | |
464 | + | let aX = av(bD) | |
465 | + | let bf = av(be) | |
466 | + | let cf = bz(ap, ao, bc, -(aP)) | |
467 | + | let bJ = cf._1 | |
468 | + | let cd = cf._2 | |
469 | + | let by = cf._3 | |
470 | + | if ((aP > aX)) | |
563 | 471 | then throw("passed amount is less then available") | |
564 | - | else ( | |
472 | + | else ([IntegerEntry(bD, (aX - aP)), IntegerEntry(be, (bf - aP)), ScriptTransfer(bQ.caller, aP, ax), aQ("unstake", ao, ap, aP, bQ.transactionId)] ++ cd) | |
565 | 473 | } | |
566 | 474 | ||
567 | 475 | ||
568 | 476 | ||
569 | - | @Callable(ci) | |
570 | - | func claimWx (aq) = { | |
571 | - | let ap = toString(ci.caller) | |
572 | - | let cB = invoke(this, "claimWxINTERNAL", [aq, ap], nil) | |
573 | - | $Tuple2(nil, cB) | |
477 | + | @Callable(bQ) | |
478 | + | func claimWx (ap) = { | |
479 | + | let az = bQ.caller | |
480 | + | let ao = toString(bQ.caller) | |
481 | + | let bc = v(aT, Y(ap)) | |
482 | + | let cg = ar(ap, ao) | |
483 | + | let ch = au(ap) | |
484 | + | let ci = as(ap, ao) | |
485 | + | let cj = at(ap, ao) | |
486 | + | let ck = toBigInt(w(this, cg)) | |
487 | + | let cl = toBigInt(w(this, ci)) | |
488 | + | let cm = toBigInt(w(this, cj)) | |
489 | + | let cn = A(this, ch) | |
490 | + | let co = bz(ap, ao, bc, 0) | |
491 | + | let bJ = co._1 | |
492 | + | let cd = co._2 | |
493 | + | let by = co._3 | |
494 | + | let cp = (bJ - ck) | |
495 | + | if ((g >= cp)) | |
496 | + | then throw("nothing to claim") | |
497 | + | else { | |
498 | + | let cq = m(i(invoke(aV, "claimWxBoost", [ap, ao], nil))[0]) | |
499 | + | let cr = cp | |
500 | + | let cs = min([(cr * toBigInt(2)), toBigInt(cq)]) | |
501 | + | let ct = q(i(invoke(aU, "emit", [toInt(cr)], nil))[0]) | |
502 | + | let cu = i(invoke(aU, "emit", [toInt(cs)], nil)) | |
503 | + | if ((cu == cu)) | |
504 | + | then { | |
505 | + | let cv = (ck + cp) | |
506 | + | let cw = (cl + cr) | |
507 | + | let cx = (cl + cr) | |
508 | + | let cy = (cl + cr) | |
509 | + | [StringEntry(cg, toString(cv)), StringEntry(ci, toString(cw)), StringEntry(cj, toString(cx)), StringEntry(ch, toString(cy)), ScriptTransfer(az, toInt(cr), ct), ScriptTransfer(az, toInt(cs), ct), aQ("claim", ao, ap, toInt(cp), bQ.transactionId)] | |
510 | + | } | |
511 | + | else throw("Strict value is not equal to itself.") | |
512 | + | } | |
574 | 513 | } | |
575 | 514 | ||
576 | 515 | ||
577 | 516 | ||
578 | - | @Callable(ci) | |
579 | - | func claimWxINTERNAL (aq,ap) = { | |
580 | - | let cm = ch(ci) | |
581 | - | if ((cm == cm)) | |
582 | - | then { | |
583 | - | let aA = valueOrErrorMessage(addressFromString(ap), "claimWxINTERNAL: invalid user address") | |
584 | - | let bt = v(aU, Z(aq)) | |
585 | - | let cC = as(aq, ap) | |
586 | - | let cD = av(aq) | |
587 | - | let cE = at(aq, ap) | |
588 | - | let cF = au(aq, ap) | |
589 | - | let cG = toBigInt(w(this, cC)) | |
590 | - | let cH = toBigInt(w(this, cE)) | |
591 | - | let cI = toBigInt(w(this, cF)) | |
592 | - | let cJ = A(this, cD) | |
593 | - | let cK = bQ(aq, ap, bt, 0) | |
594 | - | let ca = cK._1 | |
595 | - | let cx = cK._2 | |
596 | - | let bP = cK._3 | |
597 | - | let cL = (ca - cG) | |
598 | - | if ((g >= cL)) | |
599 | - | then throw("nothing to claim") | |
600 | - | else { | |
601 | - | let cM = m(i(invoke(aW, "claimWxBoost", [aq, ap], nil))[0]) | |
602 | - | let cN = cL | |
603 | - | let cO = min([(cN * toBigInt(2)), toBigInt(cM)]) | |
604 | - | let cP = q(i(invoke(aV, "emit", [toInt(cN)], nil))[0]) | |
605 | - | let cQ = i(invoke(aV, "emit", [toInt(cO)], nil)) | |
606 | - | if ((cQ == cQ)) | |
607 | - | then { | |
608 | - | let cR = (cG + cL) | |
609 | - | let cS = (cH + cN) | |
610 | - | let cT = (cH + cN) | |
611 | - | let cU = (cH + cN) | |
612 | - | [StringEntry(cC, toString(cR)), StringEntry(cE, toString(cS)), StringEntry(cF, toString(cT)), StringEntry(cD, toString(cU)), ScriptTransfer(aA, toInt(cN), cP), ScriptTransfer(aA, toInt(cO), cP), aR("claim", ap, aq, toInt(cL), ci.transactionId)] | |
613 | - | } | |
614 | - | else throw("Strict value is not equal to itself.") | |
615 | - | } | |
616 | - | } | |
617 | - | else throw("Strict value is not equal to itself.") | |
517 | + | @Callable(bQ) | |
518 | + | func claimWxREADONLY (ap,ao) = { | |
519 | + | let bD = an(ao, ap) | |
520 | + | let be = aq(ap) | |
521 | + | let cg = ar(ap, ao) | |
522 | + | let aX = av(bD) | |
523 | + | let bf = av(be) | |
524 | + | let ck = w(this, cg) | |
525 | + | let bc = v(aT, Y(ap)) | |
526 | + | let bh = getIntegerValue(aT, Z(bc)) | |
527 | + | let cz = z(aU, ai()) | |
528 | + | let bi = z(aU, ak()) | |
529 | + | let cA = if ((bi > height)) | |
530 | + | then 0 | |
531 | + | else (height - bi) | |
532 | + | let cB = fraction((cz * cA), bh, f) | |
533 | + | let cC = fraction(cB, aX, bf) | |
534 | + | let cD = bz(ap, ao, bc, 0) | |
535 | + | let bJ = cD._1 | |
536 | + | let cd = cD._2 | |
537 | + | let by = cD._3 | |
538 | + | let cp = (bJ - toBigInt(ck)) | |
539 | + | let cE = i(invoke(aV, "claimWxBoostREADONLY", [ap, ao], nil)) | |
540 | + | let cq = m(cE[0]) | |
541 | + | let cF = o(cE[1]) | |
542 | + | let cr = cp | |
543 | + | let cs = min([(cr * toBigInt(2)), toBigInt(cq)]) | |
544 | + | let cG = (cr + cs) | |
545 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", ap, ao, toString(cG), toString(ck), toString(cr), toString(cs), ((((by + "::") + toString(cC)) + "::BOOSTDEBUG::") + cF)], e)) | |
618 | 546 | } | |
619 | 547 | ||
620 | 548 | ||
621 | 549 | ||
622 | - | @Callable(ci) | |
623 | - | func claimWxREADONLY (aq,ap) = { | |
624 | - | let bU = ao(ap, aq) | |
625 | - | let bv = ar(aq) | |
626 | - | let cC = as(aq, ap) | |
627 | - | let bo = aw(bU) | |
628 | - | let bw = aw(bv) | |
629 | - | let cG = w(this, cC) | |
630 | - | let bt = v(aU, Z(aq)) | |
631 | - | let by = getIntegerValue(aU, aa(bt)) | |
632 | - | let cV = z(aV, aj()) | |
633 | - | let bz = z(aV, al()) | |
634 | - | let cW = if ((bz > height)) | |
635 | - | then 0 | |
636 | - | else (height - bz) | |
637 | - | let cX = fraction((cV * cW), by, f) | |
638 | - | let cY = fraction(cX, bo, bw) | |
639 | - | let cZ = bQ(aq, ap, bt, 0) | |
640 | - | let ca = cZ._1 | |
641 | - | let cx = cZ._2 | |
642 | - | let bP = cZ._3 | |
643 | - | let cL = (ca - toBigInt(cG)) | |
644 | - | let da = i(invoke(aW, "claimWxBoostREADONLY", [aq, ap], nil)) | |
645 | - | let cM = m(da[0]) | |
646 | - | let db = o(da[1]) | |
647 | - | let cN = cL | |
648 | - | let cO = min([(cN * toBigInt(2)), toBigInt(cM)]) | |
649 | - | let dc = (cN + cO) | |
650 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", aq, ap, toString(dc), toString(cG), toString(cN), toString(cO), ((((bP + "::") + toString(cY)) + "::BOOST::") + db)], e)) | |
651 | - | } | |
652 | - | ||
653 | - | ||
654 | - | ||
655 | - | @Callable(ci) | |
656 | - | func usersListTraversal (ay) = { | |
657 | - | let cm = if ((toBase58String(ci.caller.bytes) == valueOrElse(getString(this, J()), ""))) | |
658 | - | then true | |
659 | - | else cj(ci) | |
660 | - | if ((cm == cm)) | |
661 | - | then { | |
662 | - | let ba = aY(ay) | |
663 | - | let dd = getString(aX(ay)) | |
664 | - | let bg = getString(aZ(ba)) | |
665 | - | let k = dd | |
666 | - | if ($isInstanceOf(k, "Unit")) | |
667 | - | then { | |
668 | - | let de = bg | |
669 | - | if ($isInstanceOf(de, "Unit")) | |
670 | - | then $Tuple2(nil, false) | |
671 | - | else if ($isInstanceOf(de, "String")) | |
672 | - | then { | |
673 | - | let df = de | |
674 | - | $Tuple2([StringEntry(aX(ay), df)], true) | |
675 | - | } | |
676 | - | else throw("Match error") | |
677 | - | } | |
678 | - | else if ($isInstanceOf(k, "String")) | |
679 | - | then { | |
680 | - | let aA = k | |
681 | - | let cG = w(this, as(ay, aA)) | |
682 | - | let dg = v(aU, Z(ay)) | |
683 | - | let dh = bQ(ay, aA, dg, 0) | |
684 | - | let ca = dh._1 | |
685 | - | let cx = dh._2 | |
686 | - | let bP = dh._3 | |
687 | - | let cL = (ca - toBigInt(cG)) | |
688 | - | let di = if ((cL > g)) | |
689 | - | then invoke(this, "claimWxINTERNAL", [ay, aA], nil) | |
690 | - | else unit | |
691 | - | if ((di == di)) | |
692 | - | then { | |
693 | - | let dj = getString(be(ba, aA)) | |
694 | - | let de = dj | |
695 | - | if ($isInstanceOf(de, "Unit")) | |
696 | - | then $Tuple2([DeleteEntry(aX(ay))], false) | |
697 | - | else if ($isInstanceOf(de, "String")) | |
698 | - | then { | |
699 | - | let dk = de | |
700 | - | $Tuple2([StringEntry(aX(ay), dk)], true) | |
701 | - | } | |
702 | - | else throw("Match error") | |
703 | - | } | |
704 | - | else throw("Strict value is not equal to itself.") | |
705 | - | } | |
706 | - | else throw("Match error") | |
707 | - | } | |
708 | - | else throw("Strict value is not equal to itself.") | |
709 | - | } | |
710 | - | ||
711 | - | ||
712 | - | ||
713 | - | @Callable(ci) | |
714 | - | func onModifyWeight (aq,bt) = if ((ci.caller != aU)) | |
550 | + | @Callable(bQ) | |
551 | + | func onModifyWeight (ap,bc) = if ((bQ.caller != aT)) | |
715 | 552 | then throw("permissions denied") | |
716 | 553 | else { | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | | |
554 | + | let cH = bb(ap, bc, 0) | |
555 | + | let aZ = cH._1 | |
556 | + | let bB = cH._2 | |
557 | + | let bC = cH._3 | |
558 | + | bB | |
722 | 559 | } | |
723 | 560 | ||
724 | 561 | ||
725 | - | @Verifier( | |
726 | - | func | |
727 | - | let | |
728 | - | let k = | |
562 | + | @Verifier(cI) | |
563 | + | func cJ () = { | |
564 | + | let cK = { | |
565 | + | let k = bM() | |
729 | 566 | if ($isInstanceOf(k, "ByteVector")) | |
730 | 567 | then { | |
731 | - | let | |
732 | - | | |
568 | + | let bS = k | |
569 | + | bS | |
733 | 570 | } | |
734 | 571 | else if ($isInstanceOf(k, "Unit")) | |
735 | - | then | |
572 | + | then cI.senderPublicKey | |
736 | 573 | else throw("Match error") | |
737 | 574 | } | |
738 | - | let | |
739 | - | let k = | |
575 | + | let cL = { | |
576 | + | let k = bN() | |
740 | 577 | if ($isInstanceOf(k, "ByteVector")) | |
741 | 578 | then { | |
742 | - | let | |
743 | - | | |
579 | + | let bS = k | |
580 | + | bS | |
744 | 581 | } | |
745 | 582 | else if ($isInstanceOf(k, "Unit")) | |
746 | - | then | |
583 | + | then cI.senderPublicKey | |
747 | 584 | else throw("Match error") | |
748 | 585 | } | |
749 | - | if (sigVerify( | |
586 | + | if (sigVerify(cI.bodyBytes, cI.proofs[0], cK)) | |
750 | 587 | then true | |
751 | - | else sigVerify( | |
588 | + | else sigVerify(cI.bodyBytes, cI.proofs[0], cL) | |
752 | 589 | } | |
753 | 590 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1) | |
19 | 19 | ||
20 | 20 | func i (j) = { | |
21 | 21 | let k = j | |
22 | 22 | if ($isInstanceOf(k, "List[Any]")) | |
23 | 23 | then { | |
24 | 24 | let l = k | |
25 | 25 | l | |
26 | 26 | } | |
27 | 27 | else throw("fail to cast into List[Any]") | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m (j) = { | |
32 | 32 | let k = j | |
33 | 33 | if ($isInstanceOf(k, "Int")) | |
34 | 34 | then { | |
35 | 35 | let n = k | |
36 | 36 | n | |
37 | 37 | } | |
38 | 38 | else throw("fail to cast into Int") | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func o (j) = { | |
43 | 43 | let k = j | |
44 | 44 | if ($isInstanceOf(k, "String")) | |
45 | 45 | then { | |
46 | 46 | let p = k | |
47 | 47 | p | |
48 | 48 | } | |
49 | 49 | else throw("fail to cast into Int") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func q (j) = { | |
54 | 54 | let k = j | |
55 | 55 | if ($isInstanceOf(k, "ByteVector")) | |
56 | 56 | then { | |
57 | 57 | let r = k | |
58 | 58 | r | |
59 | 59 | } | |
60 | 60 | else throw("fail to cast into Int") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func s (t,u) = valueOrErrorMessage(getString(t, u), (("mandatory this." + u) + " is not defined")) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func v (t,u) = valueOrErrorMessage(getString(t, u), (((("mandatory " + toString(t)) + ".") + u) + " is not defined")) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func w (t,u) = valueOrElse(getInteger(t, u), 0) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func x (t,u,y) = valueOrElse(getInteger(t, u), y) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func z (t,u) = valueOrErrorMessage(getInteger(t, u), (("mandatory this." + u) + " is not defined")) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func A (t,u) = value(parseBigInt(valueOrElse(getString(t, u), "0"))) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func B (t,u,y) = { | |
83 | 83 | let k = getString(t, u) | |
84 | 84 | if ($isInstanceOf(k, "String")) | |
85 | 85 | then { | |
86 | 86 | let C = k | |
87 | 87 | value(parseBigInt(C)) | |
88 | 88 | } | |
89 | 89 | else if ($isInstanceOf(k, "Unit")) | |
90 | 90 | then y | |
91 | 91 | else throw("Match error") | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func G (j,H) = toInt(fraction(j, toBigInt(H), d)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func I () = "%s%s__config__factoryAddress" | |
102 | 102 | ||
103 | 103 | ||
104 | - | func J () = "%s__votingEmissionContract" | |
104 | + | let J = 1 | |
105 | + | ||
106 | + | let K = 2 | |
107 | + | ||
108 | + | let L = 3 | |
109 | + | ||
110 | + | let M = 4 | |
111 | + | ||
112 | + | let N = 5 | |
113 | + | ||
114 | + | let O = 6 | |
115 | + | ||
116 | + | let P = 7 | |
117 | + | ||
118 | + | func Q () = "%s__factoryConfig" | |
105 | 119 | ||
106 | 120 | ||
107 | - | let K = 1 | |
108 | - | ||
109 | - | let L = 2 | |
110 | - | ||
111 | - | let M = 3 | |
112 | - | ||
113 | - | let N = 4 | |
114 | - | ||
115 | - | let O = 5 | |
116 | - | ||
117 | - | let P = 6 | |
118 | - | ||
119 | - | let Q = 7 | |
120 | - | ||
121 | - | func R () = "%s__factoryConfig" | |
121 | + | func R () = "%s__managerPublicKey" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func S () = "%s__ | |
124 | + | func S () = "%s__migratorPublicKey" | |
125 | 125 | ||
126 | 126 | ||
127 | - | func T () = "%s__ | |
127 | + | func T () = "%s__pendingManagerPublicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | - | func U () = "%s__ | |
130 | + | func U () = "%s__stablePoolAddonAddr" | |
131 | 131 | ||
132 | 132 | ||
133 | - | func V () = "%s__ | |
133 | + | func V (W) = makeString(["%s%s%s", W, "mappings__lpAsset2PoolContract"], e) | |
134 | 134 | ||
135 | 135 | ||
136 | - | func | |
136 | + | func X () = "%s__lpTokensList" | |
137 | 137 | ||
138 | 138 | ||
139 | - | func Y () = "%s__ | |
139 | + | func Y (W) = makeString(["%s%s%s", W, "mappings__lpAsset2PoolContract"], e) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func Z ( | |
142 | + | func Z (aa) = makeString(["%s%s", "poolWeight", aa], e) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ab (ac) = split(valueOrElse(getString(ac, X()), ""), e) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func ad (ac) = split(v(ac, Q()), e) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ae ( | |
151 | + | func ae (af) = addressFromStringValue(af[K]) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func | |
154 | + | func ag (af) = addressFromStringValue(af[N]) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func ah ( | |
157 | + | func ah (af) = addressFromStringValue(af[J]) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ai ( | |
160 | + | func ai () = "%s%s__ratePerBlock__current" | |
161 | 161 | ||
162 | 162 | ||
163 | - | func aj () = "%s%s__ | |
163 | + | func aj () = "%s%s__ratePerBlockMax__current" | |
164 | 164 | ||
165 | 165 | ||
166 | - | func ak () = "%s%s__ | |
166 | + | func ak () = "%s%s__emission__startBlock" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func al () = "%s%s__emission__ | |
169 | + | func al () = "%s%s__emission__duration" | |
170 | 170 | ||
171 | 171 | ||
172 | - | func am () = "%s%s__emission__ | |
172 | + | func am () = "%s%s__emission__endBlock" | |
173 | 173 | ||
174 | 174 | ||
175 | - | func an () = "%s%s__ | |
175 | + | func an (ao,ap) = makeString(["%s%s%s__staked", ao, ap], e) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func aq (ap) = ("%s%s%s__staked__total__" + ap) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar ( | |
181 | + | func ar (ap,ao) = makeString(["%s%s%s__claimed", ao, ap], e) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func as ( | |
184 | + | func as (ap,ao) = makeString(["%s%s%s__claimedMinReward", ao, ap], e) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func at ( | |
187 | + | func at (ap,ao) = makeString(["%s%s%s__claimedBoostReward", ao, ap], e) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func au ( | |
190 | + | func au (ap) = makeString(["%s%s%s__claimed__total", ap], e) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func av ( | |
193 | + | func av (u) = valueOrElse(getInteger(this, u), 0) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func aw ( | |
196 | + | func aw (ax) = makeString(["%s%s%s", ax, "total", "bal"], e) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func | |
199 | + | func ay (ax,az) = makeString(["%s%s%s", ax, az, "bal"], e) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func | |
202 | + | func aA (ax) = makeString(["%s%s%s", ax, "total", "balINT"], e) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func aB ( | |
205 | + | func aB (ax,az) = makeString(["%s%s%s", ax, az, "balINT"], e) | |
206 | 206 | ||
207 | 207 | ||
208 | - | func aC ( | |
208 | + | func aC (ax) = makeString(["%s%s%s", ax, "total", "lastUpd"], e) | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aD ( | |
211 | + | func aD (ax,az) = makeString(["%s%s%s", ax, az, "lastUpd"], e) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aE ( | |
214 | + | func aE (ax) = makeString(["%s%s%s%s", ax, "common", "lpInt"], e) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func aF ( | |
217 | + | func aF (ax) = makeString(["%s%s%s%s", ax, "common", "lpIntH"], e) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aG ( | |
220 | + | func aG (ax,az) = makeString(["%s%s%s%s", ax, az, "lpInt"], e) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aH ( | |
223 | + | func aH (ax,az) = makeString(["%s%s%s%s", ax, az, "lpIntH"], e) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aI ( | |
226 | + | func aI (ax) = makeString(["%s", ax, "wxPerLp"], e) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aJ ( | |
229 | + | func aJ (ax) = makeString(["%s", ax, "wxPerLpX18"], e) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aK ( | |
232 | + | func aK (ax,az) = makeString(["%s%s%s%s", ax, az, "uIntL"], e) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aL ( | |
235 | + | func aL (aM,az,aN) = makeString(["%s%s%s%s__history", aM, az, aN], e) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aO (az,ax,aM,aP) = makeString(["%s%s%s%d%d%d", az, ax, aM, toString(height), toString(lastBlock.timestamp), toString(aP)], e) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aQ (aM,az,ax,aP,aR) = StringEntry(aL(aM, az, toBase58String(aR)), aO(az, ax, aM, aP)) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func aR (aN,aA,ay,aQ,aS) = StringEntry(aM(aN, aA, toBase58String(aS)), aP(aA, ay, aN, aQ)) | |
244 | + | let aS = s(this, I()) | |
245 | + | ||
246 | + | let aT = addressFromStringValue(aS) | |
247 | + | ||
248 | + | let af = ad(aT) | |
249 | + | ||
250 | + | let aU = ag(af) | |
251 | + | ||
252 | + | let aV = ae(af) | |
253 | + | ||
254 | + | func aW (aX,aY,aZ,ba) = if (if ((aY == g)) | |
255 | + | then (aX > g) | |
256 | + | else false) | |
257 | + | then g | |
258 | + | else if ((aX == g)) | |
259 | + | then aZ | |
260 | + | else if (if ((aY > g)) | |
261 | + | then (aX > g) | |
262 | + | else false) | |
263 | + | then value(parseBigInt(s(this, ba))) | |
264 | + | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
245 | 265 | ||
246 | 266 | ||
247 | - | let aT = s(this, I()) | |
248 | - | ||
249 | - | let aU = addressFromStringValue(aT) | |
250 | - | ||
251 | - | let ag = ae(aU) | |
252 | - | ||
253 | - | let aV = ah(ag) | |
254 | - | ||
255 | - | let aW = af(ag) | |
256 | - | ||
257 | - | func aX (ay) = makeString(["%s%s", ay, "nextUser"], e) | |
258 | - | ||
259 | - | ||
260 | - | func aY (ay) = makeString(["users", ay], e) | |
261 | - | ||
262 | - | ||
263 | - | func aZ (ba) = makeString(["%s%s%s", ba, "head"], e) | |
264 | - | ||
265 | - | ||
266 | - | func bb (ba) = makeString(["%s%s%s", ba, "size"], e) | |
267 | - | ||
268 | - | ||
269 | - | func bc (ba,bd) = makeString(["%s%s%s%s", ba, bd, "prev"], e) | |
270 | - | ||
271 | - | ||
272 | - | func be (ba,bd) = makeString(["%s%s%s%s", ba, bd, "next"], e) | |
273 | - | ||
274 | - | ||
275 | - | func bf (ba,bd) = { | |
276 | - | let bg = getString(this, aZ(ba)) | |
277 | - | let bh = getString(this, bc(ba, bd)) | |
278 | - | let bi = getString(this, be(ba, bd)) | |
279 | - | if (if ((bd == valueOrElse(bg, ""))) | |
280 | - | then true | |
281 | - | else (bh != unit)) | |
282 | - | then true | |
283 | - | else (bi != unit) | |
267 | + | func bb (ap,bc,bd) = { | |
268 | + | let be = aq(ap) | |
269 | + | let bf = toBigInt(av(be)) | |
270 | + | let bg = if ((bf == g)) | |
271 | + | then h | |
272 | + | else bf | |
273 | + | let bh = getIntegerValue(aT, Z(bc)) | |
274 | + | let bi = z(aU, ak()) | |
275 | + | let bj = 1000 | |
276 | + | let bk = (z(aU, ai()) * bj) | |
277 | + | let bl = fraction(bk, bh, (f * 3)) | |
278 | + | let bm = aE(ap) | |
279 | + | let bn = aF(ap) | |
280 | + | let bo = aI(ap) | |
281 | + | let bp = x(this, bn, bi) | |
282 | + | let bq = A(this, bm) | |
283 | + | let br = 0 | |
284 | + | let bs = max([(height - bp), 0]) | |
285 | + | let bt = if ((br != 0)) | |
286 | + | then toBigInt(br) | |
287 | + | else fraction(toBigInt(bl), toBigInt(b), bg) | |
288 | + | let bu = (bf + toBigInt(bd)) | |
289 | + | let bv = if ((bu == g)) | |
290 | + | then h | |
291 | + | else bu | |
292 | + | let aZ = (bq + (bt * toBigInt(bs))) | |
293 | + | let bw = (toBigInt(bl) / bv) | |
294 | + | let bx = height | |
295 | + | let by = makeString([toString(aZ), "dh=", toString(bs), "wxPerLpX3=", toString(bt), "stakedTotal=", toString(bf), toString(bl), toString(bk), "poolWeight=", toString(bh)], "::") | |
296 | + | $Tuple3(aZ, [StringEntry(bm, toString(aZ)), IntegerEntry(bn, bx), StringEntry(bo, toString(bw))], by) | |
284 | 297 | } | |
285 | 298 | ||
286 | 299 | ||
287 | - | func bj (ba,bd) = { | |
288 | - | let bg = getString(this, aZ(ba)) | |
289 | - | let bk = valueOrElse(getInteger(this, bb(ba)), 0) | |
290 | - | let bl = if (!(bf(ba, bd))) | |
291 | - | then true | |
292 | - | else throw("Node exists") | |
293 | - | if ((bl == bl)) | |
294 | - | then (([IntegerEntry(bb(ba), (bk + 1))] ++ (if ((bg != unit)) | |
295 | - | then [StringEntry(be(ba, bd), value(bg)), StringEntry(bc(ba, value(bg)), bd)] | |
296 | - | else nil)) ++ [StringEntry(aZ(ba), bd)]) | |
297 | - | else throw("Strict value is not equal to itself.") | |
300 | + | func bz (ap,ao,bc,bd) = { | |
301 | + | let bA = bb(ap, bc, bd) | |
302 | + | let aZ = bA._1 | |
303 | + | let bB = bA._2 | |
304 | + | let bC = bA._3 | |
305 | + | let bj = 1000 | |
306 | + | let bD = an(ao, ap) | |
307 | + | let aX = av(bD) | |
308 | + | let bE = aG(ap, ao) | |
309 | + | let bF = aH(ap, ao) | |
310 | + | let ba = aK(ap, ao) | |
311 | + | let bG = A(this, bE) | |
312 | + | let aY = w(this, bF) | |
313 | + | let bH = aW(toBigInt(aX), toBigInt(aY), aZ, ba) | |
314 | + | let bI = (b * bj) | |
315 | + | let bJ = (bG + fraction((aZ - bH), toBigInt(aX), toBigInt(bI))) | |
316 | + | let bK = aZ | |
317 | + | let bL = height | |
318 | + | let by = makeString(["wxToClaimUser", toString(bG), "wxPerLpInteg", toString(aY), "this.getString", toString(value(parseBigInt(s(this, ba)))), "wxPerLpIntegralNew", toString(aZ), "wxToClaimUserNew", toString(bJ), "wxPerLpIntegralUserLast", toString(bH), toString(aX), "poolDEBUG=", bC, "height=", toString(height)], "::") | |
319 | + | $Tuple3(bJ, (bB ++ [StringEntry(bE, toString(bJ)), IntegerEntry(bF, bL), StringEntry(ba, toString(bK))]), by) | |
298 | 320 | } | |
299 | 321 | ||
300 | 322 | ||
301 | - | func bm (ba,bd) = { | |
302 | - | let bg = getString(this, aZ(ba)) | |
303 | - | let bk = valueOrElse(getInteger(this, bb(ba)), 0) | |
304 | - | let bh = getString(this, bc(ba, bd)) | |
305 | - | let bi = getString(this, be(ba, bd)) | |
306 | - | ([IntegerEntry(bb(ba), (bk - 1))] ++ (if (if ((bh != unit)) | |
307 | - | then (bi != unit) | |
308 | - | else false) | |
309 | - | then [StringEntry(be(ba, value(bh)), value(bi)), StringEntry(bc(ba, value(bi)), value(bh)), DeleteEntry(bc(ba, bd)), DeleteEntry(be(ba, bd))] | |
310 | - | else if ((bi != unit)) | |
311 | - | then [StringEntry(aZ(ba), value(bi)), DeleteEntry(be(ba, bd)), DeleteEntry(bc(ba, value(bi)))] | |
312 | - | else if ((bh != unit)) | |
313 | - | then [DeleteEntry(bc(ba, bd)), DeleteEntry(be(ba, value(bh)))] | |
314 | - | else if ((bd == valueOrElse(bg, ""))) | |
315 | - | then [DeleteEntry(aZ(ba))] | |
316 | - | else throw(((("invalid node: " + ba) + ".") + bd)))) | |
323 | + | func bM () = { | |
324 | + | let k = getString(R()) | |
325 | + | if ($isInstanceOf(k, "String")) | |
326 | + | then { | |
327 | + | let C = k | |
328 | + | fromBase58String(C) | |
329 | + | } | |
330 | + | else if ($isInstanceOf(k, "Unit")) | |
331 | + | then unit | |
332 | + | else throw("Match error") | |
317 | 333 | } | |
318 | 334 | ||
319 | 335 | ||
320 | - | func bn (bo,bp,bq,br) = if (if ((bp == g)) | |
321 | - | then (bo > g) | |
322 | - | else false) | |
323 | - | then g | |
324 | - | else if ((bo == g)) | |
325 | - | then bq | |
326 | - | else if (if ((bp > g)) | |
327 | - | then (bo > g) | |
328 | - | else false) | |
329 | - | then value(parseBigInt(s(this, br))) | |
330 | - | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
331 | - | ||
332 | - | ||
333 | - | func bs (aq,bt,bu) = { | |
334 | - | let bv = ar(aq) | |
335 | - | let bw = toBigInt(aw(bv)) | |
336 | - | let bx = if ((bw == g)) | |
337 | - | then h | |
338 | - | else bw | |
339 | - | let by = getIntegerValue(aU, aa(bt)) | |
340 | - | let bz = z(aV, al()) | |
341 | - | let bA = 1000 | |
342 | - | let bB = (z(aV, aj()) * bA) | |
343 | - | let bC = fraction(bB, by, (f * 3)) | |
344 | - | let bD = aF(aq) | |
345 | - | let bE = aG(aq) | |
346 | - | let bF = aJ(aq) | |
347 | - | let bG = x(this, bE, bz) | |
348 | - | let bH = A(this, bD) | |
349 | - | let bI = 0 | |
350 | - | let bJ = max([(height - bG), 0]) | |
351 | - | let bK = if ((bI != 0)) | |
352 | - | then toBigInt(bI) | |
353 | - | else fraction(toBigInt(bC), toBigInt(b), bx) | |
354 | - | let bL = (bw + toBigInt(bu)) | |
355 | - | let bM = if ((bL == g)) | |
356 | - | then h | |
357 | - | else bL | |
358 | - | let bq = (bH + (bK * toBigInt(bJ))) | |
359 | - | let bN = (toBigInt(bC) / bM) | |
360 | - | let bO = height | |
361 | - | let bP = makeString([toString(bq), toString(bJ), toString(bK), toString(bw), toString(bC), toString(bB), toString(by)], "::") | |
362 | - | $Tuple3(bq, [StringEntry(bD, toString(bq)), IntegerEntry(bE, bO), StringEntry(bF, toString(bN))], bP) | |
363 | - | } | |
364 | - | ||
365 | - | ||
366 | - | func bQ (aq,ap,bt,bu) = { | |
367 | - | let bR = bs(aq, bt, bu) | |
368 | - | let bq = bR._1 | |
369 | - | let bS = bR._2 | |
370 | - | let bT = bR._3 | |
371 | - | let bA = 1000 | |
372 | - | let bU = ao(ap, aq) | |
373 | - | let bo = aw(bU) | |
374 | - | let bV = aH(aq, ap) | |
375 | - | let bW = aI(aq, ap) | |
376 | - | let br = aL(aq, ap) | |
377 | - | let bX = A(this, bV) | |
378 | - | let bp = w(this, bW) | |
379 | - | let bY = bn(toBigInt(bo), toBigInt(bp), bq, br) | |
380 | - | let bZ = (b * bA) | |
381 | - | let ca = (bX + fraction((bq - bY), toBigInt(bo), toBigInt(bZ))) | |
382 | - | let cb = bq | |
383 | - | let cc = height | |
384 | - | let bP = makeString([toString(bX), toString(bY), toString(bo), bT, toString(height)], "::") | |
385 | - | $Tuple3(ca, (bS ++ [StringEntry(bV, toString(ca)), IntegerEntry(bW, cc), StringEntry(br, toString(cb))]), bP) | |
386 | - | } | |
387 | - | ||
388 | - | ||
389 | - | func cd () = { | |
336 | + | func bN () = { | |
390 | 337 | let k = getString(S()) | |
391 | 338 | if ($isInstanceOf(k, "String")) | |
392 | 339 | then { | |
393 | 340 | let C = k | |
394 | 341 | fromBase58String(C) | |
395 | 342 | } | |
396 | 343 | else if ($isInstanceOf(k, "Unit")) | |
397 | 344 | then unit | |
398 | 345 | else throw("Match error") | |
399 | 346 | } | |
400 | 347 | ||
401 | 348 | ||
402 | - | func | |
349 | + | func bO () = { | |
403 | 350 | let k = getString(T()) | |
404 | 351 | if ($isInstanceOf(k, "String")) | |
405 | 352 | then { | |
406 | 353 | let C = k | |
407 | 354 | fromBase58String(C) | |
408 | 355 | } | |
409 | 356 | else if ($isInstanceOf(k, "Unit")) | |
410 | 357 | then unit | |
411 | 358 | else throw("Match error") | |
412 | 359 | } | |
413 | 360 | ||
414 | 361 | ||
415 | - | func cf () = { | |
416 | - | let k = getString(U()) | |
417 | - | if ($isInstanceOf(k, "String")) | |
362 | + | func bP (bQ) = { | |
363 | + | let bR = throw("Permission denied") | |
364 | + | let k = bM() | |
365 | + | if ($isInstanceOf(k, "ByteVector")) | |
418 | 366 | then { | |
419 | - | let C = k | |
420 | - | fromBase58String(C) | |
367 | + | let bS = k | |
368 | + | if ((bQ.callerPublicKey == bS)) | |
369 | + | then true | |
370 | + | else bR | |
421 | 371 | } | |
422 | 372 | else if ($isInstanceOf(k, "Unit")) | |
423 | - | then unit | |
373 | + | then if ((bQ.caller == this)) | |
374 | + | then true | |
375 | + | else bR | |
424 | 376 | else throw("Match error") | |
425 | 377 | } | |
426 | 378 | ||
427 | 379 | ||
428 | - | let cg = throw("Permission denied") | |
429 | - | ||
430 | - | func ch (ci) = if ((ci.caller == this)) | |
431 | - | then true | |
432 | - | else cg | |
433 | - | ||
434 | - | ||
435 | - | func cj (ci) = { | |
436 | - | let k = cd() | |
437 | - | if ($isInstanceOf(k, "ByteVector")) | |
438 | - | then { | |
439 | - | let ck = k | |
440 | - | if ((ci.callerPublicKey == ck)) | |
441 | - | then true | |
442 | - | else cg | |
443 | - | } | |
444 | - | else if ($isInstanceOf(k, "Unit")) | |
445 | - | then if ((ci.caller == this)) | |
446 | - | then true | |
447 | - | else cg | |
448 | - | else throw("Match error") | |
449 | - | } | |
450 | - | ||
451 | - | ||
452 | - | @Callable(ci) | |
453 | - | func constructor (cl) = { | |
454 | - | let cm = cj(ci) | |
455 | - | if ((cm == cm)) | |
456 | - | then [StringEntry(I(), cl)] | |
380 | + | @Callable(bQ) | |
381 | + | func constructor (bT) = { | |
382 | + | let bU = bP(bQ) | |
383 | + | if ((bU == bU)) | |
384 | + | then [StringEntry(I(), bT)] | |
457 | 385 | else throw("Strict value is not equal to itself.") | |
458 | 386 | } | |
459 | 387 | ||
460 | 388 | ||
461 | 389 | ||
462 | - | @Callable(ci) | |
463 | - | func constructorV2 (cn) = { | |
464 | - | let co = [cj(ci), if ((addressFromString(cn) != unit)) | |
465 | - | then true | |
466 | - | else "invalid voting emission contract address"] | |
467 | - | if ((co == co)) | |
468 | - | then [StringEntry(J(), cn)] | |
469 | - | else throw("Strict value is not equal to itself.") | |
470 | - | } | |
471 | - | ||
472 | - | ||
473 | - | ||
474 | - | @Callable(ci) | |
475 | - | func setManager (cp) = { | |
476 | - | let cm = cj(ci) | |
477 | - | if ((cm == cm)) | |
390 | + | @Callable(bQ) | |
391 | + | func setManager (bV) = { | |
392 | + | let bU = bP(bQ) | |
393 | + | if ((bU == bU)) | |
478 | 394 | then { | |
479 | - | let | |
480 | - | if (( | |
481 | - | then [StringEntry( | |
395 | + | let bW = fromBase58String(bV) | |
396 | + | if ((bW == bW)) | |
397 | + | then [StringEntry(T(), bV)] | |
482 | 398 | else throw("Strict value is not equal to itself.") | |
483 | 399 | } | |
484 | 400 | else throw("Strict value is not equal to itself.") | |
485 | 401 | } | |
486 | 402 | ||
487 | 403 | ||
488 | 404 | ||
489 | - | @Callable( | |
405 | + | @Callable(bQ) | |
490 | 406 | func confirmManager () = { | |
491 | - | let | |
492 | - | let | |
407 | + | let bX = bO() | |
408 | + | let bY = if (isDefined(bX)) | |
493 | 409 | then true | |
494 | 410 | else throw("No pending manager") | |
495 | - | if (( | |
411 | + | if ((bY == bY)) | |
496 | 412 | then { | |
497 | - | let | |
413 | + | let bZ = if ((bQ.callerPublicKey == value(bX))) | |
498 | 414 | then true | |
499 | 415 | else throw("You are not pending manager") | |
500 | - | if (( | |
501 | - | then [StringEntry( | |
416 | + | if ((bZ == bZ)) | |
417 | + | then [StringEntry(R(), toBase58String(value(bX))), DeleteEntry(T())] | |
502 | 418 | else throw("Strict value is not equal to itself.") | |
503 | 419 | } | |
504 | 420 | else throw("Strict value is not equal to itself.") | |
505 | 421 | } | |
506 | 422 | ||
507 | 423 | ||
508 | 424 | ||
509 | - | @Callable( | |
510 | - | func stake () = if ((size( | |
425 | + | @Callable(bQ) | |
426 | + | func stake () = if ((size(bQ.payments) != 1)) | |
511 | 427 | then throw("invalid payment - exact one payment must be attached") | |
512 | 428 | else { | |
513 | - | let cu = ci.payments[0] | |
514 | - | let ay = value(cu.assetId) | |
515 | - | let aq = toBase58String(ay) | |
516 | - | let aQ = cu.amount | |
517 | - | let bt = valueOrErrorMessage(getString(aU, W(aq)), ("unsupported lp asset " + aq)) | |
518 | - | let cv = toString(ci.caller) | |
519 | - | let ap = if ((cv == bt)) | |
520 | - | then toString(ci.originCaller) | |
521 | - | else cv | |
522 | - | let bU = ao(ap, aq) | |
523 | - | let bv = ar(aq) | |
524 | - | let bo = aw(bU) | |
525 | - | let bw = aw(bv) | |
526 | - | let cw = bQ(aq, ap, bt, aQ) | |
527 | - | let ca = cw._1 | |
528 | - | let cx = cw._2 | |
529 | - | let bP = cw._3 | |
530 | - | let ba = aY(aq) | |
531 | - | let cy = if (bf(ba, ap)) | |
532 | - | then nil | |
533 | - | else bj(ba, ap) | |
534 | - | (([IntegerEntry(bU, (bo + aQ)), IntegerEntry(bv, (bw + aQ)), aR("stake", ap, aq, aQ, ci.transactionId)] ++ cx) ++ cy) | |
429 | + | let ca = bQ.payments[0] | |
430 | + | let ax = value(ca.assetId) | |
431 | + | let ap = toBase58String(ax) | |
432 | + | let aP = ca.amount | |
433 | + | let bc = valueOrErrorMessage(getString(aT, V(ap)), ("unsupported lp asset " + ap)) | |
434 | + | let cb = toString(bQ.caller) | |
435 | + | let ao = if ((cb == bc)) | |
436 | + | then toString(bQ.originCaller) | |
437 | + | else cb | |
438 | + | let bD = an(ao, ap) | |
439 | + | let be = aq(ap) | |
440 | + | let aX = av(bD) | |
441 | + | let bf = av(be) | |
442 | + | let cc = bz(ap, ao, bc, aP) | |
443 | + | let bJ = cc._1 | |
444 | + | let cd = cc._2 | |
445 | + | let by = cc._3 | |
446 | + | ([IntegerEntry(bD, (aX + aP)), IntegerEntry(be, (bf + aP)), aQ("stake", ao, ap, aP, bQ.transactionId)] ++ cd) | |
535 | 447 | } | |
536 | 448 | ||
537 | 449 | ||
538 | 450 | ||
539 | - | @Callable( | |
540 | - | func unstake ( | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
451 | + | @Callable(bQ) | |
452 | + | func unstake (ap,aP) = { | |
453 | + | let ax = fromBase58String(ap) | |
454 | + | let bc = valueOrErrorMessage(getString(aT, V(ap)), ("unsupported lp asset " + ap)) | |
455 | + | let ce = valueOrElse(getString(this, U()), bc) | |
456 | + | let cb = toString(bQ.caller) | |
457 | + | let ao = if (if ((cb == bc)) | |
546 | 458 | then true | |
547 | - | else (cv == cz)) | |
548 | - | then toString(ci.originCaller) | |
549 | - | else cv | |
550 | - | let bU = ao(ap, aq) | |
551 | - | let bv = ar(aq) | |
552 | - | let bo = aw(bU) | |
553 | - | let bw = aw(bv) | |
554 | - | let cA = bQ(aq, ap, bt, -(aQ)) | |
555 | - | let ca = cA._1 | |
556 | - | let cx = cA._2 | |
557 | - | let bP = cA._3 | |
558 | - | let ba = aY(aq) | |
559 | - | let cy = if (bf(ba, ap)) | |
560 | - | then bm(ba, ap) | |
561 | - | else nil | |
562 | - | if ((aQ > bo)) | |
459 | + | else (cb == ce)) | |
460 | + | then toString(bQ.originCaller) | |
461 | + | else cb | |
462 | + | let bD = an(ao, ap) | |
463 | + | let be = aq(ap) | |
464 | + | let aX = av(bD) | |
465 | + | let bf = av(be) | |
466 | + | let cf = bz(ap, ao, bc, -(aP)) | |
467 | + | let bJ = cf._1 | |
468 | + | let cd = cf._2 | |
469 | + | let by = cf._3 | |
470 | + | if ((aP > aX)) | |
563 | 471 | then throw("passed amount is less then available") | |
564 | - | else ( | |
472 | + | else ([IntegerEntry(bD, (aX - aP)), IntegerEntry(be, (bf - aP)), ScriptTransfer(bQ.caller, aP, ax), aQ("unstake", ao, ap, aP, bQ.transactionId)] ++ cd) | |
565 | 473 | } | |
566 | 474 | ||
567 | 475 | ||
568 | 476 | ||
569 | - | @Callable(ci) | |
570 | - | func claimWx (aq) = { | |
571 | - | let ap = toString(ci.caller) | |
572 | - | let cB = invoke(this, "claimWxINTERNAL", [aq, ap], nil) | |
573 | - | $Tuple2(nil, cB) | |
477 | + | @Callable(bQ) | |
478 | + | func claimWx (ap) = { | |
479 | + | let az = bQ.caller | |
480 | + | let ao = toString(bQ.caller) | |
481 | + | let bc = v(aT, Y(ap)) | |
482 | + | let cg = ar(ap, ao) | |
483 | + | let ch = au(ap) | |
484 | + | let ci = as(ap, ao) | |
485 | + | let cj = at(ap, ao) | |
486 | + | let ck = toBigInt(w(this, cg)) | |
487 | + | let cl = toBigInt(w(this, ci)) | |
488 | + | let cm = toBigInt(w(this, cj)) | |
489 | + | let cn = A(this, ch) | |
490 | + | let co = bz(ap, ao, bc, 0) | |
491 | + | let bJ = co._1 | |
492 | + | let cd = co._2 | |
493 | + | let by = co._3 | |
494 | + | let cp = (bJ - ck) | |
495 | + | if ((g >= cp)) | |
496 | + | then throw("nothing to claim") | |
497 | + | else { | |
498 | + | let cq = m(i(invoke(aV, "claimWxBoost", [ap, ao], nil))[0]) | |
499 | + | let cr = cp | |
500 | + | let cs = min([(cr * toBigInt(2)), toBigInt(cq)]) | |
501 | + | let ct = q(i(invoke(aU, "emit", [toInt(cr)], nil))[0]) | |
502 | + | let cu = i(invoke(aU, "emit", [toInt(cs)], nil)) | |
503 | + | if ((cu == cu)) | |
504 | + | then { | |
505 | + | let cv = (ck + cp) | |
506 | + | let cw = (cl + cr) | |
507 | + | let cx = (cl + cr) | |
508 | + | let cy = (cl + cr) | |
509 | + | [StringEntry(cg, toString(cv)), StringEntry(ci, toString(cw)), StringEntry(cj, toString(cx)), StringEntry(ch, toString(cy)), ScriptTransfer(az, toInt(cr), ct), ScriptTransfer(az, toInt(cs), ct), aQ("claim", ao, ap, toInt(cp), bQ.transactionId)] | |
510 | + | } | |
511 | + | else throw("Strict value is not equal to itself.") | |
512 | + | } | |
574 | 513 | } | |
575 | 514 | ||
576 | 515 | ||
577 | 516 | ||
578 | - | @Callable(ci) | |
579 | - | func claimWxINTERNAL (aq,ap) = { | |
580 | - | let cm = ch(ci) | |
581 | - | if ((cm == cm)) | |
582 | - | then { | |
583 | - | let aA = valueOrErrorMessage(addressFromString(ap), "claimWxINTERNAL: invalid user address") | |
584 | - | let bt = v(aU, Z(aq)) | |
585 | - | let cC = as(aq, ap) | |
586 | - | let cD = av(aq) | |
587 | - | let cE = at(aq, ap) | |
588 | - | let cF = au(aq, ap) | |
589 | - | let cG = toBigInt(w(this, cC)) | |
590 | - | let cH = toBigInt(w(this, cE)) | |
591 | - | let cI = toBigInt(w(this, cF)) | |
592 | - | let cJ = A(this, cD) | |
593 | - | let cK = bQ(aq, ap, bt, 0) | |
594 | - | let ca = cK._1 | |
595 | - | let cx = cK._2 | |
596 | - | let bP = cK._3 | |
597 | - | let cL = (ca - cG) | |
598 | - | if ((g >= cL)) | |
599 | - | then throw("nothing to claim") | |
600 | - | else { | |
601 | - | let cM = m(i(invoke(aW, "claimWxBoost", [aq, ap], nil))[0]) | |
602 | - | let cN = cL | |
603 | - | let cO = min([(cN * toBigInt(2)), toBigInt(cM)]) | |
604 | - | let cP = q(i(invoke(aV, "emit", [toInt(cN)], nil))[0]) | |
605 | - | let cQ = i(invoke(aV, "emit", [toInt(cO)], nil)) | |
606 | - | if ((cQ == cQ)) | |
607 | - | then { | |
608 | - | let cR = (cG + cL) | |
609 | - | let cS = (cH + cN) | |
610 | - | let cT = (cH + cN) | |
611 | - | let cU = (cH + cN) | |
612 | - | [StringEntry(cC, toString(cR)), StringEntry(cE, toString(cS)), StringEntry(cF, toString(cT)), StringEntry(cD, toString(cU)), ScriptTransfer(aA, toInt(cN), cP), ScriptTransfer(aA, toInt(cO), cP), aR("claim", ap, aq, toInt(cL), ci.transactionId)] | |
613 | - | } | |
614 | - | else throw("Strict value is not equal to itself.") | |
615 | - | } | |
616 | - | } | |
617 | - | else throw("Strict value is not equal to itself.") | |
517 | + | @Callable(bQ) | |
518 | + | func claimWxREADONLY (ap,ao) = { | |
519 | + | let bD = an(ao, ap) | |
520 | + | let be = aq(ap) | |
521 | + | let cg = ar(ap, ao) | |
522 | + | let aX = av(bD) | |
523 | + | let bf = av(be) | |
524 | + | let ck = w(this, cg) | |
525 | + | let bc = v(aT, Y(ap)) | |
526 | + | let bh = getIntegerValue(aT, Z(bc)) | |
527 | + | let cz = z(aU, ai()) | |
528 | + | let bi = z(aU, ak()) | |
529 | + | let cA = if ((bi > height)) | |
530 | + | then 0 | |
531 | + | else (height - bi) | |
532 | + | let cB = fraction((cz * cA), bh, f) | |
533 | + | let cC = fraction(cB, aX, bf) | |
534 | + | let cD = bz(ap, ao, bc, 0) | |
535 | + | let bJ = cD._1 | |
536 | + | let cd = cD._2 | |
537 | + | let by = cD._3 | |
538 | + | let cp = (bJ - toBigInt(ck)) | |
539 | + | let cE = i(invoke(aV, "claimWxBoostREADONLY", [ap, ao], nil)) | |
540 | + | let cq = m(cE[0]) | |
541 | + | let cF = o(cE[1]) | |
542 | + | let cr = cp | |
543 | + | let cs = min([(cr * toBigInt(2)), toBigInt(cq)]) | |
544 | + | let cG = (cr + cs) | |
545 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", ap, ao, toString(cG), toString(ck), toString(cr), toString(cs), ((((by + "::") + toString(cC)) + "::BOOSTDEBUG::") + cF)], e)) | |
618 | 546 | } | |
619 | 547 | ||
620 | 548 | ||
621 | 549 | ||
622 | - | @Callable(ci) | |
623 | - | func claimWxREADONLY (aq,ap) = { | |
624 | - | let bU = ao(ap, aq) | |
625 | - | let bv = ar(aq) | |
626 | - | let cC = as(aq, ap) | |
627 | - | let bo = aw(bU) | |
628 | - | let bw = aw(bv) | |
629 | - | let cG = w(this, cC) | |
630 | - | let bt = v(aU, Z(aq)) | |
631 | - | let by = getIntegerValue(aU, aa(bt)) | |
632 | - | let cV = z(aV, aj()) | |
633 | - | let bz = z(aV, al()) | |
634 | - | let cW = if ((bz > height)) | |
635 | - | then 0 | |
636 | - | else (height - bz) | |
637 | - | let cX = fraction((cV * cW), by, f) | |
638 | - | let cY = fraction(cX, bo, bw) | |
639 | - | let cZ = bQ(aq, ap, bt, 0) | |
640 | - | let ca = cZ._1 | |
641 | - | let cx = cZ._2 | |
642 | - | let bP = cZ._3 | |
643 | - | let cL = (ca - toBigInt(cG)) | |
644 | - | let da = i(invoke(aW, "claimWxBoostREADONLY", [aq, ap], nil)) | |
645 | - | let cM = m(da[0]) | |
646 | - | let db = o(da[1]) | |
647 | - | let cN = cL | |
648 | - | let cO = min([(cN * toBigInt(2)), toBigInt(cM)]) | |
649 | - | let dc = (cN + cO) | |
650 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", aq, ap, toString(dc), toString(cG), toString(cN), toString(cO), ((((bP + "::") + toString(cY)) + "::BOOST::") + db)], e)) | |
651 | - | } | |
652 | - | ||
653 | - | ||
654 | - | ||
655 | - | @Callable(ci) | |
656 | - | func usersListTraversal (ay) = { | |
657 | - | let cm = if ((toBase58String(ci.caller.bytes) == valueOrElse(getString(this, J()), ""))) | |
658 | - | then true | |
659 | - | else cj(ci) | |
660 | - | if ((cm == cm)) | |
661 | - | then { | |
662 | - | let ba = aY(ay) | |
663 | - | let dd = getString(aX(ay)) | |
664 | - | let bg = getString(aZ(ba)) | |
665 | - | let k = dd | |
666 | - | if ($isInstanceOf(k, "Unit")) | |
667 | - | then { | |
668 | - | let de = bg | |
669 | - | if ($isInstanceOf(de, "Unit")) | |
670 | - | then $Tuple2(nil, false) | |
671 | - | else if ($isInstanceOf(de, "String")) | |
672 | - | then { | |
673 | - | let df = de | |
674 | - | $Tuple2([StringEntry(aX(ay), df)], true) | |
675 | - | } | |
676 | - | else throw("Match error") | |
677 | - | } | |
678 | - | else if ($isInstanceOf(k, "String")) | |
679 | - | then { | |
680 | - | let aA = k | |
681 | - | let cG = w(this, as(ay, aA)) | |
682 | - | let dg = v(aU, Z(ay)) | |
683 | - | let dh = bQ(ay, aA, dg, 0) | |
684 | - | let ca = dh._1 | |
685 | - | let cx = dh._2 | |
686 | - | let bP = dh._3 | |
687 | - | let cL = (ca - toBigInt(cG)) | |
688 | - | let di = if ((cL > g)) | |
689 | - | then invoke(this, "claimWxINTERNAL", [ay, aA], nil) | |
690 | - | else unit | |
691 | - | if ((di == di)) | |
692 | - | then { | |
693 | - | let dj = getString(be(ba, aA)) | |
694 | - | let de = dj | |
695 | - | if ($isInstanceOf(de, "Unit")) | |
696 | - | then $Tuple2([DeleteEntry(aX(ay))], false) | |
697 | - | else if ($isInstanceOf(de, "String")) | |
698 | - | then { | |
699 | - | let dk = de | |
700 | - | $Tuple2([StringEntry(aX(ay), dk)], true) | |
701 | - | } | |
702 | - | else throw("Match error") | |
703 | - | } | |
704 | - | else throw("Strict value is not equal to itself.") | |
705 | - | } | |
706 | - | else throw("Match error") | |
707 | - | } | |
708 | - | else throw("Strict value is not equal to itself.") | |
709 | - | } | |
710 | - | ||
711 | - | ||
712 | - | ||
713 | - | @Callable(ci) | |
714 | - | func onModifyWeight (aq,bt) = if ((ci.caller != aU)) | |
550 | + | @Callable(bQ) | |
551 | + | func onModifyWeight (ap,bc) = if ((bQ.caller != aT)) | |
715 | 552 | then throw("permissions denied") | |
716 | 553 | else { | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | | |
554 | + | let cH = bb(ap, bc, 0) | |
555 | + | let aZ = cH._1 | |
556 | + | let bB = cH._2 | |
557 | + | let bC = cH._3 | |
558 | + | bB | |
722 | 559 | } | |
723 | 560 | ||
724 | 561 | ||
725 | - | @Verifier( | |
726 | - | func | |
727 | - | let | |
728 | - | let k = | |
562 | + | @Verifier(cI) | |
563 | + | func cJ () = { | |
564 | + | let cK = { | |
565 | + | let k = bM() | |
729 | 566 | if ($isInstanceOf(k, "ByteVector")) | |
730 | 567 | then { | |
731 | - | let | |
732 | - | | |
568 | + | let bS = k | |
569 | + | bS | |
733 | 570 | } | |
734 | 571 | else if ($isInstanceOf(k, "Unit")) | |
735 | - | then | |
572 | + | then cI.senderPublicKey | |
736 | 573 | else throw("Match error") | |
737 | 574 | } | |
738 | - | let | |
739 | - | let k = | |
575 | + | let cL = { | |
576 | + | let k = bN() | |
740 | 577 | if ($isInstanceOf(k, "ByteVector")) | |
741 | 578 | then { | |
742 | - | let | |
743 | - | | |
579 | + | let bS = k | |
580 | + | bS | |
744 | 581 | } | |
745 | 582 | else if ($isInstanceOf(k, "Unit")) | |
746 | - | then | |
583 | + | then cI.senderPublicKey | |
747 | 584 | else throw("Match error") | |
748 | 585 | } | |
749 | - | if (sigVerify( | |
586 | + | if (sigVerify(cI.bodyBytes, cI.proofs[0], cK)) | |
750 | 587 | then true | |
751 | - | else sigVerify( | |
588 | + | else sigVerify(cI.bodyBytes, cI.proofs[0], cL) | |
752 | 589 | } | |
753 | 590 |
github/deemru/w8io/169f3d6 160.14 ms ◑