tx · AgGZW6MSatzv6iQWTaWBqxsj7dyLLwqGHqg2wPG5nP5F

3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA:  -0.01300000 Waves

2023.05.22 10:07 [2588858] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves

{ "type": 13, "id": "AgGZW6MSatzv6iQWTaWBqxsj7dyLLwqGHqg2wPG5nP5F", "fee": 1300000, "feeAssetId": null, "timestamp": 1684739242959, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "5jCScZRacKMD2yQp8Fs5dvNTzr6qn2eKrxecDrxF8wvgMQp3rtYZ2YwB5haHdbCS5BRiGp88fEfqnRzyEzbfACMn" ], "script": "base64:BgKJDggCEgkKBwgBAQEBAQgSAwoBCBIDCgEBEgASABIAEgMKAQESAwoBASIDU0VQIgd3cmFwRXJyIgNtc2ciCHRocm93RXJyIg9nZXRTdHJpbmdPckZhaWwiB2FkZHJlc3MiA2tleSIRa2V5RmFjdG9yeUFkZHJlc3MiGWtleVZvdGluZ1ZlcmlmaWVkQ29udHJhY3QiImtleVZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiFGtleVVzZXJQb29sc0NvbnRyYWN0Ih1rZXlWb3RpbmdFbWlzc2lvblJhdGVDb250cmFjdCIWdm90aW5nVmVyaWZpZWRDb250cmFjdCIfdm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIRdXNlclBvb2xzQ29udHJhY3QiGnZvdGluZ0VtaXNzaW9uUmF0ZUNvbnRyYWN0IhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0b3J5Q2Z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YXkEAmFECQEBSgEFAUsEAmFQCQD8BwQFBHRoaXMCGmNoYW5nZVJhdGVQZXJCbG9ja0lOVEVSTkFMCQDMCAIFAmFMBQNuaWwFA25pbAMJAAACBQJhUAUCYVAEAmFRCQD8BwQFAmFEAhVvbkJvb3N0RW1pc3Npb25VcGRhdGUFA25pbAUDbmlsAwkAAAIFAmFRBQJhUQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJhUgECYVMABAJhVAQCYWcJAQJhaQADCQABAgUCYWcCCkJ5dGVWZWN0b3IEAmFuBQJhZwUCYW4DCQABAgUCYWcCBFVuaXQIBQJhUg9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCYVIJYm9keUJ5dGVzCQCRAwIIBQJhUgZwcm9vZnMAAAUCYVTHIpVx", "height": 2588858, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G2Zj4b9i7UYRfpZiDww9hLhskkgkarz92A7arSiWW2hu Next: 7KmV8ToB9LfirUM3VZoz2ioATBBNs5vtAkeEkEzVgxdN Diff:
OldNewDifferences
262262
263263
264264 @Callable(al)
265-func changeRatePerBlock (aL) = {
266- let aM = if ((al.caller == p))
265+func changeRatePerBlockINTERNAL (aL) = {
266+ let aM = if ((al.caller == this))
267267 then true
268268 else d("should be invoked internally")
269269 if ((aM == aM))
283283 }
284284
285285
286-@Verifier(aP)
287-func aQ () = {
288- let aR = {
286+
287+@Callable(al)
288+func changeRatePerBlock (aL) = {
289+ let aM = if ((al.caller == p))
290+ then true
291+ else d("should be invoked by votingEmissionRateContract")
292+ if ((aM == aM))
293+ then {
294+ let ay = F()
295+ let K = H(ay)
296+ let aD = J(K)
297+ let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil)
298+ if ((aP == aP))
299+ then {
300+ let aQ = invoke(aD, "onBoostEmissionUpdate", nil, nil)
301+ if ((aQ == aQ))
302+ then nil
303+ else throw("Strict value is not equal to itself.")
304+ }
305+ else throw("Strict value is not equal to itself.")
306+ }
307+ else throw("Strict value is not equal to itself.")
308+ }
309+
310+
311+@Verifier(aR)
312+func aS () = {
313+ let aT = {
289314 let ag = ai()
290315 if ($isInstanceOf(ag, "ByteVector"))
291316 then {
293318 an
294319 }
295320 else if ($isInstanceOf(ag, "Unit"))
296- then aP.senderPublicKey
321+ then aR.senderPublicKey
297322 else throw("Match error")
298323 }
299- sigVerify(aP.bodyBytes, aP.proofs[0], aR)
324+ sigVerify(aR.bodyBytes, aR.proofs[0], aT)
300325 }
301326
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 func b (c) = makeString(["emission.ride:", toString(this), c], " ")
77
88
99 func d (c) = throw(b(c))
1010
1111
1212 func e (f,g) = valueOrErrorMessage(getString(f, g), b((("mandatory this." + g) + " is not defined")))
1313
1414
1515 func h () = "%s%s__config__factoryAddress"
1616
1717
1818 let i = "%s%s__config__votingVerifiedContract"
1919
2020 let j = "%s%s__config__votingEmissionCandidateContract"
2121
2222 let k = "%s%s__config__userPoolsContract"
2323
2424 let l = "%s%s__config__votingEmissionRateContract"
2525
2626 let m = addressFromStringValue(e(this, i))
2727
2828 let n = addressFromStringValue(e(this, j))
2929
3030 let o = addressFromStringValue(e(this, k))
3131
3232 let p = addressFromStringValue(e(this, l))
3333
3434 let q = 1
3535
3636 let r = 2
3737
3838 let s = 3
3939
4040 let t = 4
4141
4242 let u = 5
4343
4444 let v = 6
4545
4646 let w = 7
4747
4848 let x = 10
4949
5050 func y () = "%s__factoryConfig"
5151
5252
5353 func z (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a)
5454
5555
5656 func B () = "%s__lpTokensList"
5757
5858
5959 func C (A) = makeString(["%s%s%s", A, "mappings__lpAsset2PoolContract"], a)
6060
6161
6262 func D (E) = makeString(["%s%s", "poolWeight", E], a)
6363
6464
6565 func F () = addressFromStringValue(e(this, h()))
6666
6767
6868 func G () = split(valueOrElse(getString(F(), B()), ""), a)
6969
7070
7171 func H (I) = split(e(I, y()), a)
7272
7373
7474 func J (K) = addressFromStringValue(K[r])
7575
7676
7777 func L (K) = addressFromStringValue(K[u])
7878
7979
8080 func M (K) = addressFromStringValue(K[q])
8181
8282
8383 func N (K) = addressFromStringValue(K[x])
8484
8585
8686 func O () = "%s__config"
8787
8888
8989 func P () = "%s%s__ratePerBlockMax__current"
9090
9191
9292 func Q (R,S) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(R), toString(S)], a)
9393
9494
9595 func T () = "%s%s__ratePerBlock__current"
9696
9797
9898 func U (R,S) = makeString(["%s%s%d%d__ratePerBlock__start", toString(R), toString(S)], a)
9999
100100
101101 func V () = "%s%s__emission__startBlock"
102102
103103
104104 func W () = "%s%s__emission__duration"
105105
106106
107107 func X () = "%s%s__emission__endBlock"
108108
109109
110110 func Y () = "%s__boostCoeff"
111111
112112
113113 let Z = 3
114114
115115 let aa = valueOrElse(getInteger(this, Y()), Z)
116116
117117 func ab () = "%s%s__gwxHoldersReward__current"
118118
119119
120120 func ac () = "%s%s__gwxHoldersReward__next"
121121
122122
123123 func ad () = "%s__managerPublicKey"
124124
125125
126126 func ae () = "%s__managerVaultAddress"
127127
128128
129129 func af () = {
130130 let ag = getString(ae())
131131 if ($isInstanceOf(ag, "String"))
132132 then {
133133 let ah = ag
134134 addressFromStringValue(ah)
135135 }
136136 else this
137137 }
138138
139139
140140 func ai () = {
141141 let aj = af()
142142 let ag = getString(aj, ad())
143143 if ($isInstanceOf(ag, "String"))
144144 then {
145145 let ah = ag
146146 fromBase58String(ah)
147147 }
148148 else if ($isInstanceOf(ag, "Unit"))
149149 then unit
150150 else throw("Match error")
151151 }
152152
153153
154154 func ak (al) = {
155155 let am = d("Permission denied")
156156 let ag = ai()
157157 if ($isInstanceOf(ag, "ByteVector"))
158158 then {
159159 let an = ag
160160 if ((al.callerPublicKey == an))
161161 then true
162162 else am
163163 }
164164 else if ($isInstanceOf(ag, "Unit"))
165165 then if ((al.caller == this))
166166 then true
167167 else am
168168 else throw("Match error")
169169 }
170170
171171
172172 @Callable(al)
173173 func constructor (ao,ap,aq,ar,as,at,au) = {
174174 let av = ak(al)
175175 if ((av == av))
176176 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))]
177177 else throw("Strict value is not equal to itself.")
178178 }
179179
180180
181181
182182 @Callable(al)
183183 func constructorV2 (aw) = {
184184 let av = ak(al)
185185 if ((av == av))
186186 then $Tuple2([StringEntry(i, aw)], unit)
187187 else throw("Strict value is not equal to itself.")
188188 }
189189
190190
191191
192192 @Callable(al)
193193 func emit (ax) = if ((0 >= ax))
194194 then $Tuple2(nil, nil)
195195 else {
196196 let ay = F()
197197 let K = H(ay)
198198 let az = M(K)
199199 let aA = N(K)
200200 let aB = al.caller
201201 if (if ((aB != az))
202202 then (aB != aA)
203203 else false)
204204 then d("permissions denied")
205205 else {
206206 let au = split(e(this, O()), a)[1]
207207 let aC = fromBase58String(au)
208208 $Tuple2([ScriptTransfer(aB, ax, aC)], [aC])
209209 }
210210 }
211211
212212
213213
214214 @Callable(al)
215215 func burn () = {
216216 let ay = F()
217217 let K = H(ay)
218218 let aD = J(K)
219219 if ((size(al.payments) != 1))
220220 then d("exact one payment is allowed")
221221 else {
222222 let aE = al.payments[0]
223223 let aF = value(aE.assetId)
224224 let aG = aE.amount
225225 let aC = fromBase58String(split(e(this, O()), a)[1])
226226 if ((aF != aC))
227227 then d("invalid wxAssetId is passed")
228228 else if (!(containsElement([aD, m, n, o], al.caller)))
229229 then d("permissions denied")
230230 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))]
231231 }
232232 }
233233
234234
235235
236236 @Callable(al)
237237 func gwxHoldersRewardUpdate () = {
238238 let ay = F()
239239 let K = H(ay)
240240 let aA = N(K)
241241 let av = if ((al.caller == aA))
242242 then true
243243 else ak(al)
244244 if ((av == av))
245245 then {
246246 let aH = valueOrElse(getInteger(ab()), 0)
247247 let aI = valueOrElse(getInteger(ac()), aH)
248248 let aJ = (aH != aI)
249249 let aK = if (aJ)
250250 then [IntegerEntry(ab(), aI), DeleteEntry(ac())]
251251 else nil
252252 $Tuple2(aK, aJ)
253253 }
254254 else throw("Strict value is not equal to itself.")
255255 }
256256
257257
258258
259259 @Callable(al)
260260 func getBoostCoeffREADONLY () = $Tuple2(nil, aa)
261261
262262
263263
264264 @Callable(al)
265-func changeRatePerBlock (aL) = {
266- let aM = if ((al.caller == p))
265+func changeRatePerBlockINTERNAL (aL) = {
266+ let aM = if ((al.caller == this))
267267 then true
268268 else d("should be invoked internally")
269269 if ((aM == aM))
270270 then {
271271 let aN = {
272272 let ag = blockInfoByHeight(height)
273273 if ($isInstanceOf(ag, "BlockInfo"))
274274 then {
275275 let aO = ag
276276 aO.timestamp
277277 }
278278 else d("BlockInfo.timestamp error")
279279 }
280280 [IntegerEntry(U(aN, height), aL), IntegerEntry(T(), aL)]
281281 }
282282 else throw("Strict value is not equal to itself.")
283283 }
284284
285285
286-@Verifier(aP)
287-func aQ () = {
288- let aR = {
286+
287+@Callable(al)
288+func changeRatePerBlock (aL) = {
289+ let aM = if ((al.caller == p))
290+ then true
291+ else d("should be invoked by votingEmissionRateContract")
292+ if ((aM == aM))
293+ then {
294+ let ay = F()
295+ let K = H(ay)
296+ let aD = J(K)
297+ let aP = invoke(this, "changeRatePerBlockINTERNAL", [aL], nil)
298+ if ((aP == aP))
299+ then {
300+ let aQ = invoke(aD, "onBoostEmissionUpdate", nil, nil)
301+ if ((aQ == aQ))
302+ then nil
303+ else throw("Strict value is not equal to itself.")
304+ }
305+ else throw("Strict value is not equal to itself.")
306+ }
307+ else throw("Strict value is not equal to itself.")
308+ }
309+
310+
311+@Verifier(aR)
312+func aS () = {
313+ let aT = {
289314 let ag = ai()
290315 if ($isInstanceOf(ag, "ByteVector"))
291316 then {
292317 let an = ag
293318 an
294319 }
295320 else if ($isInstanceOf(ag, "Unit"))
296- then aP.senderPublicKey
321+ then aR.senderPublicKey
297322 else throw("Match error")
298323 }
299- sigVerify(aP.bodyBytes, aP.proofs[0], aR)
324+ sigVerify(aR.bodyBytes, aR.proofs[0], aT)
300325 }
301326

github/deemru/w8io/169f3d6 
45.88 ms