tx · 9QgADBXqkNe8yocpap9VWi4StRmFSBY1kLXVT1uqmiZh

3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb:  -0.01000000 Waves

2021.11.23 16:01 [1803700] smart account 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb > SELF 0.00000000 Waves

{ "type": 13, "id": "9QgADBXqkNe8yocpap9VWi4StRmFSBY1kLXVT1uqmiZh", "fee": 1000000, "feeAssetId": null, "timestamp": 1637672571035, "version": 1, "sender": "3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb", "senderPublicKey": "5LCbyfeLnA6WFFq4M6L7AEzy8ktT8sL9A5JXoyuaxCCJ", "proofs": [ "4q2L6ri1PZaxuPZXYLWDsoNeHTQeUfuA5chCcyDvtL15S5KAFamfjqfMR1oG4LoHKUfiSPYhDiTZhmvNcnyijAiV" ], "script": "base64:AAIFAAAAAAAAABoIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICAAAADgAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAAD2dldFN0cmluZ09yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQiAAAAAQUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAptYW5kY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wAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAQd3hUb0NsYWltVXNlck5ldwIAAAACOjoJAAGkAAAAAQUAAAASd3hQZXJMcEludGVncmFsTmV3AgAAAAI6OgkAAaQAAAABBQAAABd3eFBlckxwSW50ZWdyYWxVc2VyTGFzdAIAAAACOjoJAAGkAAAAAQUAAAAMc3Rha2VkQnlVc2VyAgAAAAI6OgkAAaQAAAABBQAAAAJkaAIAAAACOjoJAAGkAAAAAQUAAAAHd3hQZXJMcAIAAAACOjoJAAGkAAAAAQUAAAALc3Rha2VkVG90YWwCAAAAAjo6CQABpAAAAAEFAAAAFnBvb2xXeEVtaXNzaW9uUGVyQmxvY2sCAAAAAjo6CQABpAAAAAEFAAAAEnd4RW1pc3Npb25QZXJCbG9jawIAAAACOjoJAAGkAAAAAQUAAAAKcG9vbFdlaWdodAkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAglcyVzJWQlcwkABEwAAAACBQAAAAxscEFzc2V0SWRTdHIJAARMAAAAAgUAAAAOdXNlckFkZHJlc3NTdHIJAARMAAAAAgkAAaQAAAABBQAAAAx1c2VyV3hSZXdhcmQJAARMAAAAAgIAAAABMAkABEwAAAACBQAAAAVkZWJ1ZwUAAAADbmlsBQAAAANTRVAAAAAAk3nysQ==", "chainId": 84, "height": 1803700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AqvJmphrAN7Qe8eEgU18dqpJeVfrpTQt9F9NkS7AuduK Next: 6Ff3wkdLMLwHxMVPVNanDmQnHDHEXEF13UYoBnQkaggv Diff:
OldNewDifferences
225225 let W = fromBase58String(S)
226226 if (!(isDefined(getString(aq, x(S)))))
227227 then throw(("unsupported lp asset " + S))
228- else if ((R == R))
229- then throw("Somthing went wrong")
230- else {
231- let ax = Q(R, S)
232- let ay = T(S)
233- let az = U(ax)
234- let aA = U(ay)
235- if ((an > az))
236- then throw("passed amount is less then available")
237- else [IntegerEntry(ax, (az - an)), IntegerEntry(ay, (aA - an)), ScriptTransfer(as.caller, an, W), ao("unstake", R, S, an, as.transactionId)]
238- }
228+ else {
229+ let ax = Q(R, S)
230+ let ay = T(S)
231+ let az = U(ax)
232+ let aA = U(ay)
233+ if ((an > az))
234+ then throw("passed amount is less then available")
235+ else [IntegerEntry(ax, (az - an)), IntegerEntry(ay, (aA - an)), ScriptTransfer(as.caller, an, W), ao("unstake", R, S, an, as.transactionId)]
236+ }
239237 }
240238
241239
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 8
55
66 let b = 100000000
77
88 let c = 18
99
1010 let d = toBigInt(1000000000000000000)
1111
1212 let e = "__"
1313
1414 let f = b
1515
1616 func g (h) = valueOrErrorMessage(getString(h), (("mandatory this." + h) + " is not defined"))
1717
1818
1919 func i (j,h) = valueOrErrorMessage(getString(j, h), (((("mandatory " + toString(j)) + ".") + h) + " is not defined"))
2020
2121
2222 func k (j,h) = valueOrElse(getInteger(j, h), 0)
2323
2424
2525 func l (j,h,m) = valueOrElse(getInteger(j, h), m)
2626
2727
2828 func n (j,h) = valueOrErrorMessage(getInteger(j, h), (("mandatory this." + h) + " is not defined"))
2929
3030
3131 func o () = "%s%s__config__factoryAddress"
3232
3333
3434 let p = 1
3535
3636 let q = 2
3737
3838 let r = 3
3939
4040 let s = 4
4141
4242 let t = 5
4343
4444 let u = 6
4545
4646 let v = 7
4747
4848 func w () = "%s__factoryConfig"
4949
5050
5151 func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e)
5252
5353
5454 func z () = "%s__lpTokensList"
5555
5656
5757 func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e)
5858
5959
6060 func B (C) = makeString(["%s%s", "poolWeight", C], e)
6161
6262
6363 func D () = addressFromStringValue(g(o()))
6464
6565
6666 func E () = split(valueOrElse(getString(D(), z()), ""), e)
6767
6868
6969 func F (G) = split(i(G, w()), e)
7070
7171
7272 func H (I) = addressFromStringValue(I[q])
7373
7474
7575 func J (I) = addressFromStringValue(I[t])
7676
7777
7878 func K (I) = addressFromStringValue(I[p])
7979
8080
8181 func L () = "%s%s__ratePerBlock__current"
8282
8383
8484 func M () = "%s%s__ratePerBlockMax__current"
8585
8686
8787 func N () = "%s%s__emission__startBlock"
8888
8989
9090 func O () = "%s%s__emission__duration"
9191
9292
9393 func P () = "%s%s__emission__endBlock"
9494
9595
9696 func Q (R,S) = makeString(["%s%s%s__staked", R, S], e)
9797
9898
9999 func T (S) = ("%s%s%s__staked__total__" + S)
100100
101101
102102 func U (h) = valueOrElse(getInteger(this, h), 0)
103103
104104
105105 func V (W) = makeString(["%s%s%s", W, "total", "bal"], e)
106106
107107
108108 func X (W,Y) = makeString(["%s%s%s", W, Y, "bal"], e)
109109
110110
111111 func Z (W) = makeString(["%s%s%s", W, "total", "balINT"], e)
112112
113113
114114 func aa (W,Y) = makeString(["%s%s%s", W, Y, "balINT"], e)
115115
116116
117117 func ab (W) = makeString(["%s%s%s", W, "total", "lastUpd"], e)
118118
119119
120120 func ac (W,Y) = makeString(["%s%s%s", W, Y, "lastUpd"], e)
121121
122122
123123 func ad (W) = makeString(["%s%s%s%s", W, "common", "lpInt"], e)
124124
125125
126126 func ae (W) = makeString(["%s%s%s%s", W, "common", "lpIntH"], e)
127127
128128
129129 func af (W,Y) = makeString(["%s%s%s%s", W, Y, "lpInt"], e)
130130
131131
132132 func ag (W,Y) = makeString(["%s%s%s%s", W, Y, "lpIntH"], e)
133133
134134
135135 func ah (W) = makeString(["%s", W, "wxPerLp"], e)
136136
137137
138138 func ai (W,Y) = makeString(["%s%s%s%s", W, Y, "uIntL"], e)
139139
140140
141141 func aj (ak,Y,al) = makeString(["%s%s%s%s__history", ak, Y, al], e)
142142
143143
144144 func am (Y,W,ak,an) = makeString(["%s%s%s%d%d%d", Y, W, ak, toString(height), toString(lastBlock.timestamp), toString(an)], e)
145145
146146
147147 func ao (ak,Y,W,an,ap) = StringEntry(aj(ak, Y, toBase58String(ap)), am(Y, W, ak, an))
148148
149149
150150 let aq = D()
151151
152152 let I = F(aq)
153153
154154 let ar = J(I)
155155
156156 @Callable(as)
157157 func constructor (at) = if ((as.caller != this))
158158 then throw("not authorized")
159159 else [StringEntry(o(), at)]
160160
161161
162162
163163 @Callable(as)
164164 func stake () = if ((size(as.payments) != 1))
165165 then throw("invalid payment - exact one payment must be attached")
166166 else {
167167 let au = as.payments[0]
168168 let W = value(au.assetId)
169169 let S = toBase58String(W)
170170 let an = au.amount
171171 let av = valueOrErrorMessage(getString(aq, x(S)), ("unsupported lp asset " + S))
172172 let aw = toString(as.caller)
173173 let R = if ((aw == av))
174174 then toString(as.originCaller)
175175 else aw
176176 let ax = Q(R, S)
177177 let ay = T(S)
178178 let az = U(ax)
179179 let aA = U(ay)
180180 let aB = getIntegerValue(aq, B(av))
181181 let aC = n(ar, N())
182182 let aD = n(ar, L())
183183 let aE = fraction(aD, aB, (f * 3))
184184 let aF = ad(S)
185185 let aG = ae(S)
186186 let aH = af(S, R)
187187 let aI = ag(S, R)
188188 let aJ = ah(S)
189189 let aK = ai(S, R)
190190 let aL = l(this, aG, aC)
191191 let aM = k(this, aF)
192192 let aN = k(this, aH)
193193 let aO = k(this, aI)
194194 let aP = k(this, aJ)
195195 let aQ = max([(height - aL), 0])
196196 let aR = if ((aP != 0))
197197 then aP
198198 else (aE / aA)
199199 let aS = (aA + an)
200200 let aT = (aM + (aR * aQ))
201201 let aU = if (if ((aO == 0))
202202 then (az > 0)
203203 else false)
204204 then 0
205205 else if ((az == 0))
206206 then aT
207207 else if (if ((aO > 0))
208208 then (az > 0)
209209 else false)
210210 then n(this, aK)
211211 else throw("Invalid condition")
212212 let aV = (aN + ((aT - aU) * az))
213213 let aW = aT
214214 let aX = (aE / aS)
215215 let aY = height
216216 let aZ = height
217217 [IntegerEntry(ax, (az + an)), IntegerEntry(ay, aS), ao("stake", R, S, an, as.transactionId)]
218218 }
219219
220220
221221
222222 @Callable(as)
223223 func unstake (S,an) = {
224224 let R = toString(as.caller)
225225 let W = fromBase58String(S)
226226 if (!(isDefined(getString(aq, x(S)))))
227227 then throw(("unsupported lp asset " + S))
228- else if ((R == R))
229- then throw("Somthing went wrong")
230- else {
231- let ax = Q(R, S)
232- let ay = T(S)
233- let az = U(ax)
234- let aA = U(ay)
235- if ((an > az))
236- then throw("passed amount is less then available")
237- else [IntegerEntry(ax, (az - an)), IntegerEntry(ay, (aA - an)), ScriptTransfer(as.caller, an, W), ao("unstake", R, S, an, as.transactionId)]
238- }
228+ else {
229+ let ax = Q(R, S)
230+ let ay = T(S)
231+ let az = U(ax)
232+ let aA = U(ay)
233+ if ((an > az))
234+ then throw("passed amount is less then available")
235+ else [IntegerEntry(ax, (az - an)), IntegerEntry(ay, (aA - an)), ScriptTransfer(as.caller, an, W), ao("unstake", R, S, an, as.transactionId)]
236+ }
239237 }
240238
241239
242240
243241 @Callable(as)
244242 func claimWx (S) = throw("temporary disabled")
245243
246244
247245
248246 @Callable(as)
249247 func claimWxREADONLY (S,R) = {
250248 let ax = Q(R, S)
251249 let ay = T(S)
252250 let az = U(ax)
253251 let aA = U(ay)
254252 let av = i(aq, A(S))
255253 let ba = b
256254 let aB = getIntegerValue(aq, B(av))
257255 let aD = n(ar, L())
258256 let aC = n(ar, N())
259257 let bb = if ((aC > height))
260258 then 0
261259 else (height - aC)
262260 let bc = fraction((aD * bb), aB, ba)
263261 let bd = fraction(bc, az, aA)
264262 let aE = fraction(aD, aB, f)
265263 let an = 0
266264 let aF = ad(S)
267265 let aG = ae(S)
268266 let aH = af(S, R)
269267 let aI = ag(S, R)
270268 let aJ = ah(S)
271269 let aK = ai(S, R)
272270 let aL = l(this, aG, aC)
273271 let aM = k(this, aF)
274272 let aN = k(this, aH)
275273 let aO = k(this, aI)
276274 let aP = k(this, aJ)
277275 let aQ = max([(height - aL), 0])
278276 let aR = if ((aP != 0))
279277 then aP
280278 else fraction(aE, b, aA)
281279 let aS = (aA + an)
282280 let aT = (aM + (aR * aQ))
283281 let aU = if (if ((aO == 0))
284282 then (az > 0)
285283 else false)
286284 then 0
287285 else if ((az == 0))
288286 then aT
289287 else if (if ((aO > 0))
290288 then (az > 0)
291289 else false)
292290 then n(this, aK)
293291 else throw("Invalid condition")
294292 let aV = (aN + fraction((aT - aU), az, b))
295293 let aW = aT
296294 let aX = (aE / aS)
297295 let aY = height
298296 let aZ = height
299297 let be = ((((((((((((((((((toString(aV) + "::") + toString(aT)) + "::") + toString(aU)) + "::") + toString(az)) + "::") + toString(aQ)) + "::") + toString(aR)) + "::") + toString(aA)) + "::") + toString(aE)) + "::") + toString(aD)) + "::") + toString(aB))
300298 $Tuple2(nil, makeString(["%s%s%d%s", S, R, toString(bd), "0", be], e))
301299 }
302300
303301

github/deemru/w8io/026f985 
40.94 ms