tx · E4b5DVY9BeSXcsVABkaVch7PPQ6HNahQasbweJXz6ie5 3MxAQyWEp7chJzkxCxxtJLjqvEjfWKH6yAF: -0.01000000 Waves 2020.09.22 21:07 [1188851] smart account 3MxAQyWEp7chJzkxCxxtJLjqvEjfWKH6yAF > SELF 0.00000000 Waves
{ "type": 13, "id": "E4b5DVY9BeSXcsVABkaVch7PPQ6HNahQasbweJXz6ie5", "fee": 1000000, "feeAssetId": null, "timestamp": 1600798078641, "version": 1, "sender": "3MxAQyWEp7chJzkxCxxtJLjqvEjfWKH6yAF", "senderPublicKey": "HUKjMb266WfJ11sz2FkkVaP1hdPbnfVKjK6DGs3Mf4Af", "proofs": [ "4WXiggkuPfBXN8QkEd82aD6BQNx1TziDQ6eNR9PS8t51pPTMCPmQTPPAPPsGeqMz2PvB7xXRxvV4gGUsxsznKRQz" ], "script": "base64:AAIEAAAAAAAAABUIAhIAEgASBAoCCAgSABIFCgMIAQEAAABHAQAAABFrZXlBY2N1bXVsYXRlZEZlZQAAAAACAAAAEiVzX19hY2N1bXVsYXRlZEZlZQEAAAAOa2V5VWNvbGxhdGVyYWwAAAAAAgAAAA8lc19fdWNvbGxhdGVyYWwBAAAAGWtleVRvdGFsTGVuZGVkQXRPdGhlckFjY3MAAAAAAgAAABolc19fdG90YWxMZW5kZWRBdE90aGVyQWNjcwEAAAATa2V5QXNzZXRMb2NrZWRUb3RhbAAAAAEAAAAHYXNzZXRJZAkAASwAAAACAgAAABglcyVzX19hc3NldExvY2tlZFRvdGFsX18FAAAAB2Fzc2V0SWQBAAAAE2tleUFjY291bnRPcGVyYXRpb24AAAADAAAADHVubG9ja0hlaWdodAAAAAdhZGRyZXNzAAAABnN0YXR1cwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAHiVzJXMlZCVzX19kZWZvQXNzZXRPcGVyYXRpb25fXwUAAAAHYWRkcmVzcwIAAAACX18JAAGkAAAAAQUAAAAMdW5sb2NrSGVpZ2h0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5jZURlYnRzIGNhbGwgaXMgYWxsb3dlZAMJAQAAAAIhPQAAAAIJAAGRAAAAAgkBAAAAHGZhY3RvcnlSZWFkQXNzZXRDZmdCeUFkZHJlc3MAAAABCQAEJQAAAAEJAAQkAAAAAQgFAAAAA2ludgAAAARkQXBwBQAAABJJZHhEZWZvQXNzZXRTdGF0dXMCAAAABklTU1VFRAkAAAIAAAABAgAAABlvbmx5IGRlZm8gZGFwcCBpcyBhbGxvd2VkAwkAAGYAAAACCAUAAAADaW52AAAAA2ZlZQkAAGgAAAACAAAAAAAAAAOEAAAAAAAAAAPoCQAAAgAAAAEJAAEsAAAAAgIAAAAoZmVlIGFtb3VudCBpcyBncmVhdGVyIHRoYW4gbWF4IGFsbG93ZWQ6IAkAAaQAAAABCAUAAAADaW52AAAAA2ZlZQMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADaW52AAAACmZlZUFzc2V0SWQJAAACAAAAAQIAAAAjb25seSBXYXZlcyBpcyBhbGxvd2VkIGFzIGZlZUFzc2V0SWQGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleWfLGy4=", "chainId": 84, "height": 1188851, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a () = "%s__accumulatedFee" | |
5 | + | ||
6 | + | ||
7 | + | func b () = "%s__ucollateral" | |
8 | + | ||
9 | + | ||
10 | + | func c () = "%s__totalLendedAtOtherAccs" | |
11 | + | ||
12 | + | ||
13 | + | func d (e) = ("%s%s__assetLockedTotal__" + e) | |
14 | + | ||
15 | + | ||
16 | + | func f (g,h,i) = ((((("%s%s%d%s__defoAssetOperation__" + h) + "__") + toString(g)) + "__") + i) | |
17 | + | ||
18 | + | ||
19 | + | func j () = "%s__factory" | |
20 | + | ||
21 | + | ||
22 | + | func k (l) = ("%s%s__lendedBaseAssetAmount__" + l) | |
23 | + | ||
24 | + | ||
25 | + | func m (l) = ("%s%s__price__" + l) | |
26 | + | ||
27 | + | ||
28 | + | let n = 1 | |
29 | + | ||
30 | + | let o = 2 | |
31 | + | ||
32 | + | let p = 3 | |
33 | + | ||
34 | + | let q = 4 | |
35 | + | ||
36 | + | let r = 5 | |
37 | + | ||
38 | + | func s (t,u,v,w,x,y,z) = ((((((((((((("%d%s%d%s%d%d%d__" + toString(t)) + "__") + u) + "__") + toString(w)) + "__") + x) + "__") + toString(v)) + "__") + toString(y)) + "__") + toString(z)) | |
39 | + | ||
40 | + | ||
41 | + | func A (B,C,D,E,F) = ((((((((((((("%s%s%d%s%d%d%d__" + B) + "__") + toBase58String(value(C.assetId))) + "__") + toString(C.amount)) + "__") + toBase58String(value(D.assetId))) + "__") + toString(D.amount)) + "__") + toString(E)) + "__") + toString(F)) | |
42 | + | ||
43 | + | ||
44 | + | func G (H) = { | |
45 | + | let I = valueOrErrorMessage(getString(this, H), ("There is no request for passed arguments: " + H)) | |
46 | + | split(I, "__") | |
47 | + | } | |
48 | + | ||
49 | + | ||
50 | + | let J = -1 | |
51 | + | ||
52 | + | let K = "NULL" | |
53 | + | ||
54 | + | let L = addressFromStringValue(valueOrErrorMessage(getString(this, j()), ((("No config at this=" + toString(this)) + " for key=") + j()))) | |
55 | + | ||
56 | + | func M () = "%s%s__commonConfig__debtAssetId" | |
57 | + | ||
58 | + | ||
59 | + | func N (O) = (("%s%s%s__defoAsset__" + O) + "__config") | |
60 | + | ||
61 | + | ||
62 | + | func P (Q) = (("%s%s%s__defoAsset__" + toString(Q)) + "__currentPool") | |
63 | + | ||
64 | + | ||
65 | + | func R (l) = (("%s%s%s__defoAsset__" + l) + "__addressByAssetCode") | |
66 | + | ||
67 | + | ||
68 | + | func S () = valueOrErrorMessage(getString(L, M()), ((("No config at factory=" + toString(L)) + " for key=") + M())) | |
69 | + | ||
70 | + | ||
71 | + | func T (O) = split(valueOrErrorMessage(getString(L, N(O)), ((("No config at factory=" + toString(L)) + " for key=") + N(O))), "__") | |
72 | + | ||
73 | + | ||
74 | + | func U (l) = { | |
75 | + | let O = valueOrErrorMessage(getString(L, R(l)), ((("No config at factory=" + toString(L)) + " for key=") + R(l))) | |
76 | + | $Tuple2(O, T(O)) | |
77 | + | } | |
78 | + | ||
79 | + | ||
80 | + | let V = 1 | |
81 | + | ||
82 | + | let W = 2 | |
83 | + | ||
84 | + | let X = 3 | |
85 | + | ||
86 | + | let Y = 4 | |
87 | + | ||
88 | + | let Z = 5 | |
89 | + | ||
90 | + | let aa = 6 | |
91 | + | ||
92 | + | let ab = 7 | |
93 | + | ||
94 | + | let ac = 8 | |
95 | + | ||
96 | + | let ad = 9 | |
97 | + | ||
98 | + | let ae = 10 | |
99 | + | ||
100 | + | let af = 11 | |
101 | + | ||
102 | + | let ag = 12 | |
103 | + | ||
104 | + | let ah = 13 | |
105 | + | ||
106 | + | let ai = 14 | |
107 | + | ||
108 | + | let aj = T(toString(this)) | |
109 | + | ||
110 | + | let ak = aj[V] | |
111 | + | ||
112 | + | let al = fromBase58String(aj[W]) | |
113 | + | ||
114 | + | let am = addressFromStringValue(aj[ac]) | |
115 | + | ||
116 | + | let an = parseIntValue(aj[aa]) | |
117 | + | ||
118 | + | let ao = aj[Z] | |
119 | + | ||
120 | + | let ap = fromBase58String(ao) | |
121 | + | ||
122 | + | let aq = parseIntValue(aj[Y]) | |
123 | + | ||
124 | + | let ar = parseIntValue(aj[ad]) | |
125 | + | ||
126 | + | let as = parseIntValue(aj[ae]) | |
127 | + | ||
128 | + | let at = parseIntValue(aj[af]) | |
129 | + | ||
130 | + | let au = parseIntValue(aj[ag]) | |
131 | + | ||
132 | + | let av = parseIntValue(aj[ah]) | |
133 | + | ||
134 | + | let aw = parseIntValue(aj[ai]) | |
135 | + | ||
136 | + | func ax (l) = valueOrErrorMessage(getInteger(am, m(l)), ((("No price at priceOracle=" + toString(am)) + " for key=") + m(l))) | |
137 | + | ||
138 | + | ||
139 | + | func ay () = valueOrErrorMessage(getInteger(am, "currIdx"), ("No currIdx at controlAcc=" + toString(am))) | |
140 | + | ||
141 | + | ||
142 | + | func az (aA) = { | |
143 | + | let aB = ("idxHeight_" + toString(aA)) | |
144 | + | valueOrElse(getInteger(am, aB), 0) | |
145 | + | } | |
146 | + | ||
147 | + | ||
148 | + | func aC (aD) = { | |
149 | + | let aE = ("price_" + toString(aD)) | |
150 | + | valueOrErrorMessage(getInteger(am, aE), ((("No " + aE) + " at controlAcc=") + toString(am))) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func aF () = valueOrElse(getInteger(this, ((("rpd_balance_" + ao) + "_") + toString(this))), 0) | |
155 | + | ||
156 | + | ||
157 | + | let aG = valueOrElse(getInteger(this, b()), 0) | |
158 | + | ||
159 | + | let aH = valueOrElse(getInteger(this, a()), 0) | |
160 | + | ||
161 | + | let aI = getIntegerValue(L, P(this)) | |
162 | + | ||
163 | + | let aJ = (assetBalance(this, ap) + aF()) | |
164 | + | ||
165 | + | let aK = if ((0 > aG)) | |
166 | + | then 0 | |
167 | + | else aG | |
168 | + | ||
169 | + | let aL = (aJ - aG) | |
170 | + | ||
171 | + | let v = ax(aj[V]) | |
172 | + | ||
173 | + | let aM = (((aq + an) * v) / aq) | |
174 | + | ||
175 | + | let aN = value(assetInfo(al)).quantity | |
176 | + | ||
177 | + | let aO = valueOrElse(getInteger(this, d(ao)), 0) | |
178 | + | ||
179 | + | let aP = (aI - aO) | |
180 | + | ||
181 | + | func aQ (aR,aS,aT,aU,aV,aW) = { | |
182 | + | let aX = (fraction(aP, aq, aM) - aN) | |
183 | + | let aY = fraction(aS, aq, aV) | |
184 | + | let aZ = if ((aY > aX)) | |
185 | + | then aX | |
186 | + | else aY | |
187 | + | let ba = fraction((aq - aW), aZ, aq) | |
188 | + | let z = (aZ - ba) | |
189 | + | let bb = fraction(aZ, aV, aq) | |
190 | + | let bc = (aS - bb) | |
191 | + | if ((0 >= aX)) | |
192 | + | then throw((("impossible to issue new " + ak) + ": not enough collateral")) | |
193 | + | else if ((aU > aS)) | |
194 | + | then throw(((((("impossible to issue new " + ak) + ": payment=") + toString(aS)) + "is less then min amount=") + toString(aU))) | |
195 | + | else $Tuple2([IntegerEntry(b(), (aG + bb)), StringEntry(f(height, toString(aR), "FINISHED"), s(aS, toBase58String(aT), v, ba, toBase58String(al), aZ, z)), Reissue(al, (ba + z), true), ScriptTransfer(aR, ba, al), ScriptTransfer(aR, bc, aT), IntegerEntry(a(), (aH + z))], bc) | |
196 | + | } | |
197 | + | ||
198 | + | ||
199 | + | @Callable(bd) | |
200 | + | func buyAsset () = { | |
201 | + | let be = value(bd.payments[0]) | |
202 | + | let bf = value(be.assetId) | |
203 | + | if ((bf != ap)) | |
204 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(ap)) + " actual=") + toBase58String(bf))) | |
205 | + | else aQ(bd.caller, be.amount, bf, ar, v, av)._1 | |
206 | + | } | |
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | @Callable(bd) | |
211 | + | func sellAsset () = { | |
212 | + | let be = value(bd.payments[0]) | |
213 | + | let bg = value(be.assetId) | |
214 | + | let bh = toString(bd.caller) | |
215 | + | if ((bg != al)) | |
216 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(al)) + " actual=") + toBase58String(bg))) | |
217 | + | else if ((as > be.amount)) | |
218 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(be.amount)) + " minAmount=") + toString(as))) | |
219 | + | else { | |
220 | + | let bi = be.amount | |
221 | + | let bj = fraction((aq - aw), bi, aq) | |
222 | + | let bk = (bi - bj) | |
223 | + | let bl = fraction(bk, v, aq) | |
224 | + | let bm = if ((bl > aL)) | |
225 | + | then aL | |
226 | + | else bl | |
227 | + | let bn = fraction(bm, aq, v) | |
228 | + | let bc = (bk - bn) | |
229 | + | [IntegerEntry(b(), (aG - bm)), StringEntry(f(height, bh, "FINISHED"), s(be.amount, toBase58String(bg), v, bm, ao, bi, bj)), Burn(al, bn), ScriptTransfer(bd.caller, bm, ap), ScriptTransfer(bd.caller, bc, al), IntegerEntry(a(), (aH + bj))] | |
230 | + | } | |
231 | + | } | |
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | @Callable(bd) | |
236 | + | func crossExchange (bo,bp) = { | |
237 | + | let be = value(bd.payments[0]) | |
238 | + | let bg = value(be.assetId) | |
239 | + | let bq = toBase58String(bg) | |
240 | + | let br = be.amount | |
241 | + | let bh = toString(bd.caller) | |
242 | + | let bs = aj | |
243 | + | let bt = U(bp) | |
244 | + | let bu = bt._2 | |
245 | + | let bv = valueOrErrorMessage(addressFromString(bt._1), ("couldn't parse address from string for assetCode=" + bp)) | |
246 | + | let bw = valueOrErrorMessage(parseInt(bu[ae]), ("minSellPmt parsing error: rawVal=" + bu[ae])) | |
247 | + | if ((aj[V] != bo)) | |
248 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aj[V]) + " BUT buyAssetId=") + bo)) | |
249 | + | else if ((bu[W] != bq)) | |
250 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + bu[W]) + "BUT pmtAsset=") + bq)) | |
251 | + | else if ((aj[X] != "ISSUED")) | |
252 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bo) + " BUT status=") + aj[X])) | |
253 | + | else if ((bu[X] != "ISSUED")) | |
254 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bq) + " BUT status=") + bu[X])) | |
255 | + | else { | |
256 | + | let bx = v | |
257 | + | let by = ax(bp) | |
258 | + | let aV = fraction(bx, aq, by) | |
259 | + | let bz = fromBase58String(S()) | |
260 | + | let bA = fraction(by, br, aq) | |
261 | + | let bB = valueOrElse(getInteger(this, c()), 0) | |
262 | + | let bC = k(bp) | |
263 | + | let bD = valueOrElse(getInteger(this, bC), 0) | |
264 | + | let bE = aQ(bd.caller, br, bg, bw, aV, fraction(av, 150, 100)) | |
265 | + | ((((bE._1 :+ ScriptTransfer(bv, bA, bz)) :+ ScriptTransfer(bv, (br - bE._2), bg)) :+ IntegerEntry(bC, (bD + bA))) :+ IntegerEntry(c(), (bB + bA))) | |
266 | + | } | |
267 | + | } | |
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | @Callable(bd) | |
272 | + | func rebalanceDebts () = { | |
273 | + | let bz = fromBase58String(S()) | |
274 | + | let bF = value(bd.payments[0]) | |
275 | + | let bG = value(bF.assetId) | |
276 | + | let bH = value(bd.payments[1]) | |
277 | + | let bI = value(bH.assetId) | |
278 | + | let bJ = toString(bd.caller) | |
279 | + | let bK = T(bJ) | |
280 | + | let B = bK[V] | |
281 | + | let bC = k(B) | |
282 | + | let bL = valueOrErrorMessage(getInteger(this, bC), ("No debts for " + B)) | |
283 | + | if ((bz != bG)) | |
284 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bz)) + " actual=") + toBase58String(bG))) | |
285 | + | else if ((ap != bI)) | |
286 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(ap)) + " actual=") + toBase58String(bI))) | |
287 | + | else if ((bF.amount != bH.amount)) | |
288 | + | then throw("first payment amount doesn't match to the second payment amount") | |
289 | + | else if ((0 >= bL)) | |
290 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(bL))) | |
291 | + | else if ((0 >= bF.amount)) | |
292 | + | then throw(("attached payment must be greater then 0: pmt0.amount=" + toString(bF.amount))) | |
293 | + | else if ((bF.amount > bL)) | |
294 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(bF.amount)) + " lendedAmt=") + toString(bL))) | |
295 | + | else { | |
296 | + | let bB = valueOrElse(getInteger(this, c()), 0) | |
297 | + | let F = (bL - bF.amount) | |
298 | + | [IntegerEntry(bC, F), IntegerEntry(c(), (bB - bF.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bd.transactionId)), A(B, bF, bH, bL, F))] | |
299 | + | } | |
300 | + | } | |
301 | + | ||
302 | + | ||
303 | + | ||
304 | + | @Callable(bd) | |
305 | + | func withdraw (bM,g,aA) = { | |
306 | + | let H = f(g, bM, "PENDING") | |
307 | + | let bN = G(H) | |
308 | + | let t = parseIntValue(bN[n]) | |
309 | + | let u = bN[o] | |
310 | + | let x = bN[r] | |
311 | + | if ((g > height)) | |
312 | + | then throw((("Please wait " + toString(g)) + " to withdraw your funds")) | |
313 | + | else { | |
314 | + | let bO = t | |
315 | + | if ((0 >= bO)) | |
316 | + | then throw("LockedAmount <= 0") | |
317 | + | else { | |
318 | + | let bP = d(bN[o]) | |
319 | + | let bQ = valueOrErrorMessage(getInteger(this, bP), (("State contains sellAssetRequest=" + H) + " BUT no totalLocked")) | |
320 | + | let bR = az(aA) | |
321 | + | let bS = az((aA - 1)) | |
322 | + | let bT = ay() | |
323 | + | if (if (if ((aA > bT)) | |
324 | + | then true | |
325 | + | else (g > bR)) | |
326 | + | then true | |
327 | + | else if ((bS != 0)) | |
328 | + | then (bS >= g) | |
329 | + | else false) | |
330 | + | then throw(((((((((("invalid price idx: idx=" + toString(aA)) + " currIdx=") + toString(bT)) + " idxHeight=") + toString(bR)) + " unlockHeight=") + toString(g)) + " prevIdxHeight=") + toString(bS))) | |
331 | + | else { | |
332 | + | let bU = aC(bR) | |
333 | + | let bV = fromBase58String(u) | |
334 | + | let bW = if ((bV == ap)) | |
335 | + | then { | |
336 | + | let bX = fraction(t, aq, bU) | |
337 | + | $Tuple4(bX, Reissue(al, bX, true), ScriptTransfer(addressFromStringValue(bM), bX, al), IntegerEntry(b(), (aG + t))) | |
338 | + | } | |
339 | + | else if ((bV == al)) | |
340 | + | then { | |
341 | + | let bY = fraction(t, bU, aq) | |
342 | + | let bZ = (aG - bY) | |
343 | + | $Tuple4(bY, Burn(ap, bY), ScriptTransfer(addressFromStringValue(bM), bY, ap), IntegerEntry(b(), (aG - bY))) | |
344 | + | } | |
345 | + | else throw(("Unsupported assetIn=" + u)) | |
346 | + | let w = bW._1 | |
347 | + | let ca = bW._2 | |
348 | + | let cb = bW._3 | |
349 | + | let cc = bW._4 | |
350 | + | if ((0 > (bQ - bO))) | |
351 | + | then throw((("Invalid data state: " + bP) + " less then 0")) | |
352 | + | else ((([IntegerEntry(bP, (bQ - bO)), DeleteEntry(H), StringEntry(f(g, bM, "FINISHED"), s(t, u, bU, w, x, 0, 0))] :+ ca) :+ cb) :+ cc) | |
353 | + | } | |
354 | + | } | |
355 | + | } | |
356 | + | } | |
357 | + | ||
358 | + | ||
359 | + | @Verifier(cd) | |
360 | + | func ce () = { | |
361 | + | let cf = cd | |
362 | + | if ($isInstanceOf(cf, "InvokeScriptTransaction")) | |
363 | + | then { | |
364 | + | let cg = cf | |
365 | + | if ((cg.function != "rebalanceDebts")) | |
366 | + | then throw("only rebalanceDebts call is allowed") | |
367 | + | else if ((T(toString(addressFromRecipient(cg.dApp)))[X] != "ISSUED")) | |
368 | + | then throw("only defo dapp is allowed") | |
369 | + | else if ((cg.fee > (900 * 1000))) | |
370 | + | then throw(("fee amount is greater than max allowed: " + toString(cg.fee))) | |
371 | + | else if (isDefined(cg.feeAssetId)) | |
372 | + | then throw("only Waves is allowed as feeAssetId") | |
373 | + | else true | |
374 | + | } | |
375 | + | else sigVerify(cd.bodyBytes, cd.proofs[0], cd.senderPublicKey) | |
376 | + | } | |
377 | + |
github/deemru/w8io/169f3d6 32.95 ms ◑