tx · 2r1pMMbvY2SayHU6Q9bLG2vvKAW8Nd8Et7pK4q1eeSgY

3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA:  -0.01300000 Waves

2023.05.10 13:07 [2571648] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves

{ "type": 13, "id": "2r1pMMbvY2SayHU6Q9bLG2vvKAW8Nd8Et7pK4q1eeSgY", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713280287, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "1UvLoEGvb6tX69A6kPygnLfdTnaf3wCtBqKNnbFPobM6S9LE45i49A8LYXxSZs9ALkapdhJByQUJ7xM6xkbUi4P" ], "script": "base64:AAIFAAAAAAAABf0IAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgAiA1NFUCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIPZ2V0U3RyaW5nT3JGYWlsIgdhZGRyZXNzIgNrZXkiEWtleUZhY3RvcnlBZGRyZXNzIhlrZXlWb3RpbmdWZXJpZmllZENvbnRyYWN0IiJrZXlWb3RpbmdFbWlzc2lvbkNhbmRpZGF0ZUNvbnRyYWN0IhRrZXlVc2VyUG9vbHNDb250cmFjdCIWdm90aW5nVmVyaWZpZWRDb250cmFjdCIfdm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIRdXNlclBvb2xzQ29udHJhY3QiGElkeEZhY3RvcnlDZmdTdGFraW5nRGFwcCIZSWR4RmFjdG9yeUNmZ0Jvb3N0aW5nRGFwcCIUSWR4RmFjdG9yeUNmZ0lkb0RhcHAiFUlkeEZhY3RvcnlDZmdUZWFtRGFwcCIZSWR4RmFjdG9yeUNmZ0VtaXNzaW9uRGFwcCIVSWR4RmFjdG9yeUNmZ1Jlc3RE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 2571648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vzsiqofpS5Cj8Ny4cxoArxyzgs9jg7YRVSWb5bUC3tW Next: 9idrWeaZjmVTjCAjpG4LDD2d6okaYVXCToR5NXtFwch3 Diff:
OldNewDifferences
113113 func Z () = "%s__managerPublicKey"
114114
115115
116-func aa () = "%s__pendingManagerPublicKey"
116+func aa () = "%s__managerVaultAddress"
117117
118118
119119 func ab () = {
120- let ac = getString(Z())
120+ let ac = getString(aa())
121+ if ($isInstanceOf(ac, "String"))
122+ then {
123+ let ad = ac
124+ addressFromStringValue(ad)
125+ }
126+ else this
127+ }
128+
129+
130+func ae () = {
131+ let af = ab()
132+ let ac = getString(af, Z())
121133 if ($isInstanceOf(ac, "String"))
122134 then {
123135 let ad = ac
129141 }
130142
131143
132-func ae () = {
133- let ac = getString(aa())
134- if ($isInstanceOf(ac, "String"))
144+func ag (ah) = {
145+ let ai = d("Permission denied")
146+ let ac = ae()
147+ if ($isInstanceOf(ac, "ByteVector"))
135148 then {
136- let ad = ac
137- fromBase58String(ad)
149+ let aj = ac
150+ if ((ah.callerPublicKey == aj))
151+ then true
152+ else ai
138153 }
139154 else if ($isInstanceOf(ac, "Unit"))
140- then unit
155+ then if ((ah.caller == this))
156+ then true
157+ else ai
141158 else throw("Match error")
142159 }
143160
144161
145-func af (ag) = {
146- let ah = d("Permission denied")
147- let ac = ab()
148- if ($isInstanceOf(ac, "ByteVector"))
149- then {
150- let ai = ac
151- if ((ag.callerPublicKey == ai))
152- then true
153- else ah
154- }
155- else if ($isInstanceOf(ac, "Unit"))
156- then if ((ag.caller == this))
157- then true
158- else ah
159- else throw("Match error")
160- }
161-
162-
163-@Callable(ag)
164-func constructor (aj,ak,al,am,an,ao,ap) = {
165- let aq = af(ag)
166- if ((aq == aq))
167- then [IntegerEntry(O(ao, am), ak), IntegerEntry(N(), ak), IntegerEntry(S(ao, am), al), IntegerEntry(R(), al), IntegerEntry(T(), am), IntegerEntry(U(), an), IntegerEntry(V(), (am + an)), StringEntry(h(), aj), StringEntry(M(), ("%s__" + ap))]
162+@Callable(ah)
163+func constructor (ak,al,am,an,ao,ap,aq) = {
164+ let ar = ag(ah)
165+ if ((ar == ar))
166+ then [IntegerEntry(O(ap, an), al), IntegerEntry(N(), al), IntegerEntry(S(ap, an), am), IntegerEntry(R(), am), IntegerEntry(T(), an), IntegerEntry(U(), ao), IntegerEntry(V(), (an + ao)), StringEntry(h(), ak), StringEntry(M(), ("%s__" + aq))]
168167 else throw("Strict value is not equal to itself.")
169168 }
170169
171170
172171
173-@Callable(ag)
174-func constructorV2 (ar) = {
175- let aq = af(ag)
176- if ((aq == aq))
177- then $Tuple2([StringEntry(i, ar)], unit)
172+@Callable(ah)
173+func constructorV2 (as) = {
174+ let ar = ag(ah)
175+ if ((ar == ar))
176+ then $Tuple2([StringEntry(i, as)], unit)
178177 else throw("Strict value is not equal to itself.")
179178 }
180179
181180
182181
183-@Callable(ag)
184-func emit (as) = if ((0 >= as))
182+@Callable(ah)
183+func emit (at) = if ((0 >= at))
185184 then $Tuple2(nil, nil)
186185 else {
187- let at = D()
188- let I = F(at)
189- let au = K(I)
190- let av = L(I)
191- let aw = ag.caller
192- if (if ((aw != au))
193- then (aw != av)
186+ let au = D()
187+ let I = F(au)
188+ let av = K(I)
189+ let aw = L(I)
190+ let ax = ah.caller
191+ if (if ((ax != av))
192+ then (ax != aw)
194193 else false)
195194 then d("permissions denied")
196195 else {
197- let ap = split(e(this, M()), a)[1]
198- let ax = fromBase58String(ap)
199- $Tuple2([ScriptTransfer(aw, as, ax)], [ax])
196+ let aq = split(e(this, M()), a)[1]
197+ let ay = fromBase58String(aq)
198+ $Tuple2([ScriptTransfer(ax, at, ay)], [ay])
200199 }
201200 }
202201
203202
204203
205-@Callable(ag)
204+@Callable(ah)
206205 func burn () = {
207- let at = D()
208- let I = F(at)
209- let ay = H(I)
210- if ((size(ag.payments) != 1))
206+ let au = D()
207+ let I = F(au)
208+ let az = H(I)
209+ if ((size(ah.payments) != 1))
211210 then d("exact one payment is allowed")
212211 else {
213- let az = ag.payments[0]
214- let aA = value(az.assetId)
215- let aB = az.amount
216- let ax = fromBase58String(split(e(this, M()), a)[1])
217- if ((aA != ax))
212+ let aA = ah.payments[0]
213+ let aB = value(aA.assetId)
214+ let aC = aA.amount
215+ let ay = fromBase58String(split(e(this, M()), a)[1])
216+ if ((aB != ay))
218217 then d("invalid wxAssetId is passed")
219- else if (!(containsElement([ay, l, m, n], ag.caller)))
218+ else if (!(containsElement([az, l, m, n], ah.caller)))
220219 then d("permissions denied")
221- else [Burn(aA, aB), StringEntry(("%s%s%s__history__burn__" + toBase58String(ag.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aB)], a))]
220+ else [Burn(aB, aC), StringEntry(("%s%s%s__history__burn__" + toBase58String(ah.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aC)], a))]
222221 }
223222 }
224223
225224
226225
227-@Callable(ag)
228-func setManager (aC) = {
229- let aq = af(ag)
230- if ((aq == aq))
231- then {
232- let aD = fromBase58String(aC)
233- if ((aD == aD))
234- then [StringEntry(aa(), aC)]
235- else throw("Strict value is not equal to itself.")
236- }
237- else throw("Strict value is not equal to itself.")
238- }
239-
240-
241-
242-@Callable(ag)
243-func confirmManager () = {
244- let aE = ae()
245- let aF = if (isDefined(aE))
246- then true
247- else d("No pending manager")
248- if ((aF == aF))
249- then {
250- let aG = if ((ag.callerPublicKey == value(aE)))
251- then true
252- else d("You are not pending manager")
253- if ((aG == aG))
254- then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())]
255- else throw("Strict value is not equal to itself.")
256- }
257- else throw("Strict value is not equal to itself.")
258- }
259-
260-
261-
262-@Callable(ag)
226+@Callable(ah)
263227 func getBoostCoeffREADONLY () = $Tuple2(nil, Y)
264228
265229
266-@Verifier(aH)
267-func aI () = {
268- let aJ = {
269- let ac = ab()
230+@Verifier(aD)
231+func aE () = {
232+ let aF = {
233+ let ac = ae()
270234 if ($isInstanceOf(ac, "ByteVector"))
271235 then {
272- let ai = ac
273- ai
236+ let aj = ac
237+ aj
274238 }
275239 else if ($isInstanceOf(ac, "Unit"))
276- then aH.senderPublicKey
240+ then aD.senderPublicKey
277241 else throw("Match error")
278242 }
279- sigVerify(aH.bodyBytes, aH.proofs[0], aJ)
243+ sigVerify(aD.bodyBytes, aD.proofs[0], aF)
280244 }
281245
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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 = addressFromStringValue(e(this, i))
2525
2626 let m = addressFromStringValue(e(this, j))
2727
2828 let n = addressFromStringValue(e(this, k))
2929
3030 let o = 1
3131
3232 let p = 2
3333
3434 let q = 3
3535
3636 let r = 4
3737
3838 let s = 5
3939
4040 let t = 6
4141
4242 let u = 7
4343
4444 let v = 10
4545
4646 func w () = "%s__factoryConfig"
4747
4848
4949 func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a)
5050
5151
5252 func z () = "%s__lpTokensList"
5353
5454
5555 func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a)
5656
5757
5858 func B (C) = makeString(["%s%s", "poolWeight", C], a)
5959
6060
6161 func D () = addressFromStringValue(e(this, h()))
6262
6363
6464 func E () = split(valueOrElse(getString(D(), z()), ""), a)
6565
6666
6767 func F (G) = split(e(G, w()), a)
6868
6969
7070 func H (I) = addressFromStringValue(I[p])
7171
7272
7373 func J (I) = addressFromStringValue(I[s])
7474
7575
7676 func K (I) = addressFromStringValue(I[o])
7777
7878
7979 func L (I) = addressFromStringValue(I[v])
8080
8181
8282 func M () = "%s__config"
8383
8484
8585 func N () = "%s%s__ratePerBlockMax__current"
8686
8787
8888 func O (P,Q) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(P), toString(Q)], a)
8989
9090
9191 func R () = "%s%s__ratePerBlock__current"
9292
9393
9494 func S (P,Q) = makeString(["%s%s%d%d__ratePerBlock__start", toString(P), toString(Q)], a)
9595
9696
9797 func T () = "%s%s__emission__startBlock"
9898
9999
100100 func U () = "%s%s__emission__duration"
101101
102102
103103 func V () = "%s%s__emission__endBlock"
104104
105105
106106 func W () = "%s__boostCoeff"
107107
108108
109109 let X = 3
110110
111111 let Y = valueOrElse(getInteger(this, W()), X)
112112
113113 func Z () = "%s__managerPublicKey"
114114
115115
116-func aa () = "%s__pendingManagerPublicKey"
116+func aa () = "%s__managerVaultAddress"
117117
118118
119119 func ab () = {
120- let ac = getString(Z())
120+ let ac = getString(aa())
121+ if ($isInstanceOf(ac, "String"))
122+ then {
123+ let ad = ac
124+ addressFromStringValue(ad)
125+ }
126+ else this
127+ }
128+
129+
130+func ae () = {
131+ let af = ab()
132+ let ac = getString(af, Z())
121133 if ($isInstanceOf(ac, "String"))
122134 then {
123135 let ad = ac
124136 fromBase58String(ad)
125137 }
126138 else if ($isInstanceOf(ac, "Unit"))
127139 then unit
128140 else throw("Match error")
129141 }
130142
131143
132-func ae () = {
133- let ac = getString(aa())
134- if ($isInstanceOf(ac, "String"))
144+func ag (ah) = {
145+ let ai = d("Permission denied")
146+ let ac = ae()
147+ if ($isInstanceOf(ac, "ByteVector"))
135148 then {
136- let ad = ac
137- fromBase58String(ad)
149+ let aj = ac
150+ if ((ah.callerPublicKey == aj))
151+ then true
152+ else ai
138153 }
139154 else if ($isInstanceOf(ac, "Unit"))
140- then unit
155+ then if ((ah.caller == this))
156+ then true
157+ else ai
141158 else throw("Match error")
142159 }
143160
144161
145-func af (ag) = {
146- let ah = d("Permission denied")
147- let ac = ab()
148- if ($isInstanceOf(ac, "ByteVector"))
149- then {
150- let ai = ac
151- if ((ag.callerPublicKey == ai))
152- then true
153- else ah
154- }
155- else if ($isInstanceOf(ac, "Unit"))
156- then if ((ag.caller == this))
157- then true
158- else ah
159- else throw("Match error")
160- }
161-
162-
163-@Callable(ag)
164-func constructor (aj,ak,al,am,an,ao,ap) = {
165- let aq = af(ag)
166- if ((aq == aq))
167- then [IntegerEntry(O(ao, am), ak), IntegerEntry(N(), ak), IntegerEntry(S(ao, am), al), IntegerEntry(R(), al), IntegerEntry(T(), am), IntegerEntry(U(), an), IntegerEntry(V(), (am + an)), StringEntry(h(), aj), StringEntry(M(), ("%s__" + ap))]
162+@Callable(ah)
163+func constructor (ak,al,am,an,ao,ap,aq) = {
164+ let ar = ag(ah)
165+ if ((ar == ar))
166+ then [IntegerEntry(O(ap, an), al), IntegerEntry(N(), al), IntegerEntry(S(ap, an), am), IntegerEntry(R(), am), IntegerEntry(T(), an), IntegerEntry(U(), ao), IntegerEntry(V(), (an + ao)), StringEntry(h(), ak), StringEntry(M(), ("%s__" + aq))]
168167 else throw("Strict value is not equal to itself.")
169168 }
170169
171170
172171
173-@Callable(ag)
174-func constructorV2 (ar) = {
175- let aq = af(ag)
176- if ((aq == aq))
177- then $Tuple2([StringEntry(i, ar)], unit)
172+@Callable(ah)
173+func constructorV2 (as) = {
174+ let ar = ag(ah)
175+ if ((ar == ar))
176+ then $Tuple2([StringEntry(i, as)], unit)
178177 else throw("Strict value is not equal to itself.")
179178 }
180179
181180
182181
183-@Callable(ag)
184-func emit (as) = if ((0 >= as))
182+@Callable(ah)
183+func emit (at) = if ((0 >= at))
185184 then $Tuple2(nil, nil)
186185 else {
187- let at = D()
188- let I = F(at)
189- let au = K(I)
190- let av = L(I)
191- let aw = ag.caller
192- if (if ((aw != au))
193- then (aw != av)
186+ let au = D()
187+ let I = F(au)
188+ let av = K(I)
189+ let aw = L(I)
190+ let ax = ah.caller
191+ if (if ((ax != av))
192+ then (ax != aw)
194193 else false)
195194 then d("permissions denied")
196195 else {
197- let ap = split(e(this, M()), a)[1]
198- let ax = fromBase58String(ap)
199- $Tuple2([ScriptTransfer(aw, as, ax)], [ax])
196+ let aq = split(e(this, M()), a)[1]
197+ let ay = fromBase58String(aq)
198+ $Tuple2([ScriptTransfer(ax, at, ay)], [ay])
200199 }
201200 }
202201
203202
204203
205-@Callable(ag)
204+@Callable(ah)
206205 func burn () = {
207- let at = D()
208- let I = F(at)
209- let ay = H(I)
210- if ((size(ag.payments) != 1))
206+ let au = D()
207+ let I = F(au)
208+ let az = H(I)
209+ if ((size(ah.payments) != 1))
211210 then d("exact one payment is allowed")
212211 else {
213- let az = ag.payments[0]
214- let aA = value(az.assetId)
215- let aB = az.amount
216- let ax = fromBase58String(split(e(this, M()), a)[1])
217- if ((aA != ax))
212+ let aA = ah.payments[0]
213+ let aB = value(aA.assetId)
214+ let aC = aA.amount
215+ let ay = fromBase58String(split(e(this, M()), a)[1])
216+ if ((aB != ay))
218217 then d("invalid wxAssetId is passed")
219- else if (!(containsElement([ay, l, m, n], ag.caller)))
218+ else if (!(containsElement([az, l, m, n], ah.caller)))
220219 then d("permissions denied")
221- else [Burn(aA, aB), StringEntry(("%s%s%s__history__burn__" + toBase58String(ag.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aB)], a))]
220+ else [Burn(aB, aC), StringEntry(("%s%s%s__history__burn__" + toBase58String(ah.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aC)], a))]
222221 }
223222 }
224223
225224
226225
227-@Callable(ag)
228-func setManager (aC) = {
229- let aq = af(ag)
230- if ((aq == aq))
231- then {
232- let aD = fromBase58String(aC)
233- if ((aD == aD))
234- then [StringEntry(aa(), aC)]
235- else throw("Strict value is not equal to itself.")
236- }
237- else throw("Strict value is not equal to itself.")
238- }
239-
240-
241-
242-@Callable(ag)
243-func confirmManager () = {
244- let aE = ae()
245- let aF = if (isDefined(aE))
246- then true
247- else d("No pending manager")
248- if ((aF == aF))
249- then {
250- let aG = if ((ag.callerPublicKey == value(aE)))
251- then true
252- else d("You are not pending manager")
253- if ((aG == aG))
254- then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())]
255- else throw("Strict value is not equal to itself.")
256- }
257- else throw("Strict value is not equal to itself.")
258- }
259-
260-
261-
262-@Callable(ag)
226+@Callable(ah)
263227 func getBoostCoeffREADONLY () = $Tuple2(nil, Y)
264228
265229
266-@Verifier(aH)
267-func aI () = {
268- let aJ = {
269- let ac = ab()
230+@Verifier(aD)
231+func aE () = {
232+ let aF = {
233+ let ac = ae()
270234 if ($isInstanceOf(ac, "ByteVector"))
271235 then {
272- let ai = ac
273- ai
236+ let aj = ac
237+ aj
274238 }
275239 else if ($isInstanceOf(ac, "Unit"))
276- then aH.senderPublicKey
240+ then aD.senderPublicKey
277241 else throw("Match error")
278242 }
279- sigVerify(aH.bodyBytes, aH.proofs[0], aJ)
243+ sigVerify(aD.bodyBytes, aD.proofs[0], aF)
280244 }
281245

github/deemru/w8io/026f985 
50.05 ms