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