tx · AWDnkZCp8uKMFFqTrCi2aaBWcdHFrCrbozUJjkekZen8 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.02800000 Waves 2022.06.14 18:41 [2096239] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "AWDnkZCp8uKMFFqTrCi2aaBWcdHFrCrbozUJjkekZen8", "fee": 2800000, "feeAssetId": null, "timestamp": 1655221274664, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "5FLXhN6HJkkWbTjoRtEDi4xcpAYWqxsSK8mHUUBbdRzFPdiYvYXdia6xrYjyNu1bBbtZF5ZawpEZ86Vtn8mE3YnX" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIAEgQKAggBEgMKAQgSBAoCCAgSBAoCCAgAAABPAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAQAAAAlhc0FueUxpc3QAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAlMaXN0W0FueV0EAAAACnZhbEFueUx5c3QFAAAAByRtYXRjaDAFAAAACnZhbEFueUx5c3QJAAACAAAAAQIAAAAbZmFpbCB0byBjYXN0IGludG8gTGlzdFtBbnldAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAA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b25Nb2RpZnlXZWlnaHQAAAACAAAADGxwQXNzZXRJZFN0cgAAAA5wb29sQWRkcmVzc1N0cgMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAPZmFjdG9yeUNvbnRyYWN0CQAAAgAAAAECAAAAEnBlcm1pc3Npb25zIGRlbmllZAQAAAANJHQwMjE3NDUyMTg1NQkBAAAAFHJlZnJlc2hQb29sSU5URUdSQUxTAAAAAwUAAAAMbHBBc3NldElkU3RyBQAAAA5wb29sQWRkcmVzc1N0cgAAAAAAAAAAAAQAAAASd3hQZXJMcEludGVncmFsTmV3CAUAAAANJHQwMjE3NDUyMTg1NQAAAAJfMQQAAAARcG9vbEludGVncmFsU1RBVEUIBQAAAA0kdDAyMTc0NTIxODU1AAAAAl8yBAAAAAlwb29sREVCVUcIBQAAAA0kdDAyMTc0NTIxODU1AAAAAl8zBQAAABFwb29sSW50ZWdyYWxTVEFURQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnKVxVe", "chainId": 84, "height": 2096239, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3AKn7adiUhyer32L4ETErbBL1nodvwsVk8QGF4sKEg27 Next: HLNGxu9TLaerUEpJcQtmogbk9NNM9ti9MR3q4pH2aa2A Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 18 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = b | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(0) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = toBigInt(1) | |
19 | 19 | ||
20 | - | let i = makeString(["%s", "emissionContract"], a) | |
21 | - | ||
22 | - | let j = makeString(["%s", "boostingContract"], a) | |
23 | - | ||
24 | - | let k = makeString(["%s", "factoryContract"], a) | |
25 | - | ||
26 | - | let l = makeString(["%s", "votingEmissionContract"], a) | |
27 | - | ||
28 | - | func m (n) = valueOrErrorMessage(getString(this, n), (n + " is not defined")) | |
29 | - | ||
30 | - | ||
31 | - | func o (p,q) = makeString(["%s%s%s", "inList", p, q], a) | |
32 | - | ||
33 | - | ||
34 | - | func r (p,q) = makeString(["%s%s%s", "suggestIndex", p, q], a) | |
35 | - | ||
36 | - | ||
37 | - | func s (p,q,t) = makeString(["%s%s%s%d", "startHeight", p, q, toString(t)], a) | |
38 | - | ||
39 | - | ||
40 | - | func u (p,q,t) = makeString(["%s%s%s%d", "votingResult", p, q, toString(t)], a) | |
41 | - | ||
42 | - | ||
43 | - | func v (w,x) = makeString(["%d%d", w, x], a) | |
44 | - | ||
45 | - | ||
46 | - | func y (p,q,t,z) = makeString(["%s%s%s%d%s", "vote", p, q, toString(t), z], a) | |
47 | - | ||
48 | - | ||
49 | - | func A (B,C) = { | |
50 | - | let n = if (C) | |
51 | - | then makeString(["%d%s", B, "yes"], a) | |
52 | - | else makeString(["%d%s", B, "no"], a) | |
53 | - | n | |
20 | + | func i (j) = { | |
21 | + | let k = j | |
22 | + | if ($isInstanceOf(k, "List[Any]")) | |
23 | + | then { | |
24 | + | let l = k | |
25 | + | l | |
26 | + | } | |
27 | + | else throw("fail to cast into List[Any]") | |
54 | 28 | } | |
55 | 29 | ||
56 | 30 | ||
57 | - | func D () = "%s__managerPublicKey" | |
31 | + | func m (j) = { | |
32 | + | let k = j | |
33 | + | if ($isInstanceOf(k, "Int")) | |
34 | + | then { | |
35 | + | let n = k | |
36 | + | n | |
37 | + | } | |
38 | + | else throw("fail to cast into Int") | |
39 | + | } | |
58 | 40 | ||
59 | 41 | ||
60 | - | func E () = "%s__pendingManagerPublicKey" | |
42 | + | func o (j) = { | |
43 | + | let k = j | |
44 | + | if ($isInstanceOf(k, "String")) | |
45 | + | then { | |
46 | + | let p = k | |
47 | + | p | |
48 | + | } | |
49 | + | else throw("fail to cast into Int") | |
50 | + | } | |
61 | 51 | ||
62 | 52 | ||
63 | - | let F = addressFromStringValue(m(g)) | |
53 | + | func q (j) = { | |
54 | + | let k = j | |
55 | + | if ($isInstanceOf(k, "ByteVector")) | |
56 | + | then { | |
57 | + | let r = k | |
58 | + | r | |
59 | + | } | |
60 | + | else throw("fail to cast into Int") | |
61 | + | } | |
64 | 62 | ||
65 | - | let G = addressFromStringValue(m(j)) | |
66 | 63 | ||
67 | - | ||
64 | + | func s (t,u) = valueOrErrorMessage(getString(t, u), (("mandatory this." + u) + " is not defined")) | |
68 | 65 | ||
69 | - | let I = addressFromStringValue(m(k)) | |
70 | 66 | ||
71 | - | ||
67 | + | func v (t,u) = valueOrErrorMessage(getString(t, u), (((("mandatory " + toString(t)) + ".") + u) + " is not defined")) | |
72 | 68 | ||
73 | - | let K = addressFromStringValue(m(l)) | |
74 | 69 | ||
75 | - | func L () = { | |
76 | - | let M = getString(D()) | |
77 | - | if ($isInstanceOf(M, "String")) | |
70 | + | func w (t,u) = valueOrElse(getInteger(t, u), 0) | |
71 | + | ||
72 | + | ||
73 | + | func x (t,u,y) = valueOrElse(getInteger(t, u), y) | |
74 | + | ||
75 | + | ||
76 | + | func z (t,u) = valueOrErrorMessage(getInteger(t, u), (("mandatory this." + u) + " is not defined")) | |
77 | + | ||
78 | + | ||
79 | + | func A (B,C) = fraction(toBigInt(B), d, toBigInt(C)) | |
80 | + | ||
81 | + | ||
82 | + | func D (j,E) = toInt(fraction(j, toBigInt(E), d)) | |
83 | + | ||
84 | + | ||
85 | + | func F () = "%s%s__config__factoryAddress" | |
86 | + | ||
87 | + | ||
88 | + | let G = 1 | |
89 | + | ||
90 | + | let H = 2 | |
91 | + | ||
92 | + | let I = 3 | |
93 | + | ||
94 | + | let J = 4 | |
95 | + | ||
96 | + | let K = 5 | |
97 | + | ||
98 | + | let L = 6 | |
99 | + | ||
100 | + | let M = 7 | |
101 | + | ||
102 | + | func N () = "%s__factoryConfig" | |
103 | + | ||
104 | + | ||
105 | + | func O () = "%s__managerPublicKey" | |
106 | + | ||
107 | + | ||
108 | + | func P () = "%s__pendingManagerPublicKey" | |
109 | + | ||
110 | + | ||
111 | + | func Q () = "%s__stablePoolAddonAddr" | |
112 | + | ||
113 | + | ||
114 | + | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
115 | + | ||
116 | + | ||
117 | + | func T () = "%s__lpTokensList" | |
118 | + | ||
119 | + | ||
120 | + | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
121 | + | ||
122 | + | ||
123 | + | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
124 | + | ||
125 | + | ||
126 | + | func X (Y) = split(valueOrElse(getString(Y, T()), ""), e) | |
127 | + | ||
128 | + | ||
129 | + | func Z (Y) = split(v(Y, N()), e) | |
130 | + | ||
131 | + | ||
132 | + | func aa (ab) = addressFromStringValue(ab[H]) | |
133 | + | ||
134 | + | ||
135 | + | func ac (ab) = addressFromStringValue(ab[K]) | |
136 | + | ||
137 | + | ||
138 | + | func ad (ab) = addressFromStringValue(ab[G]) | |
139 | + | ||
140 | + | ||
141 | + | func ae () = "%s%s__ratePerBlock__current" | |
142 | + | ||
143 | + | ||
144 | + | func af () = "%s%s__ratePerBlockMax__current" | |
145 | + | ||
146 | + | ||
147 | + | func ag () = "%s%s__emission__startBlock" | |
148 | + | ||
149 | + | ||
150 | + | func ah () = "%s%s__emission__duration" | |
151 | + | ||
152 | + | ||
153 | + | func ai () = "%s%s__emission__endBlock" | |
154 | + | ||
155 | + | ||
156 | + | func aj (ak,al) = makeString(["%s%s%s__staked", ak, al], e) | |
157 | + | ||
158 | + | ||
159 | + | func am (al) = ("%s%s%s__staked__total__" + al) | |
160 | + | ||
161 | + | ||
162 | + | func an (al,ak) = makeString(["%s%s%s__claimed", ak, al], e) | |
163 | + | ||
164 | + | ||
165 | + | func ao (al,ak) = makeString(["%s%s%s__claimedMinReward", ak, al], e) | |
166 | + | ||
167 | + | ||
168 | + | func ap (al,ak) = makeString(["%s%s%s__claimedBoostReward", ak, al], e) | |
169 | + | ||
170 | + | ||
171 | + | func aq (al) = makeString(["%s%s%s__claimed", "total", al], e) | |
172 | + | ||
173 | + | ||
174 | + | func ar (u) = valueOrElse(getInteger(this, u), 0) | |
175 | + | ||
176 | + | ||
177 | + | func as (at) = makeString(["%s%s%s", at, "total", "bal"], e) | |
178 | + | ||
179 | + | ||
180 | + | func au (at,av) = makeString(["%s%s%s", at, av, "bal"], e) | |
181 | + | ||
182 | + | ||
183 | + | func aw (at) = makeString(["%s%s%s", at, "total", "balINT"], e) | |
184 | + | ||
185 | + | ||
186 | + | func ax (at,av) = makeString(["%s%s%s", at, av, "balINT"], e) | |
187 | + | ||
188 | + | ||
189 | + | func ay (at) = makeString(["%s%s%s", at, "total", "lastUpd"], e) | |
190 | + | ||
191 | + | ||
192 | + | func az (at,av) = makeString(["%s%s%s", at, av, "lastUpd"], e) | |
193 | + | ||
194 | + | ||
195 | + | func aA (at) = makeString(["%s%s%s%s", at, "common", "lpInt"], e) | |
196 | + | ||
197 | + | ||
198 | + | func aB (at) = makeString(["%s%s%s%s", at, "common", "lpIntH"], e) | |
199 | + | ||
200 | + | ||
201 | + | func aC (at,av) = makeString(["%s%s%s%s", at, av, "lpInt"], e) | |
202 | + | ||
203 | + | ||
204 | + | func aD (at,av) = makeString(["%s%s%s%s", at, av, "lpIntH"], e) | |
205 | + | ||
206 | + | ||
207 | + | func aE (at) = makeString(["%s", at, "wxPerLp"], e) | |
208 | + | ||
209 | + | ||
210 | + | func aF (at) = makeString(["%s", at, "wxPerLpX18"], e) | |
211 | + | ||
212 | + | ||
213 | + | func aG (at,av) = makeString(["%s%s%s%s", at, av, "uIntL"], e) | |
214 | + | ||
215 | + | ||
216 | + | func aH (aI,av,aJ) = makeString(["%s%s%s%s__history", aI, av, aJ], e) | |
217 | + | ||
218 | + | ||
219 | + | func aK (av,at,aI,aL) = makeString(["%s%s%s%d%d%d", av, at, aI, toString(height), toString(lastBlock.timestamp), toString(aL)], e) | |
220 | + | ||
221 | + | ||
222 | + | func aM (aI,av,at,aL,aN) = StringEntry(aH(aI, av, toBase58String(aN)), aK(av, at, aI, aL)) | |
223 | + | ||
224 | + | ||
225 | + | let aO = s(this, F()) | |
226 | + | ||
227 | + | let aP = addressFromStringValue(aO) | |
228 | + | ||
229 | + | let ab = Z(aP) | |
230 | + | ||
231 | + | let aQ = ac(ab) | |
232 | + | ||
233 | + | let aR = aa(ab) | |
234 | + | ||
235 | + | func aS (aT,aU,aV,aW) = if (if ((aU == g)) | |
236 | + | then (aT > g) | |
237 | + | else false) | |
238 | + | then g | |
239 | + | else if ((aT == g)) | |
240 | + | then aV | |
241 | + | else if (if ((aU > g)) | |
242 | + | then (aT > g) | |
243 | + | else false) | |
244 | + | then value(parseBigInt(s(this, aW))) | |
245 | + | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
246 | + | ||
247 | + | ||
248 | + | func aX (al,aY,aZ) = { | |
249 | + | let ba = am(al) | |
250 | + | let bb = toBigInt(ar(ba)) | |
251 | + | let bc = if ((bb == g)) | |
252 | + | then h | |
253 | + | else bb | |
254 | + | let bd = getIntegerValue(aP, V(aY)) | |
255 | + | let be = z(aQ, ag()) | |
256 | + | let bf = 1000 | |
257 | + | let bg = (z(aQ, ae()) * bf) | |
258 | + | let bh = fraction(bg, bd, (f * 3)) | |
259 | + | let bi = aA(al) | |
260 | + | let bj = aB(al) | |
261 | + | let bk = aE(al) | |
262 | + | let bl = x(this, bj, be) | |
263 | + | let bm = w(this, bi) | |
264 | + | let bn = 0 | |
265 | + | let bo = max([(height - bl), 0]) | |
266 | + | let bp = if ((bn != 0)) | |
267 | + | then toBigInt(bn) | |
268 | + | else fraction(toBigInt(bh), toBigInt(b), bc) | |
269 | + | let bq = (bb + toBigInt(aZ)) | |
270 | + | let br = if ((bq == g)) | |
271 | + | then h | |
272 | + | else bq | |
273 | + | let aV = (toBigInt(bm) + (bp * toBigInt(bo))) | |
274 | + | let bs = (toBigInt(bh) / br) | |
275 | + | let bt = height | |
276 | + | let bu = makeString(["wxPerLpIntegralNew=", toString(aV), "dh=", toString(bo), "wxPerLpX3=", toString(bp), "stakedTotal=", toString(bb), "poolWxEmissionPerBlockX3=", toString(bh), "wxEmissionPerBlockX3=", toString(bg), "poolWeight=", toString(bd)], "::") | |
277 | + | $Tuple3(aV, [StringEntry(bi, toString(aV)), IntegerEntry(bj, bt), StringEntry(bk, toString(bs))], bu) | |
278 | + | } | |
279 | + | ||
280 | + | ||
281 | + | func bv (al,ak,aY,aZ) = { | |
282 | + | let bw = aX(al, aY, aZ) | |
283 | + | let aV = bw._1 | |
284 | + | let bx = bw._2 | |
285 | + | let by = bw._3 | |
286 | + | let bf = 1000 | |
287 | + | let bz = aj(ak, al) | |
288 | + | let aT = ar(bz) | |
289 | + | let bA = aC(al, ak) | |
290 | + | let bB = aD(al, ak) | |
291 | + | let aW = aG(al, ak) | |
292 | + | let bC = w(this, bA) | |
293 | + | let aU = w(this, bB) | |
294 | + | let bD = aS(toBigInt(aT), toBigInt(aU), aV, aW) | |
295 | + | let bE = (b * bf) | |
296 | + | let bF = (toBigInt(bC) + fraction((aV - bD), toBigInt(aT), toBigInt(bE))) | |
297 | + | let bG = aV | |
298 | + | let bH = height | |
299 | + | let bu = makeString(["wxToClaimUserNew=", toString(bF), "wxPerLpIntegralUserLast=", toString(bD), "stakedByUser=", toString(aT), "poolDEBUG=", by, "height=", toString(height)], "::") | |
300 | + | $Tuple3(bF, (bx ++ [StringEntry(bA, toString(bF)), IntegerEntry(bB, bH), StringEntry(aW, toString(bG))]), bu) | |
301 | + | } | |
302 | + | ||
303 | + | ||
304 | + | func bI () = { | |
305 | + | let k = getString(O()) | |
306 | + | if ($isInstanceOf(k, "String")) | |
78 | 307 | then { | |
79 | - | let | |
80 | - | fromBase58String( | |
308 | + | let bJ = k | |
309 | + | fromBase58String(bJ) | |
81 | 310 | } | |
82 | - | else if ($isInstanceOf( | |
311 | + | else if ($isInstanceOf(k, "Unit")) | |
83 | 312 | then unit | |
84 | 313 | else throw("Match error") | |
85 | 314 | } | |
86 | 315 | ||
87 | 316 | ||
88 | - | func | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
317 | + | func bK () = { | |
318 | + | let k = getString(P()) | |
319 | + | if ($isInstanceOf(k, "String")) | |
91 | 320 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
321 | + | let bJ = k | |
322 | + | fromBase58String(bJ) | |
94 | 323 | } | |
95 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(k, "Unit")) | |
96 | 325 | then unit | |
97 | 326 | else throw("Match error") | |
98 | 327 | } | |
99 | 328 | ||
100 | 329 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
330 | + | func bL (bM) = { | |
331 | + | let bN = throw("Permission denied") | |
332 | + | let k = bI() | |
333 | + | if ($isInstanceOf(k, "ByteVector")) | |
105 | 334 | then { | |
106 | - | let | |
107 | - | if (( | |
335 | + | let bO = k | |
336 | + | if ((bM.callerPublicKey == bO)) | |
108 | 337 | then true | |
109 | - | else | |
338 | + | else bN | |
110 | 339 | } | |
111 | - | else if ($isInstanceOf( | |
112 | - | then if (( | |
340 | + | else if ($isInstanceOf(k, "Unit")) | |
341 | + | then if ((bM.caller == this)) | |
113 | 342 | then true | |
114 | - | else | |
343 | + | else bN | |
115 | 344 | else throw("Match error") | |
116 | 345 | } | |
117 | 346 | ||
118 | 347 | ||
119 | - | func T (U) = { | |
120 | - | let M = U | |
121 | - | if ($isInstanceOf(M, "Int")) | |
122 | - | then { | |
123 | - | let V = M | |
124 | - | V | |
125 | - | } | |
126 | - | else throw("failed to cast into Integer") | |
127 | - | } | |
128 | - | ||
129 | - | ||
130 | - | @Callable(Q) | |
131 | - | func constructor (W,X,Y,Z,aa,ab,ac,ad,ae,af,ag) = { | |
132 | - | let ah = [P(Q), if (isDefined(addressFromString(W))) | |
133 | - | then true | |
134 | - | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(X))) | |
135 | - | then true | |
136 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(aa))) | |
137 | - | then true | |
138 | - | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(Y))) | |
139 | - | then true | |
140 | - | else throw("Invalid emission contract address"), if (isDefined(addressFromString(Z))) | |
141 | - | then true | |
142 | - | else throw("Invalid factory contract address"), if ((ac >= 0)) | |
143 | - | then true | |
144 | - | else throw("Invalid fee amount"), if ((ae > 0)) | |
145 | - | then true | |
146 | - | else throw("Invalid voting duration"), if ((ag > 0)) | |
147 | - | then true | |
148 | - | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(ad)))) | |
149 | - | then true | |
150 | - | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(af)))) | |
151 | - | then true | |
152 | - | else throw("Invalid USDN asset ID")] | |
153 | - | if ((ah == ah)) | |
154 | - | then $Tuple2([StringEntry(g, W), StringEntry(j, X), StringEntry(i, Y), StringEntry(k, Z), StringEntry(h, aa), StringEntry(l, ab), IntegerEntry(b, ac), IntegerEntry(d, ae), IntegerEntry(e, ag), StringEntry(f, ad), StringEntry(c, af)], unit) | |
348 | + | @Callable(bM) | |
349 | + | func constructor (bP) = { | |
350 | + | let bQ = bL(bM) | |
351 | + | if ((bQ == bQ)) | |
352 | + | then [StringEntry(F(), bP)] | |
155 | 353 | else throw("Strict value is not equal to itself.") | |
156 | 354 | } | |
157 | 355 | ||
158 | 356 | ||
159 | 357 | ||
160 | - | @Callable(Q) | |
161 | - | func suggest (p,q) = { | |
162 | - | let ai = value(Q.payments[0]) | |
163 | - | let aj = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
164 | - | let ah = [if ((aj.issuer == Q.caller)) | |
165 | - | then true | |
166 | - | else throw("asset can only be suggested by its issuer"), if ((aj.scripted == false)) | |
167 | - | then true | |
168 | - | else throw("asset is smart"), if ((toBase58String(value(ai.assetId)) == value(getString(f)))) | |
169 | - | then true | |
170 | - | else throw("invalid fee asset"), if ((ai.amount == value(getInteger(b)))) | |
171 | - | then true | |
172 | - | else throw("invalid fee amount"), if ((q == value(getString(c)))) | |
173 | - | then true | |
174 | - | else throw("priceAssetId is not USDN"), if ((getInteger(o(p, q)) == unit)) | |
175 | - | then true | |
176 | - | else throw("already in voting list")] | |
177 | - | if ((ah == ah)) | |
358 | + | @Callable(bM) | |
359 | + | func setManager (bR) = { | |
360 | + | let bQ = bL(bM) | |
361 | + | if ((bQ == bQ)) | |
178 | 362 | then { | |
179 | - | let ak = { | |
180 | - | let M = invoke(J, "statusREADONLY", [p, q], nil) | |
181 | - | if ($isInstanceOf(M, "String")) | |
182 | - | then { | |
183 | - | let N = M | |
184 | - | if ((N == "active")) | |
185 | - | then true | |
186 | - | else throw("user pool is not active") | |
187 | - | } | |
188 | - | else throw("user pool is not active") | |
189 | - | } | |
190 | - | if ((ak == ak)) | |
191 | - | then { | |
192 | - | let al = { | |
193 | - | let M = invoke(F, "isVerifiedREADONLY", [p], nil) | |
194 | - | if ($isInstanceOf(M, "Boolean")) | |
195 | - | then { | |
196 | - | let am = M | |
197 | - | if (am) | |
198 | - | then true | |
199 | - | else throw("asset is not verified") | |
200 | - | } | |
201 | - | else throw("asset is not verified") | |
202 | - | } | |
203 | - | if ((al == al)) | |
204 | - | then { | |
205 | - | let an = invoke(H, "burn", nil, [AttachedPayment(ai.assetId, ai.amount)]) | |
206 | - | if ((an == an)) | |
207 | - | then { | |
208 | - | let ao = { | |
209 | - | let M = getInteger(r(p, q)) | |
210 | - | if ($isInstanceOf(M, "Int")) | |
211 | - | then { | |
212 | - | let ap = M | |
213 | - | (ap + 1) | |
214 | - | } | |
215 | - | else 0 | |
216 | - | } | |
217 | - | $Tuple2([IntegerEntry(o(p, q), ao), IntegerEntry(s(p, q, ao), height), StringEntry(u(p, q, ao), v("0", "0")), IntegerEntry(r(p, q), ao)], unit) | |
218 | - | } | |
219 | - | else throw("Strict value is not equal to itself.") | |
220 | - | } | |
221 | - | else throw("Strict value is not equal to itself.") | |
222 | - | } | |
363 | + | let bS = fromBase58String(bR) | |
364 | + | if ((bS == bS)) | |
365 | + | then [StringEntry(P(), bR)] | |
223 | 366 | else throw("Strict value is not equal to itself.") | |
224 | 367 | } | |
225 | 368 | else throw("Strict value is not equal to itself.") | |
227 | 370 | ||
228 | 371 | ||
229 | 372 | ||
230 | - | @Callable(Q) | |
231 | - | func vote (p,q,aq) = { | |
232 | - | let t = value(getInteger(o(p, q))) | |
233 | - | let ar = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
234 | - | let ah = [if (isDefined(getInteger(o(p, q)))) | |
373 | + | @Callable(bM) | |
374 | + | func confirmManager () = { | |
375 | + | let bT = bK() | |
376 | + | let bU = if (isDefined(bT)) | |
235 | 377 | then true | |
236 | - | else throw("the token isn't on the voting list"), if ((ar > height)) | |
237 | - | then true | |
238 | - | else throw("too late to vote")] | |
239 | - | if ((ah == ah)) | |
378 | + | else throw("No pending manager") | |
379 | + | if ((bU == bU)) | |
240 | 380 | then { | |
241 | - | let B = invoke(G, "getUserGwxAmountAtHeightREADONLY", [toString(Q.caller), ar], nil) | |
242 | - | let as = if ((T(B) > 0)) | |
381 | + | let bV = if ((bM.callerPublicKey == value(bT))) | |
243 | 382 | then true | |
244 | - | else throw("you don't have gwx") | |
245 | - | if ((as == as)) | |
246 | - | then { | |
247 | - | let C = { | |
248 | - | let M = getString(y(p, q, t, toString(Q.caller))) | |
249 | - | if ($isInstanceOf(M, "String")) | |
250 | - | then { | |
251 | - | let N = M | |
252 | - | let C = split(N, a) | |
253 | - | let at = C[1] | |
254 | - | let au = C[2] | |
255 | - | let av = if (if ((au == "yes")) | |
256 | - | then (aq == true) | |
257 | - | else false) | |
258 | - | then true | |
259 | - | else if ((au == "no")) | |
260 | - | then (aq == false) | |
261 | - | else false | |
262 | - | let aw = if (av) | |
263 | - | then (T(B) == parseIntValue(at)) | |
264 | - | else false | |
265 | - | let ax = if (if (av) | |
266 | - | then aw | |
267 | - | else false) | |
268 | - | then throw("you already voted") | |
269 | - | else invoke(this, "cancelVote", [p, q], nil) | |
270 | - | ax | |
271 | - | } | |
272 | - | else if ($isInstanceOf(M, "Unit")) | |
273 | - | then { | |
274 | - | let ay = M | |
275 | - | ay | |
276 | - | } | |
277 | - | else throw("Match error") | |
278 | - | } | |
279 | - | if ((C == C)) | |
280 | - | then { | |
281 | - | let az = split(value(getString(u(p, q, t))), a) | |
282 | - | let aA = az[1] | |
283 | - | let aB = az[2] | |
284 | - | let aC = if (aq) | |
285 | - | then { | |
286 | - | let aD = (parseIntValue(aA) + T(B)) | |
287 | - | [toString(aD), aB] | |
288 | - | } | |
289 | - | else { | |
290 | - | let aE = (parseIntValue(aB) + T(B)) | |
291 | - | [aA, toString(aE)] | |
292 | - | } | |
293 | - | let aF = y(p, q, t, toString(Q.caller)) | |
294 | - | let at = A(toString(T(B)), aq) | |
295 | - | $Tuple2([StringEntry(u(p, q, t), v(aC[0], aC[1])), StringEntry(aF, at)], unit) | |
296 | - | } | |
297 | - | else throw("Strict value is not equal to itself.") | |
298 | - | } | |
383 | + | else throw("You are not pending manager") | |
384 | + | if ((bV == bV)) | |
385 | + | then [StringEntry(O(), toBase58String(value(bT))), DeleteEntry(P())] | |
299 | 386 | else throw("Strict value is not equal to itself.") | |
300 | 387 | } | |
301 | 388 | else throw("Strict value is not equal to itself.") | |
303 | 390 | ||
304 | 391 | ||
305 | 392 | ||
306 | - | @Callable(Q) | |
307 | - | func cancelVote (p,q) = { | |
308 | - | let aG = if ((Q.caller == this)) | |
309 | - | then toString(Q.originCaller) | |
310 | - | else toString(Q.caller) | |
311 | - | let t = value(getInteger(o(p, q))) | |
312 | - | let ah = [if (isDefined(getString(u(p, q, t)))) | |
393 | + | @Callable(bM) | |
394 | + | func stake () = if ((size(bM.payments) != 1)) | |
395 | + | then throw("invalid payment - exact one payment must be attached") | |
396 | + | else { | |
397 | + | let bW = bM.payments[0] | |
398 | + | let at = value(bW.assetId) | |
399 | + | let al = toBase58String(at) | |
400 | + | let aL = bW.amount | |
401 | + | let aY = valueOrErrorMessage(getString(aP, R(al)), ("unsupported lp asset " + al)) | |
402 | + | let bX = toString(bM.caller) | |
403 | + | let ak = if ((bX == aY)) | |
404 | + | then toString(bM.originCaller) | |
405 | + | else bX | |
406 | + | let bz = aj(ak, al) | |
407 | + | let ba = am(al) | |
408 | + | let aT = ar(bz) | |
409 | + | let bb = ar(ba) | |
410 | + | let bY = bv(al, ak, aY, aL) | |
411 | + | let bF = bY._1 | |
412 | + | let bZ = bY._2 | |
413 | + | let bu = bY._3 | |
414 | + | ([IntegerEntry(bz, (aT + aL)), IntegerEntry(ba, (bb + aL)), aM("stake", ak, al, aL, bM.transactionId)] ++ bZ) | |
415 | + | } | |
416 | + | ||
417 | + | ||
418 | + | ||
419 | + | @Callable(bM) | |
420 | + | func unstake (al,aL) = { | |
421 | + | let at = fromBase58String(al) | |
422 | + | let aY = valueOrErrorMessage(getString(aP, R(al)), ("unsupported lp asset " + al)) | |
423 | + | let ca = valueOrElse(getString(this, Q()), aY) | |
424 | + | let bX = toString(bM.caller) | |
425 | + | let ak = if (if ((bX == aY)) | |
313 | 426 | then true | |
314 | - | else throw("no vote for assets pair")] | |
315 | - | if ((ah == ah)) | |
316 | - | then { | |
317 | - | let C = split(value(getString(y(p, q, t, aG))), a) | |
318 | - | let at = C[1] | |
319 | - | let au = C[2] | |
320 | - | let az = split(value(getString(u(p, q, t))), a) | |
321 | - | let aA = az[1] | |
322 | - | let aB = az[2] | |
323 | - | let aH = if ((au == "yes")) | |
324 | - | then { | |
325 | - | let aD = (parseIntValue(aA) - parseIntValue(at)) | |
326 | - | $Tuple2([StringEntry(u(p, q, t), v(toString(aD), aB)), DeleteEntry(y(p, q, t, aG))], unit) | |
327 | - | } | |
328 | - | else { | |
329 | - | let aE = (parseIntValue(aB) - parseIntValue(at)) | |
330 | - | $Tuple2([StringEntry(u(p, q, t), v(aA, toString(aE))), DeleteEntry(y(p, q, t, aG))], unit) | |
331 | - | } | |
332 | - | aH | |
333 | - | } | |
334 | - | else throw("Strict value is not equal to itself.") | |
427 | + | else (bX == ca)) | |
428 | + | then toString(bM.originCaller) | |
429 | + | else bX | |
430 | + | let bz = aj(ak, al) | |
431 | + | let ba = am(al) | |
432 | + | let aT = ar(bz) | |
433 | + | let bb = ar(ba) | |
434 | + | let cb = bv(al, ak, aY, -(aL)) | |
435 | + | let bF = cb._1 | |
436 | + | let bZ = cb._2 | |
437 | + | let bu = cb._3 | |
438 | + | if ((aL > aT)) | |
439 | + | then throw("passed amount is less then available") | |
440 | + | else ([IntegerEntry(bz, (aT - aL)), IntegerEntry(ba, (bb - aL)), ScriptTransfer(bM.caller, aL, at), aM("unstake", ak, al, aL, bM.transactionId)] ++ bZ) | |
335 | 441 | } | |
336 | 442 | ||
337 | 443 | ||
338 | 444 | ||
339 | - | @Callable(Q) | |
340 | - | func setFee (aI) = { | |
341 | - | let ah = [P(Q)] | |
342 | - | if ((ah == ah)) | |
343 | - | then [IntegerEntry(b, aI)] | |
344 | - | else throw("Strict value is not equal to itself.") | |
445 | + | @Callable(bM) | |
446 | + | func claimWx (al) = { | |
447 | + | let av = bM.caller | |
448 | + | let ak = toString(bM.caller) | |
449 | + | let aY = v(aP, U(al)) | |
450 | + | let cc = an(al, ak) | |
451 | + | let cd = aq(al) | |
452 | + | let ce = ao(al, ak) | |
453 | + | let cf = ap(al, ak) | |
454 | + | let cg = toBigInt(w(this, cc)) | |
455 | + | let ch = toBigInt(w(this, ce)) | |
456 | + | let ci = toBigInt(w(this, cf)) | |
457 | + | let cj = toBigInt(w(this, cd)) | |
458 | + | let ck = bv(al, ak, aY, 0) | |
459 | + | let bF = ck._1 | |
460 | + | let bZ = ck._2 | |
461 | + | let bu = ck._3 | |
462 | + | let cl = (bF - cg) | |
463 | + | if ((g >= cl)) | |
464 | + | then throw("nothing to claim") | |
465 | + | else { | |
466 | + | let cm = m(i(invoke(aR, "claimWxBoost", [al, ak], nil))[0]) | |
467 | + | let cn = cl | |
468 | + | let co = min([(cn * toBigInt(2)), toBigInt(cm)]) | |
469 | + | let cp = q(i(invoke(aQ, "emit", [cn], nil))[0]) | |
470 | + | let cq = i(invoke(aQ, "emit", [co], nil)) | |
471 | + | if ((cq == cq)) | |
472 | + | then { | |
473 | + | let cr = (cg + cl) | |
474 | + | let cs = (ch + cn) | |
475 | + | let ct = (ch + cn) | |
476 | + | let cu = (ch + cn) | |
477 | + | [StringEntry(cc, toString(cr)), StringEntry(ce, toString(cs)), StringEntry(cf, toString(ct)), StringEntry(cd, toString(cu)), ScriptTransfer(av, toInt(cn), cp), ScriptTransfer(av, toInt(co), cp), aM("claim", ak, al, toInt(cl), bM.transactionId)] | |
478 | + | } | |
479 | + | else throw("Strict value is not equal to itself.") | |
480 | + | } | |
345 | 481 | } | |
346 | 482 | ||
347 | 483 | ||
348 | 484 | ||
349 | - | @Callable(Q) | |
350 | - | func finalize (p,q) = { | |
351 | - | let t = value(getInteger(o(p, q))) | |
352 | - | let ar = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
353 | - | let ah = [if (isDefined(getInteger(o(p, q)))) | |
354 | - | then true | |
355 | - | else throw("no assets pair"), if ((height >= ar)) | |
356 | - | then true | |
357 | - | else throw("insufficient height for completion")] | |
358 | - | if ((ah == ah)) | |
359 | - | then { | |
360 | - | let az = split(value(getString(u(p, q, t))), a) | |
361 | - | let aA = parseIntValue(az[1]) | |
362 | - | let aB = parseIntValue(az[2]) | |
363 | - | let aH = if ((aA > aB)) | |
364 | - | then { | |
365 | - | let aJ = invoke(I, "setWxEmissionPoolLabel", [p, q], nil) | |
366 | - | if ((aJ == aJ)) | |
367 | - | then { | |
368 | - | let aK = invoke(K, "create", [p, q], nil) | |
369 | - | if ((aK == aK)) | |
370 | - | then $Tuple2([DeleteEntry(o(p, q))], unit) | |
371 | - | else throw("Strict value is not equal to itself.") | |
372 | - | } | |
373 | - | else throw("Strict value is not equal to itself.") | |
374 | - | } | |
375 | - | else $Tuple2([DeleteEntry(o(p, q))], unit) | |
376 | - | aH | |
377 | - | } | |
378 | - | else throw("Strict value is not equal to itself.") | |
485 | + | @Callable(bM) | |
486 | + | func claimWxREADONLY (al,ak) = { | |
487 | + | let bz = aj(ak, al) | |
488 | + | let ba = am(al) | |
489 | + | let cc = an(al, ak) | |
490 | + | let aT = ar(bz) | |
491 | + | let bb = ar(ba) | |
492 | + | let cg = w(this, cc) | |
493 | + | let aY = v(aP, U(al)) | |
494 | + | let bd = getIntegerValue(aP, V(aY)) | |
495 | + | let cv = z(aQ, ae()) | |
496 | + | let be = z(aQ, ag()) | |
497 | + | let cw = if ((be > height)) | |
498 | + | then 0 | |
499 | + | else (height - be) | |
500 | + | let cx = fraction((cv * cw), bd, f) | |
501 | + | let cy = fraction(cx, aT, bb) | |
502 | + | let cz = bv(al, ak, aY, 0) | |
503 | + | let bF = cz._1 | |
504 | + | let bZ = cz._2 | |
505 | + | let bu = cz._3 | |
506 | + | let cl = (bF - toBigInt(cg)) | |
507 | + | let cA = i(invoke(aR, "claimWxBoostREADONLY", [al, ak], nil)) | |
508 | + | let cm = m(cA[0]) | |
509 | + | let cB = o(cA[1]) | |
510 | + | let cn = cl | |
511 | + | let co = min([(cn * toBigInt(2)), toBigInt(cm)]) | |
512 | + | let cC = (cn + co) | |
513 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", al, ak, toString(cC), toString(cg), toString(cn), toString(co), ((((bu + "::") + toString(cy)) + "::BOOSTDEBUG::") + cB)], e)) | |
379 | 514 | } | |
380 | 515 | ||
381 | 516 | ||
382 | 517 | ||
383 | - | @Callable(Q) | |
384 | - | func setManager (aL) = { | |
385 | - | let aM = P(Q) | |
386 | - | if ((aM == aM)) | |
387 | - | then { | |
388 | - | let aN = fromBase58String(aL) | |
389 | - | if ((aN == aN)) | |
390 | - | then [StringEntry(E(), aL)] | |
391 | - | else throw("Strict value is not equal to itself.") | |
392 | - | } | |
393 | - | else throw("Strict value is not equal to itself.") | |
394 | - | } | |
518 | + | @Callable(bM) | |
519 | + | func onModifyWeight (al,aY) = if ((bM.caller != aP)) | |
520 | + | then throw("permissions denied") | |
521 | + | else { | |
522 | + | let cD = aX(al, aY, 0) | |
523 | + | let aV = cD._1 | |
524 | + | let bx = cD._2 | |
525 | + | let by = cD._3 | |
526 | + | bx | |
527 | + | } | |
395 | 528 | ||
396 | 529 | ||
397 | - | ||
398 | - | @Callable(Q) | |
399 | - | func confirmManager () = { | |
400 | - | let aO = O() | |
401 | - | let aP = if (isDefined(aO)) | |
402 | - | then true | |
403 | - | else throw("no pending manager") | |
404 | - | if ((aP == aP)) | |
405 | - | then { | |
406 | - | let aQ = if ((Q.callerPublicKey == value(aO))) | |
407 | - | then true | |
408 | - | else throw("you are not pending manager") | |
409 | - | if ((aQ == aQ)) | |
410 | - | then [StringEntry(D(), toBase58String(value(aO))), DeleteEntry(E())] | |
411 | - | else throw("Strict value is not equal to itself.") | |
412 | - | } | |
413 | - | else throw("Strict value is not equal to itself.") | |
414 | - | } | |
415 | - | ||
416 | - | ||
417 | - | @Verifier(aR) | |
418 | - | func aS () = { | |
419 | - | let aT = { | |
420 | - | let M = L() | |
421 | - | if ($isInstanceOf(M, "ByteVector")) | |
530 | + | @Verifier(cE) | |
531 | + | func cF () = { | |
532 | + | let cG = { | |
533 | + | let k = bI() | |
534 | + | if ($isInstanceOf(k, "ByteVector")) | |
422 | 535 | then { | |
423 | - | let | |
424 | - | | |
536 | + | let bO = k | |
537 | + | bO | |
425 | 538 | } | |
426 | - | else if ($isInstanceOf( | |
427 | - | then | |
539 | + | else if ($isInstanceOf(k, "Unit")) | |
540 | + | then cE.senderPublicKey | |
428 | 541 | else throw("Match error") | |
429 | 542 | } | |
430 | - | sigVerify( | |
543 | + | sigVerify(cE.bodyBytes, cE.proofs[0], cG) | |
431 | 544 | } | |
432 | 545 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 18 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "__" | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = b | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(0) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = toBigInt(1) | |
19 | 19 | ||
20 | - | let i = makeString(["%s", "emissionContract"], a) | |
21 | - | ||
22 | - | let j = makeString(["%s", "boostingContract"], a) | |
23 | - | ||
24 | - | let k = makeString(["%s", "factoryContract"], a) | |
25 | - | ||
26 | - | let l = makeString(["%s", "votingEmissionContract"], a) | |
27 | - | ||
28 | - | func m (n) = valueOrErrorMessage(getString(this, n), (n + " is not defined")) | |
29 | - | ||
30 | - | ||
31 | - | func o (p,q) = makeString(["%s%s%s", "inList", p, q], a) | |
32 | - | ||
33 | - | ||
34 | - | func r (p,q) = makeString(["%s%s%s", "suggestIndex", p, q], a) | |
35 | - | ||
36 | - | ||
37 | - | func s (p,q,t) = makeString(["%s%s%s%d", "startHeight", p, q, toString(t)], a) | |
38 | - | ||
39 | - | ||
40 | - | func u (p,q,t) = makeString(["%s%s%s%d", "votingResult", p, q, toString(t)], a) | |
41 | - | ||
42 | - | ||
43 | - | func v (w,x) = makeString(["%d%d", w, x], a) | |
44 | - | ||
45 | - | ||
46 | - | func y (p,q,t,z) = makeString(["%s%s%s%d%s", "vote", p, q, toString(t), z], a) | |
47 | - | ||
48 | - | ||
49 | - | func A (B,C) = { | |
50 | - | let n = if (C) | |
51 | - | then makeString(["%d%s", B, "yes"], a) | |
52 | - | else makeString(["%d%s", B, "no"], a) | |
53 | - | n | |
20 | + | func i (j) = { | |
21 | + | let k = j | |
22 | + | if ($isInstanceOf(k, "List[Any]")) | |
23 | + | then { | |
24 | + | let l = k | |
25 | + | l | |
26 | + | } | |
27 | + | else throw("fail to cast into List[Any]") | |
54 | 28 | } | |
55 | 29 | ||
56 | 30 | ||
57 | - | func D () = "%s__managerPublicKey" | |
31 | + | func m (j) = { | |
32 | + | let k = j | |
33 | + | if ($isInstanceOf(k, "Int")) | |
34 | + | then { | |
35 | + | let n = k | |
36 | + | n | |
37 | + | } | |
38 | + | else throw("fail to cast into Int") | |
39 | + | } | |
58 | 40 | ||
59 | 41 | ||
60 | - | func E () = "%s__pendingManagerPublicKey" | |
42 | + | func o (j) = { | |
43 | + | let k = j | |
44 | + | if ($isInstanceOf(k, "String")) | |
45 | + | then { | |
46 | + | let p = k | |
47 | + | p | |
48 | + | } | |
49 | + | else throw("fail to cast into Int") | |
50 | + | } | |
61 | 51 | ||
62 | 52 | ||
63 | - | let F = addressFromStringValue(m(g)) | |
53 | + | func q (j) = { | |
54 | + | let k = j | |
55 | + | if ($isInstanceOf(k, "ByteVector")) | |
56 | + | then { | |
57 | + | let r = k | |
58 | + | r | |
59 | + | } | |
60 | + | else throw("fail to cast into Int") | |
61 | + | } | |
64 | 62 | ||
65 | - | let G = addressFromStringValue(m(j)) | |
66 | 63 | ||
67 | - | ||
64 | + | func s (t,u) = valueOrErrorMessage(getString(t, u), (("mandatory this." + u) + " is not defined")) | |
68 | 65 | ||
69 | - | let I = addressFromStringValue(m(k)) | |
70 | 66 | ||
71 | - | ||
67 | + | func v (t,u) = valueOrErrorMessage(getString(t, u), (((("mandatory " + toString(t)) + ".") + u) + " is not defined")) | |
72 | 68 | ||
73 | - | let K = addressFromStringValue(m(l)) | |
74 | 69 | ||
75 | - | func L () = { | |
76 | - | let M = getString(D()) | |
77 | - | if ($isInstanceOf(M, "String")) | |
70 | + | func w (t,u) = valueOrElse(getInteger(t, u), 0) | |
71 | + | ||
72 | + | ||
73 | + | func x (t,u,y) = valueOrElse(getInteger(t, u), y) | |
74 | + | ||
75 | + | ||
76 | + | func z (t,u) = valueOrErrorMessage(getInteger(t, u), (("mandatory this." + u) + " is not defined")) | |
77 | + | ||
78 | + | ||
79 | + | func A (B,C) = fraction(toBigInt(B), d, toBigInt(C)) | |
80 | + | ||
81 | + | ||
82 | + | func D (j,E) = toInt(fraction(j, toBigInt(E), d)) | |
83 | + | ||
84 | + | ||
85 | + | func F () = "%s%s__config__factoryAddress" | |
86 | + | ||
87 | + | ||
88 | + | let G = 1 | |
89 | + | ||
90 | + | let H = 2 | |
91 | + | ||
92 | + | let I = 3 | |
93 | + | ||
94 | + | let J = 4 | |
95 | + | ||
96 | + | let K = 5 | |
97 | + | ||
98 | + | let L = 6 | |
99 | + | ||
100 | + | let M = 7 | |
101 | + | ||
102 | + | func N () = "%s__factoryConfig" | |
103 | + | ||
104 | + | ||
105 | + | func O () = "%s__managerPublicKey" | |
106 | + | ||
107 | + | ||
108 | + | func P () = "%s__pendingManagerPublicKey" | |
109 | + | ||
110 | + | ||
111 | + | func Q () = "%s__stablePoolAddonAddr" | |
112 | + | ||
113 | + | ||
114 | + | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
115 | + | ||
116 | + | ||
117 | + | func T () = "%s__lpTokensList" | |
118 | + | ||
119 | + | ||
120 | + | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
121 | + | ||
122 | + | ||
123 | + | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
124 | + | ||
125 | + | ||
126 | + | func X (Y) = split(valueOrElse(getString(Y, T()), ""), e) | |
127 | + | ||
128 | + | ||
129 | + | func Z (Y) = split(v(Y, N()), e) | |
130 | + | ||
131 | + | ||
132 | + | func aa (ab) = addressFromStringValue(ab[H]) | |
133 | + | ||
134 | + | ||
135 | + | func ac (ab) = addressFromStringValue(ab[K]) | |
136 | + | ||
137 | + | ||
138 | + | func ad (ab) = addressFromStringValue(ab[G]) | |
139 | + | ||
140 | + | ||
141 | + | func ae () = "%s%s__ratePerBlock__current" | |
142 | + | ||
143 | + | ||
144 | + | func af () = "%s%s__ratePerBlockMax__current" | |
145 | + | ||
146 | + | ||
147 | + | func ag () = "%s%s__emission__startBlock" | |
148 | + | ||
149 | + | ||
150 | + | func ah () = "%s%s__emission__duration" | |
151 | + | ||
152 | + | ||
153 | + | func ai () = "%s%s__emission__endBlock" | |
154 | + | ||
155 | + | ||
156 | + | func aj (ak,al) = makeString(["%s%s%s__staked", ak, al], e) | |
157 | + | ||
158 | + | ||
159 | + | func am (al) = ("%s%s%s__staked__total__" + al) | |
160 | + | ||
161 | + | ||
162 | + | func an (al,ak) = makeString(["%s%s%s__claimed", ak, al], e) | |
163 | + | ||
164 | + | ||
165 | + | func ao (al,ak) = makeString(["%s%s%s__claimedMinReward", ak, al], e) | |
166 | + | ||
167 | + | ||
168 | + | func ap (al,ak) = makeString(["%s%s%s__claimedBoostReward", ak, al], e) | |
169 | + | ||
170 | + | ||
171 | + | func aq (al) = makeString(["%s%s%s__claimed", "total", al], e) | |
172 | + | ||
173 | + | ||
174 | + | func ar (u) = valueOrElse(getInteger(this, u), 0) | |
175 | + | ||
176 | + | ||
177 | + | func as (at) = makeString(["%s%s%s", at, "total", "bal"], e) | |
178 | + | ||
179 | + | ||
180 | + | func au (at,av) = makeString(["%s%s%s", at, av, "bal"], e) | |
181 | + | ||
182 | + | ||
183 | + | func aw (at) = makeString(["%s%s%s", at, "total", "balINT"], e) | |
184 | + | ||
185 | + | ||
186 | + | func ax (at,av) = makeString(["%s%s%s", at, av, "balINT"], e) | |
187 | + | ||
188 | + | ||
189 | + | func ay (at) = makeString(["%s%s%s", at, "total", "lastUpd"], e) | |
190 | + | ||
191 | + | ||
192 | + | func az (at,av) = makeString(["%s%s%s", at, av, "lastUpd"], e) | |
193 | + | ||
194 | + | ||
195 | + | func aA (at) = makeString(["%s%s%s%s", at, "common", "lpInt"], e) | |
196 | + | ||
197 | + | ||
198 | + | func aB (at) = makeString(["%s%s%s%s", at, "common", "lpIntH"], e) | |
199 | + | ||
200 | + | ||
201 | + | func aC (at,av) = makeString(["%s%s%s%s", at, av, "lpInt"], e) | |
202 | + | ||
203 | + | ||
204 | + | func aD (at,av) = makeString(["%s%s%s%s", at, av, "lpIntH"], e) | |
205 | + | ||
206 | + | ||
207 | + | func aE (at) = makeString(["%s", at, "wxPerLp"], e) | |
208 | + | ||
209 | + | ||
210 | + | func aF (at) = makeString(["%s", at, "wxPerLpX18"], e) | |
211 | + | ||
212 | + | ||
213 | + | func aG (at,av) = makeString(["%s%s%s%s", at, av, "uIntL"], e) | |
214 | + | ||
215 | + | ||
216 | + | func aH (aI,av,aJ) = makeString(["%s%s%s%s__history", aI, av, aJ], e) | |
217 | + | ||
218 | + | ||
219 | + | func aK (av,at,aI,aL) = makeString(["%s%s%s%d%d%d", av, at, aI, toString(height), toString(lastBlock.timestamp), toString(aL)], e) | |
220 | + | ||
221 | + | ||
222 | + | func aM (aI,av,at,aL,aN) = StringEntry(aH(aI, av, toBase58String(aN)), aK(av, at, aI, aL)) | |
223 | + | ||
224 | + | ||
225 | + | let aO = s(this, F()) | |
226 | + | ||
227 | + | let aP = addressFromStringValue(aO) | |
228 | + | ||
229 | + | let ab = Z(aP) | |
230 | + | ||
231 | + | let aQ = ac(ab) | |
232 | + | ||
233 | + | let aR = aa(ab) | |
234 | + | ||
235 | + | func aS (aT,aU,aV,aW) = if (if ((aU == g)) | |
236 | + | then (aT > g) | |
237 | + | else false) | |
238 | + | then g | |
239 | + | else if ((aT == g)) | |
240 | + | then aV | |
241 | + | else if (if ((aU > g)) | |
242 | + | then (aT > g) | |
243 | + | else false) | |
244 | + | then value(parseBigInt(s(this, aW))) | |
245 | + | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
246 | + | ||
247 | + | ||
248 | + | func aX (al,aY,aZ) = { | |
249 | + | let ba = am(al) | |
250 | + | let bb = toBigInt(ar(ba)) | |
251 | + | let bc = if ((bb == g)) | |
252 | + | then h | |
253 | + | else bb | |
254 | + | let bd = getIntegerValue(aP, V(aY)) | |
255 | + | let be = z(aQ, ag()) | |
256 | + | let bf = 1000 | |
257 | + | let bg = (z(aQ, ae()) * bf) | |
258 | + | let bh = fraction(bg, bd, (f * 3)) | |
259 | + | let bi = aA(al) | |
260 | + | let bj = aB(al) | |
261 | + | let bk = aE(al) | |
262 | + | let bl = x(this, bj, be) | |
263 | + | let bm = w(this, bi) | |
264 | + | let bn = 0 | |
265 | + | let bo = max([(height - bl), 0]) | |
266 | + | let bp = if ((bn != 0)) | |
267 | + | then toBigInt(bn) | |
268 | + | else fraction(toBigInt(bh), toBigInt(b), bc) | |
269 | + | let bq = (bb + toBigInt(aZ)) | |
270 | + | let br = if ((bq == g)) | |
271 | + | then h | |
272 | + | else bq | |
273 | + | let aV = (toBigInt(bm) + (bp * toBigInt(bo))) | |
274 | + | let bs = (toBigInt(bh) / br) | |
275 | + | let bt = height | |
276 | + | let bu = makeString(["wxPerLpIntegralNew=", toString(aV), "dh=", toString(bo), "wxPerLpX3=", toString(bp), "stakedTotal=", toString(bb), "poolWxEmissionPerBlockX3=", toString(bh), "wxEmissionPerBlockX3=", toString(bg), "poolWeight=", toString(bd)], "::") | |
277 | + | $Tuple3(aV, [StringEntry(bi, toString(aV)), IntegerEntry(bj, bt), StringEntry(bk, toString(bs))], bu) | |
278 | + | } | |
279 | + | ||
280 | + | ||
281 | + | func bv (al,ak,aY,aZ) = { | |
282 | + | let bw = aX(al, aY, aZ) | |
283 | + | let aV = bw._1 | |
284 | + | let bx = bw._2 | |
285 | + | let by = bw._3 | |
286 | + | let bf = 1000 | |
287 | + | let bz = aj(ak, al) | |
288 | + | let aT = ar(bz) | |
289 | + | let bA = aC(al, ak) | |
290 | + | let bB = aD(al, ak) | |
291 | + | let aW = aG(al, ak) | |
292 | + | let bC = w(this, bA) | |
293 | + | let aU = w(this, bB) | |
294 | + | let bD = aS(toBigInt(aT), toBigInt(aU), aV, aW) | |
295 | + | let bE = (b * bf) | |
296 | + | let bF = (toBigInt(bC) + fraction((aV - bD), toBigInt(aT), toBigInt(bE))) | |
297 | + | let bG = aV | |
298 | + | let bH = height | |
299 | + | let bu = makeString(["wxToClaimUserNew=", toString(bF), "wxPerLpIntegralUserLast=", toString(bD), "stakedByUser=", toString(aT), "poolDEBUG=", by, "height=", toString(height)], "::") | |
300 | + | $Tuple3(bF, (bx ++ [StringEntry(bA, toString(bF)), IntegerEntry(bB, bH), StringEntry(aW, toString(bG))]), bu) | |
301 | + | } | |
302 | + | ||
303 | + | ||
304 | + | func bI () = { | |
305 | + | let k = getString(O()) | |
306 | + | if ($isInstanceOf(k, "String")) | |
78 | 307 | then { | |
79 | - | let | |
80 | - | fromBase58String( | |
308 | + | let bJ = k | |
309 | + | fromBase58String(bJ) | |
81 | 310 | } | |
82 | - | else if ($isInstanceOf( | |
311 | + | else if ($isInstanceOf(k, "Unit")) | |
83 | 312 | then unit | |
84 | 313 | else throw("Match error") | |
85 | 314 | } | |
86 | 315 | ||
87 | 316 | ||
88 | - | func | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
317 | + | func bK () = { | |
318 | + | let k = getString(P()) | |
319 | + | if ($isInstanceOf(k, "String")) | |
91 | 320 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
321 | + | let bJ = k | |
322 | + | fromBase58String(bJ) | |
94 | 323 | } | |
95 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(k, "Unit")) | |
96 | 325 | then unit | |
97 | 326 | else throw("Match error") | |
98 | 327 | } | |
99 | 328 | ||
100 | 329 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
330 | + | func bL (bM) = { | |
331 | + | let bN = throw("Permission denied") | |
332 | + | let k = bI() | |
333 | + | if ($isInstanceOf(k, "ByteVector")) | |
105 | 334 | then { | |
106 | - | let | |
107 | - | if (( | |
335 | + | let bO = k | |
336 | + | if ((bM.callerPublicKey == bO)) | |
108 | 337 | then true | |
109 | - | else | |
338 | + | else bN | |
110 | 339 | } | |
111 | - | else if ($isInstanceOf( | |
112 | - | then if (( | |
340 | + | else if ($isInstanceOf(k, "Unit")) | |
341 | + | then if ((bM.caller == this)) | |
113 | 342 | then true | |
114 | - | else | |
343 | + | else bN | |
115 | 344 | else throw("Match error") | |
116 | 345 | } | |
117 | 346 | ||
118 | 347 | ||
119 | - | func T (U) = { | |
120 | - | let M = U | |
121 | - | if ($isInstanceOf(M, "Int")) | |
122 | - | then { | |
123 | - | let V = M | |
124 | - | V | |
125 | - | } | |
126 | - | else throw("failed to cast into Integer") | |
127 | - | } | |
128 | - | ||
129 | - | ||
130 | - | @Callable(Q) | |
131 | - | func constructor (W,X,Y,Z,aa,ab,ac,ad,ae,af,ag) = { | |
132 | - | let ah = [P(Q), if (isDefined(addressFromString(W))) | |
133 | - | then true | |
134 | - | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(X))) | |
135 | - | then true | |
136 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(aa))) | |
137 | - | then true | |
138 | - | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(Y))) | |
139 | - | then true | |
140 | - | else throw("Invalid emission contract address"), if (isDefined(addressFromString(Z))) | |
141 | - | then true | |
142 | - | else throw("Invalid factory contract address"), if ((ac >= 0)) | |
143 | - | then true | |
144 | - | else throw("Invalid fee amount"), if ((ae > 0)) | |
145 | - | then true | |
146 | - | else throw("Invalid voting duration"), if ((ag > 0)) | |
147 | - | then true | |
148 | - | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(ad)))) | |
149 | - | then true | |
150 | - | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(af)))) | |
151 | - | then true | |
152 | - | else throw("Invalid USDN asset ID")] | |
153 | - | if ((ah == ah)) | |
154 | - | then $Tuple2([StringEntry(g, W), StringEntry(j, X), StringEntry(i, Y), StringEntry(k, Z), StringEntry(h, aa), StringEntry(l, ab), IntegerEntry(b, ac), IntegerEntry(d, ae), IntegerEntry(e, ag), StringEntry(f, ad), StringEntry(c, af)], unit) | |
348 | + | @Callable(bM) | |
349 | + | func constructor (bP) = { | |
350 | + | let bQ = bL(bM) | |
351 | + | if ((bQ == bQ)) | |
352 | + | then [StringEntry(F(), bP)] | |
155 | 353 | else throw("Strict value is not equal to itself.") | |
156 | 354 | } | |
157 | 355 | ||
158 | 356 | ||
159 | 357 | ||
160 | - | @Callable(Q) | |
161 | - | func suggest (p,q) = { | |
162 | - | let ai = value(Q.payments[0]) | |
163 | - | let aj = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
164 | - | let ah = [if ((aj.issuer == Q.caller)) | |
165 | - | then true | |
166 | - | else throw("asset can only be suggested by its issuer"), if ((aj.scripted == false)) | |
167 | - | then true | |
168 | - | else throw("asset is smart"), if ((toBase58String(value(ai.assetId)) == value(getString(f)))) | |
169 | - | then true | |
170 | - | else throw("invalid fee asset"), if ((ai.amount == value(getInteger(b)))) | |
171 | - | then true | |
172 | - | else throw("invalid fee amount"), if ((q == value(getString(c)))) | |
173 | - | then true | |
174 | - | else throw("priceAssetId is not USDN"), if ((getInteger(o(p, q)) == unit)) | |
175 | - | then true | |
176 | - | else throw("already in voting list")] | |
177 | - | if ((ah == ah)) | |
358 | + | @Callable(bM) | |
359 | + | func setManager (bR) = { | |
360 | + | let bQ = bL(bM) | |
361 | + | if ((bQ == bQ)) | |
178 | 362 | then { | |
179 | - | let ak = { | |
180 | - | let M = invoke(J, "statusREADONLY", [p, q], nil) | |
181 | - | if ($isInstanceOf(M, "String")) | |
182 | - | then { | |
183 | - | let N = M | |
184 | - | if ((N == "active")) | |
185 | - | then true | |
186 | - | else throw("user pool is not active") | |
187 | - | } | |
188 | - | else throw("user pool is not active") | |
189 | - | } | |
190 | - | if ((ak == ak)) | |
191 | - | then { | |
192 | - | let al = { | |
193 | - | let M = invoke(F, "isVerifiedREADONLY", [p], nil) | |
194 | - | if ($isInstanceOf(M, "Boolean")) | |
195 | - | then { | |
196 | - | let am = M | |
197 | - | if (am) | |
198 | - | then true | |
199 | - | else throw("asset is not verified") | |
200 | - | } | |
201 | - | else throw("asset is not verified") | |
202 | - | } | |
203 | - | if ((al == al)) | |
204 | - | then { | |
205 | - | let an = invoke(H, "burn", nil, [AttachedPayment(ai.assetId, ai.amount)]) | |
206 | - | if ((an == an)) | |
207 | - | then { | |
208 | - | let ao = { | |
209 | - | let M = getInteger(r(p, q)) | |
210 | - | if ($isInstanceOf(M, "Int")) | |
211 | - | then { | |
212 | - | let ap = M | |
213 | - | (ap + 1) | |
214 | - | } | |
215 | - | else 0 | |
216 | - | } | |
217 | - | $Tuple2([IntegerEntry(o(p, q), ao), IntegerEntry(s(p, q, ao), height), StringEntry(u(p, q, ao), v("0", "0")), IntegerEntry(r(p, q), ao)], unit) | |
218 | - | } | |
219 | - | else throw("Strict value is not equal to itself.") | |
220 | - | } | |
221 | - | else throw("Strict value is not equal to itself.") | |
222 | - | } | |
363 | + | let bS = fromBase58String(bR) | |
364 | + | if ((bS == bS)) | |
365 | + | then [StringEntry(P(), bR)] | |
223 | 366 | else throw("Strict value is not equal to itself.") | |
224 | 367 | } | |
225 | 368 | else throw("Strict value is not equal to itself.") | |
226 | 369 | } | |
227 | 370 | ||
228 | 371 | ||
229 | 372 | ||
230 | - | @Callable(Q) | |
231 | - | func vote (p,q,aq) = { | |
232 | - | let t = value(getInteger(o(p, q))) | |
233 | - | let ar = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
234 | - | let ah = [if (isDefined(getInteger(o(p, q)))) | |
373 | + | @Callable(bM) | |
374 | + | func confirmManager () = { | |
375 | + | let bT = bK() | |
376 | + | let bU = if (isDefined(bT)) | |
235 | 377 | then true | |
236 | - | else throw("the token isn't on the voting list"), if ((ar > height)) | |
237 | - | then true | |
238 | - | else throw("too late to vote")] | |
239 | - | if ((ah == ah)) | |
378 | + | else throw("No pending manager") | |
379 | + | if ((bU == bU)) | |
240 | 380 | then { | |
241 | - | let B = invoke(G, "getUserGwxAmountAtHeightREADONLY", [toString(Q.caller), ar], nil) | |
242 | - | let as = if ((T(B) > 0)) | |
381 | + | let bV = if ((bM.callerPublicKey == value(bT))) | |
243 | 382 | then true | |
244 | - | else throw("you don't have gwx") | |
245 | - | if ((as == as)) | |
246 | - | then { | |
247 | - | let C = { | |
248 | - | let M = getString(y(p, q, t, toString(Q.caller))) | |
249 | - | if ($isInstanceOf(M, "String")) | |
250 | - | then { | |
251 | - | let N = M | |
252 | - | let C = split(N, a) | |
253 | - | let at = C[1] | |
254 | - | let au = C[2] | |
255 | - | let av = if (if ((au == "yes")) | |
256 | - | then (aq == true) | |
257 | - | else false) | |
258 | - | then true | |
259 | - | else if ((au == "no")) | |
260 | - | then (aq == false) | |
261 | - | else false | |
262 | - | let aw = if (av) | |
263 | - | then (T(B) == parseIntValue(at)) | |
264 | - | else false | |
265 | - | let ax = if (if (av) | |
266 | - | then aw | |
267 | - | else false) | |
268 | - | then throw("you already voted") | |
269 | - | else invoke(this, "cancelVote", [p, q], nil) | |
270 | - | ax | |
271 | - | } | |
272 | - | else if ($isInstanceOf(M, "Unit")) | |
273 | - | then { | |
274 | - | let ay = M | |
275 | - | ay | |
276 | - | } | |
277 | - | else throw("Match error") | |
278 | - | } | |
279 | - | if ((C == C)) | |
280 | - | then { | |
281 | - | let az = split(value(getString(u(p, q, t))), a) | |
282 | - | let aA = az[1] | |
283 | - | let aB = az[2] | |
284 | - | let aC = if (aq) | |
285 | - | then { | |
286 | - | let aD = (parseIntValue(aA) + T(B)) | |
287 | - | [toString(aD), aB] | |
288 | - | } | |
289 | - | else { | |
290 | - | let aE = (parseIntValue(aB) + T(B)) | |
291 | - | [aA, toString(aE)] | |
292 | - | } | |
293 | - | let aF = y(p, q, t, toString(Q.caller)) | |
294 | - | let at = A(toString(T(B)), aq) | |
295 | - | $Tuple2([StringEntry(u(p, q, t), v(aC[0], aC[1])), StringEntry(aF, at)], unit) | |
296 | - | } | |
297 | - | else throw("Strict value is not equal to itself.") | |
298 | - | } | |
383 | + | else throw("You are not pending manager") | |
384 | + | if ((bV == bV)) | |
385 | + | then [StringEntry(O(), toBase58String(value(bT))), DeleteEntry(P())] | |
299 | 386 | else throw("Strict value is not equal to itself.") | |
300 | 387 | } | |
301 | 388 | else throw("Strict value is not equal to itself.") | |
302 | 389 | } | |
303 | 390 | ||
304 | 391 | ||
305 | 392 | ||
306 | - | @Callable(Q) | |
307 | - | func cancelVote (p,q) = { | |
308 | - | let aG = if ((Q.caller == this)) | |
309 | - | then toString(Q.originCaller) | |
310 | - | else toString(Q.caller) | |
311 | - | let t = value(getInteger(o(p, q))) | |
312 | - | let ah = [if (isDefined(getString(u(p, q, t)))) | |
393 | + | @Callable(bM) | |
394 | + | func stake () = if ((size(bM.payments) != 1)) | |
395 | + | then throw("invalid payment - exact one payment must be attached") | |
396 | + | else { | |
397 | + | let bW = bM.payments[0] | |
398 | + | let at = value(bW.assetId) | |
399 | + | let al = toBase58String(at) | |
400 | + | let aL = bW.amount | |
401 | + | let aY = valueOrErrorMessage(getString(aP, R(al)), ("unsupported lp asset " + al)) | |
402 | + | let bX = toString(bM.caller) | |
403 | + | let ak = if ((bX == aY)) | |
404 | + | then toString(bM.originCaller) | |
405 | + | else bX | |
406 | + | let bz = aj(ak, al) | |
407 | + | let ba = am(al) | |
408 | + | let aT = ar(bz) | |
409 | + | let bb = ar(ba) | |
410 | + | let bY = bv(al, ak, aY, aL) | |
411 | + | let bF = bY._1 | |
412 | + | let bZ = bY._2 | |
413 | + | let bu = bY._3 | |
414 | + | ([IntegerEntry(bz, (aT + aL)), IntegerEntry(ba, (bb + aL)), aM("stake", ak, al, aL, bM.transactionId)] ++ bZ) | |
415 | + | } | |
416 | + | ||
417 | + | ||
418 | + | ||
419 | + | @Callable(bM) | |
420 | + | func unstake (al,aL) = { | |
421 | + | let at = fromBase58String(al) | |
422 | + | let aY = valueOrErrorMessage(getString(aP, R(al)), ("unsupported lp asset " + al)) | |
423 | + | let ca = valueOrElse(getString(this, Q()), aY) | |
424 | + | let bX = toString(bM.caller) | |
425 | + | let ak = if (if ((bX == aY)) | |
313 | 426 | then true | |
314 | - | else throw("no vote for assets pair")] | |
315 | - | if ((ah == ah)) | |
316 | - | then { | |
317 | - | let C = split(value(getString(y(p, q, t, aG))), a) | |
318 | - | let at = C[1] | |
319 | - | let au = C[2] | |
320 | - | let az = split(value(getString(u(p, q, t))), a) | |
321 | - | let aA = az[1] | |
322 | - | let aB = az[2] | |
323 | - | let aH = if ((au == "yes")) | |
324 | - | then { | |
325 | - | let aD = (parseIntValue(aA) - parseIntValue(at)) | |
326 | - | $Tuple2([StringEntry(u(p, q, t), v(toString(aD), aB)), DeleteEntry(y(p, q, t, aG))], unit) | |
327 | - | } | |
328 | - | else { | |
329 | - | let aE = (parseIntValue(aB) - parseIntValue(at)) | |
330 | - | $Tuple2([StringEntry(u(p, q, t), v(aA, toString(aE))), DeleteEntry(y(p, q, t, aG))], unit) | |
331 | - | } | |
332 | - | aH | |
333 | - | } | |
334 | - | else throw("Strict value is not equal to itself.") | |
427 | + | else (bX == ca)) | |
428 | + | then toString(bM.originCaller) | |
429 | + | else bX | |
430 | + | let bz = aj(ak, al) | |
431 | + | let ba = am(al) | |
432 | + | let aT = ar(bz) | |
433 | + | let bb = ar(ba) | |
434 | + | let cb = bv(al, ak, aY, -(aL)) | |
435 | + | let bF = cb._1 | |
436 | + | let bZ = cb._2 | |
437 | + | let bu = cb._3 | |
438 | + | if ((aL > aT)) | |
439 | + | then throw("passed amount is less then available") | |
440 | + | else ([IntegerEntry(bz, (aT - aL)), IntegerEntry(ba, (bb - aL)), ScriptTransfer(bM.caller, aL, at), aM("unstake", ak, al, aL, bM.transactionId)] ++ bZ) | |
335 | 441 | } | |
336 | 442 | ||
337 | 443 | ||
338 | 444 | ||
339 | - | @Callable(Q) | |
340 | - | func setFee (aI) = { | |
341 | - | let ah = [P(Q)] | |
342 | - | if ((ah == ah)) | |
343 | - | then [IntegerEntry(b, aI)] | |
344 | - | else throw("Strict value is not equal to itself.") | |
445 | + | @Callable(bM) | |
446 | + | func claimWx (al) = { | |
447 | + | let av = bM.caller | |
448 | + | let ak = toString(bM.caller) | |
449 | + | let aY = v(aP, U(al)) | |
450 | + | let cc = an(al, ak) | |
451 | + | let cd = aq(al) | |
452 | + | let ce = ao(al, ak) | |
453 | + | let cf = ap(al, ak) | |
454 | + | let cg = toBigInt(w(this, cc)) | |
455 | + | let ch = toBigInt(w(this, ce)) | |
456 | + | let ci = toBigInt(w(this, cf)) | |
457 | + | let cj = toBigInt(w(this, cd)) | |
458 | + | let ck = bv(al, ak, aY, 0) | |
459 | + | let bF = ck._1 | |
460 | + | let bZ = ck._2 | |
461 | + | let bu = ck._3 | |
462 | + | let cl = (bF - cg) | |
463 | + | if ((g >= cl)) | |
464 | + | then throw("nothing to claim") | |
465 | + | else { | |
466 | + | let cm = m(i(invoke(aR, "claimWxBoost", [al, ak], nil))[0]) | |
467 | + | let cn = cl | |
468 | + | let co = min([(cn * toBigInt(2)), toBigInt(cm)]) | |
469 | + | let cp = q(i(invoke(aQ, "emit", [cn], nil))[0]) | |
470 | + | let cq = i(invoke(aQ, "emit", [co], nil)) | |
471 | + | if ((cq == cq)) | |
472 | + | then { | |
473 | + | let cr = (cg + cl) | |
474 | + | let cs = (ch + cn) | |
475 | + | let ct = (ch + cn) | |
476 | + | let cu = (ch + cn) | |
477 | + | [StringEntry(cc, toString(cr)), StringEntry(ce, toString(cs)), StringEntry(cf, toString(ct)), StringEntry(cd, toString(cu)), ScriptTransfer(av, toInt(cn), cp), ScriptTransfer(av, toInt(co), cp), aM("claim", ak, al, toInt(cl), bM.transactionId)] | |
478 | + | } | |
479 | + | else throw("Strict value is not equal to itself.") | |
480 | + | } | |
345 | 481 | } | |
346 | 482 | ||
347 | 483 | ||
348 | 484 | ||
349 | - | @Callable(Q) | |
350 | - | func finalize (p,q) = { | |
351 | - | let t = value(getInteger(o(p, q))) | |
352 | - | let ar = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
353 | - | let ah = [if (isDefined(getInteger(o(p, q)))) | |
354 | - | then true | |
355 | - | else throw("no assets pair"), if ((height >= ar)) | |
356 | - | then true | |
357 | - | else throw("insufficient height for completion")] | |
358 | - | if ((ah == ah)) | |
359 | - | then { | |
360 | - | let az = split(value(getString(u(p, q, t))), a) | |
361 | - | let aA = parseIntValue(az[1]) | |
362 | - | let aB = parseIntValue(az[2]) | |
363 | - | let aH = if ((aA > aB)) | |
364 | - | then { | |
365 | - | let aJ = invoke(I, "setWxEmissionPoolLabel", [p, q], nil) | |
366 | - | if ((aJ == aJ)) | |
367 | - | then { | |
368 | - | let aK = invoke(K, "create", [p, q], nil) | |
369 | - | if ((aK == aK)) | |
370 | - | then $Tuple2([DeleteEntry(o(p, q))], unit) | |
371 | - | else throw("Strict value is not equal to itself.") | |
372 | - | } | |
373 | - | else throw("Strict value is not equal to itself.") | |
374 | - | } | |
375 | - | else $Tuple2([DeleteEntry(o(p, q))], unit) | |
376 | - | aH | |
377 | - | } | |
378 | - | else throw("Strict value is not equal to itself.") | |
485 | + | @Callable(bM) | |
486 | + | func claimWxREADONLY (al,ak) = { | |
487 | + | let bz = aj(ak, al) | |
488 | + | let ba = am(al) | |
489 | + | let cc = an(al, ak) | |
490 | + | let aT = ar(bz) | |
491 | + | let bb = ar(ba) | |
492 | + | let cg = w(this, cc) | |
493 | + | let aY = v(aP, U(al)) | |
494 | + | let bd = getIntegerValue(aP, V(aY)) | |
495 | + | let cv = z(aQ, ae()) | |
496 | + | let be = z(aQ, ag()) | |
497 | + | let cw = if ((be > height)) | |
498 | + | then 0 | |
499 | + | else (height - be) | |
500 | + | let cx = fraction((cv * cw), bd, f) | |
501 | + | let cy = fraction(cx, aT, bb) | |
502 | + | let cz = bv(al, ak, aY, 0) | |
503 | + | let bF = cz._1 | |
504 | + | let bZ = cz._2 | |
505 | + | let bu = cz._3 | |
506 | + | let cl = (bF - toBigInt(cg)) | |
507 | + | let cA = i(invoke(aR, "claimWxBoostREADONLY", [al, ak], nil)) | |
508 | + | let cm = m(cA[0]) | |
509 | + | let cB = o(cA[1]) | |
510 | + | let cn = cl | |
511 | + | let co = min([(cn * toBigInt(2)), toBigInt(cm)]) | |
512 | + | let cC = (cn + co) | |
513 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", al, ak, toString(cC), toString(cg), toString(cn), toString(co), ((((bu + "::") + toString(cy)) + "::BOOSTDEBUG::") + cB)], e)) | |
379 | 514 | } | |
380 | 515 | ||
381 | 516 | ||
382 | 517 | ||
383 | - | @Callable(Q) | |
384 | - | func setManager (aL) = { | |
385 | - | let aM = P(Q) | |
386 | - | if ((aM == aM)) | |
387 | - | then { | |
388 | - | let aN = fromBase58String(aL) | |
389 | - | if ((aN == aN)) | |
390 | - | then [StringEntry(E(), aL)] | |
391 | - | else throw("Strict value is not equal to itself.") | |
392 | - | } | |
393 | - | else throw("Strict value is not equal to itself.") | |
394 | - | } | |
518 | + | @Callable(bM) | |
519 | + | func onModifyWeight (al,aY) = if ((bM.caller != aP)) | |
520 | + | then throw("permissions denied") | |
521 | + | else { | |
522 | + | let cD = aX(al, aY, 0) | |
523 | + | let aV = cD._1 | |
524 | + | let bx = cD._2 | |
525 | + | let by = cD._3 | |
526 | + | bx | |
527 | + | } | |
395 | 528 | ||
396 | 529 | ||
397 | - | ||
398 | - | @Callable(Q) | |
399 | - | func confirmManager () = { | |
400 | - | let aO = O() | |
401 | - | let aP = if (isDefined(aO)) | |
402 | - | then true | |
403 | - | else throw("no pending manager") | |
404 | - | if ((aP == aP)) | |
405 | - | then { | |
406 | - | let aQ = if ((Q.callerPublicKey == value(aO))) | |
407 | - | then true | |
408 | - | else throw("you are not pending manager") | |
409 | - | if ((aQ == aQ)) | |
410 | - | then [StringEntry(D(), toBase58String(value(aO))), DeleteEntry(E())] | |
411 | - | else throw("Strict value is not equal to itself.") | |
412 | - | } | |
413 | - | else throw("Strict value is not equal to itself.") | |
414 | - | } | |
415 | - | ||
416 | - | ||
417 | - | @Verifier(aR) | |
418 | - | func aS () = { | |
419 | - | let aT = { | |
420 | - | let M = L() | |
421 | - | if ($isInstanceOf(M, "ByteVector")) | |
530 | + | @Verifier(cE) | |
531 | + | func cF () = { | |
532 | + | let cG = { | |
533 | + | let k = bI() | |
534 | + | if ($isInstanceOf(k, "ByteVector")) | |
422 | 535 | then { | |
423 | - | let | |
424 | - | | |
536 | + | let bO = k | |
537 | + | bO | |
425 | 538 | } | |
426 | - | else if ($isInstanceOf( | |
427 | - | then | |
539 | + | else if ($isInstanceOf(k, "Unit")) | |
540 | + | then cE.senderPublicKey | |
428 | 541 | else throw("Match error") | |
429 | 542 | } | |
430 | - | sigVerify( | |
543 | + | sigVerify(cE.bodyBytes, cE.proofs[0], cG) | |
431 | 544 | } | |
432 | 545 |
github/deemru/w8io/169f3d6 82.65 ms ◑