tx · 8b3mA5FnSW2UjPXr1AkwhytFELCBpd2LHDSVDnUkUzfd 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01300000 Waves 2023.05.29 09:17 [2598895] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "8b3mA5FnSW2UjPXr1AkwhytFELCBpd2LHDSVDnUkUzfd", "fee": 1300000, "feeAssetId": null, "timestamp": 1685341037924, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "6ZK5b1vHgWgTZXYRL8hMYEDLbDppeLrpquyn2jeJxsgu1g5zSXwRNpEP67XCj4KByp6NqyQXtHz1LMkxyVotmXu" ], "script": "base64:BgInCAISCQoHCAEBAQEBCBIDCgEIEgMKAQESABIAEgASAwoBARIDCgEBMwADU0VQAgJfXwEHd3JhcEVycgEDbXNnCQC5CQIJAMwIAgIOZW1pc3Npb24ucmlkZToJAMwIAgkApQgBBQR0aGlzCQDMCAIFA21zZwUDbmlsAgEgAQh0aHJvd0VycgEDbXNnCQACAQkBB3dyYXBFcnIBBQNtc2cBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJAQd3cmFwRXJyAQkArAICCQCsAgICD21hbmRhdG9yeSB0aGlzLgUDa2V5Ag8gaXMgbm90IGRlZmluZWQBEWtleUZhY3RvcnlBZGRyZXNzAAIcJXMlc19fY29uZmlnX19mYWN0b3J5QWRkcmVzcwAZa2V5Vm90aW5nVmVyaWZpZWRDb250cmFjdAIkJXMlc19fY29uZmlnX192b3RpbmdWZXJpZmllZENvbnRyYWN0ACJrZXlWb3RpbmdFbWlzc2lvbkNhbmRpZGF0ZUNvbnRy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vcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5HifQwA==", "height": 2598895, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HWHY8ZWwCE6DDHCbA958WNaDHWz6JnfNHgcZq2iJofak Next: 86V7ovYsNMTAbaA99dhcFUvhMdSrbAGPcYJrXYTf1wpY 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 = "__" | |
21 | 21 | ||
22 | 22 | let k = "%s%s__config__userPoolsContract" | |
23 | 23 | ||
24 | - | let l = | |
24 | + | let l = "%s%s__config__votingEmissionRateContract" | |
25 | 25 | ||
26 | - | let m = addressFromStringValue(e(this, | |
26 | + | let m = addressFromStringValue(e(this, i)) | |
27 | 27 | ||
28 | - | let n = addressFromStringValue(e(this, | |
28 | + | let n = addressFromStringValue(e(this, j)) | |
29 | 29 | ||
30 | - | let o = | |
30 | + | let o = addressFromStringValue(e(this, k)) | |
31 | 31 | ||
32 | - | let p = | |
32 | + | let p = addressFromStringValue(e(this, l)) | |
33 | 33 | ||
34 | - | let q = | |
34 | + | let q = 1 | |
35 | 35 | ||
36 | - | let r = | |
36 | + | let r = 2 | |
37 | 37 | ||
38 | - | let s = | |
38 | + | let s = 3 | |
39 | 39 | ||
40 | - | let t = | |
40 | + | let t = 4 | |
41 | 41 | ||
42 | - | let u = | |
42 | + | let u = 5 | |
43 | 43 | ||
44 | - | let v = | |
44 | + | let v = 6 | |
45 | 45 | ||
46 | - | func w () = "%s__factoryConfig" | |
46 | + | let w = 7 | |
47 | + | ||
48 | + | let x = 10 | |
49 | + | ||
50 | + | func y () = "%s__factoryConfig" | |
47 | 51 | ||
48 | 52 | ||
49 | - | func | |
53 | + | func z (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a) | |
50 | 54 | ||
51 | 55 | ||
52 | - | func | |
56 | + | func B () = "%s__lpTokensList" | |
53 | 57 | ||
54 | 58 | ||
55 | - | func | |
59 | + | func C (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a) | |
56 | 60 | ||
57 | 61 | ||
58 | - | func | |
62 | + | func D (E) = makeString(["%s%s", "poolWeight", E], a) | |
59 | 63 | ||
60 | 64 | ||
61 | - | func | |
65 | + | func F () = addressFromStringValue(e(this, h())) | |
62 | 66 | ||
63 | 67 | ||
64 | - | func | |
68 | + | func G () = split(valueOrElse(getString(F(), B()), ""), a) | |
65 | 69 | ||
66 | 70 | ||
67 | - | func | |
71 | + | func H (I) = split(e(I, y()), a) | |
68 | 72 | ||
69 | 73 | ||
70 | - | func | |
74 | + | func J (K) = addressFromStringValue(K[r]) | |
71 | 75 | ||
72 | 76 | ||
73 | - | func | |
77 | + | func L (K) = addressFromStringValue(K[u]) | |
74 | 78 | ||
75 | 79 | ||
76 | - | func | |
80 | + | func M (K) = addressFromStringValue(K[q]) | |
77 | 81 | ||
78 | 82 | ||
79 | - | func | |
83 | + | func N (K) = addressFromStringValue(K[x]) | |
80 | 84 | ||
81 | 85 | ||
82 | - | func | |
86 | + | func O () = "%s__config" | |
83 | 87 | ||
84 | 88 | ||
85 | - | func | |
89 | + | func P () = "%s%s__ratePerBlockMax__current" | |
86 | 90 | ||
87 | 91 | ||
88 | - | func | |
92 | + | func Q (R,S) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(R), toString(S)], a) | |
89 | 93 | ||
90 | 94 | ||
91 | - | func | |
95 | + | func T () = "%s%s__ratePerBlock__current" | |
92 | 96 | ||
93 | 97 | ||
94 | - | func | |
98 | + | func U (R,S) = makeString(["%s%s%d%d__ratePerBlock__start", toString(R), toString(S)], a) | |
95 | 99 | ||
96 | 100 | ||
97 | - | func | |
101 | + | func V () = "%s%s__emission__startBlock" | |
98 | 102 | ||
99 | 103 | ||
100 | - | func | |
104 | + | func W () = "%s%s__emission__duration" | |
101 | 105 | ||
102 | 106 | ||
103 | - | func | |
107 | + | func X () = "%s%s__emission__endBlock" | |
104 | 108 | ||
105 | 109 | ||
106 | - | func | |
110 | + | func Y () = "%s__boostCoeff" | |
107 | 111 | ||
108 | 112 | ||
109 | - | let | |
113 | + | let Z = 3 | |
110 | 114 | ||
111 | - | let | |
115 | + | let aa = valueOrElse(getInteger(this, Y()), Z) | |
112 | 116 | ||
113 | - | func | |
117 | + | func ab () = "%s%s__gwxHoldersReward__current" | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func ac () = "%s%s__gwxHoldersReward__next" | |
117 | 121 | ||
118 | 122 | ||
119 | - | func ab () = { | |
120 | - | let ac = getString(aa()) | |
121 | - | if ($isInstanceOf(ac, "String")) | |
123 | + | func ad () = "%s__managerPublicKey" | |
124 | + | ||
125 | + | ||
126 | + | func ae () = "%s__managerVaultAddress" | |
127 | + | ||
128 | + | ||
129 | + | func af () = { | |
130 | + | let ag = getString(ae()) | |
131 | + | if ($isInstanceOf(ag, "String")) | |
122 | 132 | then { | |
123 | - | let | |
124 | - | addressFromStringValue( | |
133 | + | let ah = ag | |
134 | + | addressFromStringValue(ah) | |
125 | 135 | } | |
126 | 136 | else this | |
127 | 137 | } | |
128 | 138 | ||
129 | 139 | ||
130 | - | func | |
131 | - | let | |
132 | - | let | |
133 | - | if ($isInstanceOf( | |
140 | + | func ai () = { | |
141 | + | let aj = af() | |
142 | + | let ag = getString(aj, ad()) | |
143 | + | if ($isInstanceOf(ag, "String")) | |
134 | 144 | then { | |
135 | - | let | |
136 | - | fromBase58String( | |
145 | + | let ah = ag | |
146 | + | fromBase58String(ah) | |
137 | 147 | } | |
138 | - | else if ($isInstanceOf( | |
148 | + | else if ($isInstanceOf(ag, "Unit")) | |
139 | 149 | then unit | |
140 | 150 | else throw("Match error") | |
141 | 151 | } | |
142 | 152 | ||
143 | 153 | ||
144 | - | func | |
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
154 | + | func ak (al) = { | |
155 | + | let am = d("Permission denied") | |
156 | + | let ag = ai() | |
157 | + | if ($isInstanceOf(ag, "ByteVector")) | |
148 | 158 | then { | |
149 | - | let | |
150 | - | if (( | |
159 | + | let an = ag | |
160 | + | if ((al.callerPublicKey == an)) | |
151 | 161 | then true | |
152 | - | else | |
162 | + | else am | |
153 | 163 | } | |
154 | - | else if ($isInstanceOf( | |
155 | - | then if (( | |
164 | + | else if ($isInstanceOf(ag, "Unit")) | |
165 | + | then if ((al.caller == this)) | |
156 | 166 | then true | |
157 | - | else | |
167 | + | else am | |
158 | 168 | else throw("Match error") | |
159 | 169 | } | |
160 | 170 | ||
161 | 171 | ||
162 | - | @Callable( | |
163 | - | func constructor ( | |
164 | - | let | |
165 | - | if (( | |
166 | - | then [IntegerEntry( | |
172 | + | @Callable(al) | |
173 | + | func constructor (ao,ap,aq,ar,as,at,au) = { | |
174 | + | let av = ak(al) | |
175 | + | if ((av == av)) | |
176 | + | then [IntegerEntry(Q(at, ar), ap), IntegerEntry(P(), ap), IntegerEntry(U(at, ar), aq), IntegerEntry(T(), aq), IntegerEntry(V(), ar), IntegerEntry(W(), as), IntegerEntry(X(), (ar + as)), StringEntry(h(), ao), StringEntry(O(), ("%s__" + au))] | |
167 | 177 | else throw("Strict value is not equal to itself.") | |
168 | 178 | } | |
169 | 179 | ||
170 | 180 | ||
171 | 181 | ||
172 | - | @Callable( | |
173 | - | func constructorV2 ( | |
174 | - | let | |
175 | - | if (( | |
176 | - | then $Tuple2([StringEntry(i, | |
182 | + | @Callable(al) | |
183 | + | func constructorV2 (aw) = { | |
184 | + | let av = ak(al) | |
185 | + | if ((av == av)) | |
186 | + | then $Tuple2([StringEntry(i, aw)], unit) | |
177 | 187 | else throw("Strict value is not equal to itself.") | |
178 | 188 | } | |
179 | 189 | ||
180 | 190 | ||
181 | 191 | ||
182 | - | @Callable( | |
183 | - | func emit ( | |
192 | + | @Callable(al) | |
193 | + | func emit (ax) = if ((0 >= ax)) | |
184 | 194 | then $Tuple2(nil, nil) | |
185 | 195 | else { | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | if (if (( | |
192 | - | then ( | |
196 | + | let ay = F() | |
197 | + | let K = H(ay) | |
198 | + | let az = M(K) | |
199 | + | let aA = N(K) | |
200 | + | let aB = al.caller | |
201 | + | if (if ((aB != az)) | |
202 | + | then (aB != aA) | |
193 | 203 | else false) | |
194 | 204 | then d("permissions denied") | |
195 | 205 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | $Tuple2([ScriptTransfer(ax, | |
206 | + | let au = split(e(this, O()), a)[1] | |
207 | + | let aC = fromBase58String(au) | |
208 | + | $Tuple2([ScriptTransfer(aB, ax, aC)], [aC]) | |
199 | 209 | } | |
200 | 210 | } | |
201 | 211 | ||
202 | 212 | ||
203 | 213 | ||
204 | - | @Callable( | |
214 | + | @Callable(al) | |
205 | 215 | func burn () = { | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | if ((size( | |
216 | + | let ay = F() | |
217 | + | let K = H(ay) | |
218 | + | let aD = J(K) | |
219 | + | if ((size(al.payments) != 1)) | |
210 | 220 | then d("exact one payment is allowed") | |
211 | 221 | else { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | if (( | |
222 | + | let aE = al.payments[0] | |
223 | + | let aF = value(aE.assetId) | |
224 | + | let aG = aE.amount | |
225 | + | let aC = fromBase58String(split(e(this, O()), a)[1]) | |
226 | + | if ((aF != aC)) | |
217 | 227 | then d("invalid wxAssetId is passed") | |
218 | - | else if (!(containsElement([ | |
228 | + | else if (!(containsElement([aD, m, n, o], al.caller))) | |
219 | 229 | then d("permissions denied") | |
220 | - | else [Burn( | |
230 | + | else [Burn(aF, aG), StringEntry(("%s%s%s__history__burn__" + toBase58String(al.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aG)], a))] | |
221 | 231 | } | |
222 | 232 | } | |
223 | 233 | ||
224 | 234 | ||
225 | 235 | ||
226 | - | @Callable(ah) | |
227 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
236 | + | @Callable(al) | |
237 | + | func gwxHoldersRewardUpdate () = { | |
238 | + | let ay = F() | |
239 | + | let K = H(ay) | |
240 | + | let aA = N(K) | |
241 | + | let av = if ((al.caller == aA)) | |
242 | + | then true | |
243 | + | else ak(al) | |
244 | + | if ((av == av)) | |
245 | + | then { | |
246 | + | let aH = valueOrElse(getInteger(ab()), 0) | |
247 | + | let aI = valueOrElse(getInteger(ac()), aH) | |
248 | + | let aJ = (aH != aI) | |
249 | + | let aK = if (aJ) | |
250 | + | then [IntegerEntry(ab(), aI), DeleteEntry(ac())] | |
251 | + | else nil | |
252 | + | $Tuple2(aK, aJ) | |
253 | + | } | |
254 | + | else throw("Strict value is not equal to itself.") | |
255 | + | } | |
228 | 256 | ||
229 | 257 | ||
230 | - | @Verifier(aD) | |
231 | - | func aE () = { | |
232 | - | let aF = { | |
233 | - | let ac = ae() | |
234 | - | if ($isInstanceOf(ac, "ByteVector")) | |
258 | + | ||
259 | + | @Callable(al) | |
260 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, aa) | |
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | @Callable(al) | |
265 | + | func changeRatePerBlockINTERNAL (aL) = { | |
266 | + | let aM = if ((al.caller == this)) | |
267 | + | then true | |
268 | + | else d("should be invoked internally") | |
269 | + | if ((aM == aM)) | |
270 | + | then { | |
271 | + | let aN = { | |
272 | + | let ag = blockInfoByHeight(height) | |
273 | + | if ($isInstanceOf(ag, "BlockInfo")) | |
274 | + | then { | |
275 | + | let aO = ag | |
276 | + | aO.timestamp | |
277 | + | } | |
278 | + | else d("BlockInfo.timestamp error") | |
279 | + | } | |
280 | + | [IntegerEntry(U(aN, height), aL), IntegerEntry(T(), aL)] | |
281 | + | } | |
282 | + | else throw("Strict value is not equal to itself.") | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | @Callable(al) | |
288 | + | func changeRatePerBlock (aL) = { | |
289 | + | let aM = if (if ((al.caller == p)) | |
290 | + | then true | |
291 | + | else ak(al)) | |
292 | + | then true | |
293 | + | else d("should be invoked by votingEmissionRateContract") | |
294 | + | if ((aM == aM)) | |
295 | + | then { | |
296 | + | let ay = F() | |
297 | + | let K = H(ay) | |
298 | + | let aD = J(K) | |
299 | + | let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil) | |
300 | + | if ((aP == aP)) | |
301 | + | then nil | |
302 | + | else throw("Strict value is not equal to itself.") | |
303 | + | } | |
304 | + | else throw("Strict value is not equal to itself.") | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | @Verifier(aQ) | |
309 | + | func aR () = { | |
310 | + | let aS = { | |
311 | + | let ag = ai() | |
312 | + | if ($isInstanceOf(ag, "ByteVector")) | |
235 | 313 | then { | |
236 | - | let | |
237 | - | | |
314 | + | let an = ag | |
315 | + | an | |
238 | 316 | } | |
239 | - | else if ($isInstanceOf( | |
240 | - | then | |
317 | + | else if ($isInstanceOf(ag, "Unit")) | |
318 | + | then aQ.senderPublicKey | |
241 | 319 | else throw("Match error") | |
242 | 320 | } | |
243 | - | sigVerify( | |
321 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aS) | |
244 | 322 | } | |
245 | 323 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b (c) = makeString(["emission.ride:", toString(this), c], " ") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func d (c) = throw(b(c)) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func e (f,g) = valueOrErrorMessage(getString(f, g), b((("mandatory this." + g) + " is not defined"))) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func h () = "%s%s__config__factoryAddress" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | let i = "%s%s__config__votingVerifiedContract" | |
19 | 19 | ||
20 | 20 | let j = "%s%s__config__votingEmissionCandidateContract" | |
21 | 21 | ||
22 | 22 | let k = "%s%s__config__userPoolsContract" | |
23 | 23 | ||
24 | - | let l = | |
24 | + | let l = "%s%s__config__votingEmissionRateContract" | |
25 | 25 | ||
26 | - | let m = addressFromStringValue(e(this, | |
26 | + | let m = addressFromStringValue(e(this, i)) | |
27 | 27 | ||
28 | - | let n = addressFromStringValue(e(this, | |
28 | + | let n = addressFromStringValue(e(this, j)) | |
29 | 29 | ||
30 | - | let o = | |
30 | + | let o = addressFromStringValue(e(this, k)) | |
31 | 31 | ||
32 | - | let p = | |
32 | + | let p = addressFromStringValue(e(this, l)) | |
33 | 33 | ||
34 | - | let q = | |
34 | + | let q = 1 | |
35 | 35 | ||
36 | - | let r = | |
36 | + | let r = 2 | |
37 | 37 | ||
38 | - | let s = | |
38 | + | let s = 3 | |
39 | 39 | ||
40 | - | let t = | |
40 | + | let t = 4 | |
41 | 41 | ||
42 | - | let u = | |
42 | + | let u = 5 | |
43 | 43 | ||
44 | - | let v = | |
44 | + | let v = 6 | |
45 | 45 | ||
46 | - | func w () = "%s__factoryConfig" | |
46 | + | let w = 7 | |
47 | + | ||
48 | + | let x = 10 | |
49 | + | ||
50 | + | func y () = "%s__factoryConfig" | |
47 | 51 | ||
48 | 52 | ||
49 | - | func | |
53 | + | func z (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a) | |
50 | 54 | ||
51 | 55 | ||
52 | - | func | |
56 | + | func B () = "%s__lpTokensList" | |
53 | 57 | ||
54 | 58 | ||
55 | - | func | |
59 | + | func C (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a) | |
56 | 60 | ||
57 | 61 | ||
58 | - | func | |
62 | + | func D (E) = makeString(["%s%s", "poolWeight", E], a) | |
59 | 63 | ||
60 | 64 | ||
61 | - | func | |
65 | + | func F () = addressFromStringValue(e(this, h())) | |
62 | 66 | ||
63 | 67 | ||
64 | - | func | |
68 | + | func G () = split(valueOrElse(getString(F(), B()), ""), a) | |
65 | 69 | ||
66 | 70 | ||
67 | - | func | |
71 | + | func H (I) = split(e(I, y()), a) | |
68 | 72 | ||
69 | 73 | ||
70 | - | func | |
74 | + | func J (K) = addressFromStringValue(K[r]) | |
71 | 75 | ||
72 | 76 | ||
73 | - | func | |
77 | + | func L (K) = addressFromStringValue(K[u]) | |
74 | 78 | ||
75 | 79 | ||
76 | - | func | |
80 | + | func M (K) = addressFromStringValue(K[q]) | |
77 | 81 | ||
78 | 82 | ||
79 | - | func | |
83 | + | func N (K) = addressFromStringValue(K[x]) | |
80 | 84 | ||
81 | 85 | ||
82 | - | func | |
86 | + | func O () = "%s__config" | |
83 | 87 | ||
84 | 88 | ||
85 | - | func | |
89 | + | func P () = "%s%s__ratePerBlockMax__current" | |
86 | 90 | ||
87 | 91 | ||
88 | - | func | |
92 | + | func Q (R,S) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(R), toString(S)], a) | |
89 | 93 | ||
90 | 94 | ||
91 | - | func | |
95 | + | func T () = "%s%s__ratePerBlock__current" | |
92 | 96 | ||
93 | 97 | ||
94 | - | func | |
98 | + | func U (R,S) = makeString(["%s%s%d%d__ratePerBlock__start", toString(R), toString(S)], a) | |
95 | 99 | ||
96 | 100 | ||
97 | - | func | |
101 | + | func V () = "%s%s__emission__startBlock" | |
98 | 102 | ||
99 | 103 | ||
100 | - | func | |
104 | + | func W () = "%s%s__emission__duration" | |
101 | 105 | ||
102 | 106 | ||
103 | - | func | |
107 | + | func X () = "%s%s__emission__endBlock" | |
104 | 108 | ||
105 | 109 | ||
106 | - | func | |
110 | + | func Y () = "%s__boostCoeff" | |
107 | 111 | ||
108 | 112 | ||
109 | - | let | |
113 | + | let Z = 3 | |
110 | 114 | ||
111 | - | let | |
115 | + | let aa = valueOrElse(getInteger(this, Y()), Z) | |
112 | 116 | ||
113 | - | func | |
117 | + | func ab () = "%s%s__gwxHoldersReward__current" | |
114 | 118 | ||
115 | 119 | ||
116 | - | func | |
120 | + | func ac () = "%s%s__gwxHoldersReward__next" | |
117 | 121 | ||
118 | 122 | ||
119 | - | func ab () = { | |
120 | - | let ac = getString(aa()) | |
121 | - | if ($isInstanceOf(ac, "String")) | |
123 | + | func ad () = "%s__managerPublicKey" | |
124 | + | ||
125 | + | ||
126 | + | func ae () = "%s__managerVaultAddress" | |
127 | + | ||
128 | + | ||
129 | + | func af () = { | |
130 | + | let ag = getString(ae()) | |
131 | + | if ($isInstanceOf(ag, "String")) | |
122 | 132 | then { | |
123 | - | let | |
124 | - | addressFromStringValue( | |
133 | + | let ah = ag | |
134 | + | addressFromStringValue(ah) | |
125 | 135 | } | |
126 | 136 | else this | |
127 | 137 | } | |
128 | 138 | ||
129 | 139 | ||
130 | - | func | |
131 | - | let | |
132 | - | let | |
133 | - | if ($isInstanceOf( | |
140 | + | func ai () = { | |
141 | + | let aj = af() | |
142 | + | let ag = getString(aj, ad()) | |
143 | + | if ($isInstanceOf(ag, "String")) | |
134 | 144 | then { | |
135 | - | let | |
136 | - | fromBase58String( | |
145 | + | let ah = ag | |
146 | + | fromBase58String(ah) | |
137 | 147 | } | |
138 | - | else if ($isInstanceOf( | |
148 | + | else if ($isInstanceOf(ag, "Unit")) | |
139 | 149 | then unit | |
140 | 150 | else throw("Match error") | |
141 | 151 | } | |
142 | 152 | ||
143 | 153 | ||
144 | - | func | |
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
154 | + | func ak (al) = { | |
155 | + | let am = d("Permission denied") | |
156 | + | let ag = ai() | |
157 | + | if ($isInstanceOf(ag, "ByteVector")) | |
148 | 158 | then { | |
149 | - | let | |
150 | - | if (( | |
159 | + | let an = ag | |
160 | + | if ((al.callerPublicKey == an)) | |
151 | 161 | then true | |
152 | - | else | |
162 | + | else am | |
153 | 163 | } | |
154 | - | else if ($isInstanceOf( | |
155 | - | then if (( | |
164 | + | else if ($isInstanceOf(ag, "Unit")) | |
165 | + | then if ((al.caller == this)) | |
156 | 166 | then true | |
157 | - | else | |
167 | + | else am | |
158 | 168 | else throw("Match error") | |
159 | 169 | } | |
160 | 170 | ||
161 | 171 | ||
162 | - | @Callable( | |
163 | - | func constructor ( | |
164 | - | let | |
165 | - | if (( | |
166 | - | then [IntegerEntry( | |
172 | + | @Callable(al) | |
173 | + | func constructor (ao,ap,aq,ar,as,at,au) = { | |
174 | + | let av = ak(al) | |
175 | + | if ((av == av)) | |
176 | + | then [IntegerEntry(Q(at, ar), ap), IntegerEntry(P(), ap), IntegerEntry(U(at, ar), aq), IntegerEntry(T(), aq), IntegerEntry(V(), ar), IntegerEntry(W(), as), IntegerEntry(X(), (ar + as)), StringEntry(h(), ao), StringEntry(O(), ("%s__" + au))] | |
167 | 177 | else throw("Strict value is not equal to itself.") | |
168 | 178 | } | |
169 | 179 | ||
170 | 180 | ||
171 | 181 | ||
172 | - | @Callable( | |
173 | - | func constructorV2 ( | |
174 | - | let | |
175 | - | if (( | |
176 | - | then $Tuple2([StringEntry(i, | |
182 | + | @Callable(al) | |
183 | + | func constructorV2 (aw) = { | |
184 | + | let av = ak(al) | |
185 | + | if ((av == av)) | |
186 | + | then $Tuple2([StringEntry(i, aw)], unit) | |
177 | 187 | else throw("Strict value is not equal to itself.") | |
178 | 188 | } | |
179 | 189 | ||
180 | 190 | ||
181 | 191 | ||
182 | - | @Callable( | |
183 | - | func emit ( | |
192 | + | @Callable(al) | |
193 | + | func emit (ax) = if ((0 >= ax)) | |
184 | 194 | then $Tuple2(nil, nil) | |
185 | 195 | else { | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | if (if (( | |
192 | - | then ( | |
196 | + | let ay = F() | |
197 | + | let K = H(ay) | |
198 | + | let az = M(K) | |
199 | + | let aA = N(K) | |
200 | + | let aB = al.caller | |
201 | + | if (if ((aB != az)) | |
202 | + | then (aB != aA) | |
193 | 203 | else false) | |
194 | 204 | then d("permissions denied") | |
195 | 205 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | $Tuple2([ScriptTransfer(ax, | |
206 | + | let au = split(e(this, O()), a)[1] | |
207 | + | let aC = fromBase58String(au) | |
208 | + | $Tuple2([ScriptTransfer(aB, ax, aC)], [aC]) | |
199 | 209 | } | |
200 | 210 | } | |
201 | 211 | ||
202 | 212 | ||
203 | 213 | ||
204 | - | @Callable( | |
214 | + | @Callable(al) | |
205 | 215 | func burn () = { | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | if ((size( | |
216 | + | let ay = F() | |
217 | + | let K = H(ay) | |
218 | + | let aD = J(K) | |
219 | + | if ((size(al.payments) != 1)) | |
210 | 220 | then d("exact one payment is allowed") | |
211 | 221 | else { | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | if (( | |
222 | + | let aE = al.payments[0] | |
223 | + | let aF = value(aE.assetId) | |
224 | + | let aG = aE.amount | |
225 | + | let aC = fromBase58String(split(e(this, O()), a)[1]) | |
226 | + | if ((aF != aC)) | |
217 | 227 | then d("invalid wxAssetId is passed") | |
218 | - | else if (!(containsElement([ | |
228 | + | else if (!(containsElement([aD, m, n, o], al.caller))) | |
219 | 229 | then d("permissions denied") | |
220 | - | else [Burn( | |
230 | + | else [Burn(aF, aG), StringEntry(("%s%s%s__history__burn__" + toBase58String(al.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aG)], a))] | |
221 | 231 | } | |
222 | 232 | } | |
223 | 233 | ||
224 | 234 | ||
225 | 235 | ||
226 | - | @Callable(ah) | |
227 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
236 | + | @Callable(al) | |
237 | + | func gwxHoldersRewardUpdate () = { | |
238 | + | let ay = F() | |
239 | + | let K = H(ay) | |
240 | + | let aA = N(K) | |
241 | + | let av = if ((al.caller == aA)) | |
242 | + | then true | |
243 | + | else ak(al) | |
244 | + | if ((av == av)) | |
245 | + | then { | |
246 | + | let aH = valueOrElse(getInteger(ab()), 0) | |
247 | + | let aI = valueOrElse(getInteger(ac()), aH) | |
248 | + | let aJ = (aH != aI) | |
249 | + | let aK = if (aJ) | |
250 | + | then [IntegerEntry(ab(), aI), DeleteEntry(ac())] | |
251 | + | else nil | |
252 | + | $Tuple2(aK, aJ) | |
253 | + | } | |
254 | + | else throw("Strict value is not equal to itself.") | |
255 | + | } | |
228 | 256 | ||
229 | 257 | ||
230 | - | @Verifier(aD) | |
231 | - | func aE () = { | |
232 | - | let aF = { | |
233 | - | let ac = ae() | |
234 | - | if ($isInstanceOf(ac, "ByteVector")) | |
258 | + | ||
259 | + | @Callable(al) | |
260 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, aa) | |
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | @Callable(al) | |
265 | + | func changeRatePerBlockINTERNAL (aL) = { | |
266 | + | let aM = if ((al.caller == this)) | |
267 | + | then true | |
268 | + | else d("should be invoked internally") | |
269 | + | if ((aM == aM)) | |
270 | + | then { | |
271 | + | let aN = { | |
272 | + | let ag = blockInfoByHeight(height) | |
273 | + | if ($isInstanceOf(ag, "BlockInfo")) | |
274 | + | then { | |
275 | + | let aO = ag | |
276 | + | aO.timestamp | |
277 | + | } | |
278 | + | else d("BlockInfo.timestamp error") | |
279 | + | } | |
280 | + | [IntegerEntry(U(aN, height), aL), IntegerEntry(T(), aL)] | |
281 | + | } | |
282 | + | else throw("Strict value is not equal to itself.") | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | @Callable(al) | |
288 | + | func changeRatePerBlock (aL) = { | |
289 | + | let aM = if (if ((al.caller == p)) | |
290 | + | then true | |
291 | + | else ak(al)) | |
292 | + | then true | |
293 | + | else d("should be invoked by votingEmissionRateContract") | |
294 | + | if ((aM == aM)) | |
295 | + | then { | |
296 | + | let ay = F() | |
297 | + | let K = H(ay) | |
298 | + | let aD = J(K) | |
299 | + | let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil) | |
300 | + | if ((aP == aP)) | |
301 | + | then nil | |
302 | + | else throw("Strict value is not equal to itself.") | |
303 | + | } | |
304 | + | else throw("Strict value is not equal to itself.") | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | @Verifier(aQ) | |
309 | + | func aR () = { | |
310 | + | let aS = { | |
311 | + | let ag = ai() | |
312 | + | if ($isInstanceOf(ag, "ByteVector")) | |
235 | 313 | then { | |
236 | - | let | |
237 | - | | |
314 | + | let an = ag | |
315 | + | an | |
238 | 316 | } | |
239 | - | else if ($isInstanceOf( | |
240 | - | then | |
317 | + | else if ($isInstanceOf(ag, "Unit")) | |
318 | + | then aQ.senderPublicKey | |
241 | 319 | else throw("Match error") | |
242 | 320 | } | |
243 | - | sigVerify( | |
321 | + | sigVerify(aQ.bodyBytes, aQ.proofs[0], aS) | |
244 | 322 | } | |
245 | 323 |
github/deemru/w8io/169f3d6 99.60 ms ◑