tx · GNHbj5u2jBYj6TV9P7gvvMkL7fKbmuPfj7aiVcgt6dtU

3MymToccYDK8vuwr1LMzxVp51X6WmsafFit:  -0.01400000 Waves

2020.10.22 21:56 [1232166] smart account 3MymToccYDK8vuwr1LMzxVp51X6WmsafFit > SELF 0.00000000 Waves

{ "type": 13, "id": "GNHbj5u2jBYj6TV9P7gvvMkL7fKbmuPfj7aiVcgt6dtU", "fee": 1400000, "feeAssetId": null, "timestamp": 1603393006016, "version": 1, "sender": "3MymToccYDK8vuwr1LMzxVp51X6WmsafFit", "senderPublicKey": "95zM5yLX9Tu2LveeQnFdr16kXErmdFxxv1zsy5BpUcc6", "proofs": [ "3JVzV4tBAnZvQQmqHmRKLwsoeALHYjCFVtu7YY1yDtQy7r1iHrh3SgqrN9dFPrZ94YMrvkC7r58Lo3od4EiMFjpn" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASABIAEgMKAQEAAAARAAAAAAhJZFRva2VuQQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANYXNzZXRJZFRva2VuQQAAAAAISWRUb2tlbkIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADWFzc2V0SWRUb2tlbkIAAAAADGFtb3VudFRva2VuQgkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAMYW1vdW50VG9rZW5CAAAAAAxhbW91bnRUb2tlbkEJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADGFtb3VudFRva2VuQQAAAAAMSWRUb2tlblNoYXJlCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA5zaGFyZV90b2tlbl9pZAAAAAAQdG9rZW5TaGFyZVN1cHBseQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAASc2hhcmVfdG9rZW5fc3VwcGx5AAAAAA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AQAAAALYXNzZXRJZFNlbnQFAAAADWFzc2V0SWRUb2tlbkIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADGFtb3VudFRva2VuQQkAAGQAAAACBQAAAAxhbW91bnRUb2tlbkEFAAAAEnRva2VuUmVjZWl2ZUFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAMYW1vdW50VG9rZW5CCQAAZQAAAAIFAAAADGFtb3VudFRva2VuQgUAAAAPdG9rZW5TZW5kQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA5leGNoYW5nZV9jb3VudAkAAGQAAAACBQAAAAVjb3VudAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAAKY29udGV4dE9iagAAAAZjYWxsZXIFAAAAD3Rva2VuU2VuZEFtb3VudAUAAAALYXNzZXRJZFNlbnQFAAAAA25pbAkAAAIAAAABAgAAABRBc3NldCBpcyBub3QgYWxsb3dlZAAAAAAUbkBy", "chainId": 84, "height": 1232166, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HzoFrGixaASNTb4Zi4armBqWtr7acxAcYcpu9GfvGPV8 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = getStringValue(this, "assetIdTokenA")
5+
6+let b = getStringValue(this, "assetIdTokenB")
7+
8+let c = getIntegerValue(this, "amountTokenB")
9+
10+let d = getIntegerValue(this, "amountTokenA")
11+
12+let e = getStringValue(this, "share_token_id")
13+
14+let f = getIntegerValue(this, "share_token_supply")
15+
16+let g = 500
17+
18+let h = 1000000
19+
20+let i = "1.0.0"
21+
22+let j = 100000000
23+
24+let k = 100000000
25+
26+let l = 99999000
27+
28+let m = 8
29+
30+func n (o) = if ((o == "WAVES"))
31+ then unit
32+ else fromBase58String(o)
33+
34+
35+let p = n(a)
36+
37+let q = n(b)
38+
39+let r = fromBase58String(e)
40+
41+@Callable(s)
42+func fund () = {
43+ let t = value(s.payments[0])
44+ let u = value(s.payments[1])
45+ let v = t.assetId
46+ let w = t.amount
47+ let x = u.assetId
48+ let y = u.amount
49+ let z = {
50+ let A = v
51+ if ($isInstanceOf(A, "Unit"))
52+ then {
53+ let B = A
54+ 8
55+ }
56+ else if ($isInstanceOf(A, "ByteVector"))
57+ then {
58+ let B = A
59+ value(assetInfo(B)).decimals
60+ }
61+ else throw("Match error")
62+ }
63+ let C = {
64+ let A = x
65+ if ($isInstanceOf(A, "Unit"))
66+ then {
67+ let B = A
68+ 8
69+ }
70+ else if ($isInstanceOf(A, "ByteVector"))
71+ then {
72+ let B = A
73+ value(assetInfo(B)).decimals
74+ }
75+ else throw("Match error")
76+ }
77+ if (isDefined(getBoolean(this, "status")))
78+ then throw("already active")
79+ else {
80+ let D = ("ShareT_" + takeRight(toString(this), 5))
81+ let E = ((z + C) / 2)
82+ let F = fraction(pow(w, z, 5, 1, z, HALFDOWN), pow(y, C, 5, 1, C, HALFDOWN), pow(10, 0, E, 0, 0, HALFDOWN))
83+ let G = calculateAssetId(Issue(D, D, F, E, true))
84+ let H = {
85+ let A = v
86+ if ($isInstanceOf(A, "Unit"))
87+ then {
88+ let I = A
89+ "WAVES"
90+ }
91+ else if ($isInstanceOf(A, "ByteVector"))
92+ then {
93+ let I = A
94+ toBase58String(value(v))
95+ }
96+ else throw("Match error")
97+ }
98+ let J = {
99+ let A = x
100+ if ($isInstanceOf(A, "Unit"))
101+ then {
102+ let I = A
103+ "WAVES"
104+ }
105+ else if ($isInstanceOf(A, "ByteVector"))
106+ then {
107+ let I = A
108+ toBase58String(value(x))
109+ }
110+ else throw("Match error")
111+ }
112+[IntegerEntry("amountTokenA", w), IntegerEntry("amountTokenB", y), StringEntry("assetIdTokenA", H), StringEntry("assetIdTokenB", J), IntegerEntry("exchange_count", 0), BooleanEntry("status", true), IntegerEntry("comission", g), IntegerEntry("comissionScaleDelimiter", h), StringEntry("version", i), Issue(D, D, F, E, true), ScriptTransfer(s.caller, F, G), StringEntry("share_token_id", toBase58String(G)), IntegerEntry("share_token_supply", F)]
113+ }
114+ }
115+
116+
117+
118+@Callable(s)
119+func replenishment () = {
120+ let t = value(s.payments[0])
121+ let u = value(s.payments[1])
122+ let v = t.assetId
123+ let w = t.amount
124+ let x = u.assetId
125+ let y = u.amount
126+ let K = getIntegerValue(this, "amountTokenA")
127+ let L = getIntegerValue(this, "amountTokenB")
128+ if (if ((v != p))
129+ then true
130+ else (x != q))
131+ then throw("incorrect assets")
132+ else {
133+ let M = (fraction(w, (1000000000000 * 100000), K) / fraction(L, 1000000000000, y))
134+ if (!(if ((M > 99990))
135+ then (100010 > M)
136+ else false))
137+ then throw("incorrect assets amount")
138+ else {
139+ let N = fraction(w, f, K)
140+ if ((N == 0))
141+ then throw("you try replansish with very small amount")
142+ else [Reissue(r, N, true), ScriptTransfer(s.caller, N, r), IntegerEntry("share_token_supply", (f + N)), IntegerEntry("amountTokenA", (K + w)), IntegerEntry("amountTokenB", (L + y))]
143+ }
144+ }
145+ }
146+
147+
148+
149+@Callable(s)
150+func replanishmentWithOneToken () = {
151+ let O = value(s.payments[0])
152+ let P = O.assetId
153+ let Q = O.amount
154+ if ((P == p))
155+ then {
156+ let R = (d + Q)
157+ let S = fraction(R, j, c)
158+ let T = pow(fraction(d, c, S), 0, 5, 1, 0, HALFDOWN)
159+ let U = fraction(c, f, T)
160+ let N = (U - f)
161+[Reissue(r, N, true), ScriptTransfer(s.caller, N, r), IntegerEntry("share_token_supply", (f + N)), IntegerEntry("amountTokenA", R)]
162+ }
163+ else if ((P == q))
164+ then {
165+ let V = (c + Q)
166+ let S = fraction(d, j, V)
167+ let T = pow(fraction(d, c, S), 0, 5, 1, 0, HALFDOWN)
168+ let U = fraction(c, f, T)
169+ let N = (U - f)
170+[Reissue(r, N, true), ScriptTransfer(s.caller, N, r), IntegerEntry("share_token_supply", (f + N)), IntegerEntry("amountTokenB", V)]
171+ }
172+ else throw("incorrect assets in payment")
173+ }
174+
175+
176+
177+@Callable(s)
178+func withdraw () = {
179+ let K = getIntegerValue(this, "amountTokenA")
180+ let L = getIntegerValue(this, "amountTokenB")
181+ let O = value(s.payments[0])
182+ let P = O.assetId
183+ let Q = O.amount
184+ if ((r != P))
185+ then throw(("you need to attach share token for this dApp " + toBase58String(r)))
186+ else {
187+ let W = fraction(Q, K, f)
188+ let X = fraction(Q, L, f)
189+[ScriptTransfer(s.caller, W, p), ScriptTransfer(s.caller, X, q), IntegerEntry("amountTokenA", (K - W)), IntegerEntry("amountTokenB", (L - X)), IntegerEntry("share_token_supply", (f - Q)), Burn(r, Q)]
190+ }
191+ }
192+
193+
194+
195+@Callable(s)
196+func exchanger (Y) = {
197+ let O = value(s.payments[0])
198+ let P = O.assetId
199+ let Q = O.amount
200+ let Z = value(getInteger(this, "exchange_count"))
201+ if ((P == q))
202+ then {
203+ let aa = ((fraction(d, Q, (Q + c)) * (h - g)) / h)
204+ if ((Y > aa))
205+ then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
206+ else {
207+ let ab = p
208+[IntegerEntry("amountTokenA", (d - aa)), IntegerEntry("amountTokenB", (c + Q)), IntegerEntry("exchange_count", (Z + 1)), ScriptTransfer(s.caller, aa, ab)]
209+ }
210+ }
211+ else if ((P == p))
212+ then {
213+ let aa = ((fraction(c, Q, (Q + d)) * (h - g)) / h)
214+ if ((Y > aa))
215+ then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
216+ else {
217+ let ab = q
218+[IntegerEntry("amountTokenA", (d + Q)), IntegerEntry("amountTokenB", (c - aa)), IntegerEntry("exchange_count", (Z + 1)), ScriptTransfer(s.caller, aa, ab)]
219+ }
220+ }
221+ else throw("Asset is not allowed")
222+ }
223+
224+

github/deemru/w8io/026f985 
24.86 ms