tx · GFHt8fRYYSfNGV1p3viNxQqj299WNTAh8E7RK5aW4yQk 3N3voEn1dkEjKrHRDfjeUFgg4SjZyhCaghf: -0.01000000 Waves 2020.01.20 14:27 [862485] smart account 3N3voEn1dkEjKrHRDfjeUFgg4SjZyhCaghf > SELF 0.00000000 Waves
{ "type": 13, "id": "GFHt8fRYYSfNGV1p3viNxQqj299WNTAh8E7RK5aW4yQk", "fee": 1000000, "feeAssetId": null, "timestamp": 1579519768520, "version": 1, "sender": "3N3voEn1dkEjKrHRDfjeUFgg4SjZyhCaghf", "senderPublicKey": "7r8ysifFq9r8NxEt569PpiUJYMKuZj4kt2rjVszLHxJJ", "proofs": [ "3nQ1kFBTsxGqmFhUu9ARRHghEqRGSGyPzSKBGhkV4xfoQppjbhamzLaQNoK8KopiE4J4RCaa1fP334txCtPmaHwZ" ], "script": "base64:AAIDAAAAAAAAAA8IARIECgIBARIDCgEIEgAAAAA1AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldFN0cmluZ0J5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAYZ2V0TnVtYmVyQnl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AAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADI/ahTw==", "chainId": 84, "height": 862485, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (g,b) = { | |
27 | + | let c = getString(g, b) | |
28 | + | if ($isInstanceOf(c, "String")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else "" | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func h (g,b) = { | |
38 | + | let c = getInteger(g, b) | |
39 | + | if ($isInstanceOf(c, "Int")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else 0 | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | let i = 100000000 | |
49 | + | ||
50 | + | let j = 1000000 | |
51 | + | ||
52 | + | let k = 1000 | |
53 | + | ||
54 | + | let l = (10 * i) | |
55 | + | ||
56 | + | let m = 100 | |
57 | + | ||
58 | + | let n = "canceled" | |
59 | + | ||
60 | + | let o = "new" | |
61 | + | ||
62 | + | let p = "filled" | |
63 | + | ||
64 | + | let q = "neutrino_contract" | |
65 | + | ||
66 | + | let r = "orderbook" | |
67 | + | ||
68 | + | let s = "price" | |
69 | + | ||
70 | + | let t = "bond_asset_id" | |
71 | + | ||
72 | + | let u = "neutrino_asset_id" | |
73 | + | ||
74 | + | let v = "control_contract" | |
75 | + | ||
76 | + | let w = "balance_lock_" | |
77 | + | ||
78 | + | let x = (w + "waves") | |
79 | + | ||
80 | + | let y = (w + "neutrino") | |
81 | + | ||
82 | + | let z = "liquidation_contract" | |
83 | + | ||
84 | + | func A (B) = ("order_price_" + B) | |
85 | + | ||
86 | + | ||
87 | + | func C (B) = ("order_total_" + B) | |
88 | + | ||
89 | + | ||
90 | + | func D (B) = ("order_owner_" + B) | |
91 | + | ||
92 | + | ||
93 | + | func E (B) = ("order_height_" + B) | |
94 | + | ||
95 | + | ||
96 | + | func F (B) = ("order_status_" + B) | |
97 | + | ||
98 | + | ||
99 | + | func G (B) = ("order_filled_total_" + B) | |
100 | + | ||
101 | + | ||
102 | + | func H (I,J) = fraction(fraction(I, 100, J), i, j) | |
103 | + | ||
104 | + | ||
105 | + | func K (I,J) = fraction(fraction(I, J, 100), j, i) | |
106 | + | ||
107 | + | ||
108 | + | func L (I) = (I / j) | |
109 | + | ||
110 | + | ||
111 | + | func M (I) = (I * j) | |
112 | + | ||
113 | + | ||
114 | + | func N (I,J) = L(K(I, J)) | |
115 | + | ||
116 | + | ||
117 | + | func O (I,J) = H(M(I), J) | |
118 | + | ||
119 | + | ||
120 | + | let P = e(r) | |
121 | + | ||
122 | + | let Q = addressFromStringValue(e(q)) | |
123 | + | ||
124 | + | let R = addressFromStringValue(f(Q, v)) | |
125 | + | ||
126 | + | let S = addressFromStringValue(f(Q, z)) | |
127 | + | ||
128 | + | let T = fromBase58String(f(Q, u)) | |
129 | + | ||
130 | + | let U = fromBase58String(f(Q, t)) | |
131 | + | ||
132 | + | let V = h(R, s) | |
133 | + | ||
134 | + | let W = h(Q, y) | |
135 | + | ||
136 | + | let X = ((wavesBalance(Q) - h(Q, x)) - H(W, V)) | |
137 | + | ||
138 | + | let Y = ((extract(assetInfo(T)).quantity - assetBalance(Q, T)) - assetBalance(S, T)) | |
139 | + | ||
140 | + | let Z = (Y - K(X, V)) | |
141 | + | ||
142 | + | func aa (ab) = a(A(ab)) | |
143 | + | ||
144 | + | ||
145 | + | func ac (ab) = a(C(ab)) | |
146 | + | ||
147 | + | ||
148 | + | func ad (ab) = e(D(ab)) | |
149 | + | ||
150 | + | ||
151 | + | func ae (ab) = e(F(ab)) | |
152 | + | ||
153 | + | ||
154 | + | func af (ab) = a(G(ab)) | |
155 | + | ||
156 | + | ||
157 | + | func ag (ab) = (ab + "_") | |
158 | + | ||
159 | + | ||
160 | + | func ah (B,ai) = { | |
161 | + | let aj = split(P, "_") | |
162 | + | let ak = ag(B) | |
163 | + | if ((ai == 0)) | |
164 | + | then (ak + P) | |
165 | + | else if ((ai >= (size(aj) - 1))) | |
166 | + | then (P + ak) | |
167 | + | else { | |
168 | + | let al = split(P, ag(aj[ai])) | |
169 | + | (((al[0] + ak) + ag(aj[ai])) + al[1]) | |
170 | + | } | |
171 | + | } | |
172 | + | ||
173 | + | ||
174 | + | func am (B) = { | |
175 | + | let al = split(P, ag(B)) | |
176 | + | (al[0] + al[1]) | |
177 | + | } | |
178 | + | ||
179 | + | ||
180 | + | @Callable(an) | |
181 | + | func addBuyBondOrder (J,ai) = { | |
182 | + | let ao = extract(an.payment) | |
183 | + | let ap = toBase58String(keccak256((((toBytes(J) + toBytes(ao.amount)) + an.caller.bytes) + toBytes(height)))) | |
184 | + | let aq = fraction(100, 100, J) | |
185 | + | let ar = fraction((aq - V), 100, V) | |
186 | + | if ((l > ao.amount)) | |
187 | + | then throw(("min order total equals " + toString(l))) | |
188 | + | else if ((ar > m)) | |
189 | + | then throw("max setOrder ROI is 100%") | |
190 | + | else if (isDefined(ao.assetId)) | |
191 | + | then throw("can use waves only") | |
192 | + | else if ((0 >= J)) | |
193 | + | then throw("price less zero") | |
194 | + | else if ((ad(ap) != "")) | |
195 | + | then throw("order exists") | |
196 | + | else { | |
197 | + | let aj = split(P, "_") | |
198 | + | let as = if ((ai == 0)) | |
199 | + | then "" | |
200 | + | else aj[(ai - 1)] | |
201 | + | let at = aa(as) | |
202 | + | let au = if (if ((as != "")) | |
203 | + | then (J > at) | |
204 | + | else false) | |
205 | + | then true | |
206 | + | else false | |
207 | + | let av = aj[ai] | |
208 | + | let aw = aa(av) | |
209 | + | let ax = if ((aw >= J)) | |
210 | + | then true | |
211 | + | else false | |
212 | + | if (if (au) | |
213 | + | then true | |
214 | + | else ax) | |
215 | + | then throw(((("invalid order isPrevOrderError:" + toString(ax)) + " isNextOrderError:") + toString(au))) | |
216 | + | else WriteSet([DataEntry(r, ah(ap, ai)), DataEntry(A(ap), J), DataEntry(C(ap), ao.amount), DataEntry(D(ap), toString(an.caller)), DataEntry(E(ap), height), DataEntry(F(ap), o), DataEntry(("debug_order_currentPrice_" + ap), V), DataEntry(("debug_order_roi_" + ap), ar)]) | |
217 | + | } | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | @Callable(an) | |
223 | + | func cancelOrder (B) = { | |
224 | + | let ay = ad(B) | |
225 | + | let I = (ac(B) - af(B)) | |
226 | + | if ((ay != toString(an.caller))) | |
227 | + | then throw("permission denied") | |
228 | + | else if ((ae(B) != o)) | |
229 | + | then throw("invalid order status") | |
230 | + | else ScriptResult(WriteSet([DataEntry(r, am(B)), DataEntry(F(B), n)]), TransferSet([ScriptTransfer(an.caller, I, unit)])) | |
231 | + | } | |
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | @Callable(an) | |
236 | + | func sellBond () = { | |
237 | + | let az = assetBalance(this, U) | |
238 | + | let aA = if ((0 >= Z)) | |
239 | + | then 0 | |
240 | + | else (Z / j) | |
241 | + | let aB = if ((aA >= az)) | |
242 | + | then az | |
243 | + | else aA | |
244 | + | let aC = if ((aA >= az)) | |
245 | + | then 0 | |
246 | + | else (az - aA) | |
247 | + | if (if ((aA == 0)) | |
248 | + | then (az == 0) | |
249 | + | else false) | |
250 | + | then throw("without deficit") | |
251 | + | else if ((az == 0)) | |
252 | + | then throw("without bonds to sell") | |
253 | + | else if ((aC > 0)) | |
254 | + | then TransferSet([ScriptTransfer(Q, aC, U)]) | |
255 | + | else if ((P == "")) | |
256 | + | then throw("empty orderbook") | |
257 | + | else { | |
258 | + | let B = take(P, valueOrErrorMessage(indexOf(P, "_"), "no orders found")) | |
259 | + | let aD = af(B) | |
260 | + | let aE = aa(B) | |
261 | + | let aq = fraction(100, 100, aE) | |
262 | + | let aF = (ac(B) - aD) | |
263 | + | let aG = N(aF, aq) | |
264 | + | let aH = (aB >= aG) | |
265 | + | let aI = if (aH) | |
266 | + | then aG | |
267 | + | else aB | |
268 | + | let aJ = O(aI, aq) | |
269 | + | if ((aG == 0)) | |
270 | + | then ScriptResult(WriteSet([DataEntry(r, am(B)), DataEntry(F(B), p)]), TransferSet([ScriptTransfer(addressFromStringValue(ad(B)), aF, unit)])) | |
271 | + | else if ((aJ == 0)) | |
272 | + | then throw("cannot fill order at the moment") | |
273 | + | else ScriptResult(WriteSet([DataEntry(r, if (if (aH) | |
274 | + | then (aF == 0) | |
275 | + | else false) | |
276 | + | then am(B) | |
277 | + | else P), DataEntry(G(B), (aD + aJ)), DataEntry(F(B), if (if (aH) | |
278 | + | then (aF == 0) | |
279 | + | else false) | |
280 | + | then p | |
281 | + | else o)]), TransferSet([ScriptTransfer(addressFromStringValue(ad(B)), aI, U), ScriptTransfer(Q, aJ, unit)])) | |
282 | + | } | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | @Verifier(aK) | |
287 | + | func aL () = { | |
288 | + | let aM = ["BLEoguzPVKVTfXxxT3W7Rqf8aUm2ggC9Vemd2MQawM2G", "FWVffYr2ALmHMejZm3WqeLz6Sdym3gLFGtJn4KTwyU5x", "3Wh2LaWcb5gg7K2pPcW3Ep6EAuRBzYkAgrdpt43jTDFa", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
289 | + | let aN = ((((if (sigVerify(aK.bodyBytes, aK.proofs[0], fromBase58String(aM[0]))) | |
290 | + | then 1 | |
291 | + | else 0) + (if (sigVerify(aK.bodyBytes, aK.proofs[1], fromBase58String(aM[1]))) | |
292 | + | then 1 | |
293 | + | else 0)) + (if (sigVerify(aK.bodyBytes, aK.proofs[2], fromBase58String(aM[2]))) | |
294 | + | then 1 | |
295 | + | else 0)) + (if (sigVerify(aK.bodyBytes, aK.proofs[3], fromBase58String(aM[3]))) | |
296 | + | then 2 | |
297 | + | else 0)) | |
298 | + | (aN >= 3) | |
299 | + | } | |
300 | + |
github/deemru/w8io/169f3d6 25.98 ms ◑