tx · BmEUfWLmRRDj5v8eAgQKtniTBNbTHvry5wzysgSR31Kk 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc: -0.01000000 Waves 2020.09.28 12:27 [1196991] smart account 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc > SELF 0.00000000 Waves
{ "type": 13, "id": "BmEUfWLmRRDj5v8eAgQKtniTBNbTHvry5wzysgSR31Kk", "fee": 1000000, "feeAssetId": null, "timestamp": 1601285272540, "version": 1, "sender": "3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc", "senderPublicKey": "DoeRC9WSwJNdJzQYBEDUB3g6ZcE95e6PjGqwV3q7JNMF", "proofs": [ "38t5JeRk6gNct4ctDWhXnsCtfcC9PQgM5m5JMtU5htwSVVadcCxFmBSVjksUB23HoEASmteBSPpthBf8113ZCA6g" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASBAoCCAgSAAAAAFMBAAAAEWtleUFjY3VtdWxhdGVkRmVlAAAAAAIAAAASJXNfX2FjY3VtdWxhdGVkRmVlAQAAAA5rZXlVY29sbGF0ZXJhbAAAAAACAAAADyVzX191Y29sbGF0ZXJhbAEAAAAZa2V5VG90YWxMZW5kZWRBdE90aGVyQWNjcwAAAAACAAAAGiVzX190b3RhbExlbmRlZEF0T3RoZXJBY2NzAQAAABNrZXlBc3NldExvY2tlZFRvdGFsAAAAAQAAAAdhc3NldElkCQABLAAAAAICAAAAGCVzJXNfX2Fzc2V0TG9ja2VkVG90YWxfXwUAAAAHYXNzZXRJZAEAAAATa2V5QWNjb3VudE9wZXJhdGlvbgAAAAMAAAAMdW5sb2NrSGVpZ2h0AAAAB2FkZHJlc3MAAAAGc3RhdHVzCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAeJXMlcyVkJXNfX2RlZm9Bc3NldE9wZXJhdGlvbl9fBQAAAAdhZGRyZXNzAgAAAAJfXwkAAaQAAAABBQAAAAx1bmxvY2tIZWlna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AACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnTbeae", "chainId": 84, "height": 1196991, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4sgWxCnHqA9tfRH6cUTMk5zDTEZhqhXKuWDcFZw4uY97 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) = makeString(["%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) = makeString(["%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 () = "%s%s__commonConfig__debtAssetEtalonBalance" | |
60 | + | ||
61 | + | ||
62 | + | func O (P) = (("%s%s%s__defoAsset__" + P) + "__config") | |
63 | + | ||
64 | + | ||
65 | + | func Q (R) = (("%s%s%s__defoAsset__" + toString(R)) + "__currentPool") | |
66 | + | ||
67 | + | ||
68 | + | func S (l) = (("%s%s%s__defoAsset__" + l) + "__addressByAssetCode") | |
69 | + | ||
70 | + | ||
71 | + | func T (U) = (("%s%s%s__defoAsset__" + U) + "__poolMakers") | |
72 | + | ||
73 | + | ||
74 | + | func V () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
75 | + | ||
76 | + | ||
77 | + | func W () = valueOrErrorMessage(getString(L, M()), ((("No config at factory=" + toString(L)) + " for key=") + M())) | |
78 | + | ||
79 | + | ||
80 | + | func X (P) = split(valueOrErrorMessage(getString(L, O(P)), ((("No config at factory=" + toString(L)) + " for key=") + O(P))), "__") | |
81 | + | ||
82 | + | ||
83 | + | func Y (l) = { | |
84 | + | let P = valueOrErrorMessage(getString(L, S(l)), ((("No config at factory=" + toString(L)) + " for key=") + S(l))) | |
85 | + | $Tuple2(P, X(P)) | |
86 | + | } | |
87 | + | ||
88 | + | ||
89 | + | func Z (P) = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(L, T(P)), ((("No config at factory=" + toString(L)) + " for key=") + T(P)))), ("address extraction error for key=" + T(P))) | |
90 | + | ||
91 | + | ||
92 | + | func aa () = fromBase58String(valueOrErrorMessage(getString(L, V()), ((("No config at factory=" + toString(L)) + " for key=") + V()))) | |
93 | + | ||
94 | + | ||
95 | + | let ab = 1 | |
96 | + | ||
97 | + | let ac = 2 | |
98 | + | ||
99 | + | let ad = 3 | |
100 | + | ||
101 | + | let ae = 4 | |
102 | + | ||
103 | + | let af = 5 | |
104 | + | ||
105 | + | let ag = 6 | |
106 | + | ||
107 | + | let ah = 7 | |
108 | + | ||
109 | + | let ai = 8 | |
110 | + | ||
111 | + | let aj = 9 | |
112 | + | ||
113 | + | let ak = 10 | |
114 | + | ||
115 | + | let al = 11 | |
116 | + | ||
117 | + | let am = 12 | |
118 | + | ||
119 | + | let an = 13 | |
120 | + | ||
121 | + | let ao = 14 | |
122 | + | ||
123 | + | let ap = X(toString(this)) | |
124 | + | ||
125 | + | let aq = ap[ab] | |
126 | + | ||
127 | + | let ar = ap[ac] | |
128 | + | ||
129 | + | let as = fromBase58String(ar) | |
130 | + | ||
131 | + | let at = addressFromStringValue(ap[ai]) | |
132 | + | ||
133 | + | let au = parseIntValue(ap[ag]) | |
134 | + | ||
135 | + | let av = ap[af] | |
136 | + | ||
137 | + | let aw = fromBase58String(av) | |
138 | + | ||
139 | + | let ax = parseIntValue(ap[ae]) | |
140 | + | ||
141 | + | let ay = parseIntValue(ap[aj]) | |
142 | + | ||
143 | + | let az = parseIntValue(ap[ak]) | |
144 | + | ||
145 | + | let aA = parseIntValue(ap[al]) | |
146 | + | ||
147 | + | let aB = parseIntValue(ap[am]) | |
148 | + | ||
149 | + | let aC = parseIntValue(ap[an]) | |
150 | + | ||
151 | + | let aD = parseIntValue(ap[ao]) | |
152 | + | ||
153 | + | func aE (l) = valueOrErrorMessage(getInteger(at, m(l)), ((("No price at priceOracle=" + toString(at)) + " for key=") + m(l))) | |
154 | + | ||
155 | + | ||
156 | + | func aF () = valueOrErrorMessage(getInteger(at, "currIdx"), ("No currIdx at controlAcc=" + toString(at))) | |
157 | + | ||
158 | + | ||
159 | + | func aG (aH) = { | |
160 | + | let aI = ("idxHeight_" + toString(aH)) | |
161 | + | valueOrElse(getInteger(at, aI), 0) | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | func aJ (aK) = { | |
166 | + | let aL = ("price_" + toString(aK)) | |
167 | + | valueOrErrorMessage(getInteger(at, aL), ((("No " + aL) + " at controlAcc=") + toString(at))) | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | let aM = "%s%s__commonConfig__defoStakingAddress" | |
172 | + | ||
173 | + | let aN = "%s%s__commonConfig__neutrinoStakingAddress" | |
174 | + | ||
175 | + | func aO (e) = ("%s%s__stakingBalance__" + e) | |
176 | + | ||
177 | + | ||
178 | + | func aP () = ((("rpd_balance_" + av) + "_") + toString(this)) | |
179 | + | ||
180 | + | ||
181 | + | let aQ = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(L, aM), ((("No config at factoryAcc" + toString(L)) + " for key=") + aM))), ("address extraction error for key=" + aM)) | |
182 | + | ||
183 | + | let aR = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(L, aN), ((("No config at factoryAcc" + toString(L)) + " for key=") + aN))), ("address extraction error for key=" + aN)) | |
184 | + | ||
185 | + | func aS () = valueOrElse(getInteger(aQ, aO(ar)), 0) | |
186 | + | ||
187 | + | ||
188 | + | func aT () = valueOrElse(getInteger(aR, aP()), 0) | |
189 | + | ||
190 | + | ||
191 | + | let aU = valueOrElse(getInteger(this, b()), 0) | |
192 | + | ||
193 | + | let aV = valueOrElse(getInteger(this, a()), 0) | |
194 | + | ||
195 | + | let aW = getIntegerValue(L, Q(this)) | |
196 | + | ||
197 | + | let aX = fromBase58String(W()) | |
198 | + | ||
199 | + | let aY = getIntegerValue(L, N()) | |
200 | + | ||
201 | + | let aZ = (aY - assetBalance(this, aX)) | |
202 | + | ||
203 | + | let ba = ((assetBalance(this, aw) + aT()) + aZ) | |
204 | + | ||
205 | + | let v = aE(ap[ab]) | |
206 | + | ||
207 | + | let bb = (((ax + au) * v) / ax) | |
208 | + | ||
209 | + | let bc = (value(assetInfo(as)).quantity - assetBalance(this, as)) | |
210 | + | ||
211 | + | func bd (be,bf,bg,bh,bi,bj) = { | |
212 | + | let bk = (fraction(ba, bb, ax) - bc) | |
213 | + | let bl = fraction(bf, bi, ax) | |
214 | + | let bm = if ((bl > bk)) | |
215 | + | then bk | |
216 | + | else bl | |
217 | + | let bn = fraction((ax - bj), bm, ax) | |
218 | + | let z = (bm - bn) | |
219 | + | let bo = fraction(bm, ax, bi) | |
220 | + | let bp = (bf - bo) | |
221 | + | if ((0 >= bk)) | |
222 | + | then throw((("impossible to issue new " + aq) + ": not enough collateral")) | |
223 | + | else if (if ((bh > bf)) | |
224 | + | then (toString(be) != toString(aQ)) | |
225 | + | else false) | |
226 | + | then throw(((((("impossible to issue new " + aq) + ": payment=") + toString(bf)) + "is less then min amount=") + toString(bh))) | |
227 | + | else $Tuple2([IntegerEntry(b(), (aU + bo)), StringEntry(f(height, toString(be), "FINISHED"), s(bf, toBase58String(bg), v, bn, toBase58String(as), bm, z)), Reissue(as, (bn + z), true), ScriptTransfer(be, bn, as), ScriptTransfer(be, bp, bg), ScriptTransfer(Z(toString(this)), z, as), IntegerEntry(a(), (aV + z))], bp) | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | @Callable(bq) | |
232 | + | func buyAsset () = { | |
233 | + | let br = value(bq.payments[0]) | |
234 | + | let bs = value(br.assetId) | |
235 | + | if ((bs != aw)) | |
236 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aw)) + " actual=") + toBase58String(bs))) | |
237 | + | else bd(bq.caller, br.amount, bs, ay, v, aC)._1 | |
238 | + | } | |
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | @Callable(bq) | |
243 | + | func sellAsset () = { | |
244 | + | let br = value(bq.payments[0]) | |
245 | + | let bt = value(br.assetId) | |
246 | + | let bu = toString(bq.caller) | |
247 | + | if ((bt != as)) | |
248 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(as)) + " actual=") + toBase58String(bt))) | |
249 | + | else if ((az > br.amount)) | |
250 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(br.amount)) + " minAmount=") + toString(az))) | |
251 | + | else { | |
252 | + | let bv = fraction(br.amount, ax, v) | |
253 | + | let bw = if ((bv > ba)) | |
254 | + | then ba | |
255 | + | else bv | |
256 | + | let bx = fraction(bw, v, ax) | |
257 | + | let bp = (br.amount - bx) | |
258 | + | let by = fraction(aD, bx, ax) | |
259 | + | let bz = (bx - by) | |
260 | + | let bA = fraction(bz, ax, v) | |
261 | + | [IntegerEntry(b(), (aU - bA)), StringEntry(f(height, bu, "FINISHED"), s(br.amount, toBase58String(bt), v, bA, av, bx, by)), Burn(as, bz), ScriptTransfer(bq.caller, bA, aw), ScriptTransfer(bq.caller, bp, as), ScriptTransfer(Z(toString(this)), by, as), IntegerEntry(a(), (aV + by))] | |
262 | + | } | |
263 | + | } | |
264 | + | ||
265 | + | ||
266 | + | ||
267 | + | @Callable(bq) | |
268 | + | func crossExchange (bB,bC) = { | |
269 | + | let br = value(bq.payments[0]) | |
270 | + | let bt = value(br.assetId) | |
271 | + | let bD = toBase58String(bt) | |
272 | + | let bE = br.amount | |
273 | + | let bu = toString(bq.caller) | |
274 | + | let bF = ap | |
275 | + | let bG = Y(bC) | |
276 | + | let bH = bG._2 | |
277 | + | let bI = valueOrErrorMessage(addressFromString(bG._1), ("couldn't parse address from string for assetCode=" + bC)) | |
278 | + | let bJ = valueOrErrorMessage(parseInt(bH[ak]), ("minSellPmt parsing error: rawVal=" + bH[ak])) | |
279 | + | if ((ap[ab] != bB)) | |
280 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + ap[ab]) + " BUT buyAssetId=") + bB)) | |
281 | + | else if ((bH[ac] != bD)) | |
282 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + bH[ac]) + "BUT pmtAsset=") + bD)) | |
283 | + | else if ((ap[ad] != "ISSUED")) | |
284 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bB) + " BUT status=") + ap[ad])) | |
285 | + | else if ((bH[ad] != "ISSUED")) | |
286 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bD) + " BUT status=") + bH[ad])) | |
287 | + | else { | |
288 | + | let bK = v | |
289 | + | let bL = aE(bC) | |
290 | + | let bi = fraction(bK, ax, bL) | |
291 | + | let bM = fraction(bE, ax, bL) | |
292 | + | let bN = valueOrElse(getInteger(this, c()), 0) | |
293 | + | let bO = k(bC) | |
294 | + | let bP = valueOrElse(getInteger(this, bO), 0) | |
295 | + | let bQ = parseIntValue(bH[ao]) | |
296 | + | let bR = bd(bq.caller, bE, bt, bJ, bi, fraction((aC + bQ), 75, 100)) | |
297 | + | ((((bR._1 :+ ScriptTransfer(bI, bM, aX)) :+ ScriptTransfer(bI, (bE - bR._2), bt)) :+ IntegerEntry(bO, (bP + bM))) :+ IntegerEntry(c(), (bN + bM))) | |
298 | + | } | |
299 | + | } | |
300 | + | ||
301 | + | ||
302 | + | ||
303 | + | @Callable(bq) | |
304 | + | func rebalanceDebts () = { | |
305 | + | let bS = value(bq.payments[0]) | |
306 | + | let bT = value(bS.assetId) | |
307 | + | let bU = value(bq.payments[1]) | |
308 | + | let bV = value(bU.assetId) | |
309 | + | let bW = toString(bq.caller) | |
310 | + | let bX = X(bW) | |
311 | + | let B = bX[ab] | |
312 | + | let bO = k(B) | |
313 | + | let bY = valueOrErrorMessage(getInteger(this, bO), ("No debts for " + B)) | |
314 | + | if ((aX != bT)) | |
315 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(aX)) + " actual=") + toBase58String(bT))) | |
316 | + | else if ((aw != bV)) | |
317 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aw)) + " actual=") + toBase58String(bV))) | |
318 | + | else if ((bS.amount != bU.amount)) | |
319 | + | then throw("first payment amount doesn't match to the second payment amount") | |
320 | + | else if ((0 >= bY)) | |
321 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(bY))) | |
322 | + | else if ((ay >= bS.amount)) | |
323 | + | then throw(((("attached payment must be greater then minBasicBuyAmount: pmt0.amount=" + toString(bS.amount)) + " minBasicBuyAmount=") + toString(ay))) | |
324 | + | else if ((bS.amount > bY)) | |
325 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(bS.amount)) + " lendedAmt=") + toString(bY))) | |
326 | + | else { | |
327 | + | let bN = valueOrElse(getInteger(this, c()), 0) | |
328 | + | let F = (bY - bS.amount) | |
329 | + | [IntegerEntry(bO, F), IntegerEntry(c(), (bN - bS.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bq.transactionId)), A(B, bS, bU, bY, F))] | |
330 | + | } | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | @Verifier(bZ) | |
335 | + | func ca () = { | |
336 | + | let cb = bZ | |
337 | + | if ($isInstanceOf(cb, "InvokeScriptTransaction")) | |
338 | + | then { | |
339 | + | let cc = cb | |
340 | + | if ((cc.fee > (900 * 1000))) | |
341 | + | then throw(("fee amount is greater than max allowed: " + toString(cc.fee))) | |
342 | + | else if (isDefined(cc.feeAssetId)) | |
343 | + | then throw("only Waves is allowed as feeAssetId") | |
344 | + | else if ((cc.function == "rebalanceDebts")) | |
345 | + | then { | |
346 | + | let cd = toString(addressFromRecipient(cc.dApp)) | |
347 | + | if ((X(cd)[ad] != "ISSUED")) | |
348 | + | then throw("only defo dapp is allowed") | |
349 | + | else if ((cd == toString(this))) | |
350 | + | then throw("impossible to call self rebealnceDebt") | |
351 | + | else true | |
352 | + | } | |
353 | + | else if (if (if ((cc.function == "lockNeutrino")) | |
354 | + | then true | |
355 | + | else (cc.function == "lockNeutrinoSP")) | |
356 | + | then true | |
357 | + | else (cc.function == "unlockNeutrino")) | |
358 | + | then if ((toString(aR) != toString(addressFromRecipient(cc.dApp)))) | |
359 | + | then throw("invalid neutrino staking dapp address") | |
360 | + | else sigVerify(bZ.bodyBytes, bZ.proofs[0], aa()) | |
361 | + | else throw("Not allowed invocation method calls") | |
362 | + | } | |
363 | + | else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey) | |
364 | + | } | |
365 | + |
github/deemru/w8io/169f3d6 36.38 ms ◑