tx · 9Qg4aBQJM14m52ctZ1MorguHHCEiygA3CeFTXcXQcrmj

3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo:  -0.04000000 Waves

2021.09.06 20:53 [1691520] smart account 3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo > SELF 0.00000000 Waves

{ "type": 13, "id": "9Qg4aBQJM14m52ctZ1MorguHHCEiygA3CeFTXcXQcrmj", "fee": 4000000, "feeAssetId": null, "timestamp": 1630950844621, "version": 2, "chainId": 84, "sender": "3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo", "senderPublicKey": "CD4N2SBeZVBUwmtsqwfmQ3ZKnBP3AxpZCvJ5QkHytUed", "proofs": [ "3Hywj8Zn8tzciBCUMw6J3zJfKAnzWa8rBsrpeMoJiazp3HjWpCZvawawJzpV3zBQCk9eyZzZoFk7U8moCSW1PXE9" ], "script": "base64:AAIFAAAAAAAAADwIAhIAEgQKAggYEgMKAQgSAwoBCBIECgIIBBIDCgEIEgMKAQgSBQoDCAgBEgMKAQgSBQoDCAgBEgMKAQgAAAAOAAAAAAZjb25maWcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABmNvbmZpZwIAAAAAAAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGY29uZmlnAgAAAAVhZG1pbgIAAAAAAAAAAAVwb29scwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAFcG9vbHMCAAAAAAEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIp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BQAAAAFpAAAABmNhbGxlcgUAAAABdAkAAlkAAAABBQAAAAd0b2tlbklkBQAAAANuaWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAUAAAADbmlsCQAAAgAAAAECAAAAGEluY29ycmVjdCBpbnZva2UgcmVzdWx0IQkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAbQm9ycm93IGV4Y2VlZHMgdXNlciBoZWFsdGghCQAAAgAAAAECAAAAF0Fzc2V0SWRzIGRvZXMgbm90IG1hdGNoCQAAAgAAAAECAAAAF1Bvb2wgYWRkcmVzcyBub3QgZm91bmQhAAAAAWkBAAAACmRlbGV0ZURhdGEAAAABAAAABG5hbWUJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAEbmFtZQUAAAADbmlsAAAAAHgdqco=", "height": 1691520, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CAm1n28teAFVHR9ppPjewXETEf949mbNK1JqDAKAPnu2 Next: 59iroGMSmdiPPrq3WA3euMj4yabWeyG5ij8cPhQVfgTd Diff:
OldNewDifferences
122122 }
123123 else throw("AssetIds do not match!")
124124 }
125+
126+
127+@Callable(ac)
128+func checkUserHealthTest () = {
129+ let t = toBase58String(ac.caller.bytes)
130+ let T = E(t, 0, "", 0, "")
131+ let U = B(T._1, T._2)
132+[k((t + "_health"), U)]
133+ }
134+
125135
126136
127137 @Callable(ac)
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,aa) = {
115115 let X = getString(addressFromStringValue(n), "assetId")
116116 if ((X == aa))
117117 then {
118118 let ab = valueOrElse(getInteger(addressFromStringValue(n), (t + "_locked")), 0)
119119 if ((ab > 0))
120120 then true
121121 else false
122122 }
123123 else throw("AssetIds do not match!")
124124 }
125+
126+
127+@Callable(ac)
128+func checkUserHealthTest () = {
129+ let t = toBase58String(ac.caller.bytes)
130+ let T = E(t, 0, "", 0, "")
131+ let U = B(T._1, T._2)
132+[k((t + "_health"), U)]
133+ }
134+
125135
126136
127137 @Callable(ac)
128138 func setup (ad,c) = if (if (!(isDefined(getString(this, "config"))))
129139 then !(isDefined(getString(this, "pools")))
130140 else false)
131141 then [h("config", ad), h("pools", makeString(c, ";"))]
132142 else throw("Admin and config address already definied!")
133143
134144
135145
136146 @Callable(ac)
137147 func addPool (n) = if (d(ac.caller))
138148 then {
139149 let F = split(c, ";")
140150 if ((containsElement(F, n) == false))
141151 then {
142152 let ae = (F :+ n)
143153 [h("pools", makeString(ae, ";"))]
144154 }
145155 else throw("Pool already exists!")
146156 }
147157 else throw("Address does not match with admin address!")
148158
149159
150160
151161 @Callable(ac)
152162 func updateConfig (ad) = if (d(ac.caller))
153163 then [h("config", ad)]
154164 else throw("Address does not match with admin address!")
155165
156166
157167
158168 @Callable(ac)
159169 func depositAt (n,af) = if (f(n))
160170 then if ((size(ac.payments) > 0))
161171 then {
162172 let t = toBase58String(ac.caller.bytes)
163173 let ag = invoke(addressFromStringValue(n), "deposit", [t, af], ac.payments)
164174 if ((ag == ag))
165175 then {
166176 let ah = getStringValue(addressFromStringValue(n), "dTokenId")
167177 let z = ag
168178 if ($isInstanceOf(z, "Int"))
169179 then {
170180 let A = z
171181 [ScriptTransfer(ac.caller, A, fromBase58String(ah))]
172182 }
173183 else if ($isInstanceOf(z, "String"))
174184 then {
175185 let A = z
176186 nil
177187 }
178188 else throw("Incorrect invoke result!")
179189 }
180190 else throw("Strict value is not equal to itself.")
181191 }
182192 else throw("No payment attached!")
183193 else throw("Pool address not found!")
184194
185195
186196
187197 @Callable(ac)
188198 func withdrawFrom (n) = if (f(n))
189199 then {
190200 let ai = getStringValue(addressFromStringValue(n), "dTokenId")
191201 if ((fromBase58String(ai) == ac.payments[0].assetId))
192202 then if ((size(ac.payments) > 0))
193203 then {
194204 let t = toBase58String(ac.caller.bytes)
195205 let ag = invoke(addressFromStringValue(n), "withdraw", [t], ac.payments)
196206 if ((ag == ag))
197207 then {
198208 let ah = getStringValue(addressFromStringValue(n), "assetId")
199209 let z = ag
200210 if ($isInstanceOf(z, "Int"))
201211 then {
202212 let A = z
203213 if ((ah == "WAVES"))
204214 then [ScriptTransfer(ac.caller, A, unit)]
205215 else [ScriptTransfer(ac.caller, A, fromBase58String(ah))]
206216 }
207217 else if ($isInstanceOf(z, "String"))
208218 then {
209219 let A = z
210220 nil
211221 }
212222 else throw("Incorrect invoke result!")
213223 }
214224 else throw("Strict value is not equal to itself.")
215225 }
216226 else throw("No payment attached!")
217227 else throw("AssetIds does not match")
218228 }
219229 else throw("Pool address not found!")
220230
221231
222232
223233 @Callable(ac)
224234 func repayTo (n) = if (f(n))
225235 then {
226236 let X = getStringValue(addressFromStringValue(n), "assetId")
227237 if ((fromBase58String(X) == ac.payments[0].assetId))
228238 then if ((size(ac.payments) > 0))
229239 then {
230240 let t = toBase58String(ac.caller.bytes)
231241 let o = invoke(addressFromStringValue(n), "repay", [t], ac.payments)
232242 if ((o == o))
233243 then {
234244 let aj = getStringValue(addressFromStringValue(n), "assetId")
235245 let z = o
236246 if ($isInstanceOf(z, "Int"))
237247 then {
238248 let A = z
239249 if ((aj == "WAVES"))
240250 then [ScriptTransfer(ac.caller, A, unit)]
241251 else [ScriptTransfer(ac.caller, A, fromBase58String(aj))]
242252 }
243253 else if ($isInstanceOf(z, "String"))
244254 then {
245255 let A = z
246256 nil
247257 }
248258 else throw("Incorrect invoke result!")
249259 }
250260 else throw("Strict value is not equal to itself.")
251261 }
252262 else throw("No payment attached!")
253263 else throw("AssetIds does not match")
254264 }
255265 else throw("Pool address not found!")
256266
257267
258268
259269 @Callable(ac)
260270 func borrowFrom (n,aj,o) = if (f(n))
261271 then {
262272 let X = getStringValue(addressFromStringValue(n), "assetId")
263273 if ((X == aj))
264274 then if (m(n, o))
265275 then {
266276 let t = toBase58String(ac.caller.bytes)
267277 if ((S(t, o, aj, 0, "") == true))
268278 then {
269279 let ag = invoke(addressFromStringValue(n), "borrow", [t, o], nil)
270280 if ((ag == ag))
271281 then {
272282 let z = ag
273283 if ($isInstanceOf(z, "Int"))
274284 then {
275285 let A = z
276286 if ((X == "WAVES"))
277287 then [ScriptTransfer(ac.caller, A, unit)]
278288 else [ScriptTransfer(ac.caller, A, fromBase58String(X))]
279289 }
280290 else if ($isInstanceOf(z, "String"))
281291 then {
282292 let A = z
283293 nil
284294 }
285295 else throw("Incorrect invoke result!")
286296 }
287297 else throw("Strict value is not equal to itself.")
288298 }
289299 else throw("Borrow exceeds user health!")
290300 }
291301 else throw("Pool liquidity is not sufficient!")
292302 else throw("AssetIds does not match")
293303 }
294304 else throw("Pool address not found!")
295305
296306
297307
298308 @Callable(ac)
299309 func lockAsCollateralAt (n) = if (f(n))
300310 then {
301311 let ai = getStringValue(addressFromStringValue(n), "dTokenId")
302312 if ((fromBase58String(ai) == ac.payments[0].assetId))
303313 then if ((size(ac.payments) > 0))
304314 then {
305315 let t = toBase58String(ac.caller.bytes)
306316 let ak = invoke(addressFromStringValue(n), "lockAsCollateral", [t], ac.payments)
307317 if ((ak == ak))
308318 then {
309319 let z = ak
310320 if ($isInstanceOf(z, "String"))
311321 then {
312322 let A = z
313323 nil
314324 }
315325 else throw("Incorrect invoke result!")
316326 }
317327 else throw("Strict value is not equal to itself.")
318328 }
319329 else throw("No payment attached!")
320330 else throw("AssetIds does not match")
321331 }
322332 else throw("Pool address not found!")
323333
324334
325335
326336 @Callable(ac)
327337 func redeemCollateralFrom (n,al,o) = if (f(n))
328338 then {
329339 let am = getStringValue(addressFromStringValue(n), "dTokenId")
330340 if ((am == al))
331341 then {
332342 let t = toBase58String(ac.caller.bytes)
333343 if ((S(t, 0, "", o, al) == true))
334344 then {
335345 let ag = invoke(addressFromStringValue(n), "redeemCollateral", [t, o], nil)
336346 if ((ag == ag))
337347 then {
338348 let ah = getStringValue(addressFromStringValue(n), "dTokenId")
339349 let z = ag
340350 if ($isInstanceOf(z, "Int"))
341351 then {
342352 let A = z
343353 [ScriptTransfer(ac.caller, A, fromBase58String(ah))]
344354 }
345355 else if ($isInstanceOf(z, "String"))
346356 then {
347357 let A = z
348358 nil
349359 }
350360 else throw("Incorrect invoke result!")
351361 }
352362 else throw("Strict value is not equal to itself.")
353363 }
354364 else throw("Borrow exceeds user health!")
355365 }
356366 else throw("AssetIds does not match")
357367 }
358368 else throw("Pool address not found!")
359369
360370
361371
362372 @Callable(ac)
363373 func deleteData (an) = [DeleteEntry(an)]
364374
365375

github/deemru/w8io/169f3d6 
45.68 ms