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