tx · BRCYjwm4voPhGPrzL4th1RHLQYvxYfx9WXinLXAcgCTr 3Mpm7DMEeq2x3sfV6GjfHR1YBBPE25enpEb: -0.01000000 Waves 2019.12.24 17:24 [823202] smart account 3Mpm7DMEeq2x3sfV6GjfHR1YBBPE25enpEb > SELF 0.00000000 Waves
{ "type": 13, "id": "BRCYjwm4voPhGPrzL4th1RHLQYvxYfx9WXinLXAcgCTr", "fee": 1000000, "feeAssetId": null, "timestamp": 1577197454748, "version": 1, "sender": "3Mpm7DMEeq2x3sfV6GjfHR1YBBPE25enpEb", "senderPublicKey": "3GankTKvWzm8KcxAUcBiyRMaukR5gNSD94QmY1tkz1rt", "proofs": [ "1yopMZQFv9nXXQ2eoGnA48hDkY5kyJz5Aag8UYCcVCNhpEKo5G2sPeAtmNat6fo2byHVt6LhfYw73WNgT6AZyE6" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgMKAQgSAAAAADUBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABhnZXROdW1iZXJCeUFkZHJlc3NB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AAAABBQAAAAdvcmRlcklkCQAAZAAAAAIFAAAAC2ZpbGxlZFRvdGFsBQAAAAhuZXdUb3RhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEWdldE9yZGVyU3RhdHVzS2V5AAAAAQUAAAAHb3JkZXJJZAUAAAAGc3RhdHVzBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAApvcmRlck93bmVyCQEAAAAVY29udmVydEJvbmRUb05ldXRyaW5vAAAAAQUAAAAIbmV3VG90YWwFAAAAD25ldXRyaW5vQXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABBuZXV0cmlub0NvbnRyYWN0BQAAAAxyZXR1cm5BbW91bnQFAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsAAAAALmcQEI=", "chainId": 84, "height": 823202, "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 = "_" | |
51 | + | ||
52 | + | let k = 1000000 | |
53 | + | ||
54 | + | let l = 1000 | |
55 | + | ||
56 | + | let m = 50 | |
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 = "last_confirm_tx" | |
83 | + | ||
84 | + | func A (B) = ("order_total_" + B) | |
85 | + | ||
86 | + | ||
87 | + | func C (B) = ("order_owner_" + B) | |
88 | + | ||
89 | + | ||
90 | + | func D (B) = ("order_height_" + B) | |
91 | + | ||
92 | + | ||
93 | + | func E (B) = ("order_status_" + B) | |
94 | + | ||
95 | + | ||
96 | + | func F (B) = ("order_filled_total_" + B) | |
97 | + | ||
98 | + | ||
99 | + | func G (H,I) = fraction(fraction(H, 100, I), i, k) | |
100 | + | ||
101 | + | ||
102 | + | func J (H,I) = fraction(fraction(H, I, 100), k, i) | |
103 | + | ||
104 | + | ||
105 | + | func K (H) = (H / k) | |
106 | + | ||
107 | + | ||
108 | + | func L (H) = (H * k) | |
109 | + | ||
110 | + | ||
111 | + | func M (H,I) = K(J(H, I)) | |
112 | + | ||
113 | + | ||
114 | + | func N (O) = split(O, ",") | |
115 | + | ||
116 | + | ||
117 | + | let P = e(r) | |
118 | + | ||
119 | + | let Q = addressFromStringValue(e(q)) | |
120 | + | ||
121 | + | let R = addressFromStringValue(f(Q, v)) | |
122 | + | ||
123 | + | let S = h(R, s) | |
124 | + | ||
125 | + | let T = h(Q, y) | |
126 | + | ||
127 | + | let U = h(Q, x) | |
128 | + | ||
129 | + | let V = fromBase58String(f(Q, u)) | |
130 | + | ||
131 | + | let W = fromBase58String(f(Q, t)) | |
132 | + | ||
133 | + | let X = (wavesBalance(Q) - U) | |
134 | + | ||
135 | + | let Y = (((extract(assetInfo(V)).quantity - assetBalance(Q, V)) + T) - assetBalance(this, V)) | |
136 | + | ||
137 | + | let Z = (J(X, S) - Y) | |
138 | + | ||
139 | + | let aa = f(R, z) | |
140 | + | ||
141 | + | func ab (ac) = a(A(ac)) | |
142 | + | ||
143 | + | ||
144 | + | func ad (ac) = e(C(ac)) | |
145 | + | ||
146 | + | ||
147 | + | func ae (ac) = e(E(ac)) | |
148 | + | ||
149 | + | ||
150 | + | func af (ac) = a(F(ac)) | |
151 | + | ||
152 | + | ||
153 | + | func ag (ac) = (ac + j) | |
154 | + | ||
155 | + | ||
156 | + | func ah (B,ai) = { | |
157 | + | let aj = split(P, j) | |
158 | + | let ak = ag(B) | |
159 | + | if ((ai == 0)) | |
160 | + | then (ak + P) | |
161 | + | else if ((ai >= (size(aj) - 1))) | |
162 | + | then (P + ak) | |
163 | + | else { | |
164 | + | let al = split(P, ag(aj[ai])) | |
165 | + | (((al[0] + ak) + ag(aj[ai])) + al[1]) | |
166 | + | } | |
167 | + | } | |
168 | + | ||
169 | + | ||
170 | + | func am (B) = { | |
171 | + | let al = split(P, ag(B)) | |
172 | + | (al[0] + al[1]) | |
173 | + | } | |
174 | + | ||
175 | + | ||
176 | + | func an (P) = split(P, j) | |
177 | + | ||
178 | + | ||
179 | + | @Callable(ao) | |
180 | + | func addLiquidationOrder () = { | |
181 | + | let ap = extract(ao.payment) | |
182 | + | let aq = toBase58String(keccak256(((toBytes(ap.amount) + ao.caller.bytes) + toBytes(height)))) | |
183 | + | if ((ap.assetId != W)) | |
184 | + | then throw("can use appropriate neutrino bonds tokens only") | |
185 | + | else if ((ad(aq) != "")) | |
186 | + | then throw("an order is already exists") | |
187 | + | else WriteSet([DataEntry(r, ah(aq, size(an(P)))), DataEntry(A(aq), ap.amount), DataEntry(C(aq), toString(ao.caller)), DataEntry(D(aq), height), DataEntry(E(aq), o)]) | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | @Callable(ao) | |
193 | + | func cancelOrder (B) = { | |
194 | + | let ar = ad(B) | |
195 | + | let H = (ab(B) - af(B)) | |
196 | + | if ((ar != toString(ao.caller))) | |
197 | + | then throw("permission denied") | |
198 | + | else if ((ae(B) != o)) | |
199 | + | then throw("invalid order status") | |
200 | + | else ScriptResult(WriteSet([DataEntry(r, am(B)), DataEntry(E(B), n)]), TransferSet([ScriptTransfer(ao.caller, H, W)])) | |
201 | + | } | |
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | @Callable(ao) | |
206 | + | func liquidateBond () = { | |
207 | + | let as = K(Z) | |
208 | + | let at = assetBalance(this, V) | |
209 | + | let au = if ((0 >= Z)) | |
210 | + | then 0 | |
211 | + | else Z | |
212 | + | let av = if ((au >= at)) | |
213 | + | then at | |
214 | + | else au | |
215 | + | let aw = if ((au >= at)) | |
216 | + | then 0 | |
217 | + | else (at - au) | |
218 | + | if (if ((aw == 0)) | |
219 | + | then (at == 0) | |
220 | + | else false) | |
221 | + | then throw("without surplus") | |
222 | + | else if (if ((0 >= as)) | |
223 | + | then (aw > 0) | |
224 | + | else false) | |
225 | + | then TransferSet([ScriptTransfer(Q, aw, V)]) | |
226 | + | else if ((0 >= as)) | |
227 | + | then throw("there is no proficit on the smart contract now") | |
228 | + | else if ((P == "")) | |
229 | + | then throw("empty orderbook") | |
230 | + | else { | |
231 | + | let B = an(P)[0] | |
232 | + | let ax = ab(B) | |
233 | + | let ay = ad(B) | |
234 | + | let az = af(B) | |
235 | + | let H = (ax - az) | |
236 | + | let aA = if ((as >= H)) | |
237 | + | then p | |
238 | + | else o | |
239 | + | let aB = if ((as >= H)) | |
240 | + | then H | |
241 | + | else as | |
242 | + | ScriptResult(WriteSet([DataEntry(r, if ((aA == p)) | |
243 | + | then am(B) | |
244 | + | else P), DataEntry(F(B), (az + aB)), DataEntry(E(B), aA)]), TransferSet([ScriptTransfer(addressFromStringValue(ay), L(aB), V), ScriptTransfer(Q, aw, V)])) | |
245 | + | } | |
246 | + | } | |
247 | + | ||
248 | + |
github/deemru/w8io/169f3d6 33.20 ms ◑