tx · 6S112g83zyJPYfQBoUJpGVQyffMZJMJ2RnHagUmnbJrb 3N95P4VmiQ7r4YcwaV5D9QNxmRNbL2TdKsY: -0.01000000 Waves 2019.12.03 17:49 [792644] smart account 3N95P4VmiQ7r4YcwaV5D9QNxmRNbL2TdKsY > SELF 0.00000000 Waves
{ "type": 13, "id": "6S112g83zyJPYfQBoUJpGVQyffMZJMJ2RnHagUmnbJrb", "fee": 1000000, "feeAssetId": null, "timestamp": 1575384611212, "version": 1, "sender": "3N95P4VmiQ7r4YcwaV5D9QNxmRNbL2TdKsY", "senderPublicKey": "5zrEehRprSXw5LF5ePt6QK5Mw4ia18J6Na6dxY51cmqc", "proofs": [ "2WBNmzSZnoUKh2FA46NwCWQsGjupx4untHjvZGXvqGatyiW3M2zoHSTYZboPe8fiKrtRVXD7LtkVHCM1oLqrfevH" ], "script": "base64:AAIDAAAAAAAAAA8IARIECgIBARIDCgEIEgAAAAA1AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldFN0cmluZ0J5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAYZ2V0TnVtYmVy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VudAkBAAAACWRyb3BPcmRlcgAAAAEFAAAAB29yZGVySWQFAAAACW9yZGVyYm9vawkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFmdldE9yZGVyRmlsbGVkVG90YWxLZXkAAAABBQAAAAdvcmRlcklkCQAAZAAAAAIFAAAAC2ZpbGxlZFRvdGFsBQAAAAV0b3RhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEWdldE9yZGVyU3RhdHVzS2V5AAAAAQUAAAAHb3JkZXJJZAUAAAAGc3RhdHVzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAASZ2V0T3JkZXJIaXN0b3J5S2V5AAAAAQUAAAAGaGVpZ2h0BQAAAApvcmRlclByaWNlBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAApvcmRlck93bmVyBQAAAAxmaWxsZWRBbW91bnQFAAAAC2JvbmRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEG5ldXRyaW5vQ29udHJhY3QFAAAABXRvdGFsBQAAAA9uZXV0cmlub0Fzc2V0SWQFAAAAA25pbAAAAABJ0zKC", "chainId": 84, "height": 792644, "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 | + | func z (A) = ("order_price_" + A) | |
83 | + | ||
84 | + | ||
85 | + | func B (A) = ("order_total_" + A) | |
86 | + | ||
87 | + | ||
88 | + | func C (A) = ("order_owner_" + A) | |
89 | + | ||
90 | + | ||
91 | + | func D (A) = ("order_height_" + A) | |
92 | + | ||
93 | + | ||
94 | + | func E (A) = ("order_status_" + A) | |
95 | + | ||
96 | + | ||
97 | + | func F (A) = ("order_filled_total_" + A) | |
98 | + | ||
99 | + | ||
100 | + | func G (H) = ("order_history_" + toString(H)) | |
101 | + | ||
102 | + | ||
103 | + | func I (J,K) = ((((J * 100) / K) * i) / k) | |
104 | + | ||
105 | + | ||
106 | + | func L (J,K) = ((((J * K) / 100) * k) / i) | |
107 | + | ||
108 | + | ||
109 | + | func M (J) = (J / k) | |
110 | + | ||
111 | + | ||
112 | + | func N (J) = (J * k) | |
113 | + | ||
114 | + | ||
115 | + | func O (J,K) = M(L(J, K)) | |
116 | + | ||
117 | + | ||
118 | + | let P = e(r) | |
119 | + | ||
120 | + | let Q = addressFromStringValue(e(q)) | |
121 | + | ||
122 | + | let R = addressFromStringValue(f(Q, v)) | |
123 | + | ||
124 | + | let S = h(R, s) | |
125 | + | ||
126 | + | let T = h(Q, y) | |
127 | + | ||
128 | + | let U = h(Q, x) | |
129 | + | ||
130 | + | let V = fromBase58String(f(Q, u)) | |
131 | + | ||
132 | + | let W = fromBase58String(f(Q, t)) | |
133 | + | ||
134 | + | let X = (wavesBalance(Q) - U) | |
135 | + | ||
136 | + | let Y = ((extract(assetInfo(V)).quantity - assetBalance(Q, V)) + T) | |
137 | + | ||
138 | + | let Z = (Y - L(X, S)) | |
139 | + | ||
140 | + | func aa (ab) = a(z(ab)) | |
141 | + | ||
142 | + | ||
143 | + | func ac (ab) = a(B(ab)) | |
144 | + | ||
145 | + | ||
146 | + | func ad (ab) = e(C(ab)) | |
147 | + | ||
148 | + | ||
149 | + | func ae (ab) = e(E(ab)) | |
150 | + | ||
151 | + | ||
152 | + | func af (ab) = a(F(ab)) | |
153 | + | ||
154 | + | ||
155 | + | func ag (ab) = (ab + j) | |
156 | + | ||
157 | + | ||
158 | + | func ah (A,ai) = { | |
159 | + | let aj = split(P, j) | |
160 | + | let ak = ag(A) | |
161 | + | if ((ai == 0)) | |
162 | + | then (ak + P) | |
163 | + | else if ((ai >= (size(aj) - 1))) | |
164 | + | then (P + ak) | |
165 | + | else { | |
166 | + | let al = split(P, ag(aj[ai])) | |
167 | + | (((al[0] + ak) + ag(aj[ai])) + al[1]) | |
168 | + | } | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | func am (A) = { | |
173 | + | let al = split(P, ag(A)) | |
174 | + | (al[0] + al[1]) | |
175 | + | } | |
176 | + | ||
177 | + | ||
178 | + | func an (P) = split(P, j) | |
179 | + | ||
180 | + | ||
181 | + | @Callable(ao) | |
182 | + | func addBuyBondOrder (K,ai) = { | |
183 | + | let ap = extract(ao.payment) | |
184 | + | let aq = toBase58String(keccak256((((toBytes(K) + toBytes(ap.amount)) + ao.caller.bytes) + toBytes(height)))) | |
185 | + | if ((m > K)) | |
186 | + | then throw("max discount is 50%") | |
187 | + | else if ((ap.assetId != V)) | |
188 | + | then throw("can use neutrino only") | |
189 | + | else if ((0 >= K)) | |
190 | + | then throw("price less zero") | |
191 | + | else if ((ad(aq) != "")) | |
192 | + | then throw("order exists") | |
193 | + | else { | |
194 | + | let aj = an(P) | |
195 | + | let ar = if ((ai == 0)) | |
196 | + | then "" | |
197 | + | else aj[(ai - 1)] | |
198 | + | let as = aa(ar) | |
199 | + | let at = if (if ((ar != "")) | |
200 | + | then (K > as) | |
201 | + | else false) | |
202 | + | then true | |
203 | + | else false | |
204 | + | let au = aj[ai] | |
205 | + | let av = aa(au) | |
206 | + | let aw = if ((av >= K)) | |
207 | + | then true | |
208 | + | else false | |
209 | + | if (if (at) | |
210 | + | then true | |
211 | + | else aw) | |
212 | + | then throw(((("invalid order isPrevOrderError:" + toString(aw)) + " isNextOrderError:") + toString(at))) | |
213 | + | else WriteSet([DataEntry(r, ah(aq, ai)), DataEntry(z(aq), K), DataEntry(B(aq), ap.amount), DataEntry(C(aq), toString(ao.caller)), DataEntry(D(aq), height), DataEntry(E(aq), o)]) | |
214 | + | } | |
215 | + | } | |
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | @Callable(ao) | |
220 | + | func cancelOrder (A) = { | |
221 | + | let ax = ad(A) | |
222 | + | let J = (ac(A) - af(A)) | |
223 | + | if ((ax != toString(ao.caller))) | |
224 | + | then throw("permission denied") | |
225 | + | else if ((ae(A) != o)) | |
226 | + | then throw("invalid order status") | |
227 | + | else ScriptResult(WriteSet([DataEntry(r, am(A)), DataEntry(E(A), n)]), TransferSet([ScriptTransfer(ao.caller, J, V)])) | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | @Callable(ao) | |
233 | + | func sellBond () = { | |
234 | + | let ay = assetBalance(this, W) | |
235 | + | let az = if ((0 >= Z)) | |
236 | + | then 0 | |
237 | + | else Z | |
238 | + | let aA = if ((az >= ay)) | |
239 | + | then ay | |
240 | + | else az | |
241 | + | let aB = if ((az >= ay)) | |
242 | + | then 0 | |
243 | + | else (ay - az) | |
244 | + | if (if ((aB == 0)) | |
245 | + | then (aA == 0) | |
246 | + | else false) | |
247 | + | then throw("without deficit") | |
248 | + | else if ((aA == 0)) | |
249 | + | then TransferSet([ScriptTransfer(Q, aB, W)]) | |
250 | + | else if ((P == "")) | |
251 | + | then throw("empty orderbook") | |
252 | + | else { | |
253 | + | let A = an(P)[0] | |
254 | + | let aC = af(A) | |
255 | + | let aD = ac(A) | |
256 | + | let aE = aa(A) | |
257 | + | let aF = ad(A) | |
258 | + | let J = M((((aD - aC) * 100) / aE)) | |
259 | + | let aG = if ((aA >= J)) | |
260 | + | then J | |
261 | + | else aA | |
262 | + | let aH = (((aG * aE) * k) / 100) | |
263 | + | let aI = if ((aA >= J)) | |
264 | + | then p | |
265 | + | else o | |
266 | + | if ((aH == 0)) | |
267 | + | then throw("total equal zero") | |
268 | + | else ScriptResult(WriteSet([DataEntry(r, if ((aA >= J)) | |
269 | + | then am(A) | |
270 | + | else P), DataEntry(F(A), (aC + aH)), DataEntry(E(A), aI), DataEntry(G(height), aE)]), TransferSet([ScriptTransfer(addressFromStringValue(aF), aG, W), ScriptTransfer(Q, aH, V)])) | |
271 | + | } | |
272 | + | } | |
273 | + | ||
274 | + |
github/deemru/w8io/026f985 27.46 ms ◑