tx · 2iqdxJU2st9no6U1W8pwHQB2xMv7J6aVNbhoTg5nC3RT 3NBG2Nuz2cjtG8wWcKLBGZ1bBpveU56gp77: -0.05000000 Waves 2021.10.14 17:46 [1746068] smart account 3NBG2Nuz2cjtG8wWcKLBGZ1bBpveU56gp77 > SELF 0.00000000 Waves
{ "type": 13, "id": "2iqdxJU2st9no6U1W8pwHQB2xMv7J6aVNbhoTg5nC3RT", "fee": 5000000, "feeAssetId": null, "timestamp": 1634222795061, "version": 2, "chainId": 84, "sender": "3NBG2Nuz2cjtG8wWcKLBGZ1bBpveU56gp77", "senderPublicKey": "B565vUqaobfDQJcgjUnNdsSqnqWfRsAQDBb1JeciPWtP", "proofs": [ "2xuhUU9eahmqMNgwDfxtBgPzgeVBwpxSmGqhaJ24Hegk2uUcYhC2Shjnk25stqf58HsKJd4dkrHgEqRHGAApryCz" ], "script": "base64:AAIFAAAAAAAAAEUIAhIDCgEIEgMKAQgSBwoFCAEIAQgSBAoCCAQSAwoBCBIDCgEIEgQKAggBEgQKAggBEgQKAggBEgMKAQgSBwoFCAgBCAgAAAAuAAAAAApiYXNlRmFjdG9yAAAAAAAAAAPoAAAAAAliYXNlSW5kZXgAACOG8m/BAAAAAAAADWJsb2Nrc1BlclllYXIAAAAAAAAIBSAAAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAA1jb25maWdBZGRyZXNzAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAAAAAAAALd2F2ZXRyb2xsZXIJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGY29uZmlnAgAAAAt3YXZldHJvbGxlcgIAAAAAAAAAAAZvcmFjbGUJAQAAA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AAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkehPyE", "height": 1746068, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CQJdwwvwXxxhNJgGtyYpkkD8NrS7PvmNBhizn7NHCV9h Next: none Diff:
Old | New | Differences | |
---|---|---|---|
321 | 321 | else throw("Pool already setup!") | |
322 | 322 | ||
323 | 323 | ||
324 | - | ||
325 | - | @Callable(al) | |
326 | - | func updateIntegerEntry (G,J) = [I(G, J)] | |
327 | - | ||
328 | - | ||
329 | 324 | @Verifier(aV) | |
330 | 325 | func aW () = sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey) | |
331 | 326 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000000000000000 | |
7 | 7 | ||
8 | 8 | let c = 525600 | |
9 | 9 | ||
10 | 10 | let d = valueOrElse(getString(this, "configAddress"), "") | |
11 | 11 | ||
12 | 12 | let e = valueOrElse(getString(addressFromStringValue(d), "admin"), "") | |
13 | 13 | ||
14 | 14 | let f = valueOrElse(getString(addressFromStringValue(d), "wavetroller"), "") | |
15 | 15 | ||
16 | 16 | let g = valueOrElse(getString(addressFromStringValue(d), "oracle"), "") | |
17 | 17 | ||
18 | 18 | let h = valueOrErrorMessage(getString(this, "assetId"), "No assetId could be found in data storage!") | |
19 | 19 | ||
20 | 20 | let i = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_Decimals")), (("No key " + (h + "_Decimals")) + " was found")) | |
21 | 21 | ||
22 | 22 | let j = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_Multiplier")), (("No key " + (h + "_Multiplier")) + " was found")) | |
23 | 23 | ||
24 | 24 | let k = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_Kink")), (("No key " + (h + "_Kink")) + " was found")) | |
25 | 25 | ||
26 | 26 | let l = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_JumpMultiplier")), (("No key " + (h + "_JumpMultiplier")) + " was found")) | |
27 | 27 | ||
28 | 28 | let m = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_BaseRate")), (("No key " + (h + "_BaseRate")) + " was found")) | |
29 | 29 | ||
30 | 30 | let n = valueOrErrorMessage(getInteger(this, "baseExchangeRate"), "No key baseExchangeRate was found") | |
31 | 31 | ||
32 | 32 | let o = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_CollateralFactor")), (("No key " + (h + "_CollateralFactor")) + " was found")) | |
33 | 33 | ||
34 | 34 | let p = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_Threshold")), (("No key " + (h + "_Threshold")) + " was found")) | |
35 | 35 | ||
36 | 36 | let q = valueOrErrorMessage(getInteger(addressFromStringValue(d), (h + "_ReserveFactor")), (("No key " + (h + "_ReserveFactor")) + " was found")) | |
37 | 37 | ||
38 | 38 | let r = valueOrElse(getInteger(this, "totalBorrow"), 0) | |
39 | 39 | ||
40 | 40 | let s = valueOrElse(getInteger(this, "totalSupply"), 0) | |
41 | 41 | ||
42 | 42 | let t = valueOrElse(getInteger(this, "totalReserve"), 0) | |
43 | 43 | ||
44 | 44 | let u = valueOrErrorMessage(getInteger(this, "dTokenSupply"), "No key dTokenSupply was found") | |
45 | 45 | ||
46 | 46 | let v = valueOrErrorMessage(getInteger(this, "dTokenDecimals"), "No key dTokenDecimals was found") | |
47 | 47 | ||
48 | 48 | let w = valueOrErrorMessage(getString(this, "dTokenId"), "No key dTokenId was found") | |
49 | 49 | ||
50 | 50 | let x = valueOrErrorMessage(getString(this, "dTokenName"), "No key dTokenName was found") | |
51 | 51 | ||
52 | 52 | let y = valueOrElse(getInteger(this, "storedHeight"), height) | |
53 | 53 | ||
54 | 54 | let z = valueOrElse(getInteger(this, "storedIndex"), 10000000000000000) | |
55 | 55 | ||
56 | 56 | func A (B) = if ((addressFromStringValue(e) == B)) | |
57 | 57 | then true | |
58 | 58 | else false | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (B) = if ((addressFromStringValue(f) == B)) | |
62 | 62 | then true | |
63 | 63 | else false | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func D (E) = if ((E == h)) | |
67 | 67 | then true | |
68 | 68 | else false | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func F (G,H) = StringEntry(G, H) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func I (G,J) = IntegerEntry(G, J) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func K (L) = valueOrElse(getInteger(this, (L + "_locked")), 0) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | let M = if ((s > 0)) | |
81 | 81 | then fraction(r, a, s) | |
82 | 82 | else 0 | |
83 | 83 | ||
84 | 84 | let N = { | |
85 | 85 | let O = [M, k] | |
86 | 86 | let P = min(O) | |
87 | 87 | let Q = [0, (M - k)] | |
88 | 88 | let R = max(Q) | |
89 | 89 | ((fraction(j, P, a) + fraction(l, R, a)) + m) | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | let S = fraction(fraction(N, M, a), (a - q), a) | |
93 | 93 | ||
94 | 94 | let T = fraction(N, b, (c * a)) | |
95 | 95 | ||
96 | 96 | let U = (height - y) | |
97 | 97 | ||
98 | 98 | let V = fraction(z, (b + (T * U)), b, CEILING) | |
99 | 99 | ||
100 | 100 | let W = fraction(r, V, z) | |
101 | 101 | ||
102 | 102 | let X = fraction(r, (T * U), b) | |
103 | 103 | ||
104 | 104 | let Y = (s + fraction((a - q), X, a)) | |
105 | 105 | ||
106 | 106 | let Z = (t + fraction(q, X, a)) | |
107 | 107 | ||
108 | 108 | let aa = if ((u > 0)) | |
109 | 109 | then { | |
110 | 110 | let ab = ((18 - v) + i) | |
111 | 111 | let ac = pow(10, 0, ab, 0, 0, CEILING) | |
112 | 112 | fraction(Y, ac, u) | |
113 | 113 | } | |
114 | 114 | else n | |
115 | 115 | ||
116 | 116 | func ad (ae) = { | |
117 | 117 | let ab = ((18 - v) + i) | |
118 | 118 | let ac = pow(10, 0, ab, 0, 0, CEILING) | |
119 | 119 | fraction(ae, ac, aa) | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func af (ag) = { | |
124 | 124 | let ab = ((18 - v) + i) | |
125 | 125 | let ac = pow(10, 0, ab, 0, 0, CEILING) | |
126 | 126 | fraction(ag, aa, ac) | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ah (ai) = { | |
131 | 131 | let aj = valueOrElse(getInteger(this, (ai + "_borrow")), 0) | |
132 | 132 | let ak = valueOrElse(getInteger(this, (ai + "_index")), 0) | |
133 | 133 | if ((ak > 0)) | |
134 | 134 | then fraction(aj, V, ak) | |
135 | 135 | else 0 | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(al) | |
140 | 140 | func getBorrowUSD (ai) = { | |
141 | 141 | let am = ah(ai) | |
142 | 142 | let ac = pow(10, 0, i, 0, 0, CEILING) | |
143 | 143 | let an = { | |
144 | 144 | let ao = invoke(addressFromStringValue(g), "getPrice", [h], nil) | |
145 | 145 | if ((ao == ao)) | |
146 | 146 | then { | |
147 | 147 | let ap = ao | |
148 | 148 | if ($isInstanceOf(ap, "Int")) | |
149 | 149 | then { | |
150 | 150 | let aq = ap | |
151 | 151 | aq | |
152 | 152 | } | |
153 | 153 | else throw("Price is not an Integer!") | |
154 | 154 | } | |
155 | 155 | else throw("Strict value is not equal to itself.") | |
156 | 156 | } | |
157 | 157 | $Tuple2(nil, $Tuple3(am, an, ac)) | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(al) | |
163 | 163 | func getCollateralUSD (ai) = { | |
164 | 164 | let ar = valueOrElse(getInteger(this, (ai + "_locked")), 0) | |
165 | 165 | let as = af(ar) | |
166 | 166 | let ac = pow(10, 0, i, 0, 0, CEILING) | |
167 | 167 | let an = { | |
168 | 168 | let ao = invoke(addressFromStringValue(g), "getPrice", [h], nil) | |
169 | 169 | if ((ao == ao)) | |
170 | 170 | then { | |
171 | 171 | let ap = ao | |
172 | 172 | if ($isInstanceOf(ap, "Int")) | |
173 | 173 | then { | |
174 | 174 | let aq = ap | |
175 | 175 | aq | |
176 | 176 | } | |
177 | 177 | else throw("Price is not an Integer!") | |
178 | 178 | } | |
179 | 179 | else throw("Strict value is not equal to itself.") | |
180 | 180 | } | |
181 | 181 | $Tuple2(nil, $Tuple3(as, an, ac)) | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(al) | |
187 | 187 | func getUserHealthParameter (ai,at,au,av,aw) = if (C(al.caller)) | |
188 | 188 | then { | |
189 | 189 | let ax = valueOrElse(getInteger(this, (ai + "_locked")), 0) | |
190 | 190 | let ay = if ((w == au)) | |
191 | 191 | then (ax - at) | |
192 | 192 | else ax | |
193 | 193 | let az = if ((aw == h)) | |
194 | 194 | then (ah(ai) + av) | |
195 | 195 | else ah(ai) | |
196 | 196 | let aA = af(ay) | |
197 | 197 | let an = invoke(addressFromStringValue(g), "getPrice", [h], nil) | |
198 | 198 | if ((an == an)) | |
199 | 199 | then { | |
200 | 200 | let ap = an | |
201 | 201 | if ($isInstanceOf(ap, "Int")) | |
202 | 202 | then { | |
203 | 203 | let aq = ap | |
204 | 204 | let aB = fraction(o, aA, a) | |
205 | 205 | let ac = pow(10, 0, i, 0, 0, CEILING) | |
206 | 206 | let aC = fraction(aB, aq, ac) | |
207 | 207 | let aD = fraction(az, aq, ac) | |
208 | 208 | let aE = fraction(aD, a, p) | |
209 | 209 | $Tuple2(nil, $Tuple2(aC, aE)) | |
210 | 210 | } | |
211 | 211 | else throw("Incorrect pricing") | |
212 | 212 | } | |
213 | 213 | else throw("Strict value is not equal to itself.") | |
214 | 214 | } | |
215 | 215 | else throw("Address does not match with wavetroller address!") | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(al) | |
220 | 220 | func deposit (ai,aF) = if (C(al.caller)) | |
221 | 221 | then { | |
222 | 222 | let aG = ad(al.payments[0].amount) | |
223 | 223 | let aH = (u + aG) | |
224 | 224 | if (aF) | |
225 | 225 | then { | |
226 | 226 | let aI = (K(ai) + aG) | |
227 | 227 | $Tuple2([I((ai + "_locked"), aI), I("dTokenSupply", aH), I("totalBorrow", W), I("totalSupply", (Y + al.payments[0].amount)), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), Reissue(fromBase58String(w), aG, true)], ((toString(al.payments[0].amount) + x) + "were successfully locked")) | |
228 | 228 | } | |
229 | 229 | else $Tuple2([I("dTokenSupply", aH), I("totalBorrow", W), I("totalSupply", (Y + al.payments[0].amount)), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), Reissue(fromBase58String(w), aG, true), ScriptTransfer(al.caller, aG, fromBase58String(w))], aG) | |
230 | 230 | } | |
231 | 231 | else throw("Address does not match with wavetroller address!") | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(al) | |
236 | 236 | func withdraw (ai) = if (C(al.caller)) | |
237 | 237 | then { | |
238 | 238 | let aJ = (Y - W) | |
239 | 239 | let aK = af(al.payments[0].amount) | |
240 | 240 | if ((aJ >= aK)) | |
241 | 241 | then $Tuple2([I("dTokenSupply", (u - al.payments[0].amount)), I("totalBorrow", W), I("totalSupply", (Y - aK)), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), Burn(fromBase58String(w), al.payments[0].amount), if ((h == "WAVES")) | |
242 | 242 | then ScriptTransfer(al.caller, aK, unit) | |
243 | 243 | else ScriptTransfer(al.caller, aK, fromBase58String(h))], aK) | |
244 | 244 | else throw("Pool liquidity is not sufficient!") | |
245 | 245 | } | |
246 | 246 | else throw("Address does not match with wavetroller address!") | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(al) | |
251 | 251 | func lockAsCollateral (ai) = if (C(al.caller)) | |
252 | 252 | then { | |
253 | 253 | let aL = (K(ai) + al.payments[0].amount) | |
254 | 254 | $Tuple2([I((ai + "_locked"), aL), I("totalBorrow", W), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height)], ((toString(al.payments[0].amount) + x) + "were successfully locked")) | |
255 | 255 | } | |
256 | 256 | else throw("Address does not match with wavetroller address!") | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | ||
260 | 260 | @Callable(al) | |
261 | 261 | func redeemCollateral (ai,aM) = if (C(al.caller)) | |
262 | 262 | then { | |
263 | 263 | let aA = valueOrElse(getInteger(this, (ai + "_locked")), 0) | |
264 | 264 | if ((aA >= aM)) | |
265 | 265 | then $Tuple2([I((ai + "_locked"), (aA - aM)), I("totalBorrow", W), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), ScriptTransfer(al.caller, aM, fromBase58String(w))], aM) | |
266 | 266 | else $Tuple2([I((ai + "_locked"), 0), I("totalBorrow", W), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), ScriptTransfer(al.caller, aA, fromBase58String(w))], aA) | |
267 | 267 | } | |
268 | 268 | else throw("Address does not match with wavetroller address!") | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(al) | |
273 | 273 | func borrow (ai,aM) = if (C(al.caller)) | |
274 | 274 | then { | |
275 | 275 | let az = ah(ai) | |
276 | 276 | $Tuple2([I((ai + "_borrow"), (az + aM)), I((ai + "_index"), V), I("totalBorrow", (W + aM)), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), if ((h == "WAVES")) | |
277 | 277 | then ScriptTransfer(al.caller, aM, unit) | |
278 | 278 | else ScriptTransfer(al.caller, aM, fromBase58String(h))], aM) | |
279 | 279 | } | |
280 | 280 | else throw("Address does not match with wavetroller address!") | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | ||
284 | 284 | @Callable(al) | |
285 | 285 | func payoutPenalty (ai,aM) = if (C(al.caller)) | |
286 | 286 | then { | |
287 | 287 | let ar = getIntegerValue(this, (ai + "_locked")) | |
288 | 288 | let aN = ad(aM) | |
289 | 289 | $Tuple2([I((ai + "_locked"), (ar - aN)), Burn(fromBase58String(w), aN), I("dTokenSupply", (u - aN)), I("totalBorrow", W), I("totalSupply", (Y - aM)), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), if ((h == "WAVES")) | |
290 | 290 | then ScriptTransfer(al.caller, aM, unit) | |
291 | 291 | else ScriptTransfer(al.caller, aM, fromBase58String(h))], aM) | |
292 | 292 | } | |
293 | 293 | else throw("Address does not match with wavetroller address!") | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(al) | |
298 | 298 | func repay (ai) = if (C(al.caller)) | |
299 | 299 | then { | |
300 | 300 | let az = ah(ai) | |
301 | 301 | if ((az >= al.payments[0].amount)) | |
302 | 302 | then $Tuple2([I((ai + "_borrow"), (az - al.payments[0].amount)), I((ai + "_index"), V), I("totalBorrow", (W - al.payments[0].amount)), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height)], ((toString(al.payments[0].amount) + " successfully repaid. User credit at") + toString((az - al.payments[0].amount)))) | |
303 | 303 | else { | |
304 | 304 | let aO = (al.payments[0].amount - az) | |
305 | 305 | $Tuple2([I((ai + "_borrow"), 0), I((ai + "_index"), V), I("totalBorrow", (W - az)), I("totalSupply", Y), I("totalReserve", Z), I("storedIndex", V), I("storedHeight", height), if ((h == "WAVES")) | |
306 | 306 | then ScriptTransfer(al.caller, aO, unit) | |
307 | 307 | else ScriptTransfer(al.caller, aO, fromBase58String(h))], aO) | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | else throw("Address does not match with wavetroller address!") | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(al) | |
315 | 315 | func setup (aP,aQ,n,aR,aS) = if (!(isDefined(getString(this, "configAddress")))) | |
316 | 316 | then { | |
317 | 317 | let aT = Issue(aR, aS, 0, 8, true) | |
318 | 318 | let aU = calculateAssetId(aT) | |
319 | 319 | [aT, F("assetId", aP), F("configAddress", aQ), IntegerEntry("totalBorrow", 0), IntegerEntry("totalSupply", 0), IntegerEntry("totalReserve", 0), IntegerEntry("storedIndex", b), IntegerEntry("storedHeight", height), IntegerEntry("baseExchangeRate", n), F("dTokenName", aR), F("dTokenId", toBase58String(aU)), IntegerEntry("dTokenDecimals", 8), IntegerEntry("dTokenSupply", 0)] | |
320 | 320 | } | |
321 | 321 | else throw("Pool already setup!") | |
322 | 322 | ||
323 | 323 | ||
324 | - | ||
325 | - | @Callable(al) | |
326 | - | func updateIntegerEntry (G,J) = [I(G, J)] | |
327 | - | ||
328 | - | ||
329 | 324 | @Verifier(aV) | |
330 | 325 | func aW () = sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey) | |
331 | 326 |
github/deemru/w8io/026f985 51.05 ms ◑