tx · 4ja9B4yvtWjQSx7fWucT3m5KYMRU4g5Mj9ffigvmEpAc 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.02900000 Waves 2022.06.29 14:50 [2117692] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "4ja9B4yvtWjQSx7fWucT3m5KYMRU4g5Mj9ffigvmEpAc", "fee": 2900000, "feeAssetId": null, "timestamp": 1656503532908, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "t46KRagzEZUXFVPKMC71HaL4DB5s9coApZ2ML8qUKsMt6MdCRAXAtUmdSo8iPViQ3vBR1f8UQHG8r97JHwgSTN9" ], "script": "base64:BgI3CAISAwoBCBIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgSAwoBCBIECgIICF8ABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQADU0VQAgJfXwAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQEJYXNBbnlMaXN0AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAglMaXN0W0FueV0ECnZhbEFueUx5c3QFByRtYXRjaDAFCnZhbEFueUx5c3QJAAIBAhtmYWlsIHRvIGNhc3QgaW50byBMaXN0W0FueV0BBWFzSW50AQN2YWwEByRtYXRjaDAFA3ZhbAMJAAECBQckbWF0Y2gwAgNJbnQEBnZhbEludAUHJG1hdGNoMAUGdmFsSW50CQACAQIVZmFpbCB0byBjYXN0IGludG8gSW50AQhhc1N0cmluZwEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIGU3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RjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBBFtaWdyYXRvclB1YmxpY0tleQQHJG1hdGNoMAkBF21pZ3JhdG9yUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5BgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURbWlncmF0b3JQdWJsaWNLZXlrWUR6", "chainId": 84, "height": 2117692, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FvUiXeu4R36wBiUWerVothmY9PBWMpXxBDie2ZJAk4rG Next: HBJhyaqdBX29ChSrFq8PSCKyas9biTXsWa2EA3sGdtXo Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
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 | - | 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" | |
104 | + | func J () = "%s__votingEmissionContract" | |
119 | 105 | ||
120 | 106 | ||
121 | - | func R () = "%s__managerPublicKey" | |
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" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func S () = "%s__ | |
124 | + | func S () = "%s__managerPublicKey" | |
125 | 125 | ||
126 | 126 | ||
127 | - | func T () = "%s__ | |
127 | + | func T () = "%s__migratorPublicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | - | func U () = "%s__ | |
130 | + | func U () = "%s__pendingManagerPublicKey" | |
131 | 131 | ||
132 | 132 | ||
133 | - | func V ( | |
133 | + | func V () = "%s__stablePoolAddonAddr" | |
134 | 134 | ||
135 | 135 | ||
136 | - | func | |
136 | + | func W (X) = makeString(["%s%s%s", X, "mappings__lpAsset2PoolContract"], e) | |
137 | 137 | ||
138 | 138 | ||
139 | - | func Y ( | |
139 | + | func Y () = "%s__lpTokensList" | |
140 | 140 | ||
141 | 141 | ||
142 | - | func Z ( | |
142 | + | func Z (X) = makeString(["%s%s%s", X, "mappings__lpAsset2PoolContract"], e) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func aa (ab) = makeString(["%s%s", "poolWeight", ab], e) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func ac (ad) = split(valueOrElse(getString(ad, Y()), ""), e) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ae ( | |
151 | + | func ae (ad) = split(v(ad, R()), e) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func | |
154 | + | func af (ag) = addressFromStringValue(ag[L]) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func ah ( | |
157 | + | func ah (ag) = addressFromStringValue(ag[O]) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ai () = | |
160 | + | func ai (ag) = addressFromStringValue(ag[K]) | |
161 | 161 | ||
162 | 162 | ||
163 | - | func aj () = "%s%s__ | |
163 | + | func aj () = "%s%s__ratePerBlock__current" | |
164 | 164 | ||
165 | 165 | ||
166 | - | func ak () = "%s%s__ | |
166 | + | func ak () = "%s%s__ratePerBlockMax__current" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func al () = "%s%s__emission__ | |
169 | + | func al () = "%s%s__emission__startBlock" | |
170 | 170 | ||
171 | 171 | ||
172 | - | func am () = "%s%s__emission__ | |
172 | + | func am () = "%s%s__emission__duration" | |
173 | 173 | ||
174 | 174 | ||
175 | - | func an ( | |
175 | + | func an () = "%s%s__emission__endBlock" | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func ao (ap,aq) = makeString(["%s%s%s__staked", ap, aq], e) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar ( | |
181 | + | func ar (aq) = ("%s%s%s__staked__total__" + aq) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func as (ap | |
184 | + | func as (aq,ap) = makeString(["%s%s%s__claimed", ap, aq], e) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func at (ap | |
187 | + | func at (aq,ap) = makeString(["%s%s%s__claimedMinReward", ap, aq], e) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func au (ap) = makeString(["%s%s%s__ | |
190 | + | func au (aq,ap) = makeString(["%s%s%s__claimedBoostReward", ap, aq], e) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func av ( | |
193 | + | func av (aq) = makeString(["%s%s%s__claimed__total", aq], e) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func aw ( | |
196 | + | func aw (u) = valueOrElse(getInteger(this, u), 0) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func | |
199 | + | func ax (ay) = makeString(["%s%s%s", ay, "total", "bal"], e) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func | |
202 | + | func az (ay,aA) = makeString(["%s%s%s", ay, aA, "bal"], e) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func aB ( | |
205 | + | func aB (ay) = makeString(["%s%s%s", ay, "total", "balINT"], e) | |
206 | 206 | ||
207 | 207 | ||
208 | - | func aC ( | |
208 | + | func aC (ay,aA) = makeString(["%s%s%s", ay, aA, "balINT"], e) | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aD ( | |
211 | + | func aD (ay) = makeString(["%s%s%s", ay, "total", "lastUpd"], e) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aE ( | |
214 | + | func aE (ay,aA) = makeString(["%s%s%s", ay, aA, "lastUpd"], e) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func aF ( | |
217 | + | func aF (ay) = makeString(["%s%s%s%s", ay, "common", "lpInt"], e) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aG ( | |
220 | + | func aG (ay) = makeString(["%s%s%s%s", ay, "common", "lpIntH"], e) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aH ( | |
223 | + | func aH (ay,aA) = makeString(["%s%s%s%s", ay, aA, "lpInt"], e) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aI ( | |
226 | + | func aI (ay,aA) = makeString(["%s%s%s%s", ay, aA, "lpIntH"], e) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aJ ( | |
229 | + | func aJ (ay) = makeString(["%s", ay, "wxPerLp"], e) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aK ( | |
232 | + | func aK (ay) = makeString(["%s", ay, "wxPerLpX18"], e) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aL ( | |
235 | + | func aL (ay,aA) = makeString(["%s%s%s%s", ay, aA, "uIntL"], e) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aM (aN,aA,aO) = makeString(["%s%s%s%s__history", aN, aA, aO], e) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aP (aA,ay,aN,aQ) = makeString(["%s%s%s%d%d%d", aA, ay, aN, toString(height), toString(lastBlock.timestamp), toString(aQ)], e) | |
242 | 242 | ||
243 | 243 | ||
244 | - | ||
244 | + | func aR (aN,aA,ay,aQ,aS) = StringEntry(aM(aN, aA, toBase58String(aS)), aP(aA, ay, aN, aQ)) | |
245 | 245 | ||
246 | - | let aT = addressFromStringValue(aS) | |
247 | 246 | ||
248 | - | let | |
247 | + | let aT = s(this, I()) | |
249 | 248 | ||
250 | - | let aU = | |
249 | + | let aU = addressFromStringValue(aT) | |
251 | 250 | ||
252 | - | let | |
251 | + | let ag = ae(aU) | |
253 | 252 | ||
254 | - | func aW (aX,aY,aZ,ba) = if (if ((aY == g)) | |
255 | - | then (aX > g) | |
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) | |
284 | + | } | |
285 | + | ||
286 | + | ||
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.") | |
298 | + | } | |
299 | + | ||
300 | + | ||
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)))) | |
317 | + | } | |
318 | + | ||
319 | + | ||
320 | + | func bn (bo,bp,bq,br) = if (if ((bp == g)) | |
321 | + | then (bo > g) | |
256 | 322 | else false) | |
257 | 323 | then g | |
258 | - | else if (( | |
259 | - | then | |
260 | - | else if (if (( | |
261 | - | then ( | |
324 | + | else if ((bo == g)) | |
325 | + | then bq | |
326 | + | else if (if ((bp > g)) | |
327 | + | then (bo > g) | |
262 | 328 | else false) | |
263 | - | then value(parseBigInt(s(this, | |
329 | + | then value(parseBigInt(s(this, br))) | |
264 | 330 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
265 | 331 | ||
266 | 332 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
333 | + | func bs (aq,bt,bu) = { | |
334 | + | let bv = ar(aq) | |
335 | + | let bw = toBigInt(aw(bv)) | |
336 | + | let bx = if ((bw == g)) | |
271 | 337 | then h | |
272 | - | else | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | then toBigInt( | |
287 | - | else fraction(toBigInt( | |
288 | - | let | |
289 | - | let | |
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)) | |
290 | 356 | then h | |
291 | - | else | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | $Tuple3( | |
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) | |
297 | 363 | } | |
298 | 364 | ||
299 | 365 | ||
300 | - | func | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | $Tuple3( | |
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 = max([(bX + fraction((bq - bY), toBigInt(bo), toBigInt(bZ))), g]) | |
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) | |
320 | 386 | } | |
321 | 387 | ||
322 | 388 | ||
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") | |
333 | - | } | |
334 | - | ||
335 | - | ||
336 | - | func bN () = { | |
389 | + | func cd () = { | |
337 | 390 | let k = getString(S()) | |
338 | 391 | if ($isInstanceOf(k, "String")) | |
339 | 392 | then { | |
346 | 399 | } | |
347 | 400 | ||
348 | 401 | ||
349 | - | func | |
402 | + | func ce () = { | |
350 | 403 | let k = getString(T()) | |
351 | 404 | if ($isInstanceOf(k, "String")) | |
352 | 405 | then { | |
359 | 412 | } | |
360 | 413 | ||
361 | 414 | ||
362 | - | func bP (bQ) = { | |
363 | - | let bR = throw("Permission denied") | |
364 | - | let k = bM() | |
365 | - | if ($isInstanceOf(k, "ByteVector")) | |
415 | + | func cf () = { | |
416 | + | let k = getString(U()) | |
417 | + | if ($isInstanceOf(k, "String")) | |
366 | 418 | then { | |
367 | - | let bS = k | |
368 | - | if ((bQ.callerPublicKey == bS)) | |
369 | - | then true | |
370 | - | else bR | |
419 | + | let C = k | |
420 | + | fromBase58String(C) | |
371 | 421 | } | |
372 | 422 | else if ($isInstanceOf(k, "Unit")) | |
373 | - | then if ((bQ.caller == this)) | |
374 | - | then true | |
375 | - | else bR | |
423 | + | then unit | |
376 | 424 | else throw("Match error") | |
377 | 425 | } | |
378 | 426 | ||
379 | 427 | ||
380 | - | @Callable(bQ) | |
381 | - | func constructor (bT) = { | |
382 | - | let bU = bP(bQ) | |
383 | - | if ((bU == bU)) | |
384 | - | then [StringEntry(I(), bT)] | |
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)] | |
385 | 457 | else throw("Strict value is not equal to itself.") | |
386 | 458 | } | |
387 | 459 | ||
388 | 460 | ||
389 | 461 | ||
390 | - | @Callable(bQ) | |
391 | - | func setManager (bV) = { | |
392 | - | let bU = bP(bQ) | |
393 | - | if ((bU == bU)) | |
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)) | |
394 | 478 | then { | |
395 | - | let | |
396 | - | if (( | |
397 | - | then [StringEntry( | |
479 | + | let cq = fromBase58String(cp) | |
480 | + | if ((cq == cq)) | |
481 | + | then [StringEntry(U(), cp)] | |
398 | 482 | else throw("Strict value is not equal to itself.") | |
399 | 483 | } | |
400 | 484 | else throw("Strict value is not equal to itself.") | |
402 | 486 | ||
403 | 487 | ||
404 | 488 | ||
405 | - | @Callable( | |
489 | + | @Callable(ci) | |
406 | 490 | func confirmManager () = { | |
407 | - | let | |
408 | - | let | |
491 | + | let cr = cf() | |
492 | + | let cs = if (isDefined(cr)) | |
409 | 493 | then true | |
410 | 494 | else throw("No pending manager") | |
411 | - | if (( | |
495 | + | if ((cs == cs)) | |
412 | 496 | then { | |
413 | - | let | |
497 | + | let ct = if ((ci.callerPublicKey == value(cr))) | |
414 | 498 | then true | |
415 | 499 | else throw("You are not pending manager") | |
416 | - | if (( | |
417 | - | then [StringEntry( | |
500 | + | if ((ct == ct)) | |
501 | + | then [StringEntry(S(), toBase58String(value(cr))), DeleteEntry(U())] | |
418 | 502 | else throw("Strict value is not equal to itself.") | |
419 | 503 | } | |
420 | 504 | else throw("Strict value is not equal to itself.") | |
422 | 506 | ||
423 | 507 | ||
424 | 508 | ||
425 | - | @Callable( | |
426 | - | func stake () = if ((size( | |
509 | + | @Callable(ci) | |
510 | + | func stake () = if ((size(ci.payments) != 1)) | |
427 | 511 | then throw("invalid payment - exact one payment must be attached") | |
428 | 512 | else { | |
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) | |
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) | |
447 | 535 | } | |
448 | 536 | ||
449 | 537 | ||
450 | 538 | ||
451 | - | @Callable( | |
452 | - | func unstake ( | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
539 | + | @Callable(ci) | |
540 | + | func unstake (aq,aQ) = { | |
541 | + | let ay = fromBase58String(aq) | |
542 | + | let bt = valueOrErrorMessage(getString(aU, W(aq)), ("unsupported lp asset " + aq)) | |
543 | + | let cz = valueOrElse(getString(this, V()), bt) | |
544 | + | let cv = toString(ci.caller) | |
545 | + | let ap = if (if ((cv == bt)) | |
458 | 546 | then true | |
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)) | |
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)) | |
471 | 563 | then throw("passed amount is less then available") | |
472 | - | else ([IntegerEntry( | |
564 | + | else (([IntegerEntry(bU, (bo - aQ)), IntegerEntry(bv, (bw - aQ)), ScriptTransfer(ci.caller, aQ, ay), aR("unstake", ap, aq, aQ, ci.transactionId)] ++ cx) ++ cy) | |
473 | 565 | } | |
474 | 566 | ||
475 | 567 | ||
476 | 568 | ||
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 = A(this, cg) | |
487 | - | let cl = A(this, ci) | |
488 | - | let cm = A(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 = max([(bJ - ck), g]) | |
495 | - | if ((g >= cp)) | |
496 | - | then throw("nothing to claim") | |
497 | - | else { | |
498 | - | let cq = max([m(i(invoke(aV, "claimWxBoost", [ap, ao], nil))[0]), 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 | - | } | |
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) | |
513 | 574 | } | |
514 | 575 | ||
515 | 576 | ||
516 | 577 | ||
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 = A(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 = max([(bJ - ck), g]) | |
539 | - | let cE = i(invoke(aV, "claimWxBoostREADONLY", [ap, ao], nil)) | |
540 | - | let cq = max([m(cE[0]), 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)) | |
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 = A(this, cC) | |
590 | + | let cH = A(this, cE) | |
591 | + | let cI = A(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 = max([(ca - cG), g]) | |
598 | + | if ((g >= cL)) | |
599 | + | then throw("nothing to claim") | |
600 | + | else { | |
601 | + | let cM = max([m(i(invoke(aW, "claimWxBoost", [aq, ap], nil))[0]), 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.") | |
546 | 618 | } | |
547 | 619 | ||
548 | 620 | ||
549 | 621 | ||
550 | - | @Callable(bQ) | |
551 | - | func onModifyWeight (ap,bc) = if ((bQ.caller != aT)) | |
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 = A(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 = max([(ca - cG), g]) | |
644 | + | let da = i(invoke(aW, "claimWxBoostREADONLY", [aq, ap], nil)) | |
645 | + | let cM = max([m(da[0]), 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 = A(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 - 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)) | |
552 | 715 | then throw("permissions denied") | |
553 | 716 | else { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | | |
717 | + | let dl = bs(aq, bt, 0) | |
718 | + | let bq = dl._1 | |
719 | + | let bS = dl._2 | |
720 | + | let bT = dl._3 | |
721 | + | bS | |
559 | 722 | } | |
560 | 723 | ||
561 | 724 | ||
562 | - | @Verifier( | |
563 | - | func | |
564 | - | let | |
565 | - | let k = | |
725 | + | @Verifier(dm) | |
726 | + | func dn () = { | |
727 | + | let do = { | |
728 | + | let k = cd() | |
566 | 729 | if ($isInstanceOf(k, "ByteVector")) | |
567 | 730 | then { | |
568 | - | let | |
569 | - | | |
731 | + | let ck = k | |
732 | + | ck | |
570 | 733 | } | |
571 | 734 | else if ($isInstanceOf(k, "Unit")) | |
572 | - | then | |
735 | + | then dm.senderPublicKey | |
573 | 736 | else throw("Match error") | |
574 | 737 | } | |
575 | - | let | |
576 | - | let k = | |
738 | + | let dp = { | |
739 | + | let k = ce() | |
577 | 740 | if ($isInstanceOf(k, "ByteVector")) | |
578 | 741 | then { | |
579 | - | let | |
580 | - | | |
742 | + | let ck = k | |
743 | + | ck | |
581 | 744 | } | |
582 | 745 | else if ($isInstanceOf(k, "Unit")) | |
583 | - | then | |
746 | + | then dm.senderPublicKey | |
584 | 747 | else throw("Match error") | |
585 | 748 | } | |
586 | - | if (sigVerify( | |
749 | + | if (sigVerify(dm.bodyBytes, dm.proofs[0], do)) | |
587 | 750 | then true | |
588 | - | else sigVerify( | |
751 | + | else sigVerify(dm.bodyBytes, dm.proofs[0], dp) | |
589 | 752 | } | |
590 | 753 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
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 | - | 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" | |
104 | + | func J () = "%s__votingEmissionContract" | |
119 | 105 | ||
120 | 106 | ||
121 | - | func R () = "%s__managerPublicKey" | |
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" | |
122 | 122 | ||
123 | 123 | ||
124 | - | func S () = "%s__ | |
124 | + | func S () = "%s__managerPublicKey" | |
125 | 125 | ||
126 | 126 | ||
127 | - | func T () = "%s__ | |
127 | + | func T () = "%s__migratorPublicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | - | func U () = "%s__ | |
130 | + | func U () = "%s__pendingManagerPublicKey" | |
131 | 131 | ||
132 | 132 | ||
133 | - | func V ( | |
133 | + | func V () = "%s__stablePoolAddonAddr" | |
134 | 134 | ||
135 | 135 | ||
136 | - | func | |
136 | + | func W (X) = makeString(["%s%s%s", X, "mappings__lpAsset2PoolContract"], e) | |
137 | 137 | ||
138 | 138 | ||
139 | - | func Y ( | |
139 | + | func Y () = "%s__lpTokensList" | |
140 | 140 | ||
141 | 141 | ||
142 | - | func Z ( | |
142 | + | func Z (X) = makeString(["%s%s%s", X, "mappings__lpAsset2PoolContract"], e) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func aa (ab) = makeString(["%s%s", "poolWeight", ab], e) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func ac (ad) = split(valueOrElse(getString(ad, Y()), ""), e) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ae ( | |
151 | + | func ae (ad) = split(v(ad, R()), e) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func | |
154 | + | func af (ag) = addressFromStringValue(ag[L]) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func ah ( | |
157 | + | func ah (ag) = addressFromStringValue(ag[O]) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ai () = | |
160 | + | func ai (ag) = addressFromStringValue(ag[K]) | |
161 | 161 | ||
162 | 162 | ||
163 | - | func aj () = "%s%s__ | |
163 | + | func aj () = "%s%s__ratePerBlock__current" | |
164 | 164 | ||
165 | 165 | ||
166 | - | func ak () = "%s%s__ | |
166 | + | func ak () = "%s%s__ratePerBlockMax__current" | |
167 | 167 | ||
168 | 168 | ||
169 | - | func al () = "%s%s__emission__ | |
169 | + | func al () = "%s%s__emission__startBlock" | |
170 | 170 | ||
171 | 171 | ||
172 | - | func am () = "%s%s__emission__ | |
172 | + | func am () = "%s%s__emission__duration" | |
173 | 173 | ||
174 | 174 | ||
175 | - | func an ( | |
175 | + | func an () = "%s%s__emission__endBlock" | |
176 | 176 | ||
177 | 177 | ||
178 | - | func | |
178 | + | func ao (ap,aq) = makeString(["%s%s%s__staked", ap, aq], e) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar ( | |
181 | + | func ar (aq) = ("%s%s%s__staked__total__" + aq) | |
182 | 182 | ||
183 | 183 | ||
184 | - | func as (ap | |
184 | + | func as (aq,ap) = makeString(["%s%s%s__claimed", ap, aq], e) | |
185 | 185 | ||
186 | 186 | ||
187 | - | func at (ap | |
187 | + | func at (aq,ap) = makeString(["%s%s%s__claimedMinReward", ap, aq], e) | |
188 | 188 | ||
189 | 189 | ||
190 | - | func au (ap) = makeString(["%s%s%s__ | |
190 | + | func au (aq,ap) = makeString(["%s%s%s__claimedBoostReward", ap, aq], e) | |
191 | 191 | ||
192 | 192 | ||
193 | - | func av ( | |
193 | + | func av (aq) = makeString(["%s%s%s__claimed__total", aq], e) | |
194 | 194 | ||
195 | 195 | ||
196 | - | func aw ( | |
196 | + | func aw (u) = valueOrElse(getInteger(this, u), 0) | |
197 | 197 | ||
198 | 198 | ||
199 | - | func | |
199 | + | func ax (ay) = makeString(["%s%s%s", ay, "total", "bal"], e) | |
200 | 200 | ||
201 | 201 | ||
202 | - | func | |
202 | + | func az (ay,aA) = makeString(["%s%s%s", ay, aA, "bal"], e) | |
203 | 203 | ||
204 | 204 | ||
205 | - | func aB ( | |
205 | + | func aB (ay) = makeString(["%s%s%s", ay, "total", "balINT"], e) | |
206 | 206 | ||
207 | 207 | ||
208 | - | func aC ( | |
208 | + | func aC (ay,aA) = makeString(["%s%s%s", ay, aA, "balINT"], e) | |
209 | 209 | ||
210 | 210 | ||
211 | - | func aD ( | |
211 | + | func aD (ay) = makeString(["%s%s%s", ay, "total", "lastUpd"], e) | |
212 | 212 | ||
213 | 213 | ||
214 | - | func aE ( | |
214 | + | func aE (ay,aA) = makeString(["%s%s%s", ay, aA, "lastUpd"], e) | |
215 | 215 | ||
216 | 216 | ||
217 | - | func aF ( | |
217 | + | func aF (ay) = makeString(["%s%s%s%s", ay, "common", "lpInt"], e) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aG ( | |
220 | + | func aG (ay) = makeString(["%s%s%s%s", ay, "common", "lpIntH"], e) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aH ( | |
223 | + | func aH (ay,aA) = makeString(["%s%s%s%s", ay, aA, "lpInt"], e) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aI ( | |
226 | + | func aI (ay,aA) = makeString(["%s%s%s%s", ay, aA, "lpIntH"], e) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aJ ( | |
229 | + | func aJ (ay) = makeString(["%s", ay, "wxPerLp"], e) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aK ( | |
232 | + | func aK (ay) = makeString(["%s", ay, "wxPerLpX18"], e) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func aL ( | |
235 | + | func aL (ay,aA) = makeString(["%s%s%s%s", ay, aA, "uIntL"], e) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func | |
238 | + | func aM (aN,aA,aO) = makeString(["%s%s%s%s__history", aN, aA, aO], e) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func | |
241 | + | func aP (aA,ay,aN,aQ) = makeString(["%s%s%s%d%d%d", aA, ay, aN, toString(height), toString(lastBlock.timestamp), toString(aQ)], e) | |
242 | 242 | ||
243 | 243 | ||
244 | - | ||
244 | + | func aR (aN,aA,ay,aQ,aS) = StringEntry(aM(aN, aA, toBase58String(aS)), aP(aA, ay, aN, aQ)) | |
245 | 245 | ||
246 | - | let aT = addressFromStringValue(aS) | |
247 | 246 | ||
248 | - | let | |
247 | + | let aT = s(this, I()) | |
249 | 248 | ||
250 | - | let aU = | |
249 | + | let aU = addressFromStringValue(aT) | |
251 | 250 | ||
252 | - | let | |
251 | + | let ag = ae(aU) | |
253 | 252 | ||
254 | - | func aW (aX,aY,aZ,ba) = if (if ((aY == g)) | |
255 | - | then (aX > g) | |
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) | |
284 | + | } | |
285 | + | ||
286 | + | ||
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.") | |
298 | + | } | |
299 | + | ||
300 | + | ||
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)))) | |
317 | + | } | |
318 | + | ||
319 | + | ||
320 | + | func bn (bo,bp,bq,br) = if (if ((bp == g)) | |
321 | + | then (bo > g) | |
256 | 322 | else false) | |
257 | 323 | then g | |
258 | - | else if (( | |
259 | - | then | |
260 | - | else if (if (( | |
261 | - | then ( | |
324 | + | else if ((bo == g)) | |
325 | + | then bq | |
326 | + | else if (if ((bp > g)) | |
327 | + | then (bo > g) | |
262 | 328 | else false) | |
263 | - | then value(parseBigInt(s(this, | |
329 | + | then value(parseBigInt(s(this, br))) | |
264 | 330 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
265 | 331 | ||
266 | 332 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
333 | + | func bs (aq,bt,bu) = { | |
334 | + | let bv = ar(aq) | |
335 | + | let bw = toBigInt(aw(bv)) | |
336 | + | let bx = if ((bw == g)) | |
271 | 337 | then h | |
272 | - | else | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | then toBigInt( | |
287 | - | else fraction(toBigInt( | |
288 | - | let | |
289 | - | let | |
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)) | |
290 | 356 | then h | |
291 | - | else | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | $Tuple3( | |
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) | |
297 | 363 | } | |
298 | 364 | ||
299 | 365 | ||
300 | - | func | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | $Tuple3( | |
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 = max([(bX + fraction((bq - bY), toBigInt(bo), toBigInt(bZ))), g]) | |
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) | |
320 | 386 | } | |
321 | 387 | ||
322 | 388 | ||
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") | |
333 | - | } | |
334 | - | ||
335 | - | ||
336 | - | func bN () = { | |
389 | + | func cd () = { | |
337 | 390 | let k = getString(S()) | |
338 | 391 | if ($isInstanceOf(k, "String")) | |
339 | 392 | then { | |
340 | 393 | let C = k | |
341 | 394 | fromBase58String(C) | |
342 | 395 | } | |
343 | 396 | else if ($isInstanceOf(k, "Unit")) | |
344 | 397 | then unit | |
345 | 398 | else throw("Match error") | |
346 | 399 | } | |
347 | 400 | ||
348 | 401 | ||
349 | - | func | |
402 | + | func ce () = { | |
350 | 403 | let k = getString(T()) | |
351 | 404 | if ($isInstanceOf(k, "String")) | |
352 | 405 | then { | |
353 | 406 | let C = k | |
354 | 407 | fromBase58String(C) | |
355 | 408 | } | |
356 | 409 | else if ($isInstanceOf(k, "Unit")) | |
357 | 410 | then unit | |
358 | 411 | else throw("Match error") | |
359 | 412 | } | |
360 | 413 | ||
361 | 414 | ||
362 | - | func bP (bQ) = { | |
363 | - | let bR = throw("Permission denied") | |
364 | - | let k = bM() | |
365 | - | if ($isInstanceOf(k, "ByteVector")) | |
415 | + | func cf () = { | |
416 | + | let k = getString(U()) | |
417 | + | if ($isInstanceOf(k, "String")) | |
366 | 418 | then { | |
367 | - | let bS = k | |
368 | - | if ((bQ.callerPublicKey == bS)) | |
369 | - | then true | |
370 | - | else bR | |
419 | + | let C = k | |
420 | + | fromBase58String(C) | |
371 | 421 | } | |
372 | 422 | else if ($isInstanceOf(k, "Unit")) | |
373 | - | then if ((bQ.caller == this)) | |
374 | - | then true | |
375 | - | else bR | |
423 | + | then unit | |
376 | 424 | else throw("Match error") | |
377 | 425 | } | |
378 | 426 | ||
379 | 427 | ||
380 | - | @Callable(bQ) | |
381 | - | func constructor (bT) = { | |
382 | - | let bU = bP(bQ) | |
383 | - | if ((bU == bU)) | |
384 | - | then [StringEntry(I(), bT)] | |
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)] | |
385 | 457 | else throw("Strict value is not equal to itself.") | |
386 | 458 | } | |
387 | 459 | ||
388 | 460 | ||
389 | 461 | ||
390 | - | @Callable(bQ) | |
391 | - | func setManager (bV) = { | |
392 | - | let bU = bP(bQ) | |
393 | - | if ((bU == bU)) | |
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)) | |
394 | 478 | then { | |
395 | - | let | |
396 | - | if (( | |
397 | - | then [StringEntry( | |
479 | + | let cq = fromBase58String(cp) | |
480 | + | if ((cq == cq)) | |
481 | + | then [StringEntry(U(), cp)] | |
398 | 482 | else throw("Strict value is not equal to itself.") | |
399 | 483 | } | |
400 | 484 | else throw("Strict value is not equal to itself.") | |
401 | 485 | } | |
402 | 486 | ||
403 | 487 | ||
404 | 488 | ||
405 | - | @Callable( | |
489 | + | @Callable(ci) | |
406 | 490 | func confirmManager () = { | |
407 | - | let | |
408 | - | let | |
491 | + | let cr = cf() | |
492 | + | let cs = if (isDefined(cr)) | |
409 | 493 | then true | |
410 | 494 | else throw("No pending manager") | |
411 | - | if (( | |
495 | + | if ((cs == cs)) | |
412 | 496 | then { | |
413 | - | let | |
497 | + | let ct = if ((ci.callerPublicKey == value(cr))) | |
414 | 498 | then true | |
415 | 499 | else throw("You are not pending manager") | |
416 | - | if (( | |
417 | - | then [StringEntry( | |
500 | + | if ((ct == ct)) | |
501 | + | then [StringEntry(S(), toBase58String(value(cr))), DeleteEntry(U())] | |
418 | 502 | else throw("Strict value is not equal to itself.") | |
419 | 503 | } | |
420 | 504 | else throw("Strict value is not equal to itself.") | |
421 | 505 | } | |
422 | 506 | ||
423 | 507 | ||
424 | 508 | ||
425 | - | @Callable( | |
426 | - | func stake () = if ((size( | |
509 | + | @Callable(ci) | |
510 | + | func stake () = if ((size(ci.payments) != 1)) | |
427 | 511 | then throw("invalid payment - exact one payment must be attached") | |
428 | 512 | else { | |
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) | |
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) | |
447 | 535 | } | |
448 | 536 | ||
449 | 537 | ||
450 | 538 | ||
451 | - | @Callable( | |
452 | - | func unstake ( | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
539 | + | @Callable(ci) | |
540 | + | func unstake (aq,aQ) = { | |
541 | + | let ay = fromBase58String(aq) | |
542 | + | let bt = valueOrErrorMessage(getString(aU, W(aq)), ("unsupported lp asset " + aq)) | |
543 | + | let cz = valueOrElse(getString(this, V()), bt) | |
544 | + | let cv = toString(ci.caller) | |
545 | + | let ap = if (if ((cv == bt)) | |
458 | 546 | then true | |
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)) | |
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)) | |
471 | 563 | then throw("passed amount is less then available") | |
472 | - | else ([IntegerEntry( | |
564 | + | else (([IntegerEntry(bU, (bo - aQ)), IntegerEntry(bv, (bw - aQ)), ScriptTransfer(ci.caller, aQ, ay), aR("unstake", ap, aq, aQ, ci.transactionId)] ++ cx) ++ cy) | |
473 | 565 | } | |
474 | 566 | ||
475 | 567 | ||
476 | 568 | ||
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 = A(this, cg) | |
487 | - | let cl = A(this, ci) | |
488 | - | let cm = A(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 = max([(bJ - ck), g]) | |
495 | - | if ((g >= cp)) | |
496 | - | then throw("nothing to claim") | |
497 | - | else { | |
498 | - | let cq = max([m(i(invoke(aV, "claimWxBoost", [ap, ao], nil))[0]), 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 | - | } | |
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) | |
513 | 574 | } | |
514 | 575 | ||
515 | 576 | ||
516 | 577 | ||
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 = A(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 = max([(bJ - ck), g]) | |
539 | - | let cE = i(invoke(aV, "claimWxBoostREADONLY", [ap, ao], nil)) | |
540 | - | let cq = max([m(cE[0]), 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)) | |
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 = A(this, cC) | |
590 | + | let cH = A(this, cE) | |
591 | + | let cI = A(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 = max([(ca - cG), g]) | |
598 | + | if ((g >= cL)) | |
599 | + | then throw("nothing to claim") | |
600 | + | else { | |
601 | + | let cM = max([m(i(invoke(aW, "claimWxBoost", [aq, ap], nil))[0]), 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.") | |
546 | 618 | } | |
547 | 619 | ||
548 | 620 | ||
549 | 621 | ||
550 | - | @Callable(bQ) | |
551 | - | func onModifyWeight (ap,bc) = if ((bQ.caller != aT)) | |
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 = A(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 = max([(ca - cG), g]) | |
644 | + | let da = i(invoke(aW, "claimWxBoostREADONLY", [aq, ap], nil)) | |
645 | + | let cM = max([m(da[0]), 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 = A(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 - 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)) | |
552 | 715 | then throw("permissions denied") | |
553 | 716 | else { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | | |
717 | + | let dl = bs(aq, bt, 0) | |
718 | + | let bq = dl._1 | |
719 | + | let bS = dl._2 | |
720 | + | let bT = dl._3 | |
721 | + | bS | |
559 | 722 | } | |
560 | 723 | ||
561 | 724 | ||
562 | - | @Verifier( | |
563 | - | func | |
564 | - | let | |
565 | - | let k = | |
725 | + | @Verifier(dm) | |
726 | + | func dn () = { | |
727 | + | let do = { | |
728 | + | let k = cd() | |
566 | 729 | if ($isInstanceOf(k, "ByteVector")) | |
567 | 730 | then { | |
568 | - | let | |
569 | - | | |
731 | + | let ck = k | |
732 | + | ck | |
570 | 733 | } | |
571 | 734 | else if ($isInstanceOf(k, "Unit")) | |
572 | - | then | |
735 | + | then dm.senderPublicKey | |
573 | 736 | else throw("Match error") | |
574 | 737 | } | |
575 | - | let | |
576 | - | let k = | |
738 | + | let dp = { | |
739 | + | let k = ce() | |
577 | 740 | if ($isInstanceOf(k, "ByteVector")) | |
578 | 741 | then { | |
579 | - | let | |
580 | - | | |
742 | + | let ck = k | |
743 | + | ck | |
581 | 744 | } | |
582 | 745 | else if ($isInstanceOf(k, "Unit")) | |
583 | - | then | |
746 | + | then dm.senderPublicKey | |
584 | 747 | else throw("Match error") | |
585 | 748 | } | |
586 | - | if (sigVerify( | |
749 | + | if (sigVerify(dm.bodyBytes, dm.proofs[0], do)) | |
587 | 750 | then true | |
588 | - | else sigVerify( | |
751 | + | else sigVerify(dm.bodyBytes, dm.proofs[0], dp) | |
589 | 752 | } | |
590 | 753 |
github/deemru/w8io/026f985 170.92 ms ◑