tx · 58S5VFz1Fvx81Ufu1dckojkxjLNBcHvcMx2Gx9ZTVwvk

3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo:  -0.04000000 Waves

2021.09.07 16:30 [1692685] smart account 3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo > SELF 0.00000000 Waves

{ "type": 13, "id": "58S5VFz1Fvx81Ufu1dckojkxjLNBcHvcMx2Gx9ZTVwvk", "fee": 4000000, "feeAssetId": null, "timestamp": 1631021461135, "version": 2, "chainId": 84, "sender": "3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo", "senderPublicKey": "CD4N2SBeZVBUwmtsqwfmQ3ZKnBP3AxpZCvJ5QkHytUed", "proofs": [ "3HJN4crrE2e7zFgeC1DNYXBGdAFrvnNyvrUSL6B7cQjq2ErYAr47oAYooGahNvSP4eR6Tt2R5ykrTXyNYsuA2ugm" ], "script": "base64:AAIFAAAAAAAAAEQIAhIAEgQKAggYEgMKAQgSAwoBCBIECgIIBBIDCgEIEgMKAQgSBgoECAgICBIFCgMICAESAwoBCBIFCgMICAESAwoBCAAAAA8AAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAGY29uZmlnAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZjb25maWcCAAAABWFkbWluAgAAAAAAAAAABXBvb2xzCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVwb29scwIAAAAAAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQA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AAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAF0CQACWQAAAAEFAAAAB3Rva2VuSWQFAAAAA25pbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF0BQAAAAckbWF0Y2gwBQAAAANuaWwJAAACAAAAAQIAAAAYSW5jb3JyZWN0IGludm9rZSByZXN1bHQhCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAABtCb3Jyb3cgZXhjZWVkcyB1c2VyIGhlYWx0aCEJAAACAAAAAQIAAAAXQXNzZXRJZHMgZG9lcyBub3QgbWF0Y2gJAAACAAAAAQIAAAAXUG9vbCBhZGRyZXNzIG5vdCBmb3VuZCEAAAABaQEAAAAKZGVsZXRlRGF0YQAAAAEAAAAEbmFtZQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARuYW1lBQAAAANuaWwAAAAA/pklUg==", "height": 1692685, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 59iroGMSmdiPPrq3WA3euMj4yabWeyG5ij8cPhQVfgTd Next: 4eoxz9iBHJD55uHwwMF8nD9vy8JtDrcigMLnBiGLNQN9 Diff:
OldNewDifferences
132132 let t = toBase58String(al.caller.bytes)
133133 let T = E(t, 0, "", 0, "")
134134 let U = B(T._1, T._2)
135-[k((t + "_health"), U)]
135+[k((t + "_BC"), T._1), k((t + "_BCU"), T._2), k((t + "_health"), U)]
136136 }
137137
138138
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getStringValue(this, "config"), "")
55
66 let b = valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "")
77
88 let c = valueOrElse(getStringValue(this, "pools"), "")
99
1010 func d (e) = if ((e == addressFromStringValue(b)))
1111 then true
1212 else false
1313
1414
1515 func f (g) = if (contains(c, g))
1616 then true
1717 else false
1818
1919
2020 func h (i,j) = StringEntry(i, j)
2121
2222
2323 func k (i,l) = IntegerEntry(i, l)
2424
2525
2626 func m (n,o) = {
2727 let p = getIntegerValue(addressFromStringValue(n), "totalSupply")
2828 let q = getIntegerValue(addressFromStringValue(n), "totalBorrow")
2929 let r = (p - q)
3030 if ((r >= o))
3131 then true
3232 else false
3333 }
3434
3535
3636 func s (t,n,u,v,w,x) = {
3737 let y = invoke(addressFromStringValue(n), "getUserHealthParameter", [t, w, x, u, v], nil)
3838 let z = y
3939 if ($isInstanceOf(z, "(Int, Int)"))
4040 then {
4141 let A = z
4242 A
4343 }
4444 else throw("Return value has the wrong data type")
4545 }
4646
4747
4848 func B (C,D) = if ((C > 0))
4949 then fraction((C - D), 1000, C)
5050 else 0
5151
5252
5353 func E (t,u,v,w,x) = {
5454 let F = split(c, ";")
5555 let G = size(F)
5656 func H (I,J) = {
5757 let K = s(t, J, u, v, w, x)
5858 let z = K
5959 if ($isInstanceOf(z, "(Int, Int)"))
6060 then {
6161 let A = z
6262 $Tuple2((I._1 + K._1), (I._2 + K._2))
6363 }
6464 else {
6565 let L = z
6666 throw("Test")
6767 }
6868 }
6969
7070 let M = F
7171 let N = size(M)
7272 let O = $Tuple2(0, 0)
7373 if ((N == 0))
7474 then O
7575 else {
7676 let P = H(O, M[0])
7777 if ((N == 1))
7878 then P
7979 else {
8080 let Q = H(P, M[1])
8181 if ((N == 2))
8282 then Q
8383 else {
8484 let R = H(Q, M[2])
8585 throw("List size exceed 2")
8686 }
8787 }
8888 }
8989 }
9090
9191
9292 func S (t,u,v,w,x) = {
9393 let T = E(t, u, v, w, x)
9494 let U = B(T._1, T._2)
9595 if ((U >= 0))
9696 then true
9797 else false
9898 }
9999
100100
101101 func V (t,n,W) = {
102102 let X = getString(addressFromStringValue(n), "assetId")
103103 if ((X == W))
104104 then {
105105 let Y = valueOrElse(getInteger(addressFromStringValue(n), (t + "_borrow")), 0)
106106 if ((Y > 0))
107107 then true
108108 else false
109109 }
110110 else throw("AssetIds do not match!")
111111 }
112112
113113
114114 func Z (t,n) = {
115115 let aa = valueOrElse(getInteger(addressFromStringValue(n), (t + "_locked")), 0)
116116 if ((aa > 0))
117117 then true
118118 else false
119119 }
120120
121121
122122 func ab (ac,ad,ae,af,ag,ah) = {
123123 let ai = 1000
124124 let aj = fraction(ac, ad, ae)
125125 let ak = fraction(aj, ah, ai)
126126 fraction((aj + ak), ag, af)
127127 }
128128
129129
130130 @Callable(al)
131131 func checkUserHealthTest () = {
132132 let t = toBase58String(al.caller.bytes)
133133 let T = E(t, 0, "", 0, "")
134134 let U = B(T._1, T._2)
135-[k((t + "_health"), U)]
135+[k((t + "_BC"), T._1), k((t + "_BCU"), T._2), k((t + "_health"), U)]
136136 }
137137
138138
139139
140140 @Callable(al)
141141 func setup (am,c) = if (if (!(isDefined(getString(this, "config"))))
142142 then !(isDefined(getString(this, "pools")))
143143 else false)
144144 then [h("config", am), h("pools", makeString(c, ";"))]
145145 else throw("Admin and config address already definied!")
146146
147147
148148
149149 @Callable(al)
150150 func addPool (n) = if (d(al.caller))
151151 then {
152152 let F = split(c, ";")
153153 if ((containsElement(F, n) == false))
154154 then {
155155 let an = (F :+ n)
156156 [h("pools", makeString(an, ";"))]
157157 }
158158 else throw("Pool already exists!")
159159 }
160160 else throw("Address does not match with admin address!")
161161
162162
163163
164164 @Callable(al)
165165 func updateConfig (am) = if (d(al.caller))
166166 then [h("config", am)]
167167 else throw("Address does not match with admin address!")
168168
169169
170170
171171 @Callable(al)
172172 func depositAt (n,ao) = if (f(n))
173173 then if ((size(al.payments) > 0))
174174 then {
175175 let t = toBase58String(al.caller.bytes)
176176 let ap = invoke(addressFromStringValue(n), "deposit", [t, ao], al.payments)
177177 if ((ap == ap))
178178 then {
179179 let aq = getStringValue(addressFromStringValue(n), "dTokenId")
180180 let z = ap
181181 if ($isInstanceOf(z, "Int"))
182182 then {
183183 let A = z
184184 [ScriptTransfer(al.caller, A, fromBase58String(aq))]
185185 }
186186 else if ($isInstanceOf(z, "String"))
187187 then {
188188 let A = z
189189 nil
190190 }
191191 else throw("Incorrect invoke result!")
192192 }
193193 else throw("Strict value is not equal to itself.")
194194 }
195195 else throw("No payment attached!")
196196 else throw("Pool address not found!")
197197
198198
199199
200200 @Callable(al)
201201 func withdrawFrom (n) = if (f(n))
202202 then {
203203 let ar = getStringValue(addressFromStringValue(n), "dTokenId")
204204 if ((fromBase58String(ar) == al.payments[0].assetId))
205205 then if ((size(al.payments) > 0))
206206 then {
207207 let t = toBase58String(al.caller.bytes)
208208 let ap = invoke(addressFromStringValue(n), "withdraw", [t], al.payments)
209209 if ((ap == ap))
210210 then {
211211 let aq = getStringValue(addressFromStringValue(n), "assetId")
212212 let z = ap
213213 if ($isInstanceOf(z, "Int"))
214214 then {
215215 let A = z
216216 if ((aq == "WAVES"))
217217 then [ScriptTransfer(al.caller, A, unit)]
218218 else [ScriptTransfer(al.caller, A, fromBase58String(aq))]
219219 }
220220 else if ($isInstanceOf(z, "String"))
221221 then {
222222 let A = z
223223 nil
224224 }
225225 else throw("Incorrect invoke result!")
226226 }
227227 else throw("Strict value is not equal to itself.")
228228 }
229229 else throw("No payment attached!")
230230 else throw("AssetIds does not match")
231231 }
232232 else throw("Pool address not found!")
233233
234234
235235
236236 @Callable(al)
237237 func repayTo (n) = if (f(n))
238238 then {
239239 let X = getStringValue(addressFromStringValue(n), "assetId")
240240 if ((fromBase58String(X) == al.payments[0].assetId))
241241 then if ((size(al.payments) > 0))
242242 then {
243243 let t = toBase58String(al.caller.bytes)
244244 let o = invoke(addressFromStringValue(n), "repay", [t], al.payments)
245245 if ((o == o))
246246 then {
247247 let as = getStringValue(addressFromStringValue(n), "assetId")
248248 let z = o
249249 if ($isInstanceOf(z, "Int"))
250250 then {
251251 let A = z
252252 if ((as == "WAVES"))
253253 then [ScriptTransfer(al.caller, A, unit)]
254254 else [ScriptTransfer(al.caller, A, fromBase58String(as))]
255255 }
256256 else if ($isInstanceOf(z, "String"))
257257 then {
258258 let A = z
259259 nil
260260 }
261261 else throw("Incorrect invoke result!")
262262 }
263263 else throw("Strict value is not equal to itself.")
264264 }
265265 else throw("No payment attached!")
266266 else throw("AssetIds does not match")
267267 }
268268 else throw("Pool address not found!")
269269
270270
271271
272272 @Callable(al)
273273 func liquidateAt (at,au,av,aw) = {
274274 let ax = getIntegerValue(addressFromStringValue(a), "closeFactor")
275275 let ah = getIntegerValue(addressFromStringValue(a), (aw + "_Penalty"))
276276 let ac = al.payments[0].amount
277277 if ((S(at, 0, "", 0, "") == false))
278278 then {
279279 let W = {
280280 let z = al.payments[0].assetId
281281 if ($isInstanceOf(z, "ByteVector"))
282282 then {
283283 let A = z
284284 toBase58String(A)
285285 }
286286 else throw("AssetId is not a String")
287287 }
288288 if (if (V(at, au, W))
289289 then Z(at, av)
290290 else false)
291291 then {
292292 let y = invoke(addressFromStringValue(au), "getBorrowUSD", [at], nil)
293293 if ((y == y))
294294 then {
295295 let Y = {
296296 let z = y
297297 if ($isInstanceOf(z, "(Int, Int, Int)"))
298298 then {
299299 let A = z
300300 A
301301 }
302302 else throw("unexpected return value type")
303303 }
304304 let ay = invoke(addressFromStringValue(av), "getCollateralUSD", [at], nil)
305305 if ((ay == ay))
306306 then {
307307 let aa = {
308308 let z = ay
309309 if ($isInstanceOf(z, "(Int, Int, Int)"))
310310 then {
311311 let az = z
312312 az
313313 }
314314 else throw("unexpected return value type")
315315 }
316316 if ((fraction(Y._1, ax, 1000) >= ac))
317317 then {
318318 let w = ab(ac, Y._2, Y._3, aa._2, aa._3, ah)
319319 let aA = invoke(addressFromStringValue(au), "repay", [at], al.payments)
320320 if ((aA == aA))
321321 then {
322322 let o = invoke(addressFromStringValue(av), "payoutPenalty", [at, w], nil)
323323 if ((o == o))
324324 then {
325325 let as = getStringValue(addressFromStringValue(av), "assetId")
326326 let z = o
327327 if ($isInstanceOf(z, "Int"))
328328 then {
329329 let A = z
330330 if ((as == "WAVES"))
331331 then [ScriptTransfer(al.caller, A, unit)]
332332 else [ScriptTransfer(al.caller, A, fromBase58String(as))]
333333 }
334334 else if ($isInstanceOf(z, "String"))
335335 then {
336336 let A = z
337337 nil
338338 }
339339 else throw("Incorrect invoke result!")
340340 }
341341 else throw("Strict value is not equal to itself.")
342342 }
343343 else throw("Strict value is not equal to itself.")
344344 }
345345 else throw("Liquidation amount exceeds closefactor!")
346346 }
347347 else throw("Strict value is not equal to itself.")
348348 }
349349 else throw("Strict value is not equal to itself.")
350350 }
351351 else throw("User does not have the required assets!")
352352 }
353353 else throw("Only unhealthy accounts can be liquidated!")
354354 }
355355
356356
357357
358358 @Callable(al)
359359 func borrowFrom (n,as,o) = if (f(n))
360360 then {
361361 let X = getStringValue(addressFromStringValue(n), "assetId")
362362 if ((X == as))
363363 then if (m(n, o))
364364 then {
365365 let t = toBase58String(al.caller.bytes)
366366 if ((S(t, o, as, 0, "") == true))
367367 then {
368368 let ap = invoke(addressFromStringValue(n), "borrow", [t, o], nil)
369369 if ((ap == ap))
370370 then {
371371 let z = ap
372372 if ($isInstanceOf(z, "Int"))
373373 then {
374374 let A = z
375375 if ((X == "WAVES"))
376376 then [ScriptTransfer(al.caller, A, unit)]
377377 else [ScriptTransfer(al.caller, A, fromBase58String(X))]
378378 }
379379 else if ($isInstanceOf(z, "String"))
380380 then {
381381 let A = z
382382 nil
383383 }
384384 else throw("Incorrect invoke result!")
385385 }
386386 else throw("Strict value is not equal to itself.")
387387 }
388388 else throw("Borrow exceeds user health!")
389389 }
390390 else throw("Pool liquidity is not sufficient!")
391391 else throw("AssetIds does not match")
392392 }
393393 else throw("Pool address not found!")
394394
395395
396396
397397 @Callable(al)
398398 func lockAsCollateralAt (n) = if (f(n))
399399 then {
400400 let ar = getStringValue(addressFromStringValue(n), "dTokenId")
401401 if ((fromBase58String(ar) == al.payments[0].assetId))
402402 then if ((size(al.payments) > 0))
403403 then {
404404 let t = toBase58String(al.caller.bytes)
405405 let aB = invoke(addressFromStringValue(n), "lockAsCollateral", [t], al.payments)
406406 if ((aB == aB))
407407 then {
408408 let z = aB
409409 if ($isInstanceOf(z, "String"))
410410 then {
411411 let A = z
412412 nil
413413 }
414414 else throw("Incorrect invoke result!")
415415 }
416416 else throw("Strict value is not equal to itself.")
417417 }
418418 else throw("No payment attached!")
419419 else throw("AssetIds does not match")
420420 }
421421 else throw("Pool address not found!")
422422
423423
424424
425425 @Callable(al)
426426 func redeemCollateralFrom (n,aC,o) = if (f(n))
427427 then {
428428 let aD = getStringValue(addressFromStringValue(n), "dTokenId")
429429 if ((aD == aC))
430430 then {
431431 let t = toBase58String(al.caller.bytes)
432432 if ((S(t, 0, "", o, aC) == true))
433433 then {
434434 let ap = invoke(addressFromStringValue(n), "redeemCollateral", [t, o], nil)
435435 if ((ap == ap))
436436 then {
437437 let aq = getStringValue(addressFromStringValue(n), "dTokenId")
438438 let z = ap
439439 if ($isInstanceOf(z, "Int"))
440440 then {
441441 let A = z
442442 [ScriptTransfer(al.caller, A, fromBase58String(aq))]
443443 }
444444 else if ($isInstanceOf(z, "String"))
445445 then {
446446 let A = z
447447 nil
448448 }
449449 else throw("Incorrect invoke result!")
450450 }
451451 else throw("Strict value is not equal to itself.")
452452 }
453453 else throw("Borrow exceeds user health!")
454454 }
455455 else throw("AssetIds does not match")
456456 }
457457 else throw("Pool address not found!")
458458
459459
460460
461461 @Callable(al)
462462 func deleteData (aE) = [DeleteEntry(aE)]
463463
464464

github/deemru/w8io/169f3d6 
73.09 ms