tx · Aqa2PjQNBQtuAGrfk4HVzGNDgTSJhossQtug3jbYkwL1 3N6LHjfGb6Fgcy7YsVcNxGyPTj49XbQAijq: -0.01100000 Waves 2024.07.15 10:03 [3194820] smart account 3N6LHjfGb6Fgcy7YsVcNxGyPTj49XbQAijq > SELF 0.00000000 Waves
{ "type": 13, "id": "Aqa2PjQNBQtuAGrfk4HVzGNDgTSJhossQtug3jbYkwL1", "fee": 1100000, "feeAssetId": null, "timestamp": 1721027040519, "version": 1, "sender": "3N6LHjfGb6Fgcy7YsVcNxGyPTj49XbQAijq", "senderPublicKey": "2u2wYYcVBQv43Cc71zkhHPPitkqgg6dqTZ3nUMvYJ1uq", "proofs": [ "4MrWKUq1G2zN14zvuaedcZ8a82fD3x6zjqYW7giCtskvLgF9UndKMBBsvjV58my642vZaUUqaYLWLA7UzQHmRrwj" ], "script": "base64:BgIQCAISBQoDAQgIEgUKAwEICBkAA1NFUAICX18ACGZlZVNjYWxlCQC2AgEAgMLXLwEPZ2V0U3RyaW5nT3JGYWlsAQNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQR0aGlzBQNrZXkJAKwCAgIVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQNrZXkADHBvb2xEaXNhYmxlZAkAAgECDVBvb2wgZGlzYWJsZWQADHBvb2xOb3RFeGlzdAkAAgECEVBvb2wgaXMgbm90IGV4aXN0AA5zbGlwcGFnZVRvb0JpZwkAAgECE1NsaXBwYWdlIGlzIHRvbyBiaWcBE2tleU1hbmFnZXJQdWJsaWNLZXkAAhQlc19fbWFuYWdlclB1YmxpY0tleQEWa2V5TWFuYWdlclZhdWx0QWRkcmVzcwACFyVzX19tYW5hZ2VyVmF1bHRBZGRyZXNzAQJmYwACEyVzX19mYWN0b3J5Q29udHJhY3QAD2ZhY3RvcnlDb250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQkBD2dldFN0cmluZ09yRmFpbAEJAQJmYwABC3Byb3RvY29sRmVlAA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BQskdDA2NTA2NzEwMAJfMgkAlAoCCQDOCAIFEnByb3RvY29sRmVlQWN0aW9ucwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQdwb29sQWRyCQCgAwEFDWZlZVBvb2xBbW91bnQFFmFzc2V0SW5BdHRhY2hlZFBheW1lbnQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwULYWRkcmVzc1RvX2EFC25ld1RvdGFsR2V0CQEPc3RyaW5nVG9Bc3NldElkAQUIYXNzZXRPdXQFA25pbAULbmV3VG90YWxHZXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXnz+huy", "chainId": 84, "height": 3194820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: iagmBQd5s4ACoPgKuu5dDpiEWRo7oDUQSJ43x9jpEQA Next: EtVYfFaBUbs2evGPSU4RvB9nEUHYpAzej2tNzNm6ijmM Diff:
Old | New | Differences | |
---|---|---|---|
100 | 100 | else assetBalance(this, fromBase58String(H)) | |
101 | 101 | ||
102 | 102 | ||
103 | - | func I (J) = { | |
104 | - | let K = value(getInteger(this, m())) | |
105 | - | let L = value(getInteger(this, l())) | |
106 | - | let s = invoke(k, "getSwapFeeREADONLY", [J], nil) | |
103 | + | func I (J) = if ((J == "WAVES")) | |
104 | + | then unit | |
105 | + | else fromBase58String(J) | |
106 | + | ||
107 | + | ||
108 | + | func K (L) = { | |
109 | + | let M = value(getInteger(this, m())) | |
110 | + | let N = value(getInteger(this, l())) | |
111 | + | let s = invoke(k, "getSwapFeeREADONLY", [L], nil) | |
107 | 112 | if ($isInstanceOf(s, "(Int, Int)")) | |
108 | 113 | then { | |
109 | - | let | |
110 | - | $Tuple2( | |
114 | + | let O = s | |
115 | + | $Tuple2(O._1, O._2) | |
111 | 116 | } | |
112 | - | else $Tuple2( | |
117 | + | else $Tuple2(M, N) | |
113 | 118 | } | |
114 | 119 | ||
115 | 120 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
120 | - | then | |
121 | + | func P (Q,R) = { | |
122 | + | let S = { | |
123 | + | let T = invoke(k, "getLpAssetFromPoolAssetsREADONLY", [Q, R], nil) | |
124 | + | if ($isInstanceOf(T, "String")) | |
125 | + | then T | |
121 | 126 | else unit | |
122 | 127 | } | |
123 | - | let | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
126 | - | then | |
128 | + | let U = { | |
129 | + | let T = invoke(k, "getLpAssetFromPoolAssetsREADONLY", [R, Q], nil) | |
130 | + | if ($isInstanceOf(T, "String")) | |
131 | + | then T | |
127 | 132 | else unit | |
128 | 133 | } | |
129 | - | let | |
134 | + | let V = if ((S != unit)) | |
130 | 135 | then { | |
131 | - | let | |
132 | - | let | |
133 | - | if ($isInstanceOf( | |
134 | - | then | |
135 | - | else throw(($getType( | |
136 | + | let W = { | |
137 | + | let T = invoke(k, "getPoolAddressFromLpAssetREADONLY", [value(S)], nil) | |
138 | + | if ($isInstanceOf(T, "String")) | |
139 | + | then T | |
140 | + | else throw(($getType(T) + " couldn't be cast to String")) | |
136 | 141 | } | |
137 | - | $Tuple2(false, | |
142 | + | $Tuple2(false, W) | |
138 | 143 | } | |
139 | - | else if (( | |
144 | + | else if ((U != unit)) | |
140 | 145 | then { | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
144 | - | then | |
145 | - | else throw(($getType( | |
146 | + | let W = { | |
147 | + | let T = invoke(k, "getPoolAddressFromLpAssetREADONLY", [value(U)], nil) | |
148 | + | if ($isInstanceOf(T, "String")) | |
149 | + | then T | |
150 | + | else throw(($getType(T) + " couldn't be cast to String")) | |
146 | 151 | } | |
147 | - | $Tuple2(true, | |
152 | + | $Tuple2(true, W) | |
148 | 153 | } | |
149 | 154 | else f | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | if ($isInstanceOf( | |
155 | - | then | |
156 | - | else throw(($getType( | |
155 | + | let X = V._1 | |
156 | + | let W = V._2 | |
157 | + | let Y = { | |
158 | + | let T = invoke(k, "getPoolStatusREADONLY", [W], nil) | |
159 | + | if ($isInstanceOf(T, "Int")) | |
160 | + | then T | |
161 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
157 | 162 | } | |
158 | - | let | |
163 | + | let Z = if ((Y == 1)) | |
159 | 164 | then true | |
160 | 165 | else e | |
161 | - | if (( | |
166 | + | if ((Z == Z)) | |
162 | 167 | then { | |
163 | - | let | |
164 | - | $Tuple2( | |
168 | + | let aa = addressFromStringValue(valueOrElse(W, "")) | |
169 | + | $Tuple2(aa, X) | |
165 | 170 | } | |
166 | 171 | else throw("Strict value is not equal to itself.") | |
167 | 172 | } | |
168 | 173 | ||
169 | 174 | ||
170 | 175 | @Callable(D) | |
171 | - | func swapCalculateREADONLY ( | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
176 | + | func swapCalculateREADONLY (ab,Q,R) = { | |
177 | + | let ac = P(Q, R) | |
178 | + | let aa = ac._1 | |
179 | + | let X = ac._2 | |
180 | + | let ad = K(toString(aa)) | |
181 | + | let ae = ad._1 | |
182 | + | let af = ad._2 | |
183 | + | let ag = fraction(toBigInt(ab), toBigInt(af), b) | |
184 | + | let ah = fraction(toBigInt(ab), toBigInt(ae), b) | |
185 | + | let ai = if ((toInt(ag) == 0)) | |
181 | 186 | then toBigInt(1) | |
182 | - | else | |
183 | - | let | |
187 | + | else ag | |
188 | + | let aj = if ((toInt(ah) == 0)) | |
184 | 189 | then toBigInt(1) | |
185 | - | else | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
190 | - | then | |
191 | - | else throw(($getType( | |
190 | + | else ah | |
191 | + | let ak = ((toBigInt(ab) - ai) - aj) | |
192 | + | let al = { | |
193 | + | let T = invoke(aa, "calculateAmountOutForSwapREADONLY", [toInt(ak), X, toInt(aj)], nil) | |
194 | + | if ($isInstanceOf(T, "Int")) | |
195 | + | then T | |
196 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
192 | 197 | } | |
193 | - | $Tuple2(nil, | |
198 | + | $Tuple2(nil, al) | |
194 | 199 | } | |
195 | 200 | ||
196 | 201 | ||
197 | 202 | ||
198 | 203 | @Callable(D) | |
199 | - | func swap ( | |
200 | - | let | |
204 | + | func swap (am,an,ao) = { | |
205 | + | let R = if ((an == "")) | |
201 | 206 | then "WAVES" | |
202 | - | else | |
203 | - | let | |
204 | - | let | |
207 | + | else an | |
208 | + | let ap = value(D.payments[0]) | |
209 | + | let Q = if ((ap.assetId == unit)) | |
205 | 210 | then "WAVES" | |
206 | - | else toBase58String(value(an.assetId)) | |
207 | - | let Z = value(an.amount) | |
208 | - | let ao = N(O, P) | |
209 | - | let Y = ao._1 | |
210 | - | let V = ao._2 | |
211 | - | let ap = I(toString(Y)) | |
212 | - | let ac = ap._1 | |
213 | - | let ad = ap._2 | |
214 | - | let ae = fraction(toBigInt(Z), toBigInt(ad), b) | |
215 | - | let af = fraction(toBigInt(Z), toBigInt(ac), b) | |
216 | - | let ag = if ((toInt(ae) == 0)) | |
211 | + | else toBase58String(value(ap.assetId)) | |
212 | + | let ab = value(ap.amount) | |
213 | + | let aq = P(Q, R) | |
214 | + | let aa = aq._1 | |
215 | + | let X = aq._2 | |
216 | + | let ar = K(toString(aa)) | |
217 | + | let ae = ar._1 | |
218 | + | let af = ar._2 | |
219 | + | let ag = fraction(toBigInt(ab), toBigInt(af), b) | |
220 | + | let ah = fraction(toBigInt(ab), toBigInt(ae), b) | |
221 | + | let as = addressFromStringValue(ao) | |
222 | + | let ai = if ((toInt(ag) == 0)) | |
217 | 223 | then toBigInt(1) | |
218 | - | else | |
219 | - | let | |
224 | + | else ag | |
225 | + | let aj = if ((toInt(ah) == 0)) | |
220 | 226 | then toBigInt(1) | |
221 | - | else af | |
222 | - | let ai = ((toBigInt(Z) - ag) - ah) | |
223 | - | let aq = [if ((size(D.payments) == 1)) | |
227 | + | else ah | |
228 | + | let ak = if ((X == true)) | |
229 | + | then ((toBigInt(ab) - ai) - aj) | |
230 | + | else (toBigInt(ab) - aj) | |
231 | + | let at = [if ((size(D.payments) == 1)) | |
224 | 232 | then true | |
225 | 233 | else throw("exactly 1 payment are expected")] | |
226 | - | if (( | |
234 | + | if ((at == at)) | |
227 | 235 | then { | |
228 | - | let ar = if ((O == "WAVES")) | |
229 | - | then unit | |
230 | - | else fromBase58String(O) | |
231 | - | let as = { | |
232 | - | let R = invoke(Y, "calculateAmountOutForSwapAndSendTokens", [toInt(ai), V, ak, am, toInt(ah)], [AttachedPayment(ar, toInt(ai))]) | |
233 | - | if ($isInstanceOf(R, "Int")) | |
234 | - | then R | |
235 | - | else throw(($getType(R) + " couldn't be cast to Int")) | |
236 | + | let au = I(Q) | |
237 | + | let av = { | |
238 | + | let T = invoke(aa, "calculateAmountOutForSwapAndSendTokens", [toInt(ak), X, am, this, toInt(aj)], [AttachedPayment(au, toInt(ak))]) | |
239 | + | if ($isInstanceOf(T, "Int")) | |
240 | + | then T | |
241 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
236 | 242 | } | |
237 | - | $Tuple2([ScriptTransfer(q, toInt(ag), ar), ScriptTransfer(Y, toInt(ah), ar)], as) | |
243 | + | let aw = if ((X == true)) | |
244 | + | then $Tuple2([ScriptTransfer(q, toInt(ai), au)], av) | |
245 | + | else { | |
246 | + | let ax = fraction(toBigInt(av), toBigInt(af), b) | |
247 | + | let ay = if ((toInt(ax) == 0)) | |
248 | + | then toInt(toBigInt(1)) | |
249 | + | else toInt(ax) | |
250 | + | $Tuple2([ScriptTransfer(q, ay, I(R))], (av - ay)) | |
251 | + | } | |
252 | + | let az = aw._1 | |
253 | + | let aA = aw._2 | |
254 | + | $Tuple2((az ++ [ScriptTransfer(aa, toInt(aj), au), ScriptTransfer(as, aA, I(R))]), aA) | |
238 | 255 | } | |
239 | 256 | else throw("Strict value is not equal to itself.") | |
240 | 257 | } | |
241 | 258 | ||
242 | 259 | ||
243 | - | @Verifier( | |
244 | - | func | |
245 | - | let | |
260 | + | @Verifier(aB) | |
261 | + | func aC () = { | |
262 | + | let aD = { | |
246 | 263 | let s = A() | |
247 | 264 | if ($isInstanceOf(s, "ByteVector")) | |
248 | 265 | then { | |
250 | 267 | E | |
251 | 268 | } | |
252 | 269 | else if ($isInstanceOf(s, "Unit")) | |
253 | - | then | |
270 | + | then aB.senderPublicKey | |
254 | 271 | else throw("Match error") | |
255 | 272 | } | |
256 | - | sigVerify( | |
273 | + | sigVerify(aB.bodyBytes, aB.proofs[0], aD) | |
257 | 274 | } | |
258 | 275 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | func c (d) = valueOrErrorMessage(getString(this, d), ("No data for this.key=" + d)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | let e = throw("Pool disabled") | |
12 | 12 | ||
13 | 13 | let f = throw("Pool is not exist") | |
14 | 14 | ||
15 | 15 | let g = throw("Slippage is too big") | |
16 | 16 | ||
17 | 17 | func h () = "%s__managerPublicKey" | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i () = "%s__managerVaultAddress" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j () = "%s__factoryContract" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | let k = addressFromStringValue(c(j())) | |
27 | 27 | ||
28 | 28 | func l () = makeString(["%s", "protocolFee"], a) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m () = makeString(["%s", "poolFee"], a) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n (o,d) = valueOrErrorMessage(getString(o, d), makeString(["mandatory ", toString(o), ".", d, " is not defined"], "")) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let p = "%s__feeCollectorAddress" | |
38 | 38 | ||
39 | 39 | let q = addressFromStringValue(n(k, p)) | |
40 | 40 | ||
41 | 41 | func r () = { | |
42 | 42 | let s = getString(i()) | |
43 | 43 | if ($isInstanceOf(s, "String")) | |
44 | 44 | then { | |
45 | 45 | let t = s | |
46 | 46 | addressFromStringValue(t) | |
47 | 47 | } | |
48 | 48 | else this | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func u (v) = { | |
53 | 53 | let s = v | |
54 | 54 | if ($isInstanceOf(s, "Int")) | |
55 | 55 | then { | |
56 | 56 | let w = s | |
57 | 57 | w | |
58 | 58 | } | |
59 | 59 | else throw("fail to cast into Int") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func x (y,z) = makeString(["%d%d", toString(y), toString(z)], a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func A () = { | |
67 | 67 | let B = r() | |
68 | 68 | let s = getString(B, h()) | |
69 | 69 | if ($isInstanceOf(s, "String")) | |
70 | 70 | then { | |
71 | 71 | let t = s | |
72 | 72 | fromBase58String(t) | |
73 | 73 | } | |
74 | 74 | else if ($isInstanceOf(s, "Unit")) | |
75 | 75 | then unit | |
76 | 76 | else throw("Match error") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func C (D) = { | |
81 | 81 | let s = A() | |
82 | 82 | if ($isInstanceOf(s, "ByteVector")) | |
83 | 83 | then { | |
84 | 84 | let E = s | |
85 | 85 | (D.callerPublicKey == E) | |
86 | 86 | } | |
87 | 87 | else if ($isInstanceOf(s, "Unit")) | |
88 | 88 | then (D.caller == this) | |
89 | 89 | else throw("Match error") | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func F (D) = if (C(D)) | |
94 | 94 | then true | |
95 | 95 | else throw("permission denied") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func G (H) = if ((H == "WAVES")) | |
99 | 99 | then wavesBalance(this).available | |
100 | 100 | else assetBalance(this, fromBase58String(H)) | |
101 | 101 | ||
102 | 102 | ||
103 | - | func I (J) = { | |
104 | - | let K = value(getInteger(this, m())) | |
105 | - | let L = value(getInteger(this, l())) | |
106 | - | let s = invoke(k, "getSwapFeeREADONLY", [J], nil) | |
103 | + | func I (J) = if ((J == "WAVES")) | |
104 | + | then unit | |
105 | + | else fromBase58String(J) | |
106 | + | ||
107 | + | ||
108 | + | func K (L) = { | |
109 | + | let M = value(getInteger(this, m())) | |
110 | + | let N = value(getInteger(this, l())) | |
111 | + | let s = invoke(k, "getSwapFeeREADONLY", [L], nil) | |
107 | 112 | if ($isInstanceOf(s, "(Int, Int)")) | |
108 | 113 | then { | |
109 | - | let | |
110 | - | $Tuple2( | |
114 | + | let O = s | |
115 | + | $Tuple2(O._1, O._2) | |
111 | 116 | } | |
112 | - | else $Tuple2( | |
117 | + | else $Tuple2(M, N) | |
113 | 118 | } | |
114 | 119 | ||
115 | 120 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | if ($isInstanceOf( | |
120 | - | then | |
121 | + | func P (Q,R) = { | |
122 | + | let S = { | |
123 | + | let T = invoke(k, "getLpAssetFromPoolAssetsREADONLY", [Q, R], nil) | |
124 | + | if ($isInstanceOf(T, "String")) | |
125 | + | then T | |
121 | 126 | else unit | |
122 | 127 | } | |
123 | - | let | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
126 | - | then | |
128 | + | let U = { | |
129 | + | let T = invoke(k, "getLpAssetFromPoolAssetsREADONLY", [R, Q], nil) | |
130 | + | if ($isInstanceOf(T, "String")) | |
131 | + | then T | |
127 | 132 | else unit | |
128 | 133 | } | |
129 | - | let | |
134 | + | let V = if ((S != unit)) | |
130 | 135 | then { | |
131 | - | let | |
132 | - | let | |
133 | - | if ($isInstanceOf( | |
134 | - | then | |
135 | - | else throw(($getType( | |
136 | + | let W = { | |
137 | + | let T = invoke(k, "getPoolAddressFromLpAssetREADONLY", [value(S)], nil) | |
138 | + | if ($isInstanceOf(T, "String")) | |
139 | + | then T | |
140 | + | else throw(($getType(T) + " couldn't be cast to String")) | |
136 | 141 | } | |
137 | - | $Tuple2(false, | |
142 | + | $Tuple2(false, W) | |
138 | 143 | } | |
139 | - | else if (( | |
144 | + | else if ((U != unit)) | |
140 | 145 | then { | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
144 | - | then | |
145 | - | else throw(($getType( | |
146 | + | let W = { | |
147 | + | let T = invoke(k, "getPoolAddressFromLpAssetREADONLY", [value(U)], nil) | |
148 | + | if ($isInstanceOf(T, "String")) | |
149 | + | then T | |
150 | + | else throw(($getType(T) + " couldn't be cast to String")) | |
146 | 151 | } | |
147 | - | $Tuple2(true, | |
152 | + | $Tuple2(true, W) | |
148 | 153 | } | |
149 | 154 | else f | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | if ($isInstanceOf( | |
155 | - | then | |
156 | - | else throw(($getType( | |
155 | + | let X = V._1 | |
156 | + | let W = V._2 | |
157 | + | let Y = { | |
158 | + | let T = invoke(k, "getPoolStatusREADONLY", [W], nil) | |
159 | + | if ($isInstanceOf(T, "Int")) | |
160 | + | then T | |
161 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
157 | 162 | } | |
158 | - | let | |
163 | + | let Z = if ((Y == 1)) | |
159 | 164 | then true | |
160 | 165 | else e | |
161 | - | if (( | |
166 | + | if ((Z == Z)) | |
162 | 167 | then { | |
163 | - | let | |
164 | - | $Tuple2( | |
168 | + | let aa = addressFromStringValue(valueOrElse(W, "")) | |
169 | + | $Tuple2(aa, X) | |
165 | 170 | } | |
166 | 171 | else throw("Strict value is not equal to itself.") | |
167 | 172 | } | |
168 | 173 | ||
169 | 174 | ||
170 | 175 | @Callable(D) | |
171 | - | func swapCalculateREADONLY ( | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
176 | + | func swapCalculateREADONLY (ab,Q,R) = { | |
177 | + | let ac = P(Q, R) | |
178 | + | let aa = ac._1 | |
179 | + | let X = ac._2 | |
180 | + | let ad = K(toString(aa)) | |
181 | + | let ae = ad._1 | |
182 | + | let af = ad._2 | |
183 | + | let ag = fraction(toBigInt(ab), toBigInt(af), b) | |
184 | + | let ah = fraction(toBigInt(ab), toBigInt(ae), b) | |
185 | + | let ai = if ((toInt(ag) == 0)) | |
181 | 186 | then toBigInt(1) | |
182 | - | else | |
183 | - | let | |
187 | + | else ag | |
188 | + | let aj = if ((toInt(ah) == 0)) | |
184 | 189 | then toBigInt(1) | |
185 | - | else | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
190 | - | then | |
191 | - | else throw(($getType( | |
190 | + | else ah | |
191 | + | let ak = ((toBigInt(ab) - ai) - aj) | |
192 | + | let al = { | |
193 | + | let T = invoke(aa, "calculateAmountOutForSwapREADONLY", [toInt(ak), X, toInt(aj)], nil) | |
194 | + | if ($isInstanceOf(T, "Int")) | |
195 | + | then T | |
196 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
192 | 197 | } | |
193 | - | $Tuple2(nil, | |
198 | + | $Tuple2(nil, al) | |
194 | 199 | } | |
195 | 200 | ||
196 | 201 | ||
197 | 202 | ||
198 | 203 | @Callable(D) | |
199 | - | func swap ( | |
200 | - | let | |
204 | + | func swap (am,an,ao) = { | |
205 | + | let R = if ((an == "")) | |
201 | 206 | then "WAVES" | |
202 | - | else | |
203 | - | let | |
204 | - | let | |
207 | + | else an | |
208 | + | let ap = value(D.payments[0]) | |
209 | + | let Q = if ((ap.assetId == unit)) | |
205 | 210 | then "WAVES" | |
206 | - | else toBase58String(value(an.assetId)) | |
207 | - | let Z = value(an.amount) | |
208 | - | let ao = N(O, P) | |
209 | - | let Y = ao._1 | |
210 | - | let V = ao._2 | |
211 | - | let ap = I(toString(Y)) | |
212 | - | let ac = ap._1 | |
213 | - | let ad = ap._2 | |
214 | - | let ae = fraction(toBigInt(Z), toBigInt(ad), b) | |
215 | - | let af = fraction(toBigInt(Z), toBigInt(ac), b) | |
216 | - | let ag = if ((toInt(ae) == 0)) | |
211 | + | else toBase58String(value(ap.assetId)) | |
212 | + | let ab = value(ap.amount) | |
213 | + | let aq = P(Q, R) | |
214 | + | let aa = aq._1 | |
215 | + | let X = aq._2 | |
216 | + | let ar = K(toString(aa)) | |
217 | + | let ae = ar._1 | |
218 | + | let af = ar._2 | |
219 | + | let ag = fraction(toBigInt(ab), toBigInt(af), b) | |
220 | + | let ah = fraction(toBigInt(ab), toBigInt(ae), b) | |
221 | + | let as = addressFromStringValue(ao) | |
222 | + | let ai = if ((toInt(ag) == 0)) | |
217 | 223 | then toBigInt(1) | |
218 | - | else | |
219 | - | let | |
224 | + | else ag | |
225 | + | let aj = if ((toInt(ah) == 0)) | |
220 | 226 | then toBigInt(1) | |
221 | - | else af | |
222 | - | let ai = ((toBigInt(Z) - ag) - ah) | |
223 | - | let aq = [if ((size(D.payments) == 1)) | |
227 | + | else ah | |
228 | + | let ak = if ((X == true)) | |
229 | + | then ((toBigInt(ab) - ai) - aj) | |
230 | + | else (toBigInt(ab) - aj) | |
231 | + | let at = [if ((size(D.payments) == 1)) | |
224 | 232 | then true | |
225 | 233 | else throw("exactly 1 payment are expected")] | |
226 | - | if (( | |
234 | + | if ((at == at)) | |
227 | 235 | then { | |
228 | - | let ar = if ((O == "WAVES")) | |
229 | - | then unit | |
230 | - | else fromBase58String(O) | |
231 | - | let as = { | |
232 | - | let R = invoke(Y, "calculateAmountOutForSwapAndSendTokens", [toInt(ai), V, ak, am, toInt(ah)], [AttachedPayment(ar, toInt(ai))]) | |
233 | - | if ($isInstanceOf(R, "Int")) | |
234 | - | then R | |
235 | - | else throw(($getType(R) + " couldn't be cast to Int")) | |
236 | + | let au = I(Q) | |
237 | + | let av = { | |
238 | + | let T = invoke(aa, "calculateAmountOutForSwapAndSendTokens", [toInt(ak), X, am, this, toInt(aj)], [AttachedPayment(au, toInt(ak))]) | |
239 | + | if ($isInstanceOf(T, "Int")) | |
240 | + | then T | |
241 | + | else throw(($getType(T) + " couldn't be cast to Int")) | |
236 | 242 | } | |
237 | - | $Tuple2([ScriptTransfer(q, toInt(ag), ar), ScriptTransfer(Y, toInt(ah), ar)], as) | |
243 | + | let aw = if ((X == true)) | |
244 | + | then $Tuple2([ScriptTransfer(q, toInt(ai), au)], av) | |
245 | + | else { | |
246 | + | let ax = fraction(toBigInt(av), toBigInt(af), b) | |
247 | + | let ay = if ((toInt(ax) == 0)) | |
248 | + | then toInt(toBigInt(1)) | |
249 | + | else toInt(ax) | |
250 | + | $Tuple2([ScriptTransfer(q, ay, I(R))], (av - ay)) | |
251 | + | } | |
252 | + | let az = aw._1 | |
253 | + | let aA = aw._2 | |
254 | + | $Tuple2((az ++ [ScriptTransfer(aa, toInt(aj), au), ScriptTransfer(as, aA, I(R))]), aA) | |
238 | 255 | } | |
239 | 256 | else throw("Strict value is not equal to itself.") | |
240 | 257 | } | |
241 | 258 | ||
242 | 259 | ||
243 | - | @Verifier( | |
244 | - | func | |
245 | - | let | |
260 | + | @Verifier(aB) | |
261 | + | func aC () = { | |
262 | + | let aD = { | |
246 | 263 | let s = A() | |
247 | 264 | if ($isInstanceOf(s, "ByteVector")) | |
248 | 265 | then { | |
249 | 266 | let E = s | |
250 | 267 | E | |
251 | 268 | } | |
252 | 269 | else if ($isInstanceOf(s, "Unit")) | |
253 | - | then | |
270 | + | then aB.senderPublicKey | |
254 | 271 | else throw("Match error") | |
255 | 272 | } | |
256 | - | sigVerify( | |
273 | + | sigVerify(aB.bodyBytes, aB.proofs[0], aD) | |
257 | 274 | } | |
258 | 275 |
github/deemru/w8io/169f3d6 58.01 ms ◑