tx · DZBPMfSX4Wo5g67P5CiYefi13qT3vmRRXrxeMdwVfwVC

3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS:  -0.02000000 Waves

2022.02.25 17:36 [1939283] smart account 3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS > SELF 0.00000000 Waves

{ "type": 13, "id": "DZBPMfSX4Wo5g67P5CiYefi13qT3vmRRXrxeMdwVfwVC", "fee": 2000000, "feeAssetId": null, "timestamp": 1645799839995, "version": 1, "sender": "3MuAPY3jP4q2AoNYX27B5BU9EoLU77mr7pS", "senderPublicKey": "rqCnkHfz5ix6HNKiVvYE3URUtLs6f2nWzt4hpdGGQdm", "proofs": [ "5VRTgKaWRFBnHmuBGPxPGVkAUAujnL8obwkCWVsBozENPGDt9gRv9y7vu2JYbUh3qkawT2VsgfG5SPtZQ6YSbRcv" ], "script": "base64:AAIFAAAAAAAAACoIAhIFCgMICAgSABIDCgEIEgMKAQgSAwoBARIAEgYKBAEBAQESBAoCAQEAAAA4AAAAAAhQUklDRUxFVAAAAAAAAA9CQAAAAAAJTVVMVFNDQUxFAAAAAAAAAAAIAAAAAAtFVUxFUk5VTUJFUgAAAAAAEDPE1gAAAAAGc2NhbGU2AAAAAAAAD0JAAAAAAAxzY2FsZTZCaWdJbnQJAAE2AAAAAQAAAAAAAA9CQAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAQAAABJrZXlOZXV0cmlub0FkZHJlc3MAAAAAAgAAAB0lcyVzX19jb25maWdfX25ldXRyaW5vQWRkcmVzcwEAAAASa2V5TmV1dHJpbm9Bc3NldElkAAAAAAIAAAARbmV1dHJpbm9fYXNzZXRfaWQBAAAAHWtleUxpcXVpZGF0aW9uQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAUbGlxdWlkYXRpb25fY29udHJhY3Q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AAAAAgIAAAAEJWQlZAkABEwAAAACCQABpAAAAAEJAABkAAAAAgUAAAAHYW1vdW50MQUAAAAHYW1vdW50MgkABEwAAAACCQABpAAAAAEFAAAAAWgFAAAAA25pbAUAAAADU0VQCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAB51bnN0YWtlQ29taXNzaW9uQW1vdW50UkVBRE9OTFkAAAACAAAABmFtb3VudAAAAAtzdGFydEhlaWdodAQAAAABYQkBAAAABWFzSW50AAAAAQkAA/wAAAAEBQAAAAxtYXRoQ29udHJhY3QCAAAAHWdldFVuc3Rha2VDb21pc3Npb25BbW91bnRNQVRICQAETAAAAAIFAAAABmFtb3VudAkABEwAAAACBQAAAAtzdGFydEhlaWdodAUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAAWEFAAAAAWEJAAUUAAAAAgUAAAADbmlsCQAEuQAAAAIJAARMAAAAAgIAAAACJWQJAARMAAAAAgkAAaQAAAABBQAAAAFhBQAAAANuaWwFAAAAA1NFUAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAkI/7uw==", "chainId": 84, "height": 1939283, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6nJwJ9yrHYtBgYUfeZDYnP3B99Y3FVi5AcZqjBoX4r6o Next: DUVAaKQRu5waJfFhG6NjsV2uEMgfgiMszeffoeET61f7 Diff:
OldNewDifferences
226226 let aT = valueOrElse(getInteger(am, G(aL)), 0)
227227 if ((aT == aT))
228228 then {
229- let aU = X(invoke(al, "calcSwapLimitMATH", [aT], nil))
229+ let aU = T(invoke(al, "calcUserSwapLimitsMATH", [aT], nil))
230230 if ((aU == aU))
231231 then {
232- let aV = getIntegerValue(ag, z())
233- let aW = valueOrElse(getInteger(ag, A(aL)), 0)
234- let aX = ((height - aW) > aV)
235- let aY = if (aX)
236- then 0
237- else valueOrElse(getInteger(ag, C(aL)), 0)
238- let aZ = if (aX)
239- then 0
240- else (aV - (height - aW))
241- let ba = P(aU, ax)
242- $Tuple4(aY, aZ, aU, ba)
232+ let aV = X(aU[0])
233+ let aW = X(aU[1])
234+ let aX = X(aU[2])
235+ let aY = X(aU[3])
236+ $Tuple4(aW, aX, aV, aY)
243237 }
244238 else throw("Strict value is not equal to itself.")
245239 }
246240 else throw("Strict value is not equal to itself.")
247241 }
248- let aY = aS._1
249- let bb = aS._2
250- let bc = aS._3
251- let bd = aS._4
252- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(bb), toString(bd), toString(bc), toString(aY)], i))
242+ let aW = aS._1
243+ let aZ = aS._2
244+ let ba = aS._3
245+ let bb = aS._4
246+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aZ), toString(bb), toString(ba), toString(aW)], i))
253247 }
254248
255249
256250
257251 @Callable(ar)
258252 func gnsbtInfoREADONLY (aL) = {
253+ let bc = 10000
254+ let bd = 10000
259255 let be = 10000
260256 let bf = 10000
261257 let bg = 10000
262258 let bh = 10000
263259 let bi = 10000
264- let bj = 10000
265- let bk = 10000
266- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk)], i))
260+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi)], i))
267261 }
268262
269263
270264
271265 @Callable(ar)
272-func buyNsbtREADONLY (bl) = {
273- let bm = 100000000
274- if ((bm > bl))
275- then throw((("min " + toString(bm)) + " waves expected"))
266+func buyNsbtREADONLY (bj) = {
267+ let bk = 100000000
268+ if ((bk > bj))
269+ then throw((("min " + toString(bk)) + " waves expected"))
276270 else {
277271 let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil))
278272 if ((av == av))
279273 then {
280274 let ax = X(av[0])
281- let bn = X(av[3])
275+ let bl = X(av[3])
282276 let aC = X(av[5])
283277 let aG = X(av[9])
284- let bo = value(assetInfo(aq)).quantity
285- let bp = T(invoke(al, "curveFunctionMATH", [bn, aC, ax, bo, aG, bl], nil))
286- if ((bp == bp))
278+ let bm = value(assetInfo(aq)).quantity
279+ let bn = T(invoke(al, "curveFunctionMATH", [bl, aC, ax, bm, aG, bj], nil))
280+ if ((bn == bn))
287281 then {
288- let bq = X(bp[0])
289- if ((0 >= bq))
282+ let bo = X(bn[0])
283+ if ((0 >= bo))
290284 then throw("nsbtAmount <= 0")
291- else if ((bl > (bq * 9223372)))
292- then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bl)) + "/") + toString(bq)))
293- else $Tuple2(nil, makeString(["%d", toString(bq)], i))
285+ else if ((bj > (bo * 9223372)))
286+ then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bj)) + "/") + toString(bo)))
287+ else $Tuple2(nil, makeString(["%d", toString(bo)], i))
294288 }
295289 else throw("Strict value is not equal to itself.")
296290 }
306300
307301
308302 @Callable(ar)
309-func mergedStakeREADONLY (br,bs,bt,bu) = {
310- let bv = X(invoke(al, "mergeStakesMATH", [br, bs, bt, bu], nil))
311- if ((bv == bv))
312- then $Tuple2(nil, makeString(["%d%d", toString((br + bt)), toString(bv)], i))
303+func mergedStakeREADONLY (bp,bq,br,bs) = {
304+ let bt = X(invoke(al, "mergeStakesMATH", [bp, bq, br, bs], nil))
305+ if ((bt == bt))
306+ then $Tuple2(nil, makeString(["%d%d", toString((bp + br)), toString(bt)], i))
313307 else throw("Strict value is not equal to itself.")
314308 }
315309
316310
317311
318312 @Callable(ar)
319-func unstakeComissionAmountREADONLY (Q,bw) = {
320- let bx = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bw], nil))
321- if ((bx == bx))
322- then $Tuple2(nil, makeString(["%d", toString(bx)], i))
313+func unstakeComissionAmountREADONLY (Q,bu) = {
314+ let bv = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bu], nil))
315+ if ((bv == bv))
316+ then $Tuple2(nil, makeString(["%d", toString(bv)], i))
323317 else throw("Strict value is not equal to itself.")
324318 }
325319
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000000
55
66 let b = 8
77
88 let c = 271828182
99
1010 let d = 1000000
1111
1212 let e = toBigInt(1000000)
1313
1414 let f = 100000000
1515
1616 let g = toBigInt(100000000)
1717
1818 let h = toBigInt(1000000000000000000)
1919
2020 let i = "__"
2121
2222 func j () = "%s%s__config__neutrinoAddress"
2323
2424
2525 func k () = "neutrino_asset_id"
2626
2727
2828 func l () = "liquidation_contract"
2929
3030
3131 func m () = "rpd_contract"
3232
3333
3434 func n () = "auction_contract"
3535
3636
3737 func o () = "control_contract"
3838
3939
4040 func p () = "bond_asset_id"
4141
4242
4343 func q () = "balance_lock_"
4444
4545
4646 func r () = (q() + "waves")
4747
4848
4949 func s () = (q() + "neutrino")
5050
5151
5252 func t () = "min_waves_swap_amount"
5353
5454
5555 func u () = "min_neutrino_swap_amount"
5656
5757
5858 func v () = "wavesOut_swap_feePart"
5959
6060
6161 func w () = "neutrinoOut_swap_feePart"
6262
6363
6464 func x () = "%s__nsbtLockContract"
6565
6666
6767 func y () = "%s__mathContract"
6868
6969
7070 func z () = "%s__quickSwapLimitDuration"
7171
7272
7373 func A (B) = makeString(["%s%s", "userLastQuickSwapHeight", B], i)
7474
7575
7676 func C (B) = makeString(["%s%s", "quickSwapUserSpentInPeriod", B], i)
7777
7878
7979 func D () = "balance_waves_lock_interval"
8080
8181
8282 func E () = "balance_neutrino_lock_interval"
8383
8484
8585 func F () = "price"
8686
8787
8888 func G (B) = makeString(["%s%s%s", "paramByUser", B, "amount"], i)
8989
9090
9191 func H (B) = makeString(["%s%s%s", "paramByUser", B, "start"], i)
9292
9393
9494 func I () = "%s__minLockAmount"
9595
9696
9797 func J () = "min_waves_nsbt_buy"
9898
9999
100100 func K (L,M) = valueOrErrorMessage(getString(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], ""))
101101
102102
103103 func N (L,M) = valueOrErrorMessage(getInteger(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], ""))
104104
105105
106106 func O (L,M) = valueOrErrorMessage(getBoolean(L, M), makeString(["mandatory ", toString(L), ".", M, " is not defined"], ""))
107107
108108
109109 func P (Q,R) = fraction(fraction(Q, a, R), f, d)
110110
111111
112112 func S (Q,R) = fraction(fraction(Q, R, a), d, f)
113113
114114
115115 func T (U) = {
116116 let V = U
117117 if ($isInstanceOf(V, "List[Any]"))
118118 then {
119119 let W = V
120120 W
121121 }
122122 else throw("fail to cast into List[Any]")
123123 }
124124
125125
126126 func X (U) = {
127127 let V = U
128128 if ($isInstanceOf(V, "Int"))
129129 then {
130130 let Y = V
131131 Y
132132 }
133133 else throw("fail to cast into Int")
134134 }
135135
136136
137137 func Z (U) = {
138138 let V = U
139139 if ($isInstanceOf(V, "String"))
140140 then {
141141 let aa = V
142142 aa
143143 }
144144 else throw("fail to cast into String")
145145 }
146146
147147
148148 func ab (ac,ad) = fraction(toBigInt(ac), h, toBigInt(ad))
149149
150150
151151 func ae (U,af) = toInt(fraction(U, toBigInt(af), h))
152152
153153
154154 let ag = addressFromStringValue(K(this, j()))
155155
156156 let ah = addressFromStringValue(K(ag, o()))
157157
158158 let ai = addressFromStringValue(K(ag, n()))
159159
160160 let aj = K(ag, l())
161161
162162 let ak = K(ag, m())
163163
164164 let al = addressFromStringValue(K(this, y()))
165165
166166 let am = addressFromStringValue(K(this, x()))
167167
168168 let an = K(ag, k())
169169
170170 let ao = fromBase58String(an)
171171
172172 let ap = getStringValue(ag, p())
173173
174174 let aq = fromBase58String(ap)
175175
176176 @Callable(ar)
177177 func constructor (as,at,au) = if ((ar.caller != this))
178178 then throw("not authorized")
179179 else [StringEntry(j(), as), StringEntry(x(), at), StringEntry(y(), au)]
180180
181181
182182
183183 @Callable(ar)
184184 func neutrinoStatsREADONLY () = {
185185 let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil))
186186 if ((av == av))
187187 then {
188188 let aw = T(invoke(al, "calcContractNsbtPriceMATH", nil, nil))
189189 if ((aw == aw))
190190 then {
191191 let ax = X(av[0])
192192 let ay = X(av[1])
193193 let az = X(av[2])
194194 let aA = X(av[3])
195195 let aB = X(av[4])
196196 let aC = X(av[5])
197197 let aD = X(av[6])
198198 let aE = X(av[7])
199199 let aF = X(av[8])
200200 let aG = X(av[9])
201201 let aH = X(av[10])
202202 let aI = X(aw[0])
203203 let aJ = X(aw[1])
204204 let aK = 100000000
205205 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(ay), toString(az), toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ), toString(aK)], i))
206206 }
207207 else throw("Strict value is not equal to itself.")
208208 }
209209 else throw("Strict value is not equal to itself.")
210210 }
211211
212212
213213
214214 @Callable(ar)
215215 func swapInfoREADONLY (aL) = {
216216 let ax = getIntegerValue(ah, F())
217217 let aM = getIntegerValue(ag, t())
218218 let aN = getIntegerValue(ag, u())
219219 let aO = getIntegerValue(ag, v())
220220 let aP = getIntegerValue(ag, w())
221221 let aQ = getIntegerValue(ag, E())
222222 let aR = getIntegerValue(ag, D())
223223 let aS = if ((aL == ""))
224224 then $Tuple4(0, 0, 0, 0)
225225 else {
226226 let aT = valueOrElse(getInteger(am, G(aL)), 0)
227227 if ((aT == aT))
228228 then {
229- let aU = X(invoke(al, "calcSwapLimitMATH", [aT], nil))
229+ let aU = T(invoke(al, "calcUserSwapLimitsMATH", [aT], nil))
230230 if ((aU == aU))
231231 then {
232- let aV = getIntegerValue(ag, z())
233- let aW = valueOrElse(getInteger(ag, A(aL)), 0)
234- let aX = ((height - aW) > aV)
235- let aY = if (aX)
236- then 0
237- else valueOrElse(getInteger(ag, C(aL)), 0)
238- let aZ = if (aX)
239- then 0
240- else (aV - (height - aW))
241- let ba = P(aU, ax)
242- $Tuple4(aY, aZ, aU, ba)
232+ let aV = X(aU[0])
233+ let aW = X(aU[1])
234+ let aX = X(aU[2])
235+ let aY = X(aU[3])
236+ $Tuple4(aW, aX, aV, aY)
243237 }
244238 else throw("Strict value is not equal to itself.")
245239 }
246240 else throw("Strict value is not equal to itself.")
247241 }
248- let aY = aS._1
249- let bb = aS._2
250- let bc = aS._3
251- let bd = aS._4
252- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(bb), toString(bd), toString(bc), toString(aY)], i))
242+ let aW = aS._1
243+ let aZ = aS._2
244+ let ba = aS._3
245+ let bb = aS._4
246+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(ax), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aZ), toString(bb), toString(ba), toString(aW)], i))
253247 }
254248
255249
256250
257251 @Callable(ar)
258252 func gnsbtInfoREADONLY (aL) = {
253+ let bc = 10000
254+ let bd = 10000
259255 let be = 10000
260256 let bf = 10000
261257 let bg = 10000
262258 let bh = 10000
263259 let bi = 10000
264- let bj = 10000
265- let bk = 10000
266- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk)], i))
260+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi)], i))
267261 }
268262
269263
270264
271265 @Callable(ar)
272-func buyNsbtREADONLY (bl) = {
273- let bm = 100000000
274- if ((bm > bl))
275- then throw((("min " + toString(bm)) + " waves expected"))
266+func buyNsbtREADONLY (bj) = {
267+ let bk = 100000000
268+ if ((bk > bj))
269+ then throw((("min " + toString(bk)) + " waves expected"))
276270 else {
277271 let av = T(invoke(al, "calcNeutinoMetricsMATH", nil, nil))
278272 if ((av == av))
279273 then {
280274 let ax = X(av[0])
281- let bn = X(av[3])
275+ let bl = X(av[3])
282276 let aC = X(av[5])
283277 let aG = X(av[9])
284- let bo = value(assetInfo(aq)).quantity
285- let bp = T(invoke(al, "curveFunctionMATH", [bn, aC, ax, bo, aG, bl], nil))
286- if ((bp == bp))
278+ let bm = value(assetInfo(aq)).quantity
279+ let bn = T(invoke(al, "curveFunctionMATH", [bl, aC, ax, bm, aG, bj], nil))
280+ if ((bn == bn))
287281 then {
288- let bq = X(bp[0])
289- if ((0 >= bq))
282+ let bo = X(bn[0])
283+ if ((0 >= bo))
290284 then throw("nsbtAmount <= 0")
291- else if ((bl > (bq * 9223372)))
292- then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bl)) + "/") + toString(bq)))
293- else $Tuple2(nil, makeString(["%d", toString(bq)], i))
285+ else if ((bj > (bo * 9223372)))
286+ then throw(((("Nsbt2Waves price exceeds MAX_INT: " + toString(bj)) + "/") + toString(bo)))
287+ else $Tuple2(nil, makeString(["%d", toString(bo)], i))
294288 }
295289 else throw("Strict value is not equal to itself.")
296290 }
297291 else throw("Strict value is not equal to itself.")
298292 }
299293 }
300294
301295
302296
303297 @Callable(ar)
304298 func minStakedAmountREADONLY () = $Tuple2(nil, makeString(["%d", toString(N(am, I()))], i))
305299
306300
307301
308302 @Callable(ar)
309-func mergedStakeREADONLY (br,bs,bt,bu) = {
310- let bv = X(invoke(al, "mergeStakesMATH", [br, bs, bt, bu], nil))
311- if ((bv == bv))
312- then $Tuple2(nil, makeString(["%d%d", toString((br + bt)), toString(bv)], i))
303+func mergedStakeREADONLY (bp,bq,br,bs) = {
304+ let bt = X(invoke(al, "mergeStakesMATH", [bp, bq, br, bs], nil))
305+ if ((bt == bt))
306+ then $Tuple2(nil, makeString(["%d%d", toString((bp + br)), toString(bt)], i))
313307 else throw("Strict value is not equal to itself.")
314308 }
315309
316310
317311
318312 @Callable(ar)
319-func unstakeComissionAmountREADONLY (Q,bw) = {
320- let bx = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bw], nil))
321- if ((bx == bx))
322- then $Tuple2(nil, makeString(["%d", toString(bx)], i))
313+func unstakeComissionAmountREADONLY (Q,bu) = {
314+ let bv = X(invoke(al, "getUnstakeComissionAmountMATH", [Q, bu], nil))
315+ if ((bv == bv))
316+ then $Tuple2(nil, makeString(["%d", toString(bv)], i))
323317 else throw("Strict value is not equal to itself.")
324318 }
325319
326320

github/deemru/w8io/026f985 
51.92 ms