tx · CUqXwoT3hjLyiFMHtyxwdJSGRctjWfTeD5tYaFQzfgPa

3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW:  -0.01000000 Waves

2019.08.21 20:37 [641200] smart account 3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW > SELF 0.00000000 Waves

{ "type": 13, "id": "CUqXwoT3hjLyiFMHtyxwdJSGRctjWfTeD5tYaFQzfgPa", "fee": 1000000, "feeAssetId": null, "timestamp": 1566408996557, "version": 1, "sender": "3N7u6nQ6aTajkkFQXMioxNKMH1J4gMbANYW", "senderPublicKey": "F61jny4qCgvr1wEi27m7oBLvnmQpW46FBdNUtcbv8aXQ", "proofs": [ "DCzPfDnYRM14kHdHQXkbAGeUF9h9TMSb6vjPqsRVPmEfXtscuC4T2yCUupTg4nwZ99V7vhKBEUZX31ohK8nsjvc" ], "script": "base64:AAIDAAAAAAAAAAAAAAAuAAAAAAROT05FAgAAAAABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUAAAAAEk5ldXRyaW5vQXNzZXRJZEtleQIAAAARbmV1dHJpbm9fYXNzZXRfaWQAAAAADkJvbmRBc3NldElkS2V5AgAAAA1ib25kX2Fzc2V0X2lkAAAAABJBdWN0aW9uQ29udHJhY3RLZXkCAAAAEGF1Y3Rpb25fY29udHJhY3QAAAAACFByaWNlS2V5AgAAAAVwcmljZQAAAAAMT3JkZXJCb29rS2V5AgA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ACBQAAAA91c2VyQm9uZEJhbGFuY2UFAAAAE3VzZXJOZXV0cmlub0JhbGFuY2UFAAAABmFtb3VudAkAAAIAAAABAgAAABhpbnZhbGlkIGJhbGFuY2Ugc25hcHNob3QDCQAAAAAAAAIFAAAACW9yZGVyYm9vawUAAAAETk9ORQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAVTG9ja05ldXRyaW5vQW1vdW50S2V5BQAAAAJpZAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAABRMb2NrTmV1dHJpbm9CbG9ja0tleQUAAAACaWQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABpAAAAAgkAAGgAAAACBQAAAAdzdXJwbHVzBQAAAAZhbW91bnQJAABkAAAAAgUAAAAOc3VwcGx5TmV1dHJpbm8FAAAACWFsbG93Qm9uZAUAAAAPTmV1dHJpbm9Bc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAATb3JkZXJib29rIG5vciBlbXB0eQAAAAAHODYO", "chainId": 84, "height": 641200, "spentComplexity": 0 } View: original | compacted Prev: none Next: F24srpWYefzuZabSmj3z5ieRzBiGdRg7bVBAa3MKSGzi Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = ""
5+
6+func b (c) = {
7+ let d = getInteger(this, c)
8+ if ($isInstanceOf(d, "Int"))
9+ then {
10+ let e = d
11+ e
12+ }
13+ else 0
14+ }
15+
16+
17+func f (c) = {
18+ let d = getString(this, c)
19+ if ($isInstanceOf(d, "String"))
20+ then {
21+ let e = d
22+ e
23+ }
24+ else a
25+ }
26+
27+
28+let g = "neutrino_asset_id"
29+
30+let h = "bond_asset_id"
31+
32+let i = "auction_contract"
33+
34+let j = "price"
35+
36+let k = "orderbook"
37+
38+let l = "order_amount_"
39+
40+let m = "order_owner_"
41+
42+let n = "order_height_"
43+
44+let o = "orderbook_amount"
45+
46+let p = "orderbook_amount_key"
47+
48+let q = "surplus_amount"
49+
50+let r = "surplus_block"
51+
52+let s = "orderbook_snapshot"
53+
54+let t = "orderbook_snapshot_block"
55+
56+let u = "bond_generated_block"
57+
58+let v = "lock_block_"
59+
60+let w = "lock_owner_"
61+
62+let x = "lock_amount_"
63+
64+func y () = b(j)
65+
66+
67+func z () = f(k)
68+
69+
70+func A () = b(o)
71+
72+
73+func B (C) = b((l + C))
74+
75+
76+func D (C) = f((m + C))
77+
78+
79+func E () = f(q)
80+
81+
82+func F () = b(q)
83+
84+
85+func G () = b(u)
86+
87+
88+func H () = f(s)
89+
90+
91+func I () = b(p)
92+
93+
94+func J () = b(t)
95+
96+
97+func K (C) = b((v + C))
98+
99+
100+func L (C) = f((w + C))
101+
102+
103+func M (C) = b((x + C))
104+
105+
106+let N = 10
107+
108+let O = "_"
109+
110+let P = 100000000
111+
112+let Q = 10
113+
114+let R = 10
115+
116+let S = fromBase58String(f(g))
117+
118+let T = fromBase58String(f(h))
119+
120+let U = f(i)
121+
122+func V () = wavesBalance(this)
123+
124+
125+func W () = {
126+ let X = extract(assetInfo(S))
127+ (X.quantity - assetBalance(this, S))
128+ }
129+
130+
131+func Y () = {
132+ let X = extract(assetInfo(T))
133+ (X.quantity - assetBalance(this, T))
134+ }
135+
136+
137+@Callable(Z)
138+func setCurrentPrice (aa) = WriteSet([DataEntry(j, aa)])
139+
140+
141+
142+@Callable(Z)
143+func swapWavesToNeutrino () = {
144+ let aa = y()
145+ let ab = extract(Z.payment)
146+ if (isDefined(ab.assetId))
147+ then throw("can use waves only")
148+ else {
149+ let ac = toBase58String(Z.caller.bytes)
150+ let ad = (ab.amount * aa)
151+ TransferSet([ScriptTransfer(addressFromStringValue(ac), ad, S)])
152+ }
153+ }
154+
155+
156+
157+@Callable(Z)
158+func swapNeutrinoToWaves () = {
159+ let aa = y()
160+ let ab = extract(Z.payment)
161+ if ((ab.assetId != S))
162+ then throw("can use neutrino only")
163+ else {
164+ let ac = toBase58String(Z.caller.bytes)
165+ let ad = (ab.amount / aa)
166+ TransferSet([ScriptTransfer(addressFromStringValue(ac), ad, unit)])
167+ }
168+ }
169+
170+
171+
172+@Callable(Z)
173+func generateBond () = {
174+ let ae = y()
175+ let af = V()
176+ let ag = W()
177+ let ah = (ag - (af * ae))
178+ let ai = G()
179+ if (if ((ah >= Q))
180+ then ((ai + N) > height)
181+ else false)
182+ then ScriptResult(WriteSet([DataEntry(u, height)]), TransferSet([ScriptTransfer(addressFromStringValue(U), (ah - Q), T)]))
183+ else throw("deficit did not reach the threshold")
184+ }
185+
186+
187+
188+@Callable(Z)
189+func setOrder () = {
190+ let aj = z()
191+ let ab = extract(Z.payment)
192+ let ak = toBase58String(keccak256(((toBytes(ab.amount) + Z.caller.bytes) + toBytes(height))))
193+ if ((ab.assetId != T))
194+ then throw("can use waves only")
195+ else if ((D(ak) != a))
196+ then throw("order exists")
197+ else if ((aj == a))
198+ then WriteSet([DataEntry(o, (A() + ab.amount)), DataEntry(k, (O + ak)), DataEntry((l + ak), ab.amount), DataEntry((m + ak), toString(Z.caller)), DataEntry((n + ak), height)])
199+ else WriteSet([DataEntry(o, (A() + ab.amount)), DataEntry(k, ((aj + O) + ak)), DataEntry((l + ak), ab.amount), DataEntry((m + ak), toString(Z.caller)), DataEntry((n + ak), height)])
200+ }
201+
202+
203+
204+@Callable(Z)
205+func cancelOrder (al) = {
206+ let aj = z()
207+ let am = D(al)
208+ let ad = B(al)
209+ if ((am != toString(Z.caller)))
210+ then throw("permission denied")
211+ else {
212+ let an = split(aj, (O + al))[0]
213+ let ao = split(aj, (O + al))[1]
214+ ScriptResult(WriteSet([DataEntry(o, (A() - ad)), DataEntry(k, (an + ao)), DataEntry((l + al), 0)]), TransferSet([ScriptTransfer(Z.caller, ad, unit)]))
215+ }
216+ }
217+
218+
219+
220+@Callable(Z)
221+func executeOrder () = {
222+ let aj = H()
223+ let al = split(aj, O)[1]
224+ let ap = B(al)
225+ let ae = y()
226+ let af = V()
227+ let ag = W()
228+ let aq = ((af * ae) - ag)
229+ if ((ap == 0))
230+ then {
231+ let ao = split(aj, (al + O))[1]
232+ ScriptResult(WriteSet([DataEntry(s, ao)]), TransferSet([ScriptTransfer(Z.caller, ap, S)]))
233+ }
234+ else if ((0 >= aq))
235+ then throw("surplus is less than zero")
236+ else if ((aq >= ap))
237+ then {
238+ let ar = split(aj, (al + O))[1]
239+ let as = z()
240+ let at = split(as, (O + al))[0]
241+ let au = split(as, (O + al))[1]
242+ ScriptResult(WriteSet([DataEntry(o, (A() - ap)), DataEntry(k, (at + au)), DataEntry(s, ar), DataEntry((l + al), 0)]), TransferSet([ScriptTransfer(Z.caller, ap, S)]))
243+ }
244+ else ScriptResult(WriteSet([DataEntry(o, (A() - aq)), DataEntry((l + al), (ap - aq))]), TransferSet([ScriptTransfer(Z.caller, aq, S)]))
245+ }
246+
247+
248+
249+@Callable(Z)
250+func calculateSurplusAndCreateSnapshot () = {
251+ let ae = y()
252+ let af = V()
253+ let ag = W()
254+ let aq = ((af * ae) - ag)
255+ if (if ((0 >= aq))
256+ then true
257+ else (R > aq))
258+ then throw("surplus is less minimum")
259+ else ScriptResult(WriteSet([DataEntry(p, A()), DataEntry(r, height), DataEntry(q, aq)]), TransferSet([ScriptTransfer(Z.caller, aq, S)]))
260+ }
261+
262+
263+
264+@Callable(Z)
265+func snapshotNeutrino () = {
266+ let av = assetBalance(Z.caller, S)
267+ let aw = assetBalance(Z.caller, T)
268+ let ad = (aw + av)
269+ let C = toBase58String(keccak256(((toBytes(ad) + Z.caller.bytes) + toBytes(height))))
270+ if ((L(C) != a))
271+ then throw("id exists")
272+ else WriteSet([DataEntry((x + C), ad), DataEntry((v + C), height), DataEntry((w + C), toString(Z.caller))])
273+ }
274+
275+
276+
277+@Callable(Z)
278+func getNewNeutrino (C) = {
279+ let av = assetBalance(Z.caller, S)
280+ let aw = assetBalance(Z.caller, T)
281+ let aj = H()
282+ let ae = y()
283+ let af = V()
284+ let ax = W()
285+ let ay = Y()
286+ let az = (ay - I())
287+ let aq = ((af * ae) - ax)
288+ let aA = F()
289+ let aB = K(C)
290+ let ad = M(C)
291+ if ((0 >= aq))
292+ then throw("surplus is less than zero")
293+ else if ((aB >= aA))
294+ then throw("wait new snapshot")
295+ else if (((aw + av) != ad))
296+ then throw("invalid balance snapshot")
297+ else if ((aj == a))
298+ then ScriptResult(WriteSet([DataEntry((x + C), 0), DataEntry((v + C), 0)]), TransferSet([ScriptTransfer(Z.caller, ((aq * ad) / (ax + az)), S)]))
299+ else throw("orderbook nor empty")
300+ }
301+
302+

github/deemru/w8io/169f3d6 
39.55 ms