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