tx · 3Dgef7g4NncSfqXg9S8xsV4RcmRJt3AFEASUscfcZkAw 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.04200000 Waves 2023.03.22 19:28 [2501455] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "3Dgef7g4NncSfqXg9S8xsV4RcmRJt3AFEASUscfcZkAw", "fee": 4200000, "feeAssetId": null, "timestamp": 1679502518881, "version": 2, "chainId": 84, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "2o1wsbgbGCGJZtoFC1wSPopSo7a1kMsfLTXJC4czn14n8e1MN7ouPaPbc72RdmTj1u17gcFgr6xGW68FeASckHa7" ], "script": "base64:BgLLLAgCEgUKAwEEARIHCgUBBAEIARIDCgEIEgMKAQgSABIECgIBBBIECgIBBBIDCgEBEgASBAoCCAESABIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0l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Jvb2ZzAAAFAmlDLhsg5Q==", "height": 2501455, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Chzxf89UGAEidafXVN4ZUis99gqVf2LZungdKLamZn44 Next: 7Rh7xskj9LrtpPbFHPv9DbW5cizYZmxGEV1P8q8dhHk7 Diff:
Old | New | Differences | |
---|---|---|---|
1754 | 1754 | ||
1755 | 1755 | @Callable(cU) | |
1756 | 1756 | func changeAmp () = { | |
1757 | - | let io = { | |
1758 | - | let gq = "1__2__3" | |
1757 | + | let io = invoke(aV, "getChangeAmpConfigREADONLY", [toString(this)], nil) | |
1758 | + | let ip = { | |
1759 | + | let gq = io | |
1759 | 1760 | if ($isInstanceOf(gq, "String")) | |
1760 | 1761 | then { | |
1761 | - | let cH = gq | |
1762 | - | cH | |
1762 | + | let iq = gq | |
1763 | + | let ir = split(iq, n) | |
1764 | + | $Tuple3(parseIntValue(ir[0]), parseIntValue(ir[1]), parseIntValue(ir[2])) | |
1763 | 1765 | } | |
1764 | 1766 | else throw("invalid entry type") | |
1765 | 1767 | } | |
1766 | - | if ((io == io)) | |
1768 | + | let is = ip._1 | |
1769 | + | let it = ip._2 | |
1770 | + | let iu = ip._3 | |
1771 | + | let iv = parseIntValue(getStringValue(al())) | |
1772 | + | let iw = (iv + it) | |
1773 | + | let ix = if ((0 > it)) | |
1774 | + | then if ((iu > iw)) | |
1775 | + | then iu | |
1776 | + | else iw | |
1777 | + | else if ((iw > iu)) | |
1778 | + | then iu | |
1779 | + | else iw | |
1780 | + | if ((ix == ix)) | |
1767 | 1781 | then { | |
1768 | - | let ip = split(io, n) | |
1769 | - | if ((ip == ip)) | |
1770 | - | then { | |
1771 | - | let iq = parseIntValue(ip[0]) | |
1772 | - | if ((iq == iq)) | |
1773 | - | then { | |
1774 | - | let ir = parseIntValue(ip[1]) | |
1775 | - | if ((ir == ir)) | |
1776 | - | then { | |
1777 | - | let is = parseIntValue(ip[2]) | |
1778 | - | if ((is == is)) | |
1779 | - | then { | |
1780 | - | let it = parseIntValue(getStringValue(al())) | |
1781 | - | if ((it == it)) | |
1782 | - | then { | |
1783 | - | let iu = valueOrElse(getInteger(ap()), 0) | |
1784 | - | if ((iu == iu)) | |
1785 | - | then { | |
1786 | - | let iv = (it + ir) | |
1787 | - | if ((iv == iv)) | |
1788 | - | then { | |
1789 | - | let iw = if ((0 > ir)) | |
1790 | - | then if ((is > iv)) | |
1791 | - | then is | |
1792 | - | else iv | |
1793 | - | else if ((iv > is)) | |
1794 | - | then is | |
1795 | - | else iv | |
1796 | - | if ((iw == iw)) | |
1797 | - | then { | |
1798 | - | let ix = (iu + iq) | |
1799 | - | if ((ix == ix)) | |
1800 | - | then { | |
1801 | - | let gN = [if ((it != iw)) | |
1802 | - | then true | |
1803 | - | else aS("already reached target")] | |
1804 | - | if ((gN == gN)) | |
1805 | - | then { | |
1806 | - | let iy = if ((1000000000 > ix)) | |
1807 | - | then unit | |
1808 | - | else throw("err") | |
1809 | - | if ((iy == iy)) | |
1810 | - | then { | |
1811 | - | let iz = throw("6") | |
1812 | - | if ((iz == iz)) | |
1813 | - | then [IntegerEntry(ap(), an), StringEntry(al(), toString(iw)), StringEntry(am(an), toString(iw))] | |
1814 | - | else throw("Strict value is not equal to itself.") | |
1815 | - | } | |
1816 | - | else throw("Strict value is not equal to itself.") | |
1817 | - | } | |
1818 | - | else throw("Strict value is not equal to itself.") | |
1819 | - | } | |
1820 | - | else throw("Strict value is not equal to itself.") | |
1821 | - | } | |
1822 | - | else throw("Strict value is not equal to itself.") | |
1823 | - | } | |
1824 | - | else throw("Strict value is not equal to itself.") | |
1825 | - | } | |
1826 | - | else throw("Strict value is not equal to itself.") | |
1827 | - | } | |
1828 | - | else throw("Strict value is not equal to itself.") | |
1829 | - | } | |
1830 | - | else throw("Strict value is not equal to itself.") | |
1831 | - | } | |
1832 | - | else throw("Strict value is not equal to itself.") | |
1833 | - | } | |
1834 | - | else throw("Strict value is not equal to itself.") | |
1835 | - | } | |
1782 | + | let iy = valueOrElse(getInteger(ap()), 0) | |
1783 | + | let iz = (iy + is) | |
1784 | + | let gN = [if ((1000000000 > iz)) | |
1785 | + | then true | |
1786 | + | else aS("try again in few blocks"), if ((iv != ix)) | |
1787 | + | then true | |
1788 | + | else aS("already reached target")] | |
1789 | + | if ((gN == gN)) | |
1790 | + | then [IntegerEntry(ap(), an), StringEntry(al(), toString(ix)), StringEntry(am(an), toString(ix))] | |
1836 | 1791 | else throw("Strict value is not equal to itself.") | |
1837 | 1792 | } | |
1838 | 1793 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = toBigInt((a - ((a * 1) / a))) | |
23 | 23 | ||
24 | 24 | let k = "WAVES" | |
25 | 25 | ||
26 | 26 | let l = "100" | |
27 | 27 | ||
28 | 28 | let m = "1" | |
29 | 29 | ||
30 | 30 | let n = "__" | |
31 | 31 | ||
32 | 32 | let o = "" | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 3 | |
47 | 47 | ||
48 | 48 | let w = 4 | |
49 | 49 | ||
50 | 50 | let x = 5 | |
51 | 51 | ||
52 | 52 | let y = 6 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | let A = 8 | |
57 | 57 | ||
58 | 58 | let B = 9 | |
59 | 59 | ||
60 | 60 | let C = 1 | |
61 | 61 | ||
62 | 62 | let D = 6 | |
63 | 63 | ||
64 | 64 | let E = 7 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = fraction(10, a, 10000) | |
69 | 69 | ||
70 | 70 | func H (I,J) = fraction(toBigInt(I), c, toBigInt(J)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func K (I,J) = fraction(I, c, J) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func L (M,N) = toInt(fraction(M, toBigInt(N), c)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func O (M,N,P) = toInt(fraction(M, toBigInt(N), c, P)) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func Q (I,J) = fraction(I, c, toBigInt(J)) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func R (M,N) = fraction(M, toBigInt(N), c) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func S (T,U,V) = fraction(T, U, V) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func W (M) = if ((d > M)) | |
92 | 92 | then -(M) | |
93 | 93 | else M | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func X (M) = if ((d > M)) | |
97 | 97 | then -(M) | |
98 | 98 | else M | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Y () = "%s__factoryContract" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func Z () = "%s__managerPublicKey" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func aa () = "%s__pendingManagerPublicKey" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func ab () = "%s%s__price__last" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func ac (ad,ae) = makeString(["%s%s%d%d__price__history", toString(ad), toString(ae)], n) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func af (ag,ah) = ((("%s%s%s__P__" + ag) + "__") + ah) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ai (ag,ah) = ((("%s%s%s__G__" + ag) + "__") + ah) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func aj () = "%s__amountAsset" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ak () = "%s__priceAsset" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func al () = "%s__amp" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func am (an) = ("%s%d__amp__" + toString(an)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ao () = "%s__addonAddr" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ap () = "%s__changeAmpLastCall" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | let aq = "%s__fee" | |
141 | 141 | ||
142 | 142 | let ar = valueOrElse(getInteger(this, aq), G) | |
143 | 143 | ||
144 | 144 | let as = makeString(["%s", "dLp"], n) | |
145 | 145 | ||
146 | 146 | let at = makeString(["%s", "dLpRefreshedHeight"], n) | |
147 | 147 | ||
148 | 148 | let au = makeString(["%s", "refreshDLpDelay"], n) | |
149 | 149 | ||
150 | 150 | let av = 30 | |
151 | 151 | ||
152 | 152 | let aw = valueOrElse(getInteger(this, au), av) | |
153 | 153 | ||
154 | 154 | func ax () = "%s__factoryConfig" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ay () = "%s%s__matcher__publicKey" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func az (aA,aB) = (((("%d%d%s__" + aA) + "__") + aB) + "__config") | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aC (aD) = ("%s%s%s__mappings__baseAsset2internalId__" + aD) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aE () = "%s__shutdown" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func aF () = "%s__allowedLpStableScriptHash" | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aG () = "%s__feeCollectorAddress" | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aH (aI) = ("%s%s__skipOrderValidation__" + aI) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aJ (aK,aL,aM,aN) = throw((((((((("order validation failed: orderValid=" + toString(aK)) + " (") + aL) + ")") + " senderValid=") + toString(aM)) + " matcherValid=") + toString(aN))) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aO (aP,aQ) = valueOrErrorMessage(getString(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], "")) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aR (aP,aQ) = valueOrErrorMessage(getInteger(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], "")) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aS (aT) = throw(makeString(["lp_stable.ride:", aT], " ")) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aU (aT) = makeString(["lp_stable.ride:", aT], " ") | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | let aV = addressFromStringValue(aO(this, Y())) | |
194 | 194 | ||
195 | 195 | let aW = { | |
196 | 196 | let aX = invoke(aV, "getInFeeREADONLY", [toString(this)], nil) | |
197 | 197 | if ($isInstanceOf(aX, "Int")) | |
198 | 198 | then aX | |
199 | 199 | else throw(($getType(aX) + " couldn't be cast to Int")) | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | let aY = { | |
203 | 203 | let aX = invoke(aV, "getOutFeeREADONLY", [toString(this)], nil) | |
204 | 204 | if ($isInstanceOf(aX, "Int")) | |
205 | 205 | then aX | |
206 | 206 | else throw(($getType(aX) + " couldn't be cast to Int")) | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | let aZ = aO(this, al()) | |
210 | 210 | ||
211 | 211 | func ba () = valueOrElse(getBoolean(aV, aE()), false) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func bb () = fromBase58String(aO(aV, ay())) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | let bc = addressFromStringValue(aO(aV, aG())) | |
218 | 218 | ||
219 | 219 | func bd () = { | |
220 | 220 | let be = aO(this, aj()) | |
221 | 221 | let bf = aO(this, ak()) | |
222 | 222 | let bg = aR(aV, aC(bf)) | |
223 | 223 | let aA = aR(aV, aC(be)) | |
224 | 224 | split(aO(aV, az(toString(aA), toString(bg))), n) | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bh (bi) = if ((bi == k)) | |
229 | 229 | then unit | |
230 | 230 | else fromBase58String(bi) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func bj (bi) = if ((bi == unit)) | |
234 | 234 | then k | |
235 | 235 | else toBase58String(value(bi)) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func bk (bl) = $Tuple9(addressFromStringValue(bl[t]), parseIntValue(bl[u]), fromBase58String(bl[v]), bh(bl[w]), bh(bl[x]), parseIntValue(bl[y]), parseIntValue(bl[z]), fromBase58String(bl[A]), fromBase58String(bl[B])) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | let bm = bk(bd()) | |
242 | 242 | ||
243 | 243 | let bn = bm | |
244 | 244 | ||
245 | 245 | let bo = bn._1 | |
246 | 246 | ||
247 | 247 | let bp = bn._2 | |
248 | 248 | ||
249 | 249 | let bq = bn._3 | |
250 | 250 | ||
251 | 251 | let br = bn._4 | |
252 | 252 | ||
253 | 253 | let bs = bn._5 | |
254 | 254 | ||
255 | 255 | let bt = bn._6 | |
256 | 256 | ||
257 | 257 | let bu = bn._7 | |
258 | 258 | ||
259 | 259 | let bv = bn._8 | |
260 | 260 | ||
261 | 261 | let bw = bn._9 | |
262 | 262 | ||
263 | 263 | func bx () = split(aO(aV, ax()), n) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | let by = bx() | |
267 | 267 | ||
268 | 268 | let bz = valueOrErrorMessage(addressFromString(by[C]), "Invalid staking contract address") | |
269 | 269 | ||
270 | 270 | let bA = valueOrErrorMessage(addressFromString(by[E]), "Invalid slipage contract address") | |
271 | 271 | ||
272 | 272 | let bB = valueOrErrorMessage(addressFromString(by[F]), "Invalid gwx contract address") | |
273 | 273 | ||
274 | 274 | let bC = valueOrErrorMessage(addressFromString(by[D]), "Invalid gwx contract address") | |
275 | 275 | ||
276 | 276 | func bD (bE,bF,bG,bH,bI,bJ,bK,bL,bM,bN) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bG), toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN)], n) | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func bO (bP,bQ,bR,bH,bK,bL) = makeString(["%d%d%d%d%d%d", toString(bP), toString(bQ), toString(bR), toString(bH), toString(bK), toString(bL)], n) | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func bS (bT) = if ((bT == "WAVES")) | |
283 | 283 | then wavesBalance(this).available | |
284 | 284 | else assetBalance(this, fromBase58String(bT)) | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bU (bV,bW) = fraction(bV, c, bW) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bX (bV,bW,P) = fraction(bV, c, bW, P) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func bY (bZ,ca,cb) = { | |
294 | 294 | let cc = fraction((bZ - ca), b, ca) | |
295 | 295 | let cd = ((cb - W(cc)) > d) | |
296 | 296 | if (!(cd)) | |
297 | 297 | then throw(("Big slpg: " + toString(cc))) | |
298 | 298 | else $Tuple2(cd, min([bZ, ca])) | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func ce (cf,cg,ch) = { | |
303 | 303 | let cc = fraction(cg, b, cf) | |
304 | 304 | let ci = (ch > cc) | |
305 | 305 | if (if (ci) | |
306 | 306 | then true | |
307 | 307 | else (cg > cf)) | |
308 | 308 | then throw(((((((toString(cg) + " ") + toString(cf)) + " ") + toString(cc)) + " ") + toString(ch))) | |
309 | 309 | else ci | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func cj (ck,cl,cm,cn) = { | |
314 | 314 | let co = H(cm, ck) | |
315 | 315 | let cp = H(cn, cl) | |
316 | 316 | bU(cp, co) | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func cq (cm,cn,cr) = { | |
321 | 321 | let cs = bt | |
322 | 322 | let ct = bu | |
323 | 323 | let cu = cj(cs, ct, cm, cn) | |
324 | 324 | let bW = H(cm, cs) | |
325 | 325 | let bV = H(cn, ct) | |
326 | 326 | let cv = H(cr, a) | |
327 | 327 | let cw = bU(bW, cv) | |
328 | 328 | let cx = bU(bV, cv) | |
329 | 329 | [cu, cw, cx] | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | func cy (cm,cn,cr) = { | |
334 | 334 | let cz = cq(cm, cn, cr) | |
335 | 335 | [L(cz[0], a), L(cz[1], a), L(cz[2], a)] | |
336 | 336 | } | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | func cA (cB,ar) = { | |
340 | 340 | let cC = if ((ar == 0)) | |
341 | 341 | then 0 | |
342 | 342 | else fraction(cB, ar, a) | |
343 | 343 | $Tuple2((cB - cC), cC) | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func cD (cE) = { | |
348 | 348 | let cF = cE[0] | |
349 | 349 | let cG = cE[1] | |
350 | 350 | let cH = (cF + cG) | |
351 | 351 | if ((cH == e)) | |
352 | 352 | then e | |
353 | 353 | else { | |
354 | 354 | let cI = parseIntValue(aZ) | |
355 | 355 | let cJ = (cI * 2) | |
356 | 356 | let cz = fraction(cF, cG, f) | |
357 | 357 | let cK = fraction(cz, i, f) | |
358 | 358 | let cL = fraction(toBigInt(cJ), cH, f) | |
359 | 359 | let cM = toBigInt((cJ - 1)) | |
360 | 360 | func cN (cO) = { | |
361 | 361 | let cP = fraction(cO, cO, f) | |
362 | 362 | let cQ = fraction(cP, cO, f) | |
363 | 363 | let cR = fraction(cQ, f, cK) | |
364 | 364 | fraction((cL + fraction(cR, g, f)), cO, (fraction(cM, cO, f) + fraction(h, cR, f))) | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | func cS (cT,cU) = if (cT._2) | |
368 | 368 | then cT | |
369 | 369 | else { | |
370 | 370 | let cO = cT._1 | |
371 | 371 | let cV = cN(cO) | |
372 | 372 | let cW = (cV - value(cO)) | |
373 | 373 | let cX = if ((e > cW)) | |
374 | 374 | then -(cW) | |
375 | 375 | else cW | |
376 | 376 | if ((f >= cX)) | |
377 | 377 | then $Tuple2(cV, true) | |
378 | 378 | else $Tuple2(cV, false) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] | |
382 | 382 | let cZ = { | |
383 | 383 | let da = cY | |
384 | 384 | let db = size(da) | |
385 | 385 | let dc = $Tuple2(cH, false) | |
386 | 386 | func dd (de,df) = if ((df >= db)) | |
387 | 387 | then de | |
388 | 388 | else cS(de, da[df]) | |
389 | 389 | ||
390 | 390 | func dg (de,df) = if ((df >= db)) | |
391 | 391 | then de | |
392 | 392 | else throw("List size exceeds 17") | |
393 | 393 | ||
394 | 394 | dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17) | |
395 | 395 | } | |
396 | 396 | let cO = cZ._1 | |
397 | 397 | let dh = cZ._2 | |
398 | 398 | if (dh) | |
399 | 399 | then cO | |
400 | 400 | else throw(("D calculation error, D = " + toString(cO))) | |
401 | 401 | } | |
402 | 402 | } | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | func di (dj,dk,dl,dm) = { | |
406 | 406 | let dn = bq | |
407 | 407 | let do = toBase58String(value(br)) | |
408 | 408 | let dp = toBase58String(value(bs)) | |
409 | 409 | let dq = bt | |
410 | 410 | let dr = bu | |
411 | 411 | let ds = toString(bp) | |
412 | 412 | let dt = valueOrErrorMessage(assetInfo(dn), "Wrong LP id").quantity | |
413 | 413 | if ((toBase58String(dn) != dk)) | |
414 | 414 | then throw("Wrong pmt asset") | |
415 | 415 | else { | |
416 | 416 | let du = bS(do) | |
417 | 417 | let dv = H(du, dq) | |
418 | 418 | let dw = bS(dp) | |
419 | 419 | let dx = H(dw, dr) | |
420 | 420 | let dy = bU(dx, dv) | |
421 | 421 | let dz = L(dy, a) | |
422 | 422 | let dA = H(dl, a) | |
423 | 423 | let dB = H(dt, a) | |
424 | 424 | let dC = fraction(dv, dA, dB) | |
425 | 425 | let dD = fraction(dx, dA, dB) | |
426 | 426 | let dE = O(dC, dq, FLOOR) | |
427 | 427 | let dF = O(dD, dr, FLOOR) | |
428 | 428 | let dG = if ((dj == "")) | |
429 | 429 | then nil | |
430 | 430 | else [ScriptTransfer(dm, dE, if ((do == "WAVES")) | |
431 | 431 | then unit | |
432 | 432 | else fromBase58String(do)), ScriptTransfer(dm, dF, if ((dp == "WAVES")) | |
433 | 433 | then unit | |
434 | 434 | else fromBase58String(dp)), StringEntry(ai(toString(dm), dj), bO(dE, dF, dl, dz, an, lastBlock.timestamp)), IntegerEntry(ab(), dz), IntegerEntry(ac(an, lastBlock.timestamp), dz)] | |
435 | 435 | $Tuple10(dE, dF, do, dp, du, dw, dt, dy, ds, dG) | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func dH (dj,cb,dI,dJ,dK,dL,dm,dM,dN,dO,dP,dQ,dR) = { | |
441 | 441 | let dn = bq | |
442 | 442 | let dS = toBase58String(value(br)) | |
443 | 443 | let dT = toBase58String(value(bs)) | |
444 | 444 | let dU = bv | |
445 | 445 | let dV = bw | |
446 | 446 | let dW = bt | |
447 | 447 | let dX = bu | |
448 | 448 | let ds = toString(bp) | |
449 | 449 | let dY = valueOrErrorMessage(assetInfo(dn), "Wr lp as").quantity | |
450 | 450 | let du = if (dM) | |
451 | 451 | then bS(dS) | |
452 | 452 | else if (if (dO) | |
453 | 453 | then (dR == dS) | |
454 | 454 | else false) | |
455 | 455 | then (bS(dS) - dQ) | |
456 | 456 | else if (dO) | |
457 | 457 | then bS(dS) | |
458 | 458 | else (bS(dS) - dI) | |
459 | 459 | let dw = if (dM) | |
460 | 460 | then bS(dT) | |
461 | 461 | else if (if (dO) | |
462 | 462 | then (dR == dT) | |
463 | 463 | else false) | |
464 | 464 | then (bS(dT) - dQ) | |
465 | 465 | else if (dO) | |
466 | 466 | then bS(dT) | |
467 | 467 | else (bS(dT) - dK) | |
468 | 468 | let dZ = H(dI, dW) | |
469 | 469 | let ea = H(dK, dX) | |
470 | 470 | let eb = bU(ea, dZ) | |
471 | 471 | let dv = H(du, dW) | |
472 | 472 | let dx = H(dw, dX) | |
473 | 473 | let cg = cD([dv, dx]) | |
474 | 474 | let ec = if ((dY == 0)) | |
475 | 475 | then { | |
476 | 476 | let cf = cD([(dv + dZ), (dx + ea)]) | |
477 | 477 | let ed = if ((cf > cg)) | |
478 | 478 | then true | |
479 | 479 | else throw("D1 should be greater than D0") | |
480 | 480 | if ((ed == ed)) | |
481 | 481 | then { | |
482 | 482 | let dy = d | |
483 | 483 | let ee = d | |
484 | 484 | let cv = cf | |
485 | 485 | $Tuple5(L(cv, a), L(dZ, dW), L(ea, dX), bU((dx + ea), (dv + dZ)), ee) | |
486 | 486 | } | |
487 | 487 | else throw("Strict value is not equal to itself.") | |
488 | 488 | } | |
489 | 489 | else { | |
490 | 490 | let dy = bU(dx, dv) | |
491 | 491 | let ef = fraction(W((dy - eb)), c, dy) | |
492 | 492 | let ee = H(cb, a) | |
493 | 493 | if (if (if (dP) | |
494 | 494 | then (dy != d) | |
495 | 495 | else false) | |
496 | 496 | then (ef > ee) | |
497 | 497 | else false) | |
498 | 498 | then throw(((("Price slippage " + toString(ef)) + " > ") + toString(ee))) | |
499 | 499 | else { | |
500 | 500 | let eg = H(dY, a) | |
501 | 501 | let eh = fraction(dZ, bX(dx, dv, CEILING), c, CEILING) | |
502 | 502 | let ei = fraction(ea, c, bX(dx, dv, FLOOR), CEILING) | |
503 | 503 | let ej = if ((eh > ea)) | |
504 | 504 | then $Tuple2(ei, ea) | |
505 | 505 | else $Tuple2(dZ, eh) | |
506 | 506 | let ek = ej._1 | |
507 | 507 | let el = ej._2 | |
508 | 508 | let cf = cD([(dv + ek), (dx + el)]) | |
509 | 509 | let ed = if ((cf > cg)) | |
510 | 510 | then true | |
511 | 511 | else throw("D1 should be greater than D0") | |
512 | 512 | if ((ed == ed)) | |
513 | 513 | then { | |
514 | 514 | let cv = fraction(eg, (cf - cg), cg) | |
515 | 515 | $Tuple5(O(cv, a, FLOOR), O(ek, dW, CEILING), O(el, dX, CEILING), dy, ee) | |
516 | 516 | } | |
517 | 517 | else throw("Strict value is not equal to itself.") | |
518 | 518 | } | |
519 | 519 | } | |
520 | 520 | let em = ec._1 | |
521 | 521 | let en = ec._2 | |
522 | 522 | let eo = ec._3 | |
523 | 523 | let dz = L(ec._4, a) | |
524 | 524 | let ep = L(ec._5, a) | |
525 | 525 | if ((0 >= em)) | |
526 | 526 | then throw("LP <= 0") | |
527 | 527 | else { | |
528 | 528 | let eq = if (!(dN)) | |
529 | 529 | then 0 | |
530 | 530 | else em | |
531 | 531 | let er = (dI - en) | |
532 | 532 | let es = (dK - eo) | |
533 | 533 | let et = if (if (dO) | |
534 | 534 | then (dR == dS) | |
535 | 535 | else false) | |
536 | 536 | then $Tuple2(dQ, 0) | |
537 | 537 | else if (if (dO) | |
538 | 538 | then (dR == dT) | |
539 | 539 | else false) | |
540 | 540 | then $Tuple2(0, dQ) | |
541 | 541 | else $Tuple2(en, eo) | |
542 | 542 | let eu = et._1 | |
543 | 543 | let ev = et._2 | |
544 | 544 | let ew = [IntegerEntry(ab(), dz), IntegerEntry(ac(an, lastBlock.timestamp), dz), StringEntry(af(dm, dj), bD(eu, ev, eq, dz, cb, ep, an, lastBlock.timestamp, er, es))] | |
545 | 545 | $Tuple13(em, eq, dz, du, dw, dY, dn, ds, ew, er, es, dJ, dL) | |
546 | 546 | } | |
547 | 547 | } | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | func ex (cE,cU,ey) = { | |
551 | 551 | let ez = g | |
552 | 552 | let eA = cE[if ((cU == 0)) | |
553 | 553 | then 1 | |
554 | 554 | else 0] | |
555 | 555 | let eB = parseBigIntValue(l) | |
556 | 556 | let cI = (parseBigIntValue(aZ) * eB) | |
557 | 557 | let cH = eA | |
558 | 558 | let cJ = (cI * ez) | |
559 | 559 | let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez)) | |
560 | 560 | let eD = ((cH + ((ey * eB) / cJ)) - ey) | |
561 | 561 | func cS (cT,eE) = { | |
562 | 562 | let eF = cT | |
563 | 563 | let eG = eF._1 | |
564 | 564 | let dh = eF._2 | |
565 | 565 | if ((dh != unit)) | |
566 | 566 | then cT | |
567 | 567 | else { | |
568 | 568 | let eH = (((eG * eG) + eC) / ((g * eG) + eD)) | |
569 | 569 | let eI = X((eH - value(eG))) | |
570 | 570 | if ((f >= eI)) | |
571 | 571 | then $Tuple2(eH, eE) | |
572 | 572 | else $Tuple2(eH, unit) | |
573 | 573 | } | |
574 | 574 | } | |
575 | 575 | ||
576 | 576 | let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
577 | 577 | let eJ = { | |
578 | 578 | let da = cY | |
579 | 579 | let db = size(da) | |
580 | 580 | let dc = $Tuple2(ey, unit) | |
581 | 581 | func dd (de,df) = if ((df >= db)) | |
582 | 582 | then de | |
583 | 583 | else cS(de, da[df]) | |
584 | 584 | ||
585 | 585 | func dg (de,df) = if ((df >= db)) | |
586 | 586 | then de | |
587 | 587 | else throw("List size exceeds 15") | |
588 | 588 | ||
589 | 589 | dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
590 | 590 | } | |
591 | 591 | let eG = eJ._1 | |
592 | 592 | let dh = eJ._2 | |
593 | 593 | if ((dh != unit)) | |
594 | 594 | then eG | |
595 | 595 | else throw(("Y calculation error, Y = " + toString(eG))) | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | func eK (eL,eM,eN) = { | |
600 | 600 | let eO = fraction(cD([K(eL, toBigInt(bt)), K(eM, toBigInt(bu))]), c, eN) | |
601 | 601 | if ((eN == e)) | |
602 | 602 | then e | |
603 | 603 | else eO | |
604 | 604 | } | |
605 | 605 | ||
606 | 606 | ||
607 | 607 | func eP (eQ,eR,eS) = { | |
608 | 608 | let eT = (toBigInt(bS(bj(br))) - eQ) | |
609 | 609 | let eU = (toBigInt(bS(bj(bs))) - eR) | |
610 | 610 | let eV = (toBigInt(value(assetInfo(bq)).quantity) - eS) | |
611 | 611 | let eW = eK(eT, eU, eV) | |
612 | 612 | eW | |
613 | 613 | } | |
614 | 614 | ||
615 | 615 | ||
616 | 616 | func eX (eY,eZ,eS) = { | |
617 | 617 | let eT = (bS(bj(br)) + eY) | |
618 | 618 | let eU = (bS(bj(bs)) + eZ) | |
619 | 619 | let eV = (value(assetInfo(bq)).quantity + eS) | |
620 | 620 | let eO = eK(toBigInt(eT), toBigInt(eU), toBigInt(eV)) | |
621 | 621 | let fa = [IntegerEntry(at, an), StringEntry(as, toString(eO))] | |
622 | 622 | $Tuple2(fa, eO) | |
623 | 623 | } | |
624 | 624 | ||
625 | 625 | ||
626 | 626 | func fb (fc,eO) = if ((eO >= fc)) | |
627 | 627 | then true | |
628 | 628 | else aS("updated DLp lower than current DLp") | |
629 | 629 | ||
630 | 630 | ||
631 | 631 | func fd (fe) = { | |
632 | 632 | let eT = bS(bj(br)) | |
633 | 633 | let eU = bS(bj(bs)) | |
634 | 634 | let ff = fe.amount | |
635 | 635 | let fg = fraction(fe.amount, fe.price, a, FLOOR) | |
636 | 636 | let fh = if ((fe.orderType == Buy)) | |
637 | 637 | then $Tuple2(ff, -(fg)) | |
638 | 638 | else $Tuple2(-(ff), fg) | |
639 | 639 | let eY = fh._1 | |
640 | 640 | let eZ = fh._2 | |
641 | 641 | if (if (if (ba()) | |
642 | 642 | then true | |
643 | 643 | else (bp == r)) | |
644 | 644 | then true | |
645 | 645 | else (bp == s)) | |
646 | 646 | then throw("Admin blocked") | |
647 | 647 | else if (if ((fe.assetPair.amountAsset != br)) | |
648 | 648 | then true | |
649 | 649 | else (fe.assetPair.priceAsset != bs)) | |
650 | 650 | then throw("Wr assets") | |
651 | 651 | else { | |
652 | 652 | let fi = parseBigIntValue(valueOrElse(getString(this, as), "0")) | |
653 | 653 | let fj = eX(eY, eZ, 0) | |
654 | 654 | let fk = fj._1 | |
655 | 655 | let fl = fj._2 | |
656 | 656 | let fm = (fl >= fi) | |
657 | 657 | let fn = makeString(["dLp=", toString(fi), " dLpNew=", toString(fl), " amountAssetBalance=", toString(eT), " priceAssetBalance=", toString(eU), " amountAssetBalanceDelta=", toString(eY), " priceAssetBalanceDelta=", toString(eZ), " height=", toString(an)], "") | |
658 | 658 | $Tuple2(fm, fn) | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | ||
662 | 662 | ||
663 | 663 | func fo (cU) = if ((size(cU.payments) != 1)) | |
664 | 664 | then throw("1 pmnt exp") | |
665 | 665 | else { | |
666 | 666 | let fp = value(cU.payments[0]) | |
667 | 667 | let dk = value(fp.assetId) | |
668 | 668 | let dQ = fp.amount | |
669 | 669 | let ec = di(toBase58String(cU.transactionId), toBase58String(dk), dQ, cU.caller) | |
670 | 670 | let dE = ec._1 | |
671 | 671 | let dF = ec._2 | |
672 | 672 | let ds = parseIntValue(ec._9) | |
673 | 673 | let dG = ec._10 | |
674 | 674 | if (if (ba()) | |
675 | 675 | then true | |
676 | 676 | else (ds == s)) | |
677 | 677 | then throw(("Admin blocked: " + toString(ds))) | |
678 | 678 | else $Tuple5(dE, dF, dQ, dk, dG) | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | func fq (fr,ah,fs,ft,cb,dN,dO,dP,dQ,dR) = { | |
683 | 683 | let ec = dH(ah, cb, value(fs).amount, value(fs).assetId, value(ft).amount, value(ft).assetId, fr, (ah == ""), dN, dO, dP, dQ, dR) | |
684 | 684 | let ds = parseIntValue(ec._8) | |
685 | 685 | if (if (if (ba()) | |
686 | 686 | then true | |
687 | 687 | else (ds == q)) | |
688 | 688 | then true | |
689 | 689 | else (ds == s)) | |
690 | 690 | then throw(("Blocked:" + toString(ds))) | |
691 | 691 | else ec | |
692 | 692 | } | |
693 | 693 | ||
694 | 694 | ||
695 | 695 | func fu (fv,dk,dm,ah,fw) = { | |
696 | 696 | let do = toBase58String(value(br)) | |
697 | 697 | let dp = toBase58String(value(bs)) | |
698 | 698 | let dn = bq | |
699 | 699 | let dW = bt | |
700 | 700 | let dX = bu | |
701 | 701 | let eV = toBigInt(valueOrErrorMessage(assetInfo(dn), "invalid lp asset").quantity) | |
702 | 702 | let fx = if ((eV > e)) | |
703 | 703 | then true | |
704 | 704 | else throw("initial deposit requires all coins") | |
705 | 705 | if ((fx == fx)) | |
706 | 706 | then { | |
707 | 707 | let du = bS(do) | |
708 | 708 | let dw = bS(dp) | |
709 | 709 | let fy = if ((ah == "")) | |
710 | 710 | then $Tuple2(du, dw) | |
711 | 711 | else if ((dk == do)) | |
712 | 712 | then if ((fv > du)) | |
713 | 713 | then throw("invalid payment amount") | |
714 | 714 | else $Tuple2((du - fv), dw) | |
715 | 715 | else if ((dk == dp)) | |
716 | 716 | then if ((fv > dw)) | |
717 | 717 | then throw("invalid payment amount") | |
718 | 718 | else $Tuple2(du, (dw - fv)) | |
719 | 719 | else throw("wrong pmtAssetId") | |
720 | 720 | let fz = fy._1 | |
721 | 721 | let fA = fy._2 | |
722 | 722 | let fB = if ((dk == do)) | |
723 | 723 | then $Tuple2(fv, 0) | |
724 | 724 | else if ((dk == dp)) | |
725 | 725 | then $Tuple2(0, fv) | |
726 | 726 | else throw("invalid payment") | |
727 | 727 | let fC = fB._1 | |
728 | 728 | let fD = fB._2 | |
729 | 729 | let fE = if (fw) | |
730 | 730 | then $Tuple3(cA(fC, aW)._1, cA(fD, aW)._1, cA(fv, aW)._2) | |
731 | 731 | else $Tuple3(fC, fD, 0) | |
732 | 732 | let fF = fE._1 | |
733 | 733 | let fG = fE._2 | |
734 | 734 | let cC = fE._3 | |
735 | 735 | let fH = (fz + fF) | |
736 | 736 | let fI = (fA + fG) | |
737 | 737 | let cg = cD([H(fz, bt), H(fA, bu)]) | |
738 | 738 | let cf = cD([H(fH, bt), H(fI, bu)]) | |
739 | 739 | let ed = if ((cf > cg)) | |
740 | 740 | then true | |
741 | 741 | else throw() | |
742 | 742 | if ((ed == ed)) | |
743 | 743 | then { | |
744 | 744 | let fJ = fraction(eV, (cf - cg), cg, FLOOR) | |
745 | 745 | let dz = L(bU(H(fI, dX), H(fH, dW)), a) | |
746 | 746 | let ew = [IntegerEntry(ab(), dz), IntegerEntry(ac(an, lastBlock.timestamp), dz), StringEntry(af(dm, ah), bD(fC, fD, toInt(fJ), dz, 0, 0, an, lastBlock.timestamp, 0, 0))] | |
747 | 747 | let fK = fraction(fA, a, fz) | |
748 | 748 | let fL = fraction(fv, a, (fK + a)) | |
749 | 749 | let fM = (fv - fL) | |
750 | 750 | let fN = fraction(eV, toBigInt(fM), toBigInt(fA)) | |
751 | 751 | let fO = toInt(fraction((fJ - fN), b, fN)) | |
752 | 752 | $Tuple4(toInt(fJ), ew, cC, fO) | |
753 | 753 | } | |
754 | 754 | else throw("Strict value is not equal to itself.") | |
755 | 755 | } | |
756 | 756 | else throw("Strict value is not equal to itself.") | |
757 | 757 | } | |
758 | 758 | ||
759 | 759 | ||
760 | 760 | func fP (fQ,fR,fS,fr,fT,fU) = { | |
761 | 761 | let dn = toBase58String(value(bq)) | |
762 | 762 | let do = toBase58String(value(br)) | |
763 | 763 | let dp = toBase58String(value(bs)) | |
764 | 764 | let fV = bt | |
765 | 765 | let fW = bu | |
766 | 766 | let fX = bp | |
767 | 767 | let dm = if ((fr == bC)) | |
768 | 768 | then fT | |
769 | 769 | else fr | |
770 | 770 | let fp = value(fS[0]) | |
771 | 771 | let dk = value(fp.assetId) | |
772 | 772 | let dQ = fp.amount | |
773 | 773 | let eW = eP(e, e, e) | |
774 | 774 | if ((eW == eW)) | |
775 | 775 | then { | |
776 | 776 | let dj = toBase58String(fU) | |
777 | 777 | if ((dn != toBase58String(dk))) | |
778 | 778 | then throw("Wrong LP") | |
779 | 779 | else { | |
780 | 780 | let du = bS(do) | |
781 | 781 | let dw = bS(dp) | |
782 | 782 | let fY = { | |
783 | 783 | let aX = invoke(this, "getOneTknV2READONLY", [fQ, dQ], nil) | |
784 | 784 | if ($isInstanceOf(aX, "(Int, Int)")) | |
785 | 785 | then aX | |
786 | 786 | else throw(($getType(aX) + " couldn't be cast to (Int, Int)")) | |
787 | 787 | } | |
788 | 788 | if ((fY == fY)) | |
789 | 789 | then { | |
790 | 790 | let cC = fY._2 | |
791 | 791 | let fZ = fY._1 | |
792 | 792 | let ga = if (if ((fR > 0)) | |
793 | 793 | then (fR > fZ) | |
794 | 794 | else false) | |
795 | 795 | then aS(makeString(["amount to receive is less than ", toString(fR)], "")) | |
796 | 796 | else fZ | |
797 | 797 | let gb = if ((fQ == do)) | |
798 | 798 | then $Tuple4(ga, 0, ((du - ga) - cC), dw) | |
799 | 799 | else if ((fQ == dp)) | |
800 | 800 | then $Tuple4(0, ga, du, ((dw - ga) - cC)) | |
801 | 801 | else throw("invalid out asset id") | |
802 | 802 | let gc = gb._1 | |
803 | 803 | let gd = gb._2 | |
804 | 804 | let fH = gb._3 | |
805 | 805 | let fI = gb._4 | |
806 | 806 | let ge = bU(H(fI, fW), H(fH, fV)) | |
807 | 807 | let gf = L(ge, a) | |
808 | 808 | let gg = if ((fQ == "WAVES")) | |
809 | 809 | then unit | |
810 | 810 | else fromBase58String(fQ) | |
811 | 811 | let gh = if ((cC > 0)) | |
812 | 812 | then [ScriptTransfer(bc, cC, gg)] | |
813 | 813 | else nil | |
814 | 814 | let dG = ([ScriptTransfer(dm, ga, gg), StringEntry(ai(toString(dm), dj), bO(gc, gd, dQ, gf, an, lastBlock.timestamp)), IntegerEntry(ab(), gf), IntegerEntry(ac(an, lastBlock.timestamp), gf)] ++ gh) | |
815 | 815 | if ((dG == dG)) | |
816 | 816 | then { | |
817 | 817 | let gi = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)]) | |
818 | 818 | if ((gi == gi)) | |
819 | 819 | then { | |
820 | 820 | let gj = { | |
821 | 821 | let gk = if ((this == bc)) | |
822 | 822 | then 0 | |
823 | 823 | else cC | |
824 | 824 | let gl = if ((bh(fQ) == br)) | |
825 | 825 | then true | |
826 | 826 | else false | |
827 | 827 | if (gl) | |
828 | 828 | then $Tuple2(-((fZ + gk)), 0) | |
829 | 829 | else $Tuple2(0, -((fZ + gk))) | |
830 | 830 | } | |
831 | 831 | let eY = gj._1 | |
832 | 832 | let eZ = gj._2 | |
833 | 833 | let gm = eX(eY, eZ, 0) | |
834 | 834 | let gn = gm._1 | |
835 | 835 | let eO = gm._2 | |
836 | 836 | let go = fb(eW, eO) | |
837 | 837 | if ((go == go)) | |
838 | 838 | then $Tuple2((dG ++ gn), ga) | |
839 | 839 | else throw("Strict value is not equal to itself.") | |
840 | 840 | } | |
841 | 841 | else throw("Strict value is not equal to itself.") | |
842 | 842 | } | |
843 | 843 | else throw("Strict value is not equal to itself.") | |
844 | 844 | } | |
845 | 845 | else throw("Strict value is not equal to itself.") | |
846 | 846 | } | |
847 | 847 | } | |
848 | 848 | else throw("Strict value is not equal to itself.") | |
849 | 849 | } | |
850 | 850 | ||
851 | 851 | ||
852 | 852 | func gp () = { | |
853 | 853 | let gq = getString(Z()) | |
854 | 854 | if ($isInstanceOf(gq, "String")) | |
855 | 855 | then { | |
856 | 856 | let cH = gq | |
857 | 857 | fromBase58String(cH) | |
858 | 858 | } | |
859 | 859 | else if ($isInstanceOf(gq, "Unit")) | |
860 | 860 | then unit | |
861 | 861 | else throw("Match error") | |
862 | 862 | } | |
863 | 863 | ||
864 | 864 | ||
865 | 865 | func gr () = { | |
866 | 866 | let gq = getString(aa()) | |
867 | 867 | if ($isInstanceOf(gq, "String")) | |
868 | 868 | then { | |
869 | 869 | let cH = gq | |
870 | 870 | fromBase58String(cH) | |
871 | 871 | } | |
872 | 872 | else if ($isInstanceOf(gq, "Unit")) | |
873 | 873 | then unit | |
874 | 874 | else throw("Match error") | |
875 | 875 | } | |
876 | 876 | ||
877 | 877 | ||
878 | 878 | let gs = throw("Permission denied") | |
879 | 879 | ||
880 | 880 | func gt (cU) = { | |
881 | 881 | let gq = gp() | |
882 | 882 | if ($isInstanceOf(gq, "ByteVector")) | |
883 | 883 | then { | |
884 | 884 | let gu = gq | |
885 | 885 | (cU.callerPublicKey == gu) | |
886 | 886 | } | |
887 | 887 | else if ($isInstanceOf(gq, "Unit")) | |
888 | 888 | then (cU.caller == this) | |
889 | 889 | else throw("Match error") | |
890 | 890 | } | |
891 | 891 | ||
892 | 892 | ||
893 | 893 | func gv (cU) = { | |
894 | 894 | let gq = gp() | |
895 | 895 | if ($isInstanceOf(gq, "ByteVector")) | |
896 | 896 | then { | |
897 | 897 | let gu = gq | |
898 | 898 | if ((cU.callerPublicKey == gu)) | |
899 | 899 | then true | |
900 | 900 | else gs | |
901 | 901 | } | |
902 | 902 | else if ($isInstanceOf(gq, "Unit")) | |
903 | 903 | then if ((cU.caller == this)) | |
904 | 904 | then true | |
905 | 905 | else gs | |
906 | 906 | else throw("Match error") | |
907 | 907 | } | |
908 | 908 | ||
909 | 909 | ||
910 | 910 | func gw (gx,ey,gy) = { | |
911 | 911 | let bl = bd() | |
912 | 912 | let do = bl[w] | |
913 | 913 | let dp = bl[x] | |
914 | 914 | let ez = g | |
915 | 915 | let eB = parseBigIntValue(l) | |
916 | 916 | let cI = (parseBigIntValue(aZ) * eB) | |
917 | 917 | let cE = if ((gx == false)) | |
918 | 918 | then [(toBigInt(bS(do)) + gy), toBigInt(bS(dp))] | |
919 | 919 | else [(toBigInt(bS(dp)) + gy), toBigInt(bS(do))] | |
920 | 920 | let eA = cE[0] | |
921 | 921 | let cH = eA | |
922 | 922 | let cJ = (cI * ez) | |
923 | 923 | let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez)) | |
924 | 924 | let eD = ((cH + ((ey * eB) / cJ)) - ey) | |
925 | 925 | func cS (cT,eE) = { | |
926 | 926 | let gz = cT | |
927 | 927 | let eG = gz._1 | |
928 | 928 | let dh = gz._2 | |
929 | 929 | if ((dh != unit)) | |
930 | 930 | then cT | |
931 | 931 | else { | |
932 | 932 | let eH = (((eG * eG) + eC) / ((g * eG) + eD)) | |
933 | 933 | let eI = X((eH - value(eG))) | |
934 | 934 | if ((f >= eI)) | |
935 | 935 | then $Tuple2(eH, eE) | |
936 | 936 | else $Tuple2(eH, unit) | |
937 | 937 | } | |
938 | 938 | } | |
939 | 939 | ||
940 | 940 | let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
941 | 941 | let gA = { | |
942 | 942 | let da = cY | |
943 | 943 | let db = size(da) | |
944 | 944 | let dc = $Tuple2(ey, unit) | |
945 | 945 | func dd (de,df) = if ((df >= db)) | |
946 | 946 | then de | |
947 | 947 | else cS(de, da[df]) | |
948 | 948 | ||
949 | 949 | func dg (de,df) = if ((df >= db)) | |
950 | 950 | then de | |
951 | 951 | else throw("List size exceeds 15") | |
952 | 952 | ||
953 | 953 | dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
954 | 954 | } | |
955 | 955 | let eG = gA._1 | |
956 | 956 | let dh = gA._2 | |
957 | 957 | if ((dh != unit)) | |
958 | 958 | then eG | |
959 | 959 | else throw(("Y calculation error, Y = " + toString(eG))) | |
960 | 960 | } | |
961 | 961 | ||
962 | 962 | ||
963 | 963 | func gB () = valueOrElse(getBoolean(aV, aH(toString(this))), false) | |
964 | 964 | ||
965 | 965 | ||
966 | 966 | @Callable(cU) | |
967 | 967 | func calculateAmountOutForSwapREADONLY (gC,gx,gD) = { | |
968 | 968 | let gE = if ((gx == false)) | |
969 | 969 | then { | |
970 | 970 | let gF = aO(this, ak()) | |
971 | 971 | let gy = (toBigInt(bS(aO(this, aj()))) + toBigInt(gC)) | |
972 | 972 | $Tuple2(gF, gy) | |
973 | 973 | } | |
974 | 974 | else { | |
975 | 975 | let gF = aO(this, aj()) | |
976 | 976 | let gy = (toBigInt(bS(aO(this, ak()))) + toBigInt(gC)) | |
977 | 977 | $Tuple2(gF, gy) | |
978 | 978 | } | |
979 | 979 | let gF = gE._1 | |
980 | 980 | let gy = gE._2 | |
981 | 981 | let bl = bd() | |
982 | 982 | let do = bl[w] | |
983 | 983 | let dp = bl[x] | |
984 | 984 | let cE = [toBigInt(bS(do)), toBigInt(bS(dp))] | |
985 | 985 | let ey = cD(cE) | |
986 | 986 | let eG = gw(gx, ey, toBigInt(gC)) | |
987 | 987 | let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1)) | |
988 | 988 | let gH = max([0, toInt(gG)]) | |
989 | 989 | let gI = if ((gx == false)) | |
990 | 990 | then [((toBigInt(bS(do)) + toBigInt(gC)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)] | |
991 | 991 | else [(toBigInt(bS(do)) - gG), ((toBigInt(bS(dp)) + toBigInt(gC)) + toBigInt(gD))] | |
992 | 992 | let gJ = cD(gI) | |
993 | 993 | let ed = if ((gJ >= ey)) | |
994 | 994 | then true | |
995 | 995 | else throw(makeString(["new D is fewer error", toString(ey), toString(gJ)], "__")) | |
996 | 996 | if ((ed == ed)) | |
997 | 997 | then $Tuple2(nil, gH) | |
998 | 998 | else throw("Strict value is not equal to itself.") | |
999 | 999 | } | |
1000 | 1000 | ||
1001 | 1001 | ||
1002 | 1002 | ||
1003 | 1003 | @Callable(cU) | |
1004 | 1004 | func calculateAmountOutForSwapAndSendTokens (gC,gx,gK,gL,gD) = { | |
1005 | 1005 | let gM = { | |
1006 | 1006 | let aX = invoke(aV, "getSwapContractREADONLY", nil, nil) | |
1007 | 1007 | if ($isInstanceOf(aX, "String")) | |
1008 | 1008 | then aX | |
1009 | 1009 | else throw(($getType(aX) + " couldn't be cast to String")) | |
1010 | 1010 | } | |
1011 | 1011 | let gN = [if ((value(cU.payments[0]).amount >= gC)) | |
1012 | 1012 | then true | |
1013 | 1013 | else aS("Wrong amount"), if ((cU.caller == addressFromStringValue(gM))) | |
1014 | 1014 | then true | |
1015 | 1015 | else aS("Permission denied")] | |
1016 | 1016 | if ((gN == gN)) | |
1017 | 1017 | then { | |
1018 | 1018 | let fp = value(cU.payments[0]) | |
1019 | 1019 | let gO = bj(fp.assetId) | |
1020 | 1020 | let gP = if ((gx == false)) | |
1021 | 1021 | then { | |
1022 | 1022 | let gF = aO(this, ak()) | |
1023 | 1023 | let gy = (bS(gO) - value(cU.payments[0]).amount) | |
1024 | 1024 | $Tuple2(gF, gy) | |
1025 | 1025 | } | |
1026 | 1026 | else { | |
1027 | 1027 | let gF = aO(this, aj()) | |
1028 | 1028 | let gy = (bS(gO) - value(cU.payments[0]).amount) | |
1029 | 1029 | $Tuple2(gF, gy) | |
1030 | 1030 | } | |
1031 | 1031 | let gF = gP._1 | |
1032 | 1032 | let gy = gP._2 | |
1033 | 1033 | let bl = bd() | |
1034 | 1034 | let do = bl[w] | |
1035 | 1035 | let dp = bl[x] | |
1036 | 1036 | let cE = if ((gx == false)) | |
1037 | 1037 | then [(toBigInt(bS(do)) - toBigInt(value(cU.payments[0]).amount)), toBigInt(bS(dp))] | |
1038 | 1038 | else [toBigInt(bS(do)), (toBigInt(bS(dp)) - toBigInt(value(cU.payments[0]).amount))] | |
1039 | 1039 | let ey = cD(cE) | |
1040 | 1040 | let eG = gw(gx, ey, toBigInt(0)) | |
1041 | 1041 | let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1)) | |
1042 | 1042 | let gH = max([0, toInt(gG)]) | |
1043 | 1043 | let gQ = if ((gH >= gK)) | |
1044 | 1044 | then true | |
1045 | 1045 | else throw("Exchange result is fewer coins than expected") | |
1046 | 1046 | if ((gQ == gQ)) | |
1047 | 1047 | then { | |
1048 | 1048 | let gI = if ((gx == false)) | |
1049 | 1049 | then [(toBigInt(bS(do)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)] | |
1050 | 1050 | else [(toBigInt(bS(do)) - gG), (toBigInt(bS(dp)) + toBigInt(gD))] | |
1051 | 1051 | let gJ = cD(gI) | |
1052 | 1052 | let ed = if ((gJ >= ey)) | |
1053 | 1053 | then true | |
1054 | 1054 | else throw("new D is fewer error") | |
1055 | 1055 | if ((ed == ed)) | |
1056 | 1056 | then $Tuple2([ScriptTransfer(addressFromStringValue(gL), gH, bh(gF))], gH) | |
1057 | 1057 | else throw("Strict value is not equal to itself.") | |
1058 | 1058 | } | |
1059 | 1059 | else throw("Strict value is not equal to itself.") | |
1060 | 1060 | } | |
1061 | 1061 | else throw("Strict value is not equal to itself.") | |
1062 | 1062 | } | |
1063 | 1063 | ||
1064 | 1064 | ||
1065 | 1065 | ||
1066 | 1066 | @Callable(cU) | |
1067 | 1067 | func constructor (Y) = { | |
1068 | 1068 | let eC = gv(cU) | |
1069 | 1069 | if ((eC == eC)) | |
1070 | 1070 | then [StringEntry(Y(), Y)] | |
1071 | 1071 | else throw("Strict value is not equal to itself.") | |
1072 | 1072 | } | |
1073 | 1073 | ||
1074 | 1074 | ||
1075 | 1075 | ||
1076 | 1076 | @Callable(cU) | |
1077 | 1077 | func setManager (gR) = { | |
1078 | 1078 | let eC = gv(cU) | |
1079 | 1079 | if ((eC == eC)) | |
1080 | 1080 | then { | |
1081 | 1081 | let gS = fromBase58String(gR) | |
1082 | 1082 | if ((gS == gS)) | |
1083 | 1083 | then [StringEntry(aa(), gR)] | |
1084 | 1084 | else throw("Strict value is not equal to itself.") | |
1085 | 1085 | } | |
1086 | 1086 | else throw("Strict value is not equal to itself.") | |
1087 | 1087 | } | |
1088 | 1088 | ||
1089 | 1089 | ||
1090 | 1090 | ||
1091 | 1091 | @Callable(cU) | |
1092 | 1092 | func confirmManager () = { | |
1093 | 1093 | let cz = gr() | |
1094 | 1094 | let gT = if (isDefined(cz)) | |
1095 | 1095 | then true | |
1096 | 1096 | else throw("No pending manager") | |
1097 | 1097 | if ((gT == gT)) | |
1098 | 1098 | then { | |
1099 | 1099 | let gU = if ((cU.callerPublicKey == value(cz))) | |
1100 | 1100 | then true | |
1101 | 1101 | else throw("You are not pending manager") | |
1102 | 1102 | if ((gU == gU)) | |
1103 | 1103 | then [StringEntry(Z(), toBase58String(value(cz))), DeleteEntry(aa())] | |
1104 | 1104 | else throw("Strict value is not equal to itself.") | |
1105 | 1105 | } | |
1106 | 1106 | else throw("Strict value is not equal to itself.") | |
1107 | 1107 | } | |
1108 | 1108 | ||
1109 | 1109 | ||
1110 | 1110 | ||
1111 | 1111 | @Callable(cU) | |
1112 | 1112 | func put (gV,gW) = { | |
1113 | 1113 | let gX = bx() | |
1114 | 1114 | let gY = valueOrErrorMessage(addressFromString(gX[C]), "Wr st addr") | |
1115 | 1115 | let gZ = valueOrErrorMessage(addressFromString(gX[E]), "Wr sl addr") | |
1116 | 1116 | if ((0 > gV)) | |
1117 | 1117 | then throw("Wrong slippage") | |
1118 | 1118 | else if ((size(cU.payments) != 2)) | |
1119 | 1119 | then throw("2 pmnts expd") | |
1120 | 1120 | else { | |
1121 | 1121 | let ha = toBigInt(value(cU.payments[0]).amount) | |
1122 | 1122 | let hb = toBigInt(value(cU.payments[1]).amount) | |
1123 | 1123 | let eT = (toBigInt(bS(bj(br))) - ha) | |
1124 | 1124 | if ((eT == eT)) | |
1125 | 1125 | then { | |
1126 | 1126 | let eU = (toBigInt(bS(bj(bs))) - hb) | |
1127 | 1127 | if ((eU == eU)) | |
1128 | 1128 | then { | |
1129 | 1129 | let eV = toBigInt(value(assetInfo(bq)).quantity) | |
1130 | 1130 | if ((eV == eV)) | |
1131 | 1131 | then { | |
1132 | 1132 | let eW = eP(ha, hb, toBigInt(0)) | |
1133 | 1133 | if ((eW == eW)) | |
1134 | 1134 | then { | |
1135 | 1135 | let hc = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], gV, true, false, true, 0, "") | |
1136 | 1136 | let eq = hc._2 | |
1137 | 1137 | let hd = hc._7 | |
1138 | 1138 | let dG = hc._9 | |
1139 | 1139 | let er = hc._10 | |
1140 | 1140 | let es = hc._11 | |
1141 | 1141 | let do = hc._12 | |
1142 | 1142 | let dp = hc._13 | |
1143 | 1143 | let ec = invoke(aV, "emit", [eq], nil) | |
1144 | 1144 | if ((ec == ec)) | |
1145 | 1145 | then { | |
1146 | 1146 | let he = { | |
1147 | 1147 | let gq = ec | |
1148 | 1148 | if ($isInstanceOf(gq, "Address")) | |
1149 | 1149 | then { | |
1150 | 1150 | let hf = gq | |
1151 | 1151 | invoke(hf, "emit", [eq], nil) | |
1152 | 1152 | } | |
1153 | 1153 | else unit | |
1154 | 1154 | } | |
1155 | 1155 | if ((he == he)) | |
1156 | 1156 | then { | |
1157 | 1157 | let hg = if ((er > 0)) | |
1158 | 1158 | then invoke(gZ, "put", nil, [AttachedPayment(do, er)]) | |
1159 | 1159 | else nil | |
1160 | 1160 | if ((hg == hg)) | |
1161 | 1161 | then { | |
1162 | 1162 | let hh = if ((es > 0)) | |
1163 | 1163 | then invoke(gZ, "put", nil, [AttachedPayment(dp, es)]) | |
1164 | 1164 | else nil | |
1165 | 1165 | if ((hh == hh)) | |
1166 | 1166 | then { | |
1167 | 1167 | let hi = if (gW) | |
1168 | 1168 | then { | |
1169 | 1169 | let hj = invoke(gY, "stake", nil, [AttachedPayment(hd, eq)]) | |
1170 | 1170 | if ((hj == hj)) | |
1171 | 1171 | then nil | |
1172 | 1172 | else throw("Strict value is not equal to itself.") | |
1173 | 1173 | } | |
1174 | 1174 | else [ScriptTransfer(cU.caller, eq, hd)] | |
1175 | 1175 | let hk = eX(0, 0, 0) | |
1176 | 1176 | let gn = hk._1 | |
1177 | 1177 | let eO = hk._2 | |
1178 | 1178 | let hl = if ((eO >= eW)) | |
1179 | 1179 | then true | |
1180 | 1180 | else aS(makeString(["updated DLp lower than current DLp", toString(eT), toString(eU), toString(eV), toString(eW), toString(eO), toString(er), toString(es)], " ")) | |
1181 | 1181 | if ((hl == hl)) | |
1182 | 1182 | then { | |
1183 | 1183 | let hm = value(assetInfo(bq)).quantity | |
1184 | 1184 | if ((hm == hm)) | |
1185 | 1185 | then ((dG ++ hi) ++ gn) | |
1186 | 1186 | else throw("Strict value is not equal to itself.") | |
1187 | 1187 | } | |
1188 | 1188 | else throw("Strict value is not equal to itself.") | |
1189 | 1189 | } | |
1190 | 1190 | else throw("Strict value is not equal to itself.") | |
1191 | 1191 | } | |
1192 | 1192 | else throw("Strict value is not equal to itself.") | |
1193 | 1193 | } | |
1194 | 1194 | else throw("Strict value is not equal to itself.") | |
1195 | 1195 | } | |
1196 | 1196 | else throw("Strict value is not equal to itself.") | |
1197 | 1197 | } | |
1198 | 1198 | else throw("Strict value is not equal to itself.") | |
1199 | 1199 | } | |
1200 | 1200 | else throw("Strict value is not equal to itself.") | |
1201 | 1201 | } | |
1202 | 1202 | else throw("Strict value is not equal to itself.") | |
1203 | 1203 | } | |
1204 | 1204 | else throw("Strict value is not equal to itself.") | |
1205 | 1205 | } | |
1206 | 1206 | } | |
1207 | 1207 | ||
1208 | 1208 | ||
1209 | 1209 | ||
1210 | 1210 | @Callable(cU) | |
1211 | 1211 | func putOneTknV2 (fR,gW) = { | |
1212 | 1212 | let hn = { | |
1213 | 1213 | let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1214 | 1214 | if ($isInstanceOf(aX, "Boolean")) | |
1215 | 1215 | then aX | |
1216 | 1216 | else throw(($getType(aX) + " couldn't be cast to Boolean")) | |
1217 | 1217 | } | |
1218 | 1218 | let ho = if (if (if (ba()) | |
1219 | 1219 | then true | |
1220 | 1220 | else (bp == q)) | |
1221 | 1221 | then true | |
1222 | 1222 | else (bp == s)) | |
1223 | 1223 | then true | |
1224 | 1224 | else hn | |
1225 | 1225 | let gN = [if (if (!(ho)) | |
1226 | 1226 | then true | |
1227 | 1227 | else gt(cU)) | |
1228 | 1228 | then true | |
1229 | 1229 | else aS("put operation is blocked by admin"), if ((size(cU.payments) == 1)) | |
1230 | 1230 | then true | |
1231 | 1231 | else aS("exactly 1 payment are expected")] | |
1232 | 1232 | if ((gN == gN)) | |
1233 | 1233 | then { | |
1234 | 1234 | let do = toBase58String(value(br)) | |
1235 | 1235 | let dp = toBase58String(value(bs)) | |
1236 | 1236 | let dn = bq | |
1237 | 1237 | let fV = bt | |
1238 | 1238 | let fW = bu | |
1239 | 1239 | let dm = if ((cU.caller == this)) | |
1240 | 1240 | then cU.originCaller | |
1241 | 1241 | else cU.caller | |
1242 | 1242 | let fp = value(cU.payments[0]) | |
1243 | 1243 | let dk = toBase58String(value(fp.assetId)) | |
1244 | 1244 | let dQ = fp.amount | |
1245 | 1245 | let eW = if ((fp.assetId == br)) | |
1246 | 1246 | then eP(toBigInt(dQ), toBigInt(0), toBigInt(0)) | |
1247 | 1247 | else eP(toBigInt(0), toBigInt(dQ), toBigInt(0)) | |
1248 | 1248 | if ((eW == eW)) | |
1249 | 1249 | then { | |
1250 | 1250 | let hp = fu(dQ, dk, toString(dm), toBase58String(cU.transactionId), true) | |
1251 | 1251 | if ((hp == hp)) | |
1252 | 1252 | then { | |
1253 | 1253 | let cC = hp._3 | |
1254 | 1254 | let dG = hp._2 | |
1255 | 1255 | let hq = hp._1 | |
1256 | 1256 | let eq = if (if ((fR > 0)) | |
1257 | 1257 | then (fR > hq) | |
1258 | 1258 | else false) | |
1259 | 1259 | then aS(makeString(["amount to receive is less than ", toString(fR)], "")) | |
1260 | 1260 | else hq | |
1261 | 1261 | let hc = invoke(aV, "emit", [eq], nil) | |
1262 | 1262 | if ((hc == hc)) | |
1263 | 1263 | then { | |
1264 | 1264 | let he = { | |
1265 | 1265 | let gq = hc | |
1266 | 1266 | if ($isInstanceOf(gq, "Address")) | |
1267 | 1267 | then { | |
1268 | 1268 | let hf = gq | |
1269 | 1269 | invoke(hf, "emit", [eq], nil) | |
1270 | 1270 | } | |
1271 | 1271 | else unit | |
1272 | 1272 | } | |
1273 | 1273 | if ((he == he)) | |
1274 | 1274 | then { | |
1275 | 1275 | let hi = if (gW) | |
1276 | 1276 | then { | |
1277 | 1277 | let hj = invoke(bz, "stakeFor", [toString(cU.caller)], [AttachedPayment(dn, eq)]) | |
1278 | 1278 | if ((hj == hj)) | |
1279 | 1279 | then nil | |
1280 | 1280 | else throw("Strict value is not equal to itself.") | |
1281 | 1281 | } | |
1282 | 1282 | else [ScriptTransfer(cU.caller, eq, dn)] | |
1283 | 1283 | let gh = if ((cC > 0)) | |
1284 | 1284 | then [ScriptTransfer(bc, cC, fromBase58String(dk))] | |
1285 | 1285 | else nil | |
1286 | 1286 | let hr = if ((this == bc)) | |
1287 | 1287 | then $Tuple2(0, 0) | |
1288 | 1288 | else { | |
1289 | 1289 | let hs = if ((fp.assetId == br)) | |
1290 | 1290 | then true | |
1291 | 1291 | else false | |
1292 | 1292 | if (hs) | |
1293 | 1293 | then $Tuple2(-(cC), 0) | |
1294 | 1294 | else $Tuple2(0, -(cC)) | |
1295 | 1295 | } | |
1296 | 1296 | let eY = hr._1 | |
1297 | 1297 | let eZ = hr._2 | |
1298 | 1298 | let ht = eX(eY, eZ, 0) | |
1299 | 1299 | let gn = ht._1 | |
1300 | 1300 | let eO = ht._2 | |
1301 | 1301 | let go = fb(eW, eO) | |
1302 | 1302 | if ((go == go)) | |
1303 | 1303 | then $Tuple2((((dG ++ hi) ++ gh) ++ gn), eq) | |
1304 | 1304 | else throw("Strict value is not equal to itself.") | |
1305 | 1305 | } | |
1306 | 1306 | else throw("Strict value is not equal to itself.") | |
1307 | 1307 | } | |
1308 | 1308 | else throw("Strict value is not equal to itself.") | |
1309 | 1309 | } | |
1310 | 1310 | else throw("Strict value is not equal to itself.") | |
1311 | 1311 | } | |
1312 | 1312 | else throw("Strict value is not equal to itself.") | |
1313 | 1313 | } | |
1314 | 1314 | else throw("Strict value is not equal to itself.") | |
1315 | 1315 | } | |
1316 | 1316 | ||
1317 | 1317 | ||
1318 | 1318 | ||
1319 | 1319 | @Callable(cU) | |
1320 | 1320 | func putForFree (hu) = if ((0 > hu)) | |
1321 | 1321 | then throw("Wrong slpg") | |
1322 | 1322 | else if ((size(cU.payments) != 2)) | |
1323 | 1323 | then throw("2 pmnts expd") | |
1324 | 1324 | else { | |
1325 | 1325 | let hv = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], hu, false, false, true, 0, "") | |
1326 | 1326 | let dG = hv._9 | |
1327 | 1327 | let ha = toBigInt(value(cU.payments[0]).amount) | |
1328 | 1328 | let hb = toBigInt(value(cU.payments[1]).amount) | |
1329 | 1329 | let eW = eP(ha, hb, toBigInt(0)) | |
1330 | 1330 | if ((eW == eW)) | |
1331 | 1331 | then { | |
1332 | 1332 | let hw = eX(0, 0, 0) | |
1333 | 1333 | let gn = hw._1 | |
1334 | 1334 | let eO = hw._2 | |
1335 | 1335 | let go = fb(eW, eO) | |
1336 | 1336 | if ((go == go)) | |
1337 | 1337 | then (dG ++ gn) | |
1338 | 1338 | else throw("Strict value is not equal to itself.") | |
1339 | 1339 | } | |
1340 | 1340 | else throw("Strict value is not equal to itself.") | |
1341 | 1341 | } | |
1342 | 1342 | ||
1343 | 1343 | ||
1344 | 1344 | ||
1345 | 1345 | @Callable(cU) | |
1346 | 1346 | func get () = { | |
1347 | 1347 | let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1348 | 1348 | if ((eW == eW)) | |
1349 | 1349 | then { | |
1350 | 1350 | let ec = fo(cU) | |
1351 | 1351 | let hx = ec._1 | |
1352 | 1352 | let dF = ec._2 | |
1353 | 1353 | let dQ = ec._3 | |
1354 | 1354 | let dk = ec._4 | |
1355 | 1355 | let dG = ec._5 | |
1356 | 1356 | let eD = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)]) | |
1357 | 1357 | if ((eD == eD)) | |
1358 | 1358 | then { | |
1359 | 1359 | let hy = eX(-(hx), -(dF), 0) | |
1360 | 1360 | let gn = hy._1 | |
1361 | 1361 | let eO = hy._2 | |
1362 | 1362 | let go = fb(eW, eO) | |
1363 | 1363 | if ((go == go)) | |
1364 | 1364 | then (dG ++ gn) | |
1365 | 1365 | else throw("Strict value is not equal to itself.") | |
1366 | 1366 | } | |
1367 | 1367 | else throw("Strict value is not equal to itself.") | |
1368 | 1368 | } | |
1369 | 1369 | else throw("Strict value is not equal to itself.") | |
1370 | 1370 | } | |
1371 | 1371 | ||
1372 | 1372 | ||
1373 | 1373 | ||
1374 | 1374 | @Callable(cU) | |
1375 | 1375 | func getOneTknV2 (fQ,fR) = { | |
1376 | 1376 | let hn = { | |
1377 | 1377 | let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1378 | 1378 | if ($isInstanceOf(aX, "Boolean")) | |
1379 | 1379 | then aX | |
1380 | 1380 | else throw(($getType(aX) + " couldn't be cast to Boolean")) | |
1381 | 1381 | } | |
1382 | 1382 | let hz = if (if (ba()) | |
1383 | 1383 | then true | |
1384 | 1384 | else (bp == s)) | |
1385 | 1385 | then true | |
1386 | 1386 | else hn | |
1387 | 1387 | let gN = [if (if (!(hz)) | |
1388 | 1388 | then true | |
1389 | 1389 | else gt(cU)) | |
1390 | 1390 | then true | |
1391 | 1391 | else aS("get operation is blocked by admin"), if ((size(cU.payments) == 1)) | |
1392 | 1392 | then true | |
1393 | 1393 | else aS("exactly 1 payment are expected")] | |
1394 | 1394 | if ((gN == gN)) | |
1395 | 1395 | then { | |
1396 | 1396 | let hA = fP(fQ, fR, cU.payments, cU.caller, cU.originCaller, cU.transactionId) | |
1397 | 1397 | let dG = hA._1 | |
1398 | 1398 | let ga = hA._2 | |
1399 | 1399 | $Tuple2(dG, ga) | |
1400 | 1400 | } | |
1401 | 1401 | else throw("Strict value is not equal to itself.") | |
1402 | 1402 | } | |
1403 | 1403 | ||
1404 | 1404 | ||
1405 | 1405 | ||
1406 | 1406 | @Callable(cU) | |
1407 | 1407 | func refreshDLp () = { | |
1408 | 1408 | let hB = valueOrElse(getInteger(at), 0) | |
1409 | 1409 | let hC = if (((an - hB) >= aw)) | |
1410 | 1410 | then unit | |
1411 | 1411 | else aS(makeString([toString(aw), " blocks have not passed since the previous call"], "")) | |
1412 | 1412 | if ((hC == hC)) | |
1413 | 1413 | then { | |
1414 | 1414 | let fi = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, as), "0")), aU("invalid dLp")) | |
1415 | 1415 | let hD = eX(0, 0, 0) | |
1416 | 1416 | let hE = hD._1 | |
1417 | 1417 | let eO = hD._2 | |
1418 | 1418 | let fa = if ((fi != eO)) | |
1419 | 1419 | then hE | |
1420 | 1420 | else aS("nothing to refresh") | |
1421 | 1421 | $Tuple2(fa, toString(eO)) | |
1422 | 1422 | } | |
1423 | 1423 | else throw("Strict value is not equal to itself.") | |
1424 | 1424 | } | |
1425 | 1425 | ||
1426 | 1426 | ||
1427 | 1427 | ||
1428 | 1428 | @Callable(cU) | |
1429 | 1429 | func getOneTknV2READONLY (fQ,hF) = { | |
1430 | 1430 | let do = toBase58String(value(br)) | |
1431 | 1431 | let dp = toBase58String(value(bs)) | |
1432 | 1432 | let dn = toBase58String(value(bq)) | |
1433 | 1433 | let cE = [toBigInt(bS(do)), toBigInt(bS(dp))] | |
1434 | 1434 | let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dn)), "invalid lp asset").quantity) | |
1435 | 1435 | let cg = cD(cE) | |
1436 | 1436 | let cf = (cg - fraction(toBigInt(hF), cg, eN)) | |
1437 | 1437 | let hG = if ((fQ == do)) | |
1438 | 1438 | then 0 | |
1439 | 1439 | else if ((fQ == dp)) | |
1440 | 1440 | then 1 | |
1441 | 1441 | else throw("invalid out asset id") | |
1442 | 1442 | let hH = ex(cE, hG, cf) | |
1443 | 1443 | let gG = (cE[hG] - hH) | |
1444 | 1444 | let gH = max([0, toInt((gG - f))]) | |
1445 | 1445 | let hI = cA(gH, aY) | |
1446 | 1446 | let fZ = hI._1 | |
1447 | 1447 | let cC = hI._2 | |
1448 | 1448 | $Tuple2(nil, $Tuple2(fZ, cC)) | |
1449 | 1449 | } | |
1450 | 1450 | ||
1451 | 1451 | ||
1452 | 1452 | ||
1453 | 1453 | @Callable(cU) | |
1454 | 1454 | func getOneTknV2WithBonusREADONLY (fQ,hF) = { | |
1455 | 1455 | let do = toBase58String(value(br)) | |
1456 | 1456 | let dp = toBase58String(value(bs)) | |
1457 | 1457 | let dn = toBase58String(value(bq)) | |
1458 | 1458 | let du = bS(do) | |
1459 | 1459 | let dw = bS(dp) | |
1460 | 1460 | let hJ = { | |
1461 | 1461 | let aX = invoke(this, "getOneTknV2READONLY", [fQ, hF], nil) | |
1462 | 1462 | if ($isInstanceOf(aX, "(Int, Int)")) | |
1463 | 1463 | then aX | |
1464 | 1464 | else throw(($getType(aX) + " couldn't be cast to (Int, Int)")) | |
1465 | 1465 | } | |
1466 | 1466 | let fZ = hJ._1 | |
1467 | 1467 | let cC = hJ._2 | |
1468 | 1468 | let ec = di("", dn, hF, this) | |
1469 | 1469 | let dE = ec._1 | |
1470 | 1470 | let dF = ec._2 | |
1471 | 1471 | let hK = (dE + dF) | |
1472 | 1472 | let fO = if ((hK == 0)) | |
1473 | 1473 | then if ((fZ == 0)) | |
1474 | 1474 | then 0 | |
1475 | 1475 | else throw("bonus calculation error") | |
1476 | 1476 | else fraction((fZ - hK), a, hK) | |
1477 | 1477 | $Tuple2(nil, $Tuple3(fZ, cC, fO)) | |
1478 | 1478 | } | |
1479 | 1479 | ||
1480 | 1480 | ||
1481 | 1481 | ||
1482 | 1482 | @Callable(cU) | |
1483 | 1483 | func getNoLess (hL,hM) = { | |
1484 | 1484 | let ec = fo(cU) | |
1485 | 1485 | let dE = ec._1 | |
1486 | 1486 | let dF = ec._2 | |
1487 | 1487 | let dQ = ec._3 | |
1488 | 1488 | let dk = ec._4 | |
1489 | 1489 | let dG = ec._5 | |
1490 | 1490 | if ((hL > dE)) | |
1491 | 1491 | then throw(((("Failed: " + toString(dE)) + " < ") + toString(hL))) | |
1492 | 1492 | else if ((hM > dF)) | |
1493 | 1493 | then throw(((("Failed: " + toString(dF)) + " < ") + toString(hM))) | |
1494 | 1494 | else { | |
1495 | 1495 | let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1496 | 1496 | if ((eW == eW)) | |
1497 | 1497 | then { | |
1498 | 1498 | let hN = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)]) | |
1499 | 1499 | if ((hN == hN)) | |
1500 | 1500 | then { | |
1501 | 1501 | let hO = eX(-(dE), -(dF), 0) | |
1502 | 1502 | let gn = hO._1 | |
1503 | 1503 | let eO = hO._2 | |
1504 | 1504 | let go = fb(eW, eO) | |
1505 | 1505 | if ((go == go)) | |
1506 | 1506 | then (dG ++ gn) | |
1507 | 1507 | else throw("Strict value is not equal to itself.") | |
1508 | 1508 | } | |
1509 | 1509 | else throw("Strict value is not equal to itself.") | |
1510 | 1510 | } | |
1511 | 1511 | else throw("Strict value is not equal to itself.") | |
1512 | 1512 | } | |
1513 | 1513 | } | |
1514 | 1514 | ||
1515 | 1515 | ||
1516 | 1516 | ||
1517 | 1517 | @Callable(cU) | |
1518 | 1518 | func unstakeAndGet (cB) = { | |
1519 | 1519 | let hP = if ((size(cU.payments) != 0)) | |
1520 | 1520 | then throw("No pmnts expd") | |
1521 | 1521 | else true | |
1522 | 1522 | if ((hP == hP)) | |
1523 | 1523 | then { | |
1524 | 1524 | let hQ = bx() | |
1525 | 1525 | let hd = bq | |
1526 | 1526 | let hR = valueOrErrorMessage(addressFromString(hQ[C]), "Wr st addr") | |
1527 | 1527 | let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1528 | 1528 | if ((eW == eW)) | |
1529 | 1529 | then { | |
1530 | 1530 | let hS = invoke(hR, "unstake", [toBase58String(hd), cB], nil) | |
1531 | 1531 | if ((hS == hS)) | |
1532 | 1532 | then { | |
1533 | 1533 | let ec = di(toBase58String(cU.transactionId), toBase58String(hd), cB, cU.caller) | |
1534 | 1534 | let dE = ec._1 | |
1535 | 1535 | let dF = ec._2 | |
1536 | 1536 | let ds = parseIntValue(ec._9) | |
1537 | 1537 | let dG = ec._10 | |
1538 | 1538 | let hT = if (if (ba()) | |
1539 | 1539 | then true | |
1540 | 1540 | else (ds == s)) | |
1541 | 1541 | then throw(("Blocked: " + toString(ds))) | |
1542 | 1542 | else true | |
1543 | 1543 | if ((hT == hT)) | |
1544 | 1544 | then { | |
1545 | 1545 | let hU = invoke(aV, "burn", [cB], [AttachedPayment(hd, cB)]) | |
1546 | 1546 | if ((hU == hU)) | |
1547 | 1547 | then { | |
1548 | 1548 | let hV = eX(-(dE), -(dF), 0) | |
1549 | 1549 | let gn = hV._1 | |
1550 | 1550 | let eO = hV._2 | |
1551 | 1551 | let go = fb(eW, eO) | |
1552 | 1552 | if ((go == go)) | |
1553 | 1553 | then (dG ++ gn) | |
1554 | 1554 | else throw("Strict value is not equal to itself.") | |
1555 | 1555 | } | |
1556 | 1556 | else throw("Strict value is not equal to itself.") | |
1557 | 1557 | } | |
1558 | 1558 | else throw("Strict value is not equal to itself.") | |
1559 | 1559 | } | |
1560 | 1560 | else throw("Strict value is not equal to itself.") | |
1561 | 1561 | } | |
1562 | 1562 | else throw("Strict value is not equal to itself.") | |
1563 | 1563 | } | |
1564 | 1564 | else throw("Strict value is not equal to itself.") | |
1565 | 1565 | } | |
1566 | 1566 | ||
1567 | 1567 | ||
1568 | 1568 | ||
1569 | 1569 | @Callable(cU) | |
1570 | 1570 | func unstakeAndGetNoLess (hW,hX,hM) = { | |
1571 | 1571 | let hz = if (ba()) | |
1572 | 1572 | then true | |
1573 | 1573 | else (bp == s) | |
1574 | 1574 | let gN = [if (!(hz)) | |
1575 | 1575 | then true | |
1576 | 1576 | else throw("get operation is blocked by admin"), if ((size(cU.payments) == 0)) | |
1577 | 1577 | then true | |
1578 | 1578 | else throw("no payments are expected")] | |
1579 | 1579 | if ((gN == gN)) | |
1580 | 1580 | then { | |
1581 | 1581 | let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1582 | 1582 | if ((eW == eW)) | |
1583 | 1583 | then { | |
1584 | 1584 | let hS = invoke(bz, "unstake", [toBase58String(bq), hW], nil) | |
1585 | 1585 | if ((hS == hS)) | |
1586 | 1586 | then { | |
1587 | 1587 | let hY = di(toBase58String(cU.transactionId), toBase58String(bq), hW, cU.caller) | |
1588 | 1588 | let dE = hY._1 | |
1589 | 1589 | let dF = hY._2 | |
1590 | 1590 | let dG = hY._10 | |
1591 | 1591 | let hZ = [if ((dE >= hX)) | |
1592 | 1592 | then true | |
1593 | 1593 | else throw(makeString(["amount asset amount to receive is less than ", toString(hX)], "")), if ((dF >= hM)) | |
1594 | 1594 | then true | |
1595 | 1595 | else throw(makeString(["price asset amount to receive is less than ", toString(hM)], ""))] | |
1596 | 1596 | if ((hZ == hZ)) | |
1597 | 1597 | then { | |
1598 | 1598 | let hN = invoke(aV, "burn", [hW], [AttachedPayment(bq, hW)]) | |
1599 | 1599 | if ((hN == hN)) | |
1600 | 1600 | then { | |
1601 | 1601 | let ia = eX(-(dE), -(dF), 0) | |
1602 | 1602 | let gn = ia._1 | |
1603 | 1603 | let eO = ia._2 | |
1604 | 1604 | let go = fb(eW, eO) | |
1605 | 1605 | if ((go == go)) | |
1606 | 1606 | then (dG ++ gn) | |
1607 | 1607 | else throw("Strict value is not equal to itself.") | |
1608 | 1608 | } | |
1609 | 1609 | else throw("Strict value is not equal to itself.") | |
1610 | 1610 | } | |
1611 | 1611 | else throw("Strict value is not equal to itself.") | |
1612 | 1612 | } | |
1613 | 1613 | else throw("Strict value is not equal to itself.") | |
1614 | 1614 | } | |
1615 | 1615 | else throw("Strict value is not equal to itself.") | |
1616 | 1616 | } | |
1617 | 1617 | else throw("Strict value is not equal to itself.") | |
1618 | 1618 | } | |
1619 | 1619 | ||
1620 | 1620 | ||
1621 | 1621 | ||
1622 | 1622 | @Callable(cU) | |
1623 | 1623 | func unstakeAndGetOneTknV2 (hW,fQ,fR) = { | |
1624 | 1624 | let hn = { | |
1625 | 1625 | let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1626 | 1626 | if ($isInstanceOf(aX, "Boolean")) | |
1627 | 1627 | then aX | |
1628 | 1628 | else throw(($getType(aX) + " couldn't be cast to Boolean")) | |
1629 | 1629 | } | |
1630 | 1630 | let hz = if (if (ba()) | |
1631 | 1631 | then true | |
1632 | 1632 | else (bp == s)) | |
1633 | 1633 | then true | |
1634 | 1634 | else hn | |
1635 | 1635 | let gN = [if (if (!(hz)) | |
1636 | 1636 | then true | |
1637 | 1637 | else gt(cU)) | |
1638 | 1638 | then true | |
1639 | 1639 | else aS("get operation is blocked by admin"), if ((size(cU.payments) == 0)) | |
1640 | 1640 | then true | |
1641 | 1641 | else aS("no payments are expected")] | |
1642 | 1642 | if ((gN == gN)) | |
1643 | 1643 | then { | |
1644 | 1644 | let hQ = bx() | |
1645 | 1645 | let hd = bq | |
1646 | 1646 | let hR = valueOrErrorMessage(addressFromString(hQ[C]), "Wr st addr") | |
1647 | 1647 | let dm = cU.caller | |
1648 | 1648 | let ib = this | |
1649 | 1649 | let hS = invoke(hR, "unstakeINTERNAL", [hd, hW, dm.bytes, ib.bytes], nil) | |
1650 | 1650 | if ((hS == hS)) | |
1651 | 1651 | then { | |
1652 | 1652 | let ic = fP(fQ, fR, [AttachedPayment(hd, hW)], cU.caller, cU.originCaller, cU.transactionId) | |
1653 | 1653 | let dG = ic._1 | |
1654 | 1654 | let ga = ic._2 | |
1655 | 1655 | $Tuple2(dG, ga) | |
1656 | 1656 | } | |
1657 | 1657 | else throw("Strict value is not equal to itself.") | |
1658 | 1658 | } | |
1659 | 1659 | else throw("Strict value is not equal to itself.") | |
1660 | 1660 | } | |
1661 | 1661 | ||
1662 | 1662 | ||
1663 | 1663 | ||
1664 | 1664 | @Callable(cU) | |
1665 | 1665 | func putOneTknV2WithBonusREADONLY (id,ie) = { | |
1666 | 1666 | let if = fu(id, ie, "", "", true) | |
1667 | 1667 | let fJ = if._1 | |
1668 | 1668 | let dG = if._2 | |
1669 | 1669 | let cC = if._3 | |
1670 | 1670 | let fO = if._4 | |
1671 | 1671 | $Tuple2(nil, $Tuple3(fJ, cC, fO)) | |
1672 | 1672 | } | |
1673 | 1673 | ||
1674 | 1674 | ||
1675 | 1675 | ||
1676 | 1676 | @Callable(cU) | |
1677 | 1677 | func putOneTknV2WithoutTakeFeeREADONLY (id,ie) = { | |
1678 | 1678 | let ig = fu(id, ie, "", "", false) | |
1679 | 1679 | let fJ = ig._1 | |
1680 | 1680 | let dG = ig._2 | |
1681 | 1681 | let cC = ig._3 | |
1682 | 1682 | let fO = ig._4 | |
1683 | 1683 | $Tuple2(nil, $Tuple3(fJ, cC, fO)) | |
1684 | 1684 | } | |
1685 | 1685 | ||
1686 | 1686 | ||
1687 | 1687 | ||
1688 | 1688 | @Callable(cU) | |
1689 | 1689 | func activate (ih,ii) = if ((toString(cU.caller) != toString(aV))) | |
1690 | 1690 | then throw("denied") | |
1691 | 1691 | else $Tuple2([StringEntry(aj(), ih), StringEntry(ak(), ii)], "success") | |
1692 | 1692 | ||
1693 | 1693 | ||
1694 | 1694 | ||
1695 | 1695 | @Callable(cU) | |
1696 | 1696 | func setS (ij,hT) = if ((toString(cU.caller) != aO(this, ao()))) | |
1697 | 1697 | then gs | |
1698 | 1698 | else [StringEntry(ij, hT)] | |
1699 | 1699 | ||
1700 | 1700 | ||
1701 | 1701 | ||
1702 | 1702 | @Callable(cU) | |
1703 | 1703 | func setI (ij,hT) = if ((toString(cU.caller) != aO(this, ao()))) | |
1704 | 1704 | then gs | |
1705 | 1705 | else [IntegerEntry(ij, hT)] | |
1706 | 1706 | ||
1707 | 1707 | ||
1708 | 1708 | ||
1709 | 1709 | @Callable(cU) | |
1710 | 1710 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bd()) | |
1711 | 1711 | ||
1712 | 1712 | ||
1713 | 1713 | ||
1714 | 1714 | @Callable(cU) | |
1715 | 1715 | func getAccBalanceWrapperREADONLY (bT) = $Tuple2(nil, bS(bT)) | |
1716 | 1716 | ||
1717 | 1717 | ||
1718 | 1718 | ||
1719 | 1719 | @Callable(cU) | |
1720 | 1720 | func calcPricesWrapperREADONLY (cm,cn,cr) = { | |
1721 | 1721 | let ik = cq(cm, cn, cr) | |
1722 | 1722 | $Tuple2(nil, [toString(ik[0]), toString(ik[1]), toString(ik[2])]) | |
1723 | 1723 | } | |
1724 | 1724 | ||
1725 | 1725 | ||
1726 | 1726 | ||
1727 | 1727 | @Callable(cU) | |
1728 | 1728 | func fromX18WrapperREADONLY (M,il) = $Tuple2(nil, L(parseBigIntValue(M), il)) | |
1729 | 1729 | ||
1730 | 1730 | ||
1731 | 1731 | ||
1732 | 1732 | @Callable(cU) | |
1733 | 1733 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1734 | 1734 | ||
1735 | 1735 | ||
1736 | 1736 | ||
1737 | 1737 | @Callable(cU) | |
1738 | 1738 | func calcPriceBigIntWrapperREADONLY (bV,bW) = $Tuple2(nil, toString(bU(parseBigIntValue(bV), parseBigIntValue(bW)))) | |
1739 | 1739 | ||
1740 | 1740 | ||
1741 | 1741 | ||
1742 | 1742 | @Callable(cU) | |
1743 | 1743 | func estimatePutOperationWrapperREADONLY (dj,cb,dI,dJ,dK,dL,im,dM,dN) = $Tuple2(nil, dH(dj, cb, dI, dJ, dK, dL, im, dM, dN, true, false, 0, "")) | |
1744 | 1744 | ||
1745 | 1745 | ||
1746 | 1746 | ||
1747 | 1747 | @Callable(cU) | |
1748 | 1748 | func estimateGetOperationWrapperREADONLY (dj,in,dl,im) = { | |
1749 | 1749 | let ec = di(dj, in, dl, addressFromStringValue(im)) | |
1750 | 1750 | $Tuple2(nil, $Tuple10(ec._1, ec._2, ec._3, ec._4, ec._5, ec._6, ec._7, toString(ec._8), ec._9, ec._10)) | |
1751 | 1751 | } | |
1752 | 1752 | ||
1753 | 1753 | ||
1754 | 1754 | ||
1755 | 1755 | @Callable(cU) | |
1756 | 1756 | func changeAmp () = { | |
1757 | - | let io = { | |
1758 | - | let gq = "1__2__3" | |
1757 | + | let io = invoke(aV, "getChangeAmpConfigREADONLY", [toString(this)], nil) | |
1758 | + | let ip = { | |
1759 | + | let gq = io | |
1759 | 1760 | if ($isInstanceOf(gq, "String")) | |
1760 | 1761 | then { | |
1761 | - | let cH = gq | |
1762 | - | cH | |
1762 | + | let iq = gq | |
1763 | + | let ir = split(iq, n) | |
1764 | + | $Tuple3(parseIntValue(ir[0]), parseIntValue(ir[1]), parseIntValue(ir[2])) | |
1763 | 1765 | } | |
1764 | 1766 | else throw("invalid entry type") | |
1765 | 1767 | } | |
1766 | - | if ((io == io)) | |
1768 | + | let is = ip._1 | |
1769 | + | let it = ip._2 | |
1770 | + | let iu = ip._3 | |
1771 | + | let iv = parseIntValue(getStringValue(al())) | |
1772 | + | let iw = (iv + it) | |
1773 | + | let ix = if ((0 > it)) | |
1774 | + | then if ((iu > iw)) | |
1775 | + | then iu | |
1776 | + | else iw | |
1777 | + | else if ((iw > iu)) | |
1778 | + | then iu | |
1779 | + | else iw | |
1780 | + | if ((ix == ix)) | |
1767 | 1781 | then { | |
1768 | - | let ip = split(io, n) | |
1769 | - | if ((ip == ip)) | |
1770 | - | then { | |
1771 | - | let iq = parseIntValue(ip[0]) | |
1772 | - | if ((iq == iq)) | |
1773 | - | then { | |
1774 | - | let ir = parseIntValue(ip[1]) | |
1775 | - | if ((ir == ir)) | |
1776 | - | then { | |
1777 | - | let is = parseIntValue(ip[2]) | |
1778 | - | if ((is == is)) | |
1779 | - | then { | |
1780 | - | let it = parseIntValue(getStringValue(al())) | |
1781 | - | if ((it == it)) | |
1782 | - | then { | |
1783 | - | let iu = valueOrElse(getInteger(ap()), 0) | |
1784 | - | if ((iu == iu)) | |
1785 | - | then { | |
1786 | - | let iv = (it + ir) | |
1787 | - | if ((iv == iv)) | |
1788 | - | then { | |
1789 | - | let iw = if ((0 > ir)) | |
1790 | - | then if ((is > iv)) | |
1791 | - | then is | |
1792 | - | else iv | |
1793 | - | else if ((iv > is)) | |
1794 | - | then is | |
1795 | - | else iv | |
1796 | - | if ((iw == iw)) | |
1797 | - | then { | |
1798 | - | let ix = (iu + iq) | |
1799 | - | if ((ix == ix)) | |
1800 | - | then { | |
1801 | - | let gN = [if ((it != iw)) | |
1802 | - | then true | |
1803 | - | else aS("already reached target")] | |
1804 | - | if ((gN == gN)) | |
1805 | - | then { | |
1806 | - | let iy = if ((1000000000 > ix)) | |
1807 | - | then unit | |
1808 | - | else throw("err") | |
1809 | - | if ((iy == iy)) | |
1810 | - | then { | |
1811 | - | let iz = throw("6") | |
1812 | - | if ((iz == iz)) | |
1813 | - | then [IntegerEntry(ap(), an), StringEntry(al(), toString(iw)), StringEntry(am(an), toString(iw))] | |
1814 | - | else throw("Strict value is not equal to itself.") | |
1815 | - | } | |
1816 | - | else throw("Strict value is not equal to itself.") | |
1817 | - | } | |
1818 | - | else throw("Strict value is not equal to itself.") | |
1819 | - | } | |
1820 | - | else throw("Strict value is not equal to itself.") | |
1821 | - | } | |
1822 | - | else throw("Strict value is not equal to itself.") | |
1823 | - | } | |
1824 | - | else throw("Strict value is not equal to itself.") | |
1825 | - | } | |
1826 | - | else throw("Strict value is not equal to itself.") | |
1827 | - | } | |
1828 | - | else throw("Strict value is not equal to itself.") | |
1829 | - | } | |
1830 | - | else throw("Strict value is not equal to itself.") | |
1831 | - | } | |
1832 | - | else throw("Strict value is not equal to itself.") | |
1833 | - | } | |
1834 | - | else throw("Strict value is not equal to itself.") | |
1835 | - | } | |
1782 | + | let iy = valueOrElse(getInteger(ap()), 0) | |
1783 | + | let iz = (iy + is) | |
1784 | + | let gN = [if ((1000000000 > iz)) | |
1785 | + | then true | |
1786 | + | else aS("try again in few blocks"), if ((iv != ix)) | |
1787 | + | then true | |
1788 | + | else aS("already reached target")] | |
1789 | + | if ((gN == gN)) | |
1790 | + | then [IntegerEntry(ap(), an), StringEntry(al(), toString(ix)), StringEntry(am(an), toString(ix))] | |
1836 | 1791 | else throw("Strict value is not equal to itself.") | |
1837 | 1792 | } | |
1838 | 1793 | else throw("Strict value is not equal to itself.") | |
1839 | 1794 | } | |
1840 | 1795 | ||
1841 | 1796 | ||
1842 | 1797 | @Verifier(iA) | |
1843 | 1798 | func iB () = { | |
1844 | 1799 | let iC = { | |
1845 | 1800 | let gq = gp() | |
1846 | 1801 | if ($isInstanceOf(gq, "ByteVector")) | |
1847 | 1802 | then { | |
1848 | 1803 | let gu = gq | |
1849 | 1804 | gu | |
1850 | 1805 | } | |
1851 | 1806 | else if ($isInstanceOf(gq, "Unit")) | |
1852 | 1807 | then iA.senderPublicKey | |
1853 | 1808 | else throw("Match error") | |
1854 | 1809 | } | |
1855 | 1810 | let gq = iA | |
1856 | 1811 | if ($isInstanceOf(gq, "Order")) | |
1857 | 1812 | then { | |
1858 | 1813 | let fe = gq | |
1859 | 1814 | let iD = bb() | |
1860 | 1815 | let iE = if (gB()) | |
1861 | 1816 | then $Tuple2(true, "") | |
1862 | 1817 | else fd(fe) | |
1863 | 1818 | let aK = iE._1 | |
1864 | 1819 | let aL = iE._2 | |
1865 | 1820 | let aM = sigVerify(fe.bodyBytes, fe.proofs[0], fe.senderPublicKey) | |
1866 | 1821 | let aN = sigVerify(fe.bodyBytes, fe.proofs[1], iD) | |
1867 | 1822 | if (if (if (aK) | |
1868 | 1823 | then aM | |
1869 | 1824 | else false) | |
1870 | 1825 | then aN | |
1871 | 1826 | else false) | |
1872 | 1827 | then true | |
1873 | 1828 | else aJ(aK, aL, aM, aN) | |
1874 | 1829 | } | |
1875 | 1830 | else if ($isInstanceOf(gq, "SetScriptTransaction")) | |
1876 | 1831 | then { | |
1877 | 1832 | let cH = gq | |
1878 | 1833 | if (sigVerify(iA.bodyBytes, iA.proofs[0], iC)) | |
1879 | 1834 | then true | |
1880 | 1835 | else { | |
1881 | 1836 | let iF = blake2b256(value(cH.script)) | |
1882 | 1837 | let iG = fromBase64String(value(getString(aV, aF()))) | |
1883 | 1838 | let iH = scriptHash(this) | |
1884 | 1839 | if ((iG == iF)) | |
1885 | 1840 | then (iH != iF) | |
1886 | 1841 | else false | |
1887 | 1842 | } | |
1888 | 1843 | } | |
1889 | 1844 | else sigVerify(iA.bodyBytes, iA.proofs[0], iC) | |
1890 | 1845 | } | |
1891 | 1846 |
github/deemru/w8io/026f985 162.34 ms ◑