tx · FiGwZg5tEJAyQc7f5pKaVSUUqPGLwSFFHLshGDA59anM 3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo: -0.04000000 Waves 2021.09.05 17:17 [1689855] smart account 3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo > SELF 0.00000000 Waves
{ "type": 13, "id": "FiGwZg5tEJAyQc7f5pKaVSUUqPGLwSFFHLshGDA59anM", "fee": 4000000, "feeAssetId": null, "timestamp": 1630851476905, "version": 2, "chainId": 84, "sender": "3MvGMtmdY1eSW4iY922zj5bx8hBfyP1qgHo", "senderPublicKey": "CD4N2SBeZVBUwmtsqwfmQ3ZKnBP3AxpZCvJ5QkHytUed", "proofs": [ "4Hhakrq2d4HEgCGKXZTRuYoRwpe1fjuWMe28duqcVwN1EKTfiGuj6jdQaaSn5LQaKSRtNjX8pH2bqLxB54vFfdpW" ], "script": "base64:AAIFAAAAAAAAAC4IAhIFCgMICAESBAoCCBgSAwoBCBIDCgEIEgQKAggEEgMKAQgSAwoBCBIDCgEIAAAADAAAAAAGY29uZmlnCQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAZjb25maWcCAAAAAAAAAAAFYWRtaW4JAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAAAAAAAAFcG9vbHMJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABXBvb2xzAgAAAAABAAAAB2lzQWRtaW4AAAABAAAADWNhbGxlckFkZHJlc3MDCQAAAAAAAAIFAAAADWNhbGxlckFkZHJlc3MJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABWFkbWluBgcBAAAACWN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AAAABdAUAAAAHJG1hdGNoMAUAAAADbmlsCQAAAgAAAAECAAAAGEluY29ycmVjdCBpbnZva2UgcmVzdWx0IQkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAUTm8gcGF5bWVudCBhdHRhY2hlZCEJAAACAAAAAQIAAAAXQXNzZXRJZHMgZG9lcyBub3QgbWF0Y2gJAAACAAAAAQIAAAAXUG9vbCBhZGRyZXNzIG5vdCBmb3VuZCEAAAABaQEAAAAKZGVsZXRlRGF0YQAAAAEAAAAEbmFtZQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARuYW1lBQAAAANuaWwAAAAACfgPwQ==", "height": 1689855, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: TterQen7c6bWQb3DFMsvNkA2whU7gD7oRJY2W9bjALa Next: BRtswwF8yTWd1ggCvDoanT9mNh1mvGsNkJNK3fr6L1Wq Diff:
Old | New | Differences | |
---|---|---|---|
258 | 258 | else throw("Pool address not found!") | |
259 | 259 | ||
260 | 260 | ||
261 | + | ||
262 | + | @Callable(V) | |
263 | + | func deleteData (af) = [DeleteEntry(af)] | |
264 | + | ||
265 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = valueOrElse(getStringValue(this, "config"), "") | |
5 | 5 | ||
6 | 6 | let b = valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "") | |
7 | 7 | ||
8 | 8 | let c = valueOrElse(getStringValue(this, "pools"), "") | |
9 | 9 | ||
10 | 10 | func d (e) = if ((e == addressFromStringValue(b))) | |
11 | 11 | then true | |
12 | 12 | else false | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (g) = if (contains(c, g)) | |
16 | 16 | then true | |
17 | 17 | else false | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func h (i,j) = StringEntry(i, j) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func k (i,l) = IntegerEntry(i, l) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func m (n,o) = { | |
27 | 27 | let p = getIntegerValue(addressFromStringValue(n), "totalSupply") | |
28 | 28 | let q = getIntegerValue(addressFromStringValue(n), "totalBorrow") | |
29 | 29 | let r = (p - q) | |
30 | 30 | if ((r >= o)) | |
31 | 31 | then true | |
32 | 32 | else false | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func s (t,n,u,v,w,x) = { | |
37 | 37 | let y = invoke(addressFromStringValue(n), "getUserHealthParameter", [t, w, x, u, v], nil) | |
38 | 38 | let z = y | |
39 | 39 | if ($isInstanceOf(z, "(Int, Int)")) | |
40 | 40 | then { | |
41 | 41 | let A = z | |
42 | 42 | A | |
43 | 43 | } | |
44 | 44 | else throw("Error") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func B (C,D) = fraction((C - D), 1000, C) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func E (t,u,v,w,x) = { | |
52 | 52 | let F = split(c, ";") | |
53 | 53 | let G = size(F) | |
54 | 54 | func H (I,J) = { | |
55 | 55 | let K = s(t, J, u, v, w, x) | |
56 | 56 | let z = K | |
57 | 57 | if ($isInstanceOf(z, "(Int, Int)")) | |
58 | 58 | then { | |
59 | 59 | let A = z | |
60 | 60 | $Tuple2((I._1 + K._1), (I._2 + K._1)) | |
61 | 61 | } | |
62 | 62 | else { | |
63 | 63 | let L = z | |
64 | 64 | throw("Test") | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | let M = F | |
69 | 69 | let N = size(M) | |
70 | 70 | let O = $Tuple2(0, 0) | |
71 | 71 | if ((N == 0)) | |
72 | 72 | then O | |
73 | 73 | else { | |
74 | 74 | let P = H(O, M[0]) | |
75 | 75 | if ((N == 1)) | |
76 | 76 | then P | |
77 | 77 | else { | |
78 | 78 | let Q = H(P, M[1]) | |
79 | 79 | if ((N == 2)) | |
80 | 80 | then Q | |
81 | 81 | else { | |
82 | 82 | let R = H(Q, M[2]) | |
83 | 83 | throw("List size exceed 2") | |
84 | 84 | } | |
85 | 85 | } | |
86 | 86 | } | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S (t,u,v,w,x) = { | |
91 | 91 | let T = E(t, u, v, w, x) | |
92 | 92 | let U = B(T._1, T._2) | |
93 | 93 | if ((U >= 0)) | |
94 | 94 | then true | |
95 | 95 | else false | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(V) | |
100 | 100 | func borrowFrom (n,W,o) = if (f(n)) | |
101 | 101 | then { | |
102 | 102 | let X = getStringValue(addressFromStringValue(n), "assetId") | |
103 | 103 | if ((X == W)) | |
104 | 104 | then if (m(n, o)) | |
105 | 105 | then { | |
106 | 106 | let t = toBase58String(V.caller.bytes) | |
107 | 107 | if (S(t, o, W, 0, "")) | |
108 | 108 | then { | |
109 | 109 | let Y = invoke(addressFromStringValue(n), "borrow", [t, o], nil) | |
110 | 110 | if ((Y == Y)) | |
111 | 111 | then { | |
112 | 112 | let z = Y | |
113 | 113 | if ($isInstanceOf(z, "Int")) | |
114 | 114 | then { | |
115 | 115 | let A = z | |
116 | 116 | if ((X == "WAVES")) | |
117 | 117 | then [ScriptTransfer(V.caller, A, unit)] | |
118 | 118 | else [ScriptTransfer(V.caller, A, fromBase58String(X))] | |
119 | 119 | } | |
120 | 120 | else if ($isInstanceOf(z, "String")) | |
121 | 121 | then { | |
122 | 122 | let A = z | |
123 | 123 | nil | |
124 | 124 | } | |
125 | 125 | else throw("Incorrect invoke result!") | |
126 | 126 | } | |
127 | 127 | else throw("Strict value is not equal to itself.") | |
128 | 128 | } | |
129 | 129 | else throw("Borrow exceeds user health!") | |
130 | 130 | } | |
131 | 131 | else throw("Pool liquidity is not sufficient!") | |
132 | 132 | else throw("AssetIds does not match") | |
133 | 133 | } | |
134 | 134 | else throw("Pool address not found!") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(V) | |
139 | 139 | func setup (Z,c) = if (if (!(isDefined(getString(this, "config")))) | |
140 | 140 | then !(isDefined(getString(this, "pools"))) | |
141 | 141 | else false) | |
142 | 142 | then [h("config", Z), h("pools", makeString(c, ";"))] | |
143 | 143 | else throw("Admin and config address already definied!") | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | ||
147 | 147 | @Callable(V) | |
148 | 148 | func addPool (n) = if (d(V.caller)) | |
149 | 149 | then { | |
150 | 150 | let F = split(c, ";") | |
151 | 151 | if ((containsElement(F, n) == false)) | |
152 | 152 | then { | |
153 | 153 | let aa = (F :+ n) | |
154 | 154 | [h("pools", makeString(aa, ";"))] | |
155 | 155 | } | |
156 | 156 | else throw("Pool already exists!") | |
157 | 157 | } | |
158 | 158 | else throw("Address does not match with admin address!") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(V) | |
163 | 163 | func updateConfig (Z) = if (d(V.caller)) | |
164 | 164 | then [h("config", Z)] | |
165 | 165 | else throw("Address does not match with admin address!") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(V) | |
170 | 170 | func depositAt (n,ab) = if (f(n)) | |
171 | 171 | then if ((size(V.payments) > 0)) | |
172 | 172 | then { | |
173 | 173 | let t = toBase58String(V.caller.bytes) | |
174 | 174 | let Y = invoke(addressFromStringValue(n), "deposit", [t, ab], V.payments) | |
175 | 175 | if ((Y == Y)) | |
176 | 176 | then { | |
177 | 177 | let ac = getStringValue(addressFromStringValue(n), "dTokenId") | |
178 | 178 | let z = Y | |
179 | 179 | if ($isInstanceOf(z, "Int")) | |
180 | 180 | then { | |
181 | 181 | let A = z | |
182 | 182 | [ScriptTransfer(V.caller, A, fromBase58String(ac))] | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(z, "String")) | |
185 | 185 | then { | |
186 | 186 | let A = z | |
187 | 187 | nil | |
188 | 188 | } | |
189 | 189 | else throw("Incorrect invoke result!") | |
190 | 190 | } | |
191 | 191 | else throw("Strict value is not equal to itself.") | |
192 | 192 | } | |
193 | 193 | else throw("No payment attached!") | |
194 | 194 | else throw("Pool address not found!") | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(V) | |
199 | 199 | func withdrawFrom (n) = if (f(n)) | |
200 | 200 | then { | |
201 | 201 | let ad = getStringValue(addressFromStringValue(n), "dTokenId") | |
202 | 202 | if ((fromBase58String(ad) == V.payments[0].assetId)) | |
203 | 203 | then if ((size(V.payments) > 0)) | |
204 | 204 | then { | |
205 | 205 | let t = toBase58String(V.caller.bytes) | |
206 | 206 | let Y = invoke(addressFromStringValue(n), "withdraw", [t], V.payments) | |
207 | 207 | if ((Y == Y)) | |
208 | 208 | then { | |
209 | 209 | let ac = getStringValue(addressFromStringValue(n), "assetId") | |
210 | 210 | let z = Y | |
211 | 211 | if ($isInstanceOf(z, "Int")) | |
212 | 212 | then { | |
213 | 213 | let A = z | |
214 | 214 | if ((ac == "WAVES")) | |
215 | 215 | then [ScriptTransfer(V.caller, A, unit)] | |
216 | 216 | else [ScriptTransfer(V.caller, A, fromBase58String(ac))] | |
217 | 217 | } | |
218 | 218 | else if ($isInstanceOf(z, "String")) | |
219 | 219 | then { | |
220 | 220 | let A = z | |
221 | 221 | nil | |
222 | 222 | } | |
223 | 223 | else throw("Incorrect invoke result!") | |
224 | 224 | } | |
225 | 225 | else throw("Strict value is not equal to itself.") | |
226 | 226 | } | |
227 | 227 | else throw("No payment attached!") | |
228 | 228 | else throw("AssetIds does not match") | |
229 | 229 | } | |
230 | 230 | else throw("Pool address not found!") | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | ||
234 | 234 | @Callable(V) | |
235 | 235 | func lockAsCollateralAt (n) = if (f(n)) | |
236 | 236 | then { | |
237 | 237 | let ad = getStringValue(addressFromStringValue(n), "dTokenId") | |
238 | 238 | if ((fromBase58String(ad) == V.payments[0].assetId)) | |
239 | 239 | then if ((size(V.payments) > 0)) | |
240 | 240 | then { | |
241 | 241 | let t = toBase58String(V.caller.bytes) | |
242 | 242 | let ae = invoke(addressFromStringValue(n), "lockAsCollateral", [t], V.payments) | |
243 | 243 | if ((ae == ae)) | |
244 | 244 | then { | |
245 | 245 | let z = ae | |
246 | 246 | if ($isInstanceOf(z, "String")) | |
247 | 247 | then { | |
248 | 248 | let A = z | |
249 | 249 | nil | |
250 | 250 | } | |
251 | 251 | else throw("Incorrect invoke result!") | |
252 | 252 | } | |
253 | 253 | else throw("Strict value is not equal to itself.") | |
254 | 254 | } | |
255 | 255 | else throw("No payment attached!") | |
256 | 256 | else throw("AssetIds does not match") | |
257 | 257 | } | |
258 | 258 | else throw("Pool address not found!") | |
259 | 259 | ||
260 | 260 | ||
261 | + | ||
262 | + | @Callable(V) | |
263 | + | func deleteData (af) = [DeleteEntry(af)] | |
264 | + | ||
265 | + |
github/deemru/w8io/169f3d6 30.39 ms ◑