tx · 9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX: -0.14000000 Waves 2023.01.19 16:09 [2411854] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves
{ "type": 13, "id": "9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt", "fee": 14000000, "feeAssetId": null, "timestamp": 1674133724925, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "4LydYmwtVy7CCnnBXTpSrMsj8JAQaJZrCdHZRvGZqwrrW9WkXdHK7naAcnpuZPg9nWv1JYSH9SmAZG9oReWvVB1K", "48cEwEAk5VuVUa19ryUrvcQK4w3pJx1urJsDsWosHTwP12z6RF5EAD4LVkSVYXiRLiA4YgMkFMuDTUCNr4D7LeD8" ], "script": "base64:BgJJCAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIEgASBAoCAQESAG0AB3ZlcnNpb24CBTIuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9hc3NldF9zdXBwbHkABGtGZWUCCmNvbW1pc3Npb24ACmtJb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W52CGZ1bmN0aW9uAhl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQNc2lnbmVkQnlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zvhr87A==", "height": 2411854, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg Next: DTkeuiaWyQGRdw5pq5R9CRxJB5qk4hxC1egj86hqmBDc Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | let d = "active_all_contracts" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "deprecated_" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "A_asset_id" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "B_asset_id" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "A_asset_balance" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "B_asset_balance" | |
21 | 21 | ||
22 | - | let j = "share_asset_ | |
22 | + | let j = "share_asset_id" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "share_asset_supply" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "commission" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "invariant" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "shutdown_cause" | |
31 | 31 | ||
32 | - | let o = "staking_ | |
32 | + | let o = "staking_usdnnsbt_address" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "staking_eurn_address" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "discounts" | |
37 | 37 | ||
38 | - | let r = "_ | |
38 | + | let r = "discount_values" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_SWOP_amount" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "_GSwop_amount" | |
43 | 43 | ||
44 | - | let u = "first_harvest | |
44 | + | let u = "first_harvest" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "first_harvest_height" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "share_limit_on_first_harvest" | |
49 | 49 | ||
50 | - | let x = "period | |
50 | + | let x = "base_period" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "period_length" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "start_height" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "dApp_threshold" | |
57 | 57 | ||
58 | - | let B = "admin_pub_ | |
58 | + | let B = "admin_pub_1" | |
59 | 59 | ||
60 | - | let C = "admin_pub_ | |
60 | + | let C = "admin_pub_2" | |
61 | 61 | ||
62 | - | let D = "admin_ | |
62 | + | let D = "admin_pub_3" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "admin_invoke_pub" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "money_box_address" | |
67 | 67 | ||
68 | - | let G = " | |
68 | + | let G = "governance_address" | |
69 | 69 | ||
70 | - | let H = " | |
70 | + | let H = "farming_address" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "voting_address" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "usdn_asset_id" | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = "staking_assets" | |
77 | 77 | ||
78 | - | func L (M) = { | |
79 | - | let N = getString(K, M) | |
80 | - | if ($isInstanceOf(N, "String")) | |
78 | + | let L = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
79 | + | ||
80 | + | func M (N) = { | |
81 | + | let O = getString(L, N) | |
82 | + | if ($isInstanceOf(O, "String")) | |
81 | 83 | then { | |
82 | - | let | |
83 | - | fromBase58String( | |
84 | + | let P = O | |
85 | + | fromBase58String(P) | |
84 | 86 | } | |
85 | 87 | else { | |
86 | - | let | |
87 | - | throw(( | |
88 | + | let Q = O | |
89 | + | throw((N + "is empty")) | |
88 | 90 | } | |
89 | 91 | } | |
90 | 92 | ||
91 | 93 | ||
92 | - | let | |
94 | + | let R = M(B) | |
93 | 95 | ||
94 | - | let | |
96 | + | let S = M(C) | |
95 | 97 | ||
96 | - | let | |
98 | + | let T = M(D) | |
97 | 99 | ||
98 | - | let | |
100 | + | let U = M(E) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = Address(M(F)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = Address(M(G)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = Address(M(o)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(M(I)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = Address(M(H)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = M(J) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = getStringValue(L, K) | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = valueOrErrorMessage(getInteger(Y, x), "Empty kBasePeriod") | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = valueOrErrorMessage(getInteger(Y, z), "Empty kStartHeight") | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = valueOrErrorMessage(getInteger(Y, y), "Empty kPeriodLength") | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = ((ac + ((height - ad) / ae)) + 3) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = getBooleanValue(this, c) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = valueOrElse(getBoolean(L, d), true) | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = valueOrElse(getBoolean(L, (e + toString(this))), false) | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = getStringValue(this, f) | |
129 | 131 | ||
130 | - | let aj = if ((ah == "WAVES")) | |
132 | + | let ak = getStringValue(this, g) | |
133 | + | ||
134 | + | let al = if ((aj == "WAVES")) | |
131 | 135 | then unit | |
132 | - | else fromBase58String( | |
136 | + | else fromBase58String(aj) | |
133 | 137 | ||
134 | - | let | |
138 | + | let am = if ((ak == "WAVES")) | |
135 | 139 | then unit | |
136 | - | else fromBase58String( | |
140 | + | else fromBase58String(ak) | |
137 | 141 | ||
138 | - | let | |
139 | - | let | |
140 | - | if ($isInstanceOf( | |
142 | + | let an = { | |
143 | + | let O = al | |
144 | + | if ($isInstanceOf(O, "ByteVector")) | |
141 | 145 | then { | |
142 | - | let | |
143 | - | value(assetInfo( | |
146 | + | let ao = O | |
147 | + | value(assetInfo(ao)).name | |
144 | 148 | } | |
145 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(O, "Unit")) | |
146 | 150 | then { | |
147 | - | let | |
151 | + | let ap = O | |
148 | 152 | "WAVES" | |
149 | 153 | } | |
150 | 154 | else throw("Match error") | |
151 | 155 | } | |
152 | 156 | ||
153 | - | let | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
157 | + | let aq = { | |
158 | + | let O = am | |
159 | + | if ($isInstanceOf(O, "ByteVector")) | |
156 | 160 | then { | |
157 | - | let | |
158 | - | value(assetInfo( | |
161 | + | let ao = O | |
162 | + | value(assetInfo(ao)).name | |
159 | 163 | } | |
160 | - | else if ($isInstanceOf( | |
164 | + | else if ($isInstanceOf(O, "Unit")) | |
161 | 165 | then { | |
162 | - | let | |
166 | + | let ap = O | |
163 | 167 | "WAVES" | |
164 | 168 | } | |
165 | 169 | else throw("Match error") | |
166 | 170 | } | |
167 | 171 | ||
168 | - | let | |
172 | + | let ar = getIntegerValue(this, h) | |
169 | 173 | ||
170 | - | let | |
174 | + | let as = getIntegerValue(this, i) | |
171 | 175 | ||
172 | - | let ar = fromBase58String(getStringValue(this, i)) | |
173 | - | ||
174 | - | let as = getIntegerValue(this, j) | |
175 | - | ||
176 | - | let at = getIntegerValue(this, l) | |
176 | + | let at = fromBase58String(getStringValue(this, j)) | |
177 | 177 | ||
178 | 178 | let au = getIntegerValue(this, k) | |
179 | 179 | ||
180 | - | let av = | |
180 | + | let av = getIntegerValue(this, m) | |
181 | 181 | ||
182 | - | let aw = | |
182 | + | let aw = getIntegerValue(this, l) | |
183 | 183 | ||
184 | - | let ax = | |
184 | + | let ax = fraction(aw, 40, 100) | |
185 | 185 | ||
186 | - | let ay = | |
186 | + | let ay = 1000000 | |
187 | 187 | ||
188 | - | let az = | |
188 | + | let az = 1000 | |
189 | 189 | ||
190 | - | let aA = | |
190 | + | let aA = 100000000 | |
191 | 191 | ||
192 | - | let aB = | |
192 | + | let aB = 10000000000000000 | |
193 | 193 | ||
194 | - | let aC = | |
194 | + | let aC = 8 | |
195 | 195 | ||
196 | - | let aD = | |
196 | + | let aD = 60000000 | |
197 | 197 | ||
198 | - | let aE = | |
198 | + | let aE = 140000000 | |
199 | 199 | ||
200 | - | let aF = | |
200 | + | let aF = 50 | |
201 | 201 | ||
202 | - | func aG (aH) = { | |
203 | - | let N = aH | |
204 | - | if ($isInstanceOf(N, "ByteVector")) | |
202 | + | let aG = 2 | |
203 | + | ||
204 | + | let aH = 4600000000000000 | |
205 | + | ||
206 | + | func aI (aJ) = { | |
207 | + | let O = aJ | |
208 | + | if ($isInstanceOf(O, "ByteVector")) | |
205 | 209 | then { | |
206 | - | let | |
207 | - | assetBalance(this, | |
210 | + | let ao = O | |
211 | + | assetBalance(this, ao) | |
208 | 212 | } | |
209 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(O, "Unit")) | |
210 | 214 | then { | |
211 | - | let | |
215 | + | let ap = O | |
212 | 216 | wavesBalance(this).available | |
213 | 217 | } | |
214 | 218 | else throw("Match error") | |
215 | 219 | } | |
216 | 220 | ||
217 | 221 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | if ($isInstanceOf( | |
222 | + | func aK (aJ) = { | |
223 | + | let aL = { | |
224 | + | let O = aJ | |
225 | + | if ($isInstanceOf(O, "ByteVector")) | |
222 | 226 | then { | |
223 | - | let | |
224 | - | if (( | |
225 | - | then getInteger( | |
227 | + | let aM = O | |
228 | + | if ((aM == aa)) | |
229 | + | then getInteger(X, ((("rpd_balance_" + toBase58String(aM)) + "_") + toString(this))) | |
226 | 230 | else 0 | |
227 | 231 | } | |
228 | - | else if ($isInstanceOf( | |
232 | + | else if ($isInstanceOf(O, "Unit")) | |
229 | 233 | then 0 | |
230 | 234 | else throw("Match error") | |
231 | 235 | } | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
236 | + | let O = aL | |
237 | + | if ($isInstanceOf(O, "Int")) | |
234 | 238 | then { | |
235 | - | let | |
236 | - | | |
239 | + | let aN = O | |
240 | + | aN | |
237 | 241 | } | |
238 | 242 | else 0 | |
239 | 243 | } | |
240 | 244 | ||
241 | 245 | ||
242 | - | let | |
246 | + | let aO = aK(al) | |
243 | 247 | ||
244 | - | let | |
248 | + | let aP = aK(am) | |
245 | 249 | ||
246 | - | let | |
250 | + | let aQ = (ar - aO) | |
247 | 251 | ||
248 | - | let | |
252 | + | let aR = (as - aP) | |
249 | 253 | ||
250 | - | let | |
254 | + | let aS = (aI(al) + aO) | |
251 | 255 | ||
252 | - | let | |
256 | + | let aT = (aI(am) + aP) | |
253 | 257 | ||
254 | - | let | |
255 | - | then ( | |
258 | + | let aU = if ((aS >= ar)) | |
259 | + | then (aT >= as) | |
256 | 260 | else false | |
257 | 261 | ||
258 | - | func | |
262 | + | func aV (aW,aX) = ((fraction(aB, aW, aX) + fraction(aB, aX, aW)) / 2) | |
259 | 263 | ||
260 | 264 | ||
261 | - | func | |
262 | - | let | |
263 | - | (fraction(( | |
265 | + | func aY (aW,aX) = { | |
266 | + | let aZ = aV(aW, aX) | |
267 | + | (fraction((aW + aX), aB, pow(aZ, aC, aF, aG, aC, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aW), toBigInt(aX), toBigInt(aA)), 0, toBigInt(5), 1, (aC / 2), DOWN)), pow((aZ - aH), aC, aF, aG, aC, DOWN), aA))) | |
264 | 268 | } | |
265 | 269 | ||
266 | 270 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | func | |
271 | + | func ba (bb,bc,bd,be,bf,bg,bh) = { | |
272 | + | let bi = (aB - ((aB * 1) / 10000000)) | |
273 | + | let bj = (bb - bc) | |
274 | + | let aW = (bf + bd) | |
275 | + | let aX = (bg + bd) | |
276 | + | func bk (bl,bm) = if ((bl._1 == -1)) | |
273 | 277 | then { | |
274 | - | let | |
275 | - | let | |
276 | - | then aW | |
277 | - | else | |
278 | - | if (( | |
279 | - | then $Tuple2( | |
278 | + | let bn = (bb - (((bm * bj) / 3) / az)) | |
279 | + | let bo = if ((be == al)) | |
280 | + | then aY(aW, (bg - bn)) | |
281 | + | else aY((bf - bn), aX) | |
282 | + | if ((bo > bh)) | |
283 | + | then $Tuple2(bn, bo) | |
280 | 284 | else $Tuple2(-1, 0) | |
281 | 285 | } | |
282 | - | else | |
286 | + | else bl | |
283 | 287 | ||
284 | - | let | |
285 | - | if ((0 > | |
288 | + | let bp = bk($Tuple2(-1, 0), 3000) | |
289 | + | if ((0 > bp._1)) | |
286 | 290 | then throw("Price is worse than minReceived") | |
287 | 291 | else { | |
288 | - | let | |
289 | - | then aW | |
290 | - | else if (( | |
291 | - | then | |
292 | + | let bq = if ((be == al)) | |
293 | + | then aY(aW, (bg - bb)) | |
294 | + | else if ((be == am)) | |
295 | + | then aY((bf - bb), aX) | |
292 | 296 | else throw("Wrong asset in payment") | |
293 | - | if (( | |
294 | - | then if (( | |
297 | + | if ((bh > bq)) | |
298 | + | then if ((bi >= fraction(aB, bh, bq))) | |
295 | 299 | then throw("The requested price is too not profitable for user") | |
296 | 300 | else { | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | func | |
302 | - | then | |
303 | - | else | |
301 | + | let br = { | |
302 | + | let bs = [25, 200, 500] | |
303 | + | let bt = size(bs) | |
304 | + | let bu = $Tuple2(-1, 0) | |
305 | + | func bv (bw,bx) = if ((bx >= bt)) | |
306 | + | then bw | |
307 | + | else bk(bw, bs[bx]) | |
304 | 308 | ||
305 | - | func | |
306 | - | then | |
309 | + | func by (bw,bx) = if ((bx >= bt)) | |
310 | + | then bw | |
307 | 311 | else throw("List size exceeds 3") | |
308 | 312 | ||
309 | - | | |
313 | + | by(bv(bv(bv(bu, 0), 1), 2), 3) | |
310 | 314 | } | |
311 | - | if ((0 > | |
312 | - | then | |
313 | - | else | |
315 | + | if ((0 > br._1)) | |
316 | + | then bp._1 | |
317 | + | else br._1 | |
314 | 318 | } | |
315 | 319 | else { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | func | |
321 | - | then | |
322 | - | else | |
320 | + | let br = { | |
321 | + | let bs = [-500, -200, -25] | |
322 | + | let bt = size(bs) | |
323 | + | let bu = $Tuple2(-1, 0) | |
324 | + | func bv (bw,bx) = if ((bx >= bt)) | |
325 | + | then bw | |
326 | + | else bk(bw, bs[bx]) | |
323 | 327 | ||
324 | - | func | |
325 | - | then | |
328 | + | func by (bw,bx) = if ((bx >= bt)) | |
329 | + | then bw | |
326 | 330 | else throw("List size exceeds 3") | |
327 | 331 | ||
328 | - | | |
332 | + | by(bv(bv(bv(bu, 0), 1), 2), 3) | |
329 | 333 | } | |
330 | - | let | |
331 | - | then $Tuple2( | |
332 | - | else | |
333 | - | if (( | |
334 | + | let bz = if ((0 > br._1)) | |
335 | + | then $Tuple2(bb, bq) | |
336 | + | else br | |
337 | + | if ((bi >= fraction(aB, bh, bz._2))) | |
334 | 338 | then throw("The requested price is too not profitable for user") | |
335 | - | else | |
339 | + | else bz._1 | |
336 | 340 | } | |
337 | 341 | } | |
338 | 342 | } | |
339 | 343 | ||
340 | 344 | ||
341 | - | func | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
345 | + | func bA (aJ) = { | |
346 | + | let O = aJ | |
347 | + | if ($isInstanceOf(O, "ByteVector")) | |
344 | 348 | then { | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | $Tuple3( | |
349 | + | let ao = O | |
350 | + | let bB = toBase58String(ao) | |
351 | + | let bC = valueOrErrorMessage(assetInfo(ao), (("Asset " + bB) + " doesn't exist")) | |
352 | + | $Tuple3(bB, bC.name, bC.decimals) | |
349 | 353 | } | |
350 | - | else if ($isInstanceOf( | |
354 | + | else if ($isInstanceOf(O, "Unit")) | |
351 | 355 | then { | |
352 | - | let | |
356 | + | let ap = O | |
353 | 357 | $Tuple3("WAVES", "WAVES", 8) | |
354 | 358 | } | |
355 | 359 | else throw("Match error") | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | - | func | |
363 | + | func bD (bE) = [BooleanEntry(c, false), StringEntry(n, bE)] | |
360 | 364 | ||
361 | 365 | ||
362 | - | func | |
366 | + | func bF () = throw("DApp is already active") | |
363 | 367 | ||
364 | 368 | ||
365 | - | func | |
366 | - | then | |
369 | + | func bG () = if (if (ag) | |
370 | + | then ah | |
367 | 371 | else false) | |
368 | 372 | then unit | |
369 | 373 | else throw("DApp is inactive at this moment") | |
370 | 374 | ||
371 | 375 | ||
372 | - | func bF (aL) = if (containsElement([Q, R, S], aL.callerPublicKey)) | |
376 | + | func bH () = if (!(ai)) | |
377 | + | then unit | |
378 | + | else throw("Pool is deprecated. Only withdraw action allowed.") | |
379 | + | ||
380 | + | ||
381 | + | func bI (aN) = if (containsElement([R, S, T], aN.callerPublicKey)) | |
373 | 382 | then unit | |
374 | 383 | else throw("Only admin can call this function") | |
375 | 384 | ||
376 | 385 | ||
377 | - | func | |
386 | + | func bJ (aN) = if ((this == aN.caller)) | |
378 | 387 | then unit | |
379 | 388 | else throw("Only contract itself can call this function") | |
380 | 389 | ||
381 | 390 | ||
382 | - | func | |
391 | + | func bK () = throw(((("Incorrect assets attached. Expected: " + aj) + " and ") + ak)) | |
383 | 392 | ||
384 | 393 | ||
385 | - | func | |
394 | + | func bL () = throw("One attached payment expected") | |
386 | 395 | ||
387 | 396 | ||
388 | - | func | |
397 | + | func bM () = bD(((((((((((((((("Suspicious state. Actual balances: " + toString(ar)) + " ") + an) + ", ") + toString(as)) + " ") + aq) + ". State: ") + toString(aI(al))) + " ") + an) + ", ") + toString(aI(am))) + " ") + aq)) | |
389 | 398 | ||
390 | 399 | ||
391 | - | func | |
392 | - | then $Tuple2("lockNeutrino", | |
393 | - | else $Tuple2("unlockNeutrino", | |
400 | + | func bN (bO,aJ) = if (bO) | |
401 | + | then $Tuple2("lockNeutrino", X) | |
402 | + | else $Tuple2("unlockNeutrino", X) | |
394 | 403 | ||
395 | 404 | ||
396 | - | func | |
405 | + | func bP (bO,bQ,aJ) = if (bO) | |
397 | 406 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | $Tuple4( | |
407 | + | let bR = bN(bO, aJ) | |
408 | + | let bS = bR._1 | |
409 | + | let bT = bR._2 | |
410 | + | $Tuple4(bS, bT, nil, [AttachedPayment(aJ, bQ)]) | |
402 | 411 | } | |
403 | 412 | else { | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | $Tuple4( | |
413 | + | let bU = bN(bO, aJ) | |
414 | + | let bS = bU._1 | |
415 | + | let bT = bU._2 | |
416 | + | $Tuple4(bS, bT, [bQ, toBase58String(aJ)], nil) | |
408 | 417 | } | |
409 | 418 | ||
410 | 419 | ||
411 | - | func | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | if (if (( | |
417 | - | then (parseIntValue( | |
420 | + | func bV (bW) = { | |
421 | + | let bX = valueOrElse(getInteger(W, (toString(bW) + s)), 0) | |
422 | + | let bY = valueOrElse(getInteger(W, (toString(bW) + t)), bX) | |
423 | + | let bZ = split(getStringValue(L, r), ",") | |
424 | + | let ca = split(getStringValue(L, q), ",") | |
425 | + | if (if ((bY >= parseIntValue(bZ[0]))) | |
426 | + | then (parseIntValue(bZ[1]) > bY) | |
418 | 427 | else false) | |
419 | - | then ( | |
420 | - | else if (if (( | |
421 | - | then (parseIntValue( | |
428 | + | then (ay - parseIntValue(ca[0])) | |
429 | + | else if (if ((bY >= parseIntValue(bZ[1]))) | |
430 | + | then (parseIntValue(bZ[2]) > bY) | |
422 | 431 | else false) | |
423 | - | then ( | |
424 | - | else if (if (( | |
425 | - | then (parseIntValue( | |
432 | + | then (ay - parseIntValue(ca[1])) | |
433 | + | else if (if ((bY >= parseIntValue(bZ[2]))) | |
434 | + | then (parseIntValue(bZ[3]) > bY) | |
426 | 435 | else false) | |
427 | - | then ( | |
428 | - | else if (if (( | |
429 | - | then (parseIntValue( | |
436 | + | then (ay - parseIntValue(ca[2])) | |
437 | + | else if (if ((bY >= parseIntValue(bZ[3]))) | |
438 | + | then (parseIntValue(bZ[4]) > bY) | |
430 | 439 | else false) | |
431 | - | then ( | |
432 | - | else if (( | |
433 | - | then ( | |
434 | - | else | |
440 | + | then (ay - parseIntValue(ca[3])) | |
441 | + | else if ((bY >= parseIntValue(bZ[4]))) | |
442 | + | then (ay - parseIntValue(ca[4])) | |
443 | + | else ay | |
435 | 444 | } | |
436 | 445 | ||
437 | 446 | ||
438 | - | func | |
439 | - | let | |
440 | - | let | |
441 | - | then ( | |
447 | + | func cb (cc,cd,ce) = { | |
448 | + | let cf = getIntegerValue(this, A) | |
449 | + | let cg = if (if ((ce == al)) | |
450 | + | then (cc > cd) | |
442 | 451 | else false) | |
443 | - | then fraction( | |
444 | - | else if (if (( | |
445 | - | then ( | |
452 | + | then fraction(cc, 1, cd, CEILING) | |
453 | + | else if (if ((ce == am)) | |
454 | + | then (cd > cc) | |
446 | 455 | else false) | |
447 | - | then fraction( | |
456 | + | then fraction(cd, 1, cc, CEILING) | |
448 | 457 | else 0 | |
449 | - | if (( | |
458 | + | if ((cg > cf)) | |
450 | 459 | then { | |
451 | - | let | |
452 | - | then $Tuple2( | |
453 | - | else $Tuple2( | |
454 | - | let | |
455 | - | let | |
456 | - | throw((((("Buying " + | |
460 | + | let ch = if ((ce == al)) | |
461 | + | then $Tuple2(aq, an) | |
462 | + | else $Tuple2(an, aq) | |
463 | + | let ci = ch._1 | |
464 | + | let cj = ch._2 | |
465 | + | throw((((("Buying " + ci) + " is temporarily unavailable due to the ") + cj) + " depeg")) | |
457 | 466 | } | |
458 | 467 | else true | |
459 | 468 | } | |
460 | 469 | ||
461 | 470 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
471 | + | func ck (aN,cl,cm) = { | |
472 | + | let cn = aN.payments[0].assetId | |
473 | + | let co = aN.payments[1].assetId | |
474 | + | let cp = fraction(aA, aN.payments[0].amount, ar) | |
475 | + | let cq = fraction(aA, aN.payments[1].amount, as) | |
476 | + | let cr = bA(cn) | |
477 | + | let cs = cr._1 | |
478 | + | let ct = cr._2 | |
479 | + | let cu = cr._3 | |
480 | + | let cv = bA(co) | |
481 | + | let cw = cv._1 | |
482 | + | let cx = cv._2 | |
483 | + | let cy = cv._3 | |
484 | + | let cz = if ((cq > cp)) | |
476 | 485 | then { | |
477 | - | let | |
478 | - | $Tuple5( | |
486 | + | let cA = fraction(as, cp, aA, CEILING) | |
487 | + | $Tuple5(aN.payments[0].amount, cA, (aN.payments[1].amount - cA), co, cp) | |
479 | 488 | } | |
480 | 489 | else { | |
481 | - | let | |
482 | - | $Tuple5( | |
490 | + | let cA = fraction(ar, cq, aA, CEILING) | |
491 | + | $Tuple5(cA, aN.payments[1].amount, (aN.payments[0].amount - cA), cn, cq) | |
483 | 492 | } | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | if (if ((size( | |
491 | - | then (size( | |
493 | + | let cB = cz._1 | |
494 | + | let cC = cz._2 | |
495 | + | let cD = cz._3 | |
496 | + | let cE = cz._4 | |
497 | + | let cF = cz._5 | |
498 | + | let cG = fraction(cF, au, aA) | |
499 | + | if (if ((size(aN.payments) != 2)) | |
500 | + | then (size(aN.payments) != 3) | |
492 | 501 | else false) | |
493 | 502 | then throw("Two or three payments expected") | |
494 | - | else if (if (( | |
503 | + | else if (if ((cn != al)) | |
495 | 504 | then true | |
496 | - | else ( | |
497 | - | then | |
498 | - | else if (( | |
505 | + | else (co != am)) | |
506 | + | then bK() | |
507 | + | else if ((cG == 0)) | |
499 | 508 | then throw("Too small amount to replenish") | |
500 | - | else if ((0 > | |
509 | + | else if ((0 > cD)) | |
501 | 510 | then throw("Change < 0") | |
502 | - | else if (!( | |
503 | - | then ([ScriptTransfer( | |
511 | + | else if (!(aU)) | |
512 | + | then ([ScriptTransfer(aN.caller, cB, cn), ScriptTransfer(aN.caller, cC, co)] ++ bM()) | |
504 | 513 | else { | |
505 | - | let | |
506 | - | then invoke(this, "stakeUnstake", [true, | |
514 | + | let cH = if (contains(ab, cs)) | |
515 | + | then invoke(this, "stakeUnstake", [true, cB, cs], nil) | |
507 | 516 | else 0 | |
508 | - | if (( | |
517 | + | if ((cH == cH)) | |
509 | 518 | then { | |
510 | - | let | |
511 | - | then invoke(this, "stakeUnstake", [true, | |
519 | + | let cI = if (contains(ab, cw)) | |
520 | + | then invoke(this, "stakeUnstake", [true, cC, cw], nil) | |
512 | 521 | else 0 | |
513 | - | if (( | |
522 | + | if ((cI == cI)) | |
514 | 523 | then { | |
515 | - | let | |
516 | - | if ( | |
524 | + | let cJ = [IntegerEntry(h, (ar + cB)), IntegerEntry(i, (as + cC)), IntegerEntry(k, (au + cG)), IntegerEntry(m, aY((ar + cB), (as + cC))), ScriptTransfer(aN.caller, cD, cE)] | |
525 | + | if (cl) | |
517 | 526 | then { | |
518 | - | let | |
519 | - | then [AttachedPayment(if (( | |
527 | + | let cK = ([AttachedPayment(at, cG)] ++ (if ((size(aN.payments) == 3)) | |
528 | + | then [AttachedPayment(if ((aN.payments[2].assetId == base58'')) | |
520 | 529 | then unit | |
521 | - | else | |
530 | + | else aN.payments[2].assetId, aN.payments[2].amount)] | |
522 | 531 | else nil)) | |
523 | - | let | |
524 | - | if (( | |
532 | + | let cL = invoke(this, "reissueShare", [cG], nil) | |
533 | + | if ((cL == cL)) | |
525 | 534 | then { | |
526 | - | let | |
527 | - | if (( | |
528 | - | then | |
535 | + | let cM = invoke(Z, "lockShareTokensFromPool", [aN.caller.bytes, toString(this), cm], cK) | |
536 | + | if ((cM == cM)) | |
537 | + | then cJ | |
529 | 538 | else throw("Strict value is not equal to itself.") | |
530 | 539 | } | |
531 | 540 | else throw("Strict value is not equal to itself.") | |
532 | 541 | } | |
533 | - | else ( | |
542 | + | else (cJ ++ [Reissue(at, cG, true), ScriptTransfer(aN.caller, cG, at)]) | |
534 | 543 | } | |
535 | 544 | else throw("Strict value is not equal to itself.") | |
536 | 545 | } | |
539 | 548 | } | |
540 | 549 | ||
541 | 550 | ||
542 | - | func | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
551 | + | func cN (aN,cO,cP,cl,cm) = { | |
552 | + | let cQ = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
553 | + | let cR = cQ._1 | |
554 | + | let ce = cQ._2 | |
555 | + | let cS = bA(ce) | |
556 | + | let cT = cS._1 | |
557 | + | let cU = cS._2 | |
558 | + | let cV = cS._3 | |
559 | + | let cW = 5000000 | |
560 | + | let cX = 50000000 | |
561 | + | let cY = if ((cX > cR)) | |
553 | 562 | then 100000 | |
554 | 563 | else 1 | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | if (( | |
559 | - | then throw((((("Payment amount " + toString( | |
560 | - | else if (if ((size( | |
561 | - | then (size( | |
564 | + | let cZ = (aA - ((aA * cY) / 10000000)) | |
565 | + | let da = (aA + ((aA * cY) / 10000000)) | |
566 | + | let db = (aA - ((aA * 1) / 10000000)) | |
567 | + | if ((cW > cR)) | |
568 | + | then throw((((("Payment amount " + toString(cR)) + " does not exceed the minimum amount of ") + toString(cW)) + " tokens")) | |
569 | + | else if (if ((size(aN.payments) != 1)) | |
570 | + | then (size(aN.payments) != 2) | |
562 | 571 | else false) | |
563 | 572 | then throw("One or two payments expected") | |
564 | - | else if (!( | |
565 | - | then ([ScriptTransfer( | |
566 | - | else if (if (( | |
567 | - | then ( | |
573 | + | else if (!(aU)) | |
574 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
575 | + | else if (if ((ce != al)) | |
576 | + | then (ce != am) | |
568 | 577 | else false) | |
569 | - | then | |
578 | + | then bK() | |
570 | 579 | else { | |
571 | - | let | |
572 | - | then $Tuple6(( | |
573 | - | else $Tuple6( | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | if (if (( | |
580 | + | let dc = if ((ce == al)) | |
581 | + | then $Tuple6((cR - cO), cP, (ar + cO), (as - cP), (ar + cR), as) | |
582 | + | else $Tuple6(cP, (cR - cO), (ar - cP), (as + cO), ar, (as + cR)) | |
583 | + | let dd = dc._1 | |
584 | + | let de = dc._2 | |
585 | + | let df = dc._3 | |
586 | + | let dg = dc._4 | |
587 | + | let cc = dc._5 | |
588 | + | let cd = dc._6 | |
589 | + | let dh = aY(df, dg) | |
590 | + | let di = (fraction(aB, df, dg) / fraction(aA, dd, de)) | |
591 | + | if (if ((db >= fraction(aA, av, dh))) | |
583 | 592 | then true | |
584 | - | else ( | |
593 | + | else (av > dh)) | |
585 | 594 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
586 | - | else if (if (( | |
595 | + | else if (if ((cZ > di)) | |
587 | 596 | then true | |
588 | - | else ( | |
597 | + | else (di > da)) | |
589 | 598 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
590 | - | else if (!( | |
599 | + | else if (!(cb(cc, cd, ce))) | |
591 | 600 | then throw() | |
592 | 601 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | then $Tuple3(( | |
602 | - | else $Tuple3(( | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | then invoke(this, "stakeUnstake", [true, | |
602 | + | let cp = fraction(dd, aA, df) | |
603 | + | let cq = fraction(de, aA, dg) | |
604 | + | let cG = fraction(min([cp, cq]), au, aA) | |
605 | + | let dj = fraction(cG, (ay - (aw / 2)), ay) | |
606 | + | let dk = fraction(cG, (ax / 2), ay) | |
607 | + | let dl = fraction(dk, ar, au) | |
608 | + | let dm = fraction(dk, as, au) | |
609 | + | let dn = if ((cT == aj)) | |
610 | + | then $Tuple3((cR - dl), dm, ak) | |
611 | + | else $Tuple3((cR - dm), dl, aj) | |
612 | + | let do = dn._1 | |
613 | + | let dp = dn._2 | |
614 | + | let dq = dn._3 | |
615 | + | let cH = if (contains(ab, cT)) | |
616 | + | then invoke(this, "stakeUnstake", [true, do, cT], nil) | |
608 | 617 | else 0 | |
609 | - | if (( | |
618 | + | if ((cH == cH)) | |
610 | 619 | then { | |
611 | - | let | |
612 | - | then invoke(this, "stakeUnstake", [false, | |
620 | + | let cI = if (contains(ab, dq)) | |
621 | + | then invoke(this, "stakeUnstake", [false, dp, dq], nil) | |
613 | 622 | else 0 | |
614 | - | if (( | |
623 | + | if ((cI == cI)) | |
615 | 624 | then { | |
616 | - | let | |
617 | - | if ( | |
625 | + | let cJ = [IntegerEntry(h, (cc - dl)), IntegerEntry(i, (cd - dm)), IntegerEntry(k, (au + dj)), IntegerEntry(m, aY((cc - dl), (cd - dm))), ScriptTransfer(V, dl, al), ScriptTransfer(V, dm, am)] | |
626 | + | if (cl) | |
618 | 627 | then { | |
619 | - | let | |
620 | - | then [AttachedPayment(if (( | |
628 | + | let cK = ([AttachedPayment(at, dj)] ++ (if ((size(aN.payments) == 2)) | |
629 | + | then [AttachedPayment(if ((aN.payments[1].assetId == base58'')) | |
621 | 630 | then unit | |
622 | - | else | |
631 | + | else aN.payments[1].assetId, aN.payments[1].amount)] | |
623 | 632 | else nil)) | |
624 | - | let | |
625 | - | if (( | |
633 | + | let cL = invoke(this, "reissueShare", [dj], nil) | |
634 | + | if ((cL == cL)) | |
626 | 635 | then { | |
627 | - | let | |
628 | - | if (( | |
629 | - | then | |
636 | + | let cM = invoke(Z, "lockShareTokensFromPool", [aN.caller.bytes, toString(this), cm], cK) | |
637 | + | if ((cM == cM)) | |
638 | + | then cJ | |
630 | 639 | else throw("Strict value is not equal to itself.") | |
631 | 640 | } | |
632 | 641 | else throw("Strict value is not equal to itself.") | |
633 | 642 | } | |
634 | - | else ( | |
643 | + | else (cJ ++ [Reissue(at, dj, true), ScriptTransfer(aN.caller, dj, at)]) | |
635 | 644 | } | |
636 | 645 | else throw("Strict value is not equal to itself.") | |
637 | 646 | } | |
641 | 650 | } | |
642 | 651 | ||
643 | 652 | ||
644 | - | func | |
645 | - | let | |
646 | - | then if (( | |
647 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
648 | - | else $Tuple2( | |
649 | - | else $Tuple2(0, | |
650 | - | let | |
651 | - | let | |
652 | - | if (!( | |
653 | - | then ([ScriptTransfer( | |
653 | + | func dr (aN,ds) = { | |
654 | + | let dt = if ((size(aN.payments) == 1)) | |
655 | + | then if ((aN.payments[0].assetId != at)) | |
656 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(at))) | |
657 | + | else $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
658 | + | else $Tuple2(0, at) | |
659 | + | let cR = dt._1 | |
660 | + | let ce = dt._2 | |
661 | + | if (!(aU)) | |
662 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
654 | 663 | else { | |
655 | - | let | |
656 | - | then invoke( | |
664 | + | let du = if ((ds > 0)) | |
665 | + | then invoke(Z, "withdrawShareTokensFromPool", [aN.caller.bytes, toString(this), ds], nil) | |
657 | 666 | else 0 | |
658 | - | if (( | |
667 | + | if ((du == du)) | |
659 | 668 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | then invoke(this, "stakeUnstake", [false, | |
669 | + | let dv = (cR + ds) | |
670 | + | let dw = fraction(dv, ar, au) | |
671 | + | let dx = fraction(dv, as, au) | |
672 | + | let dy = aY((ar - dw), (as - dx)) | |
673 | + | let cH = if (contains(ab, aj)) | |
674 | + | then invoke(this, "stakeUnstake", [false, dw, aj], nil) | |
666 | 675 | else 0 | |
667 | - | if (( | |
676 | + | if ((cH == cH)) | |
668 | 677 | then { | |
669 | - | let | |
670 | - | then invoke(this, "stakeUnstake", [false, | |
678 | + | let cI = if (contains(ab, ak)) | |
679 | + | then invoke(this, "stakeUnstake", [false, dx, ak], nil) | |
671 | 680 | else 0 | |
672 | - | if (( | |
673 | - | then [IntegerEntry( | |
681 | + | if ((cI == cI)) | |
682 | + | then [IntegerEntry(h, (ar - dw)), IntegerEntry(i, (as - dx)), IntegerEntry(k, (au - dv)), IntegerEntry(m, dy), Burn(at, dv), ScriptTransfer(aN.caller, dw, al), ScriptTransfer(aN.caller, dx, am)] | |
674 | 683 | else throw("Strict value is not equal to itself.") | |
675 | 684 | } | |
676 | 685 | else throw("Strict value is not equal to itself.") | |
680 | 689 | } | |
681 | 690 | ||
682 | 691 | ||
683 | - | @Callable( | |
684 | - | func init ( | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
692 | + | @Callable(aN) | |
693 | + | func init (dz) = { | |
694 | + | let dA = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
695 | + | let cB = dA._1 | |
696 | + | let cn = dA._2 | |
697 | + | let dB = $Tuple2(aN.payments[1].amount, aN.payments[1].assetId) | |
698 | + | let cC = dB._1 | |
699 | + | let co = dB._2 | |
700 | + | let dC = bA(cn) | |
701 | + | let cs = dC._1 | |
702 | + | let ct = dC._2 | |
703 | + | let cu = dC._3 | |
704 | + | let dD = bA(co) | |
705 | + | let cw = dD._1 | |
706 | + | let cx = dD._2 | |
707 | + | let cy = dD._3 | |
699 | 708 | if (isDefined(getBoolean(this, c))) | |
700 | - | then | |
701 | - | else if (( | |
709 | + | then bF() | |
710 | + | else if ((cn == co)) | |
702 | 711 | then throw("Assets must be different") | |
703 | 712 | else { | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | then invoke(this, "stakeUnstake", [true, | |
713 | + | let dE = ((("s" + take(ct, 7)) + "_") + take(cx, 7)) | |
714 | + | let dF = ((((("ShareToken of SwopFi protocol for " + ct) + " and ") + cx) + " at address ") + toString(this)) | |
715 | + | let dG = ((cu + cy) / 2) | |
716 | + | let dH = fraction(pow(cB, cu, 5, 1, cu, DOWN), pow(cC, cy, 5, 1, cy, DOWN), pow(10, 0, dG, 0, 0, DOWN)) | |
717 | + | let dI = Issue(dE, dF, dH, dG, true) | |
718 | + | let dJ = calculateAssetId(dI) | |
719 | + | let dy = aY(cB, cC) | |
720 | + | let cH = if (contains(ab, cs)) | |
721 | + | then invoke(this, "stakeUnstake", [true, cB, cs], nil) | |
713 | 722 | else 0 | |
714 | - | if (( | |
723 | + | if ((cH == cH)) | |
715 | 724 | then { | |
716 | - | let | |
717 | - | then invoke(this, "stakeUnstake", [true, | |
725 | + | let cI = if (contains(ab, cw)) | |
726 | + | then invoke(this, "stakeUnstake", [true, cC, cw], nil) | |
718 | 727 | else 0 | |
719 | - | if (( | |
728 | + | if ((cI == cI)) | |
720 | 729 | then { | |
721 | - | let | |
722 | - | if ( | |
723 | - | then ( | |
724 | - | else | |
730 | + | let dK = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(f, cs), StringEntry(g, cw), IntegerEntry(h, cB), IntegerEntry(i, cC), IntegerEntry(m, dy), IntegerEntry(l, getIntegerValue(L, "base_fee_flat")), IntegerEntry(A, 3), dI, StringEntry(j, toBase58String(dJ)), IntegerEntry(k, dH), ScriptTransfer(aN.caller, dH, dJ)] | |
731 | + | if (dz) | |
732 | + | then (dK ++ [BooleanEntry(u, dz), IntegerEntry(v, (ad + (af * ae)))]) | |
733 | + | else dK | |
725 | 734 | } | |
726 | 735 | else throw("Strict value is not equal to itself.") | |
727 | 736 | } | |
731 | 740 | ||
732 | 741 | ||
733 | 742 | ||
734 | - | @Callable( | |
735 | - | func replenishWithTwoTokensV2 ( | |
743 | + | @Callable(aN) | |
744 | + | func replenishWithTwoTokensV2 (cl,cm) = valueOrElse(bG(), valueOrElse(bH(), ck(aN, cl, cm))) | |
736 | 745 | ||
737 | 746 | ||
738 | 747 | ||
739 | - | @Callable( | |
740 | - | func replenishWithOneTokenV2 ( | |
748 | + | @Callable(aN) | |
749 | + | func replenishWithOneTokenV2 (cO,cP,cl,cm) = valueOrElse(bG(), valueOrElse(bH(), cN(aN, cO, cP, cl, cm))) | |
741 | 750 | ||
742 | 751 | ||
743 | 752 | ||
744 | - | @Callable( | |
745 | - | func withdrawV2 ( | |
753 | + | @Callable(aN) | |
754 | + | func withdrawV2 (ds) = valueOrElse(bG(), dr(aN, ds)) | |
746 | 755 | ||
747 | 756 | ||
748 | 757 | ||
749 | - | @Callable( | |
750 | - | func withdrawOneToken ( | |
751 | - | let | |
752 | - | then if (( | |
753 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
754 | - | else $Tuple2( | |
755 | - | else $Tuple2(0, | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | if (if (( | |
760 | - | then ( | |
758 | + | @Callable(aN) | |
759 | + | func withdrawOneToken (ds,dL,dM,dN) = valueOrElse(bG(), valueOrElse(bH(), { | |
760 | + | let dO = if ((size(aN.payments) == 1)) | |
761 | + | then if ((aN.payments[0].assetId != at)) | |
762 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(at))) | |
763 | + | else $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
764 | + | else $Tuple2(0, at) | |
765 | + | let cR = dO._1 | |
766 | + | let ce = dO._2 | |
767 | + | let dv = (cR + ds) | |
768 | + | if (if ((dL != aj)) | |
769 | + | then (dL != ak) | |
761 | 770 | else false) | |
762 | 771 | then throw("Incorrect withdraw asset") | |
763 | - | else if ((0 >= | |
772 | + | else if ((0 >= dv)) | |
764 | 773 | then throw("withdraw amount must be grater than 0") | |
765 | - | else if (!( | |
766 | - | then ([ScriptTransfer( | |
774 | + | else if (!(aU)) | |
775 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
767 | 776 | else { | |
768 | - | let | |
769 | - | then invoke( | |
777 | + | let du = if ((ds > 0)) | |
778 | + | then invoke(Z, "withdrawShareTokensFromPool", [aN.caller.bytes, toString(this), ds], nil) | |
770 | 779 | else 0 | |
771 | - | if (( | |
780 | + | if ((du == du)) | |
772 | 781 | then { | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | then | |
780 | - | else | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | then $Tuple4(( | |
785 | - | else $Tuple4(( | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (!( | |
782 | + | let dw = fraction(dv, ar, au) | |
783 | + | let dx = fraction(dv, as, au) | |
784 | + | let dP = (ar - dw) | |
785 | + | let dQ = (as - dx) | |
786 | + | let dR = bV(aN.originCaller) | |
787 | + | let dS = if ((dL == aj)) | |
788 | + | then ba(dM, dN, dx, am, dP, dQ, aY(dP, dQ)) | |
789 | + | else ba(dM, dN, dw, al, dP, dQ, aY(dP, dQ)) | |
790 | + | let dT = fraction(dS, fraction(ax, dR, ay, CEILING), ay) | |
791 | + | let dU = fraction(dS, (ay - fraction(aw, dR, ay, CEILING)), ay) | |
792 | + | let dV = if ((dL == aj)) | |
793 | + | then $Tuple4((dw + dU), (((ar - dw) - dU) - dT), as, am) | |
794 | + | else $Tuple4((dx + dU), ar, (((as - dx) - dU) - dT), al) | |
795 | + | let dW = dV._1 | |
796 | + | let dX = dV._2 | |
797 | + | let dY = dV._3 | |
798 | + | let dZ = dV._4 | |
799 | + | if (!(cb(dX, dY, dZ))) | |
791 | 800 | then throw() | |
792 | 801 | else { | |
793 | - | let | |
794 | - | let | |
795 | - | then invoke(this, "stakeUnstake", [false, ( | |
802 | + | let dy = aY(dX, dY) | |
803 | + | let cH = if (contains(ab, dL)) | |
804 | + | then invoke(this, "stakeUnstake", [false, (dW + dT), dL], nil) | |
796 | 805 | else 0 | |
797 | - | if (( | |
798 | - | then [IntegerEntry( | |
806 | + | if ((cH == cH)) | |
807 | + | then [IntegerEntry(h, dX), IntegerEntry(i, dY), IntegerEntry(k, (au - dv)), IntegerEntry(m, dy), Burn(at, dv), ScriptTransfer(aN.caller, dW, fromBase58String(dL)), ScriptTransfer(V, dT, fromBase58String(dL))] | |
799 | 808 | else throw("Strict value is not equal to itself.") | |
800 | 809 | } | |
801 | 810 | } | |
802 | 811 | else throw("Strict value is not equal to itself.") | |
803 | 812 | } | |
804 | - | }) | |
813 | + | })) | |
805 | 814 | ||
806 | 815 | ||
807 | 816 | ||
808 | - | @Callable( | |
809 | - | func exchange ( | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | if ((0 >= | |
814 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
815 | - | else if (( | |
817 | + | @Callable(aN) | |
818 | + | func exchange (dM,dN) = valueOrElse(bG(), valueOrElse(bH(), { | |
819 | + | let ea = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
820 | + | let cR = ea._1 | |
821 | + | let ce = ea._2 | |
822 | + | if ((0 >= dM)) | |
823 | + | then throw(("Estimated amount must be positive. Actual: " + toString(dM))) | |
824 | + | else if ((dN > dM)) | |
816 | 825 | then throw("Minimal amount can't be greater than estimated.") | |
817 | - | else if ((size( | |
818 | - | then | |
819 | - | else if (!( | |
820 | - | then ([ScriptTransfer( | |
821 | - | else if (if (( | |
822 | - | then ( | |
826 | + | else if ((size(aN.payments) != 1)) | |
827 | + | then bL() | |
828 | + | else if (!(aU)) | |
829 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
830 | + | else if (if ((ce != al)) | |
831 | + | then (ce != am) | |
823 | 832 | else false) | |
824 | - | then | |
825 | - | else if ((10000000 > | |
833 | + | then bK() | |
834 | + | else if ((10000000 > cR)) | |
826 | 835 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
827 | - | else if (if (( | |
836 | + | else if (if ((aD > fraction(aA, dN, cR))) | |
828 | 837 | then true | |
829 | - | else (fraction( | |
838 | + | else (fraction(aA, dM, cR) > aE)) | |
830 | 839 | then throw("Incorrect args and pmt ratio") | |
831 | 840 | else { | |
832 | - | let | |
833 | - | then | |
834 | - | else | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | then $Tuple2(( | |
841 | - | else $Tuple2((( | |
842 | - | let | |
843 | - | let | |
844 | - | if (!( | |
841 | + | let eb = if ((ce == al)) | |
842 | + | then am | |
843 | + | else al | |
844 | + | let bQ = ba(dM, dN, cR, ce, ar, as, av) | |
845 | + | let dR = bV(aN.originCaller) | |
846 | + | let ec = fraction(bQ, fraction(ax, dR, ay, CEILING), ay) | |
847 | + | let ed = fraction(bQ, (ay - fraction(aw, dR, ay, CEILING)), ay) | |
848 | + | let ee = if ((ce == al)) | |
849 | + | then $Tuple2((ar + cR), ((as - ed) - ec)) | |
850 | + | else $Tuple2(((ar - ed) - ec), (as + cR)) | |
851 | + | let cc = ee._1 | |
852 | + | let cd = ee._2 | |
853 | + | if (!(cb(cc, cd, ce))) | |
845 | 854 | then throw() | |
846 | 855 | else { | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then invoke(this, "stakeUnstake", [true, | |
856 | + | let ef = bA(ce) | |
857 | + | let cT = ef._1 | |
858 | + | let cU = ef._2 | |
859 | + | let cV = ef._3 | |
860 | + | let eg = bA(eb) | |
861 | + | let eh = eg._1 | |
862 | + | let ei = eg._2 | |
863 | + | let ej = eg._3 | |
864 | + | let cH = if (contains(ab, cT)) | |
865 | + | then invoke(this, "stakeUnstake", [true, cR, cT], nil) | |
857 | 866 | else 0 | |
858 | - | if (( | |
867 | + | if ((cH == cH)) | |
859 | 868 | then { | |
860 | - | let | |
861 | - | then invoke(this, "stakeUnstake", [false, ( | |
869 | + | let cI = if (contains(ab, eh)) | |
870 | + | then invoke(this, "stakeUnstake", [false, (ed + ec), eh], nil) | |
862 | 871 | else 0 | |
863 | - | if (( | |
864 | - | then $Tuple2([IntegerEntry( | |
872 | + | if ((cI == cI)) | |
873 | + | then $Tuple2([IntegerEntry(h, cc), IntegerEntry(i, cd), IntegerEntry(m, aY(cc, cd)), ScriptTransfer(aN.caller, ed, eb), ScriptTransfer(V, ec, eb)], [ed, eb]) | |
865 | 874 | else throw("Strict value is not equal to itself.") | |
866 | 875 | } | |
867 | 876 | else throw("Strict value is not equal to itself.") | |
868 | 877 | } | |
869 | 878 | } | |
870 | - | }) | |
879 | + | })) | |
871 | 880 | ||
872 | 881 | ||
873 | 882 | ||
874 | - | @Callable( | |
875 | - | func reissueShare ( | |
883 | + | @Callable(ek) | |
884 | + | func reissueShare (bQ) = valueOrElse(bJ(ek), [Reissue(at, bQ, true)]) | |
876 | 885 | ||
877 | 886 | ||
878 | 887 | ||
879 | - | @Callable( | |
880 | - | func shutdown () = valueOrElse( | |
881 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
882 | - | else | |
888 | + | @Callable(aN) | |
889 | + | func shutdown () = valueOrElse(bI(aN), if (!(ag)) | |
890 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
891 | + | else bD("Paused by admin")) | |
883 | 892 | ||
884 | 893 | ||
885 | 894 | ||
886 | - | @Callable( | |
887 | - | func activate () = valueOrElse( | |
888 | - | then | |
889 | - | else [BooleanEntry(c, true), DeleteEntry( | |
895 | + | @Callable(aN) | |
896 | + | func activate () = valueOrElse(bI(aN), if (ag) | |
897 | + | then bF() | |
898 | + | else [BooleanEntry(c, true), DeleteEntry(n)]) | |
890 | 899 | ||
891 | 900 | ||
892 | 901 | ||
893 | - | @Callable( | |
894 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
895 | - | let | |
902 | + | @Callable(aN) | |
903 | + | func takeIntoAccountExtraFunds () = valueOrElse(bG(), { | |
904 | + | let el = if (if ((al == aa)) | |
896 | 905 | then true | |
897 | - | else ( | |
898 | - | then invoke( | |
906 | + | else (am == aa)) | |
907 | + | then invoke(X, "claimRewards", nil, nil) | |
899 | 908 | else 0 | |
900 | - | if (( | |
909 | + | if ((el == el)) | |
901 | 910 | then { | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | if (( | |
911 | + | let em = (aS - ar) | |
912 | + | let en = (aT - as) | |
913 | + | let dh = aY((ar + em), (as + en)) | |
914 | + | if ((aN.caller != V)) | |
906 | 915 | then throw("Only the money box can call this function") | |
907 | - | else if (if ((0 > | |
916 | + | else if (if ((0 > em)) | |
908 | 917 | then true | |
909 | - | else (0 > | |
910 | - | then | |
911 | - | else if (if (( | |
912 | - | then ( | |
918 | + | else (0 > en)) | |
919 | + | then bD("Enroll amount negative") | |
920 | + | else if (if ((em == 0)) | |
921 | + | then (en == 0) | |
913 | 922 | else false) | |
914 | 923 | then throw("No money to take") | |
915 | 924 | else { | |
916 | - | let | |
917 | - | then ( | |
925 | + | let cH = if (if (contains(ab, aj)) | |
926 | + | then (em > 0) | |
918 | 927 | else false) | |
919 | - | then invoke(this, "stakeUnstake", [true, | |
928 | + | then invoke(this, "stakeUnstake", [true, em, aj], nil) | |
920 | 929 | else 0 | |
921 | - | if (( | |
930 | + | if ((cH == cH)) | |
922 | 931 | then { | |
923 | - | let | |
924 | - | then ( | |
932 | + | let cI = if (if (contains(ab, ak)) | |
933 | + | then (en > 0) | |
925 | 934 | else false) | |
926 | - | then invoke(this, "stakeUnstake", [true, | |
935 | + | then invoke(this, "stakeUnstake", [true, en, ak], nil) | |
927 | 936 | else 0 | |
928 | - | if (( | |
929 | - | then [IntegerEntry( | |
937 | + | if ((cI == cI)) | |
938 | + | then [IntegerEntry(m, dh), IntegerEntry(h, (ar + em)), IntegerEntry(i, (as + en))] | |
930 | 939 | else throw("Strict value is not equal to itself.") | |
931 | 940 | } | |
932 | 941 | else throw("Strict value is not equal to itself.") | |
937 | 946 | ||
938 | 947 | ||
939 | 948 | ||
940 | - | @Callable( | |
941 | - | func keepLimitForFirstHarvest ( | |
949 | + | @Callable(aN) | |
950 | + | func keepLimitForFirstHarvest (eo) = valueOrElse(bG(), valueOrElse(bI(aN), [IntegerEntry(w, eo)])) | |
942 | 951 | ||
943 | 952 | ||
944 | 953 | ||
945 | - | @Callable( | |
946 | - | func stakeUnstake ( | |
954 | + | @Callable(aN) | |
955 | + | func stakeUnstake (bO,bQ,ep) = if ((aN.caller != this)) | |
947 | 956 | then throw("Only contract itself can invoke this function") | |
948 | 957 | else { | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | if (( | |
958 | + | let eq = bP(bO, bQ, fromBase58String(ep)) | |
959 | + | let bS = eq._1 | |
960 | + | let er = eq._2 | |
961 | + | let es = eq._3 | |
962 | + | let et = eq._4 | |
963 | + | let eu = invoke(er, bS, es, et) | |
964 | + | if ((eu == eu)) | |
956 | 965 | then nil | |
957 | 966 | else throw("Strict value is not equal to itself.") | |
958 | 967 | } | |
959 | 968 | ||
960 | 969 | ||
961 | 970 | ||
962 | - | @Callable( | |
963 | - | func replenishWithTwoTokens () = valueOrElse( | |
971 | + | @Callable(aN) | |
972 | + | func replenishWithTwoTokens () = valueOrElse(bG(), valueOrElse(bH(), ck(aN, false, 0))) | |
964 | 973 | ||
965 | 974 | ||
966 | 975 | ||
967 | - | @Callable( | |
968 | - | func replenishWithOneToken ( | |
976 | + | @Callable(aN) | |
977 | + | func replenishWithOneToken (cO,cP) = valueOrElse(bG(), valueOrElse(bH(), cN(aN, cO, cP, false, 0))) | |
969 | 978 | ||
970 | 979 | ||
971 | 980 | ||
972 | - | @Callable( | |
973 | - | func withdraw () = valueOrElse( | |
981 | + | @Callable(aN) | |
982 | + | func withdraw () = valueOrElse(bG(), dr(aN, 0)) | |
974 | 983 | ||
975 | 984 | ||
976 | - | @Verifier( | |
977 | - | func | |
978 | - | let | |
979 | - | let | |
985 | + | @Verifier(ev) | |
986 | + | func ew () = { | |
987 | + | let ex = { | |
988 | + | let ey = if (sigVerify(ev.bodyBytes, ev.proofs[0], R)) | |
980 | 989 | then 1 | |
981 | 990 | else 0 | |
982 | - | let | |
991 | + | let ez = if (sigVerify(ev.bodyBytes, ev.proofs[1], S)) | |
983 | 992 | then 1 | |
984 | 993 | else 0 | |
985 | - | let | |
994 | + | let eA = if (sigVerify(ev.bodyBytes, ev.proofs[2], T)) | |
986 | 995 | then 1 | |
987 | 996 | else 0 | |
988 | - | ((( | |
997 | + | (((ey + ez) + eA) >= 2) | |
989 | 998 | } | |
990 | - | let | |
991 | - | if ($isInstanceOf( | |
999 | + | let O = ev | |
1000 | + | if ($isInstanceOf(O, "InvokeScriptTransaction")) | |
992 | 1001 | then { | |
993 | - | let | |
994 | - | let | |
995 | - | then ( | |
1002 | + | let eu = O | |
1003 | + | let eB = if ((eu.dApp == this)) | |
1004 | + | then (eu.function == "takeIntoAccountExtraFunds") | |
996 | 1005 | else false | |
997 | - | let | |
1006 | + | let eC = if (if (if (sigVerify(ev.bodyBytes, ev.proofs[0], R)) | |
998 | 1007 | then true | |
999 | - | else sigVerify( | |
1008 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], S)) | |
1000 | 1009 | then true | |
1001 | - | else sigVerify( | |
1010 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], T)) | |
1002 | 1011 | then true | |
1003 | - | else sigVerify( | |
1004 | - | if (if ( | |
1005 | - | then | |
1012 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], U) | |
1013 | + | if (if (eB) | |
1014 | + | then eC | |
1006 | 1015 | else false) | |
1007 | 1016 | then true | |
1008 | - | else | |
1017 | + | else ex | |
1009 | 1018 | } | |
1010 | - | else | |
1019 | + | else ex | |
1011 | 1020 | } | |
1012 | 1021 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "active_all_contracts" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "deprecated_" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "A_asset_id" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "B_asset_id" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "A_asset_balance" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "B_asset_balance" | |
21 | 21 | ||
22 | - | let j = "share_asset_ | |
22 | + | let j = "share_asset_id" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "share_asset_supply" | |
25 | 25 | ||
26 | - | let l = " | |
26 | + | let l = "commission" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "invariant" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "shutdown_cause" | |
31 | 31 | ||
32 | - | let o = "staking_ | |
32 | + | let o = "staking_usdnnsbt_address" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "staking_eurn_address" | |
35 | 35 | ||
36 | - | let q = " | |
36 | + | let q = "discounts" | |
37 | 37 | ||
38 | - | let r = "_ | |
38 | + | let r = "discount_values" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_SWOP_amount" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "_GSwop_amount" | |
43 | 43 | ||
44 | - | let u = "first_harvest | |
44 | + | let u = "first_harvest" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "first_harvest_height" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "share_limit_on_first_harvest" | |
49 | 49 | ||
50 | - | let x = "period | |
50 | + | let x = "base_period" | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "period_length" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "start_height" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "dApp_threshold" | |
57 | 57 | ||
58 | - | let B = "admin_pub_ | |
58 | + | let B = "admin_pub_1" | |
59 | 59 | ||
60 | - | let C = "admin_pub_ | |
60 | + | let C = "admin_pub_2" | |
61 | 61 | ||
62 | - | let D = "admin_ | |
62 | + | let D = "admin_pub_3" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "admin_invoke_pub" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "money_box_address" | |
67 | 67 | ||
68 | - | let G = " | |
68 | + | let G = "governance_address" | |
69 | 69 | ||
70 | - | let H = " | |
70 | + | let H = "farming_address" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "voting_address" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "usdn_asset_id" | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = "staking_assets" | |
77 | 77 | ||
78 | - | func L (M) = { | |
79 | - | let N = getString(K, M) | |
80 | - | if ($isInstanceOf(N, "String")) | |
78 | + | let L = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
79 | + | ||
80 | + | func M (N) = { | |
81 | + | let O = getString(L, N) | |
82 | + | if ($isInstanceOf(O, "String")) | |
81 | 83 | then { | |
82 | - | let | |
83 | - | fromBase58String( | |
84 | + | let P = O | |
85 | + | fromBase58String(P) | |
84 | 86 | } | |
85 | 87 | else { | |
86 | - | let | |
87 | - | throw(( | |
88 | + | let Q = O | |
89 | + | throw((N + "is empty")) | |
88 | 90 | } | |
89 | 91 | } | |
90 | 92 | ||
91 | 93 | ||
92 | - | let | |
94 | + | let R = M(B) | |
93 | 95 | ||
94 | - | let | |
96 | + | let S = M(C) | |
95 | 97 | ||
96 | - | let | |
98 | + | let T = M(D) | |
97 | 99 | ||
98 | - | let | |
100 | + | let U = M(E) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = Address(M(F)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = Address(M(G)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = Address(M(o)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(M(I)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = Address(M(H)) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = M(J) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = getStringValue(L, K) | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = valueOrErrorMessage(getInteger(Y, x), "Empty kBasePeriod") | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = valueOrErrorMessage(getInteger(Y, z), "Empty kStartHeight") | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = valueOrErrorMessage(getInteger(Y, y), "Empty kPeriodLength") | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = ((ac + ((height - ad) / ae)) + 3) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = getBooleanValue(this, c) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = valueOrElse(getBoolean(L, d), true) | |
125 | 127 | ||
126 | - | let | |
128 | + | let ai = valueOrElse(getBoolean(L, (e + toString(this))), false) | |
127 | 129 | ||
128 | - | let | |
130 | + | let aj = getStringValue(this, f) | |
129 | 131 | ||
130 | - | let aj = if ((ah == "WAVES")) | |
132 | + | let ak = getStringValue(this, g) | |
133 | + | ||
134 | + | let al = if ((aj == "WAVES")) | |
131 | 135 | then unit | |
132 | - | else fromBase58String( | |
136 | + | else fromBase58String(aj) | |
133 | 137 | ||
134 | - | let | |
138 | + | let am = if ((ak == "WAVES")) | |
135 | 139 | then unit | |
136 | - | else fromBase58String( | |
140 | + | else fromBase58String(ak) | |
137 | 141 | ||
138 | - | let | |
139 | - | let | |
140 | - | if ($isInstanceOf( | |
142 | + | let an = { | |
143 | + | let O = al | |
144 | + | if ($isInstanceOf(O, "ByteVector")) | |
141 | 145 | then { | |
142 | - | let | |
143 | - | value(assetInfo( | |
146 | + | let ao = O | |
147 | + | value(assetInfo(ao)).name | |
144 | 148 | } | |
145 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(O, "Unit")) | |
146 | 150 | then { | |
147 | - | let | |
151 | + | let ap = O | |
148 | 152 | "WAVES" | |
149 | 153 | } | |
150 | 154 | else throw("Match error") | |
151 | 155 | } | |
152 | 156 | ||
153 | - | let | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
157 | + | let aq = { | |
158 | + | let O = am | |
159 | + | if ($isInstanceOf(O, "ByteVector")) | |
156 | 160 | then { | |
157 | - | let | |
158 | - | value(assetInfo( | |
161 | + | let ao = O | |
162 | + | value(assetInfo(ao)).name | |
159 | 163 | } | |
160 | - | else if ($isInstanceOf( | |
164 | + | else if ($isInstanceOf(O, "Unit")) | |
161 | 165 | then { | |
162 | - | let | |
166 | + | let ap = O | |
163 | 167 | "WAVES" | |
164 | 168 | } | |
165 | 169 | else throw("Match error") | |
166 | 170 | } | |
167 | 171 | ||
168 | - | let | |
172 | + | let ar = getIntegerValue(this, h) | |
169 | 173 | ||
170 | - | let | |
174 | + | let as = getIntegerValue(this, i) | |
171 | 175 | ||
172 | - | let ar = fromBase58String(getStringValue(this, i)) | |
173 | - | ||
174 | - | let as = getIntegerValue(this, j) | |
175 | - | ||
176 | - | let at = getIntegerValue(this, l) | |
176 | + | let at = fromBase58String(getStringValue(this, j)) | |
177 | 177 | ||
178 | 178 | let au = getIntegerValue(this, k) | |
179 | 179 | ||
180 | - | let av = | |
180 | + | let av = getIntegerValue(this, m) | |
181 | 181 | ||
182 | - | let aw = | |
182 | + | let aw = getIntegerValue(this, l) | |
183 | 183 | ||
184 | - | let ax = | |
184 | + | let ax = fraction(aw, 40, 100) | |
185 | 185 | ||
186 | - | let ay = | |
186 | + | let ay = 1000000 | |
187 | 187 | ||
188 | - | let az = | |
188 | + | let az = 1000 | |
189 | 189 | ||
190 | - | let aA = | |
190 | + | let aA = 100000000 | |
191 | 191 | ||
192 | - | let aB = | |
192 | + | let aB = 10000000000000000 | |
193 | 193 | ||
194 | - | let aC = | |
194 | + | let aC = 8 | |
195 | 195 | ||
196 | - | let aD = | |
196 | + | let aD = 60000000 | |
197 | 197 | ||
198 | - | let aE = | |
198 | + | let aE = 140000000 | |
199 | 199 | ||
200 | - | let aF = | |
200 | + | let aF = 50 | |
201 | 201 | ||
202 | - | func aG (aH) = { | |
203 | - | let N = aH | |
204 | - | if ($isInstanceOf(N, "ByteVector")) | |
202 | + | let aG = 2 | |
203 | + | ||
204 | + | let aH = 4600000000000000 | |
205 | + | ||
206 | + | func aI (aJ) = { | |
207 | + | let O = aJ | |
208 | + | if ($isInstanceOf(O, "ByteVector")) | |
205 | 209 | then { | |
206 | - | let | |
207 | - | assetBalance(this, | |
210 | + | let ao = O | |
211 | + | assetBalance(this, ao) | |
208 | 212 | } | |
209 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(O, "Unit")) | |
210 | 214 | then { | |
211 | - | let | |
215 | + | let ap = O | |
212 | 216 | wavesBalance(this).available | |
213 | 217 | } | |
214 | 218 | else throw("Match error") | |
215 | 219 | } | |
216 | 220 | ||
217 | 221 | ||
218 | - | func | |
219 | - | let | |
220 | - | let | |
221 | - | if ($isInstanceOf( | |
222 | + | func aK (aJ) = { | |
223 | + | let aL = { | |
224 | + | let O = aJ | |
225 | + | if ($isInstanceOf(O, "ByteVector")) | |
222 | 226 | then { | |
223 | - | let | |
224 | - | if (( | |
225 | - | then getInteger( | |
227 | + | let aM = O | |
228 | + | if ((aM == aa)) | |
229 | + | then getInteger(X, ((("rpd_balance_" + toBase58String(aM)) + "_") + toString(this))) | |
226 | 230 | else 0 | |
227 | 231 | } | |
228 | - | else if ($isInstanceOf( | |
232 | + | else if ($isInstanceOf(O, "Unit")) | |
229 | 233 | then 0 | |
230 | 234 | else throw("Match error") | |
231 | 235 | } | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
236 | + | let O = aL | |
237 | + | if ($isInstanceOf(O, "Int")) | |
234 | 238 | then { | |
235 | - | let | |
236 | - | | |
239 | + | let aN = O | |
240 | + | aN | |
237 | 241 | } | |
238 | 242 | else 0 | |
239 | 243 | } | |
240 | 244 | ||
241 | 245 | ||
242 | - | let | |
246 | + | let aO = aK(al) | |
243 | 247 | ||
244 | - | let | |
248 | + | let aP = aK(am) | |
245 | 249 | ||
246 | - | let | |
250 | + | let aQ = (ar - aO) | |
247 | 251 | ||
248 | - | let | |
252 | + | let aR = (as - aP) | |
249 | 253 | ||
250 | - | let | |
254 | + | let aS = (aI(al) + aO) | |
251 | 255 | ||
252 | - | let | |
256 | + | let aT = (aI(am) + aP) | |
253 | 257 | ||
254 | - | let | |
255 | - | then ( | |
258 | + | let aU = if ((aS >= ar)) | |
259 | + | then (aT >= as) | |
256 | 260 | else false | |
257 | 261 | ||
258 | - | func | |
262 | + | func aV (aW,aX) = ((fraction(aB, aW, aX) + fraction(aB, aX, aW)) / 2) | |
259 | 263 | ||
260 | 264 | ||
261 | - | func | |
262 | - | let | |
263 | - | (fraction(( | |
265 | + | func aY (aW,aX) = { | |
266 | + | let aZ = aV(aW, aX) | |
267 | + | (fraction((aW + aX), aB, pow(aZ, aC, aF, aG, aC, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aW), toBigInt(aX), toBigInt(aA)), 0, toBigInt(5), 1, (aC / 2), DOWN)), pow((aZ - aH), aC, aF, aG, aC, DOWN), aA))) | |
264 | 268 | } | |
265 | 269 | ||
266 | 270 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | func | |
271 | + | func ba (bb,bc,bd,be,bf,bg,bh) = { | |
272 | + | let bi = (aB - ((aB * 1) / 10000000)) | |
273 | + | let bj = (bb - bc) | |
274 | + | let aW = (bf + bd) | |
275 | + | let aX = (bg + bd) | |
276 | + | func bk (bl,bm) = if ((bl._1 == -1)) | |
273 | 277 | then { | |
274 | - | let | |
275 | - | let | |
276 | - | then aW | |
277 | - | else | |
278 | - | if (( | |
279 | - | then $Tuple2( | |
278 | + | let bn = (bb - (((bm * bj) / 3) / az)) | |
279 | + | let bo = if ((be == al)) | |
280 | + | then aY(aW, (bg - bn)) | |
281 | + | else aY((bf - bn), aX) | |
282 | + | if ((bo > bh)) | |
283 | + | then $Tuple2(bn, bo) | |
280 | 284 | else $Tuple2(-1, 0) | |
281 | 285 | } | |
282 | - | else | |
286 | + | else bl | |
283 | 287 | ||
284 | - | let | |
285 | - | if ((0 > | |
288 | + | let bp = bk($Tuple2(-1, 0), 3000) | |
289 | + | if ((0 > bp._1)) | |
286 | 290 | then throw("Price is worse than minReceived") | |
287 | 291 | else { | |
288 | - | let | |
289 | - | then aW | |
290 | - | else if (( | |
291 | - | then | |
292 | + | let bq = if ((be == al)) | |
293 | + | then aY(aW, (bg - bb)) | |
294 | + | else if ((be == am)) | |
295 | + | then aY((bf - bb), aX) | |
292 | 296 | else throw("Wrong asset in payment") | |
293 | - | if (( | |
294 | - | then if (( | |
297 | + | if ((bh > bq)) | |
298 | + | then if ((bi >= fraction(aB, bh, bq))) | |
295 | 299 | then throw("The requested price is too not profitable for user") | |
296 | 300 | else { | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | func | |
302 | - | then | |
303 | - | else | |
301 | + | let br = { | |
302 | + | let bs = [25, 200, 500] | |
303 | + | let bt = size(bs) | |
304 | + | let bu = $Tuple2(-1, 0) | |
305 | + | func bv (bw,bx) = if ((bx >= bt)) | |
306 | + | then bw | |
307 | + | else bk(bw, bs[bx]) | |
304 | 308 | ||
305 | - | func | |
306 | - | then | |
309 | + | func by (bw,bx) = if ((bx >= bt)) | |
310 | + | then bw | |
307 | 311 | else throw("List size exceeds 3") | |
308 | 312 | ||
309 | - | | |
313 | + | by(bv(bv(bv(bu, 0), 1), 2), 3) | |
310 | 314 | } | |
311 | - | if ((0 > | |
312 | - | then | |
313 | - | else | |
315 | + | if ((0 > br._1)) | |
316 | + | then bp._1 | |
317 | + | else br._1 | |
314 | 318 | } | |
315 | 319 | else { | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | func | |
321 | - | then | |
322 | - | else | |
320 | + | let br = { | |
321 | + | let bs = [-500, -200, -25] | |
322 | + | let bt = size(bs) | |
323 | + | let bu = $Tuple2(-1, 0) | |
324 | + | func bv (bw,bx) = if ((bx >= bt)) | |
325 | + | then bw | |
326 | + | else bk(bw, bs[bx]) | |
323 | 327 | ||
324 | - | func | |
325 | - | then | |
328 | + | func by (bw,bx) = if ((bx >= bt)) | |
329 | + | then bw | |
326 | 330 | else throw("List size exceeds 3") | |
327 | 331 | ||
328 | - | | |
332 | + | by(bv(bv(bv(bu, 0), 1), 2), 3) | |
329 | 333 | } | |
330 | - | let | |
331 | - | then $Tuple2( | |
332 | - | else | |
333 | - | if (( | |
334 | + | let bz = if ((0 > br._1)) | |
335 | + | then $Tuple2(bb, bq) | |
336 | + | else br | |
337 | + | if ((bi >= fraction(aB, bh, bz._2))) | |
334 | 338 | then throw("The requested price is too not profitable for user") | |
335 | - | else | |
339 | + | else bz._1 | |
336 | 340 | } | |
337 | 341 | } | |
338 | 342 | } | |
339 | 343 | ||
340 | 344 | ||
341 | - | func | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
345 | + | func bA (aJ) = { | |
346 | + | let O = aJ | |
347 | + | if ($isInstanceOf(O, "ByteVector")) | |
344 | 348 | then { | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | $Tuple3( | |
349 | + | let ao = O | |
350 | + | let bB = toBase58String(ao) | |
351 | + | let bC = valueOrErrorMessage(assetInfo(ao), (("Asset " + bB) + " doesn't exist")) | |
352 | + | $Tuple3(bB, bC.name, bC.decimals) | |
349 | 353 | } | |
350 | - | else if ($isInstanceOf( | |
354 | + | else if ($isInstanceOf(O, "Unit")) | |
351 | 355 | then { | |
352 | - | let | |
356 | + | let ap = O | |
353 | 357 | $Tuple3("WAVES", "WAVES", 8) | |
354 | 358 | } | |
355 | 359 | else throw("Match error") | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | - | func | |
363 | + | func bD (bE) = [BooleanEntry(c, false), StringEntry(n, bE)] | |
360 | 364 | ||
361 | 365 | ||
362 | - | func | |
366 | + | func bF () = throw("DApp is already active") | |
363 | 367 | ||
364 | 368 | ||
365 | - | func | |
366 | - | then | |
369 | + | func bG () = if (if (ag) | |
370 | + | then ah | |
367 | 371 | else false) | |
368 | 372 | then unit | |
369 | 373 | else throw("DApp is inactive at this moment") | |
370 | 374 | ||
371 | 375 | ||
372 | - | func bF (aL) = if (containsElement([Q, R, S], aL.callerPublicKey)) | |
376 | + | func bH () = if (!(ai)) | |
377 | + | then unit | |
378 | + | else throw("Pool is deprecated. Only withdraw action allowed.") | |
379 | + | ||
380 | + | ||
381 | + | func bI (aN) = if (containsElement([R, S, T], aN.callerPublicKey)) | |
373 | 382 | then unit | |
374 | 383 | else throw("Only admin can call this function") | |
375 | 384 | ||
376 | 385 | ||
377 | - | func | |
386 | + | func bJ (aN) = if ((this == aN.caller)) | |
378 | 387 | then unit | |
379 | 388 | else throw("Only contract itself can call this function") | |
380 | 389 | ||
381 | 390 | ||
382 | - | func | |
391 | + | func bK () = throw(((("Incorrect assets attached. Expected: " + aj) + " and ") + ak)) | |
383 | 392 | ||
384 | 393 | ||
385 | - | func | |
394 | + | func bL () = throw("One attached payment expected") | |
386 | 395 | ||
387 | 396 | ||
388 | - | func | |
397 | + | func bM () = bD(((((((((((((((("Suspicious state. Actual balances: " + toString(ar)) + " ") + an) + ", ") + toString(as)) + " ") + aq) + ". State: ") + toString(aI(al))) + " ") + an) + ", ") + toString(aI(am))) + " ") + aq)) | |
389 | 398 | ||
390 | 399 | ||
391 | - | func | |
392 | - | then $Tuple2("lockNeutrino", | |
393 | - | else $Tuple2("unlockNeutrino", | |
400 | + | func bN (bO,aJ) = if (bO) | |
401 | + | then $Tuple2("lockNeutrino", X) | |
402 | + | else $Tuple2("unlockNeutrino", X) | |
394 | 403 | ||
395 | 404 | ||
396 | - | func | |
405 | + | func bP (bO,bQ,aJ) = if (bO) | |
397 | 406 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | $Tuple4( | |
407 | + | let bR = bN(bO, aJ) | |
408 | + | let bS = bR._1 | |
409 | + | let bT = bR._2 | |
410 | + | $Tuple4(bS, bT, nil, [AttachedPayment(aJ, bQ)]) | |
402 | 411 | } | |
403 | 412 | else { | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | $Tuple4( | |
413 | + | let bU = bN(bO, aJ) | |
414 | + | let bS = bU._1 | |
415 | + | let bT = bU._2 | |
416 | + | $Tuple4(bS, bT, [bQ, toBase58String(aJ)], nil) | |
408 | 417 | } | |
409 | 418 | ||
410 | 419 | ||
411 | - | func | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | if (if (( | |
417 | - | then (parseIntValue( | |
420 | + | func bV (bW) = { | |
421 | + | let bX = valueOrElse(getInteger(W, (toString(bW) + s)), 0) | |
422 | + | let bY = valueOrElse(getInteger(W, (toString(bW) + t)), bX) | |
423 | + | let bZ = split(getStringValue(L, r), ",") | |
424 | + | let ca = split(getStringValue(L, q), ",") | |
425 | + | if (if ((bY >= parseIntValue(bZ[0]))) | |
426 | + | then (parseIntValue(bZ[1]) > bY) | |
418 | 427 | else false) | |
419 | - | then ( | |
420 | - | else if (if (( | |
421 | - | then (parseIntValue( | |
428 | + | then (ay - parseIntValue(ca[0])) | |
429 | + | else if (if ((bY >= parseIntValue(bZ[1]))) | |
430 | + | then (parseIntValue(bZ[2]) > bY) | |
422 | 431 | else false) | |
423 | - | then ( | |
424 | - | else if (if (( | |
425 | - | then (parseIntValue( | |
432 | + | then (ay - parseIntValue(ca[1])) | |
433 | + | else if (if ((bY >= parseIntValue(bZ[2]))) | |
434 | + | then (parseIntValue(bZ[3]) > bY) | |
426 | 435 | else false) | |
427 | - | then ( | |
428 | - | else if (if (( | |
429 | - | then (parseIntValue( | |
436 | + | then (ay - parseIntValue(ca[2])) | |
437 | + | else if (if ((bY >= parseIntValue(bZ[3]))) | |
438 | + | then (parseIntValue(bZ[4]) > bY) | |
430 | 439 | else false) | |
431 | - | then ( | |
432 | - | else if (( | |
433 | - | then ( | |
434 | - | else | |
440 | + | then (ay - parseIntValue(ca[3])) | |
441 | + | else if ((bY >= parseIntValue(bZ[4]))) | |
442 | + | then (ay - parseIntValue(ca[4])) | |
443 | + | else ay | |
435 | 444 | } | |
436 | 445 | ||
437 | 446 | ||
438 | - | func | |
439 | - | let | |
440 | - | let | |
441 | - | then ( | |
447 | + | func cb (cc,cd,ce) = { | |
448 | + | let cf = getIntegerValue(this, A) | |
449 | + | let cg = if (if ((ce == al)) | |
450 | + | then (cc > cd) | |
442 | 451 | else false) | |
443 | - | then fraction( | |
444 | - | else if (if (( | |
445 | - | then ( | |
452 | + | then fraction(cc, 1, cd, CEILING) | |
453 | + | else if (if ((ce == am)) | |
454 | + | then (cd > cc) | |
446 | 455 | else false) | |
447 | - | then fraction( | |
456 | + | then fraction(cd, 1, cc, CEILING) | |
448 | 457 | else 0 | |
449 | - | if (( | |
458 | + | if ((cg > cf)) | |
450 | 459 | then { | |
451 | - | let | |
452 | - | then $Tuple2( | |
453 | - | else $Tuple2( | |
454 | - | let | |
455 | - | let | |
456 | - | throw((((("Buying " + | |
460 | + | let ch = if ((ce == al)) | |
461 | + | then $Tuple2(aq, an) | |
462 | + | else $Tuple2(an, aq) | |
463 | + | let ci = ch._1 | |
464 | + | let cj = ch._2 | |
465 | + | throw((((("Buying " + ci) + " is temporarily unavailable due to the ") + cj) + " depeg")) | |
457 | 466 | } | |
458 | 467 | else true | |
459 | 468 | } | |
460 | 469 | ||
461 | 470 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
471 | + | func ck (aN,cl,cm) = { | |
472 | + | let cn = aN.payments[0].assetId | |
473 | + | let co = aN.payments[1].assetId | |
474 | + | let cp = fraction(aA, aN.payments[0].amount, ar) | |
475 | + | let cq = fraction(aA, aN.payments[1].amount, as) | |
476 | + | let cr = bA(cn) | |
477 | + | let cs = cr._1 | |
478 | + | let ct = cr._2 | |
479 | + | let cu = cr._3 | |
480 | + | let cv = bA(co) | |
481 | + | let cw = cv._1 | |
482 | + | let cx = cv._2 | |
483 | + | let cy = cv._3 | |
484 | + | let cz = if ((cq > cp)) | |
476 | 485 | then { | |
477 | - | let | |
478 | - | $Tuple5( | |
486 | + | let cA = fraction(as, cp, aA, CEILING) | |
487 | + | $Tuple5(aN.payments[0].amount, cA, (aN.payments[1].amount - cA), co, cp) | |
479 | 488 | } | |
480 | 489 | else { | |
481 | - | let | |
482 | - | $Tuple5( | |
490 | + | let cA = fraction(ar, cq, aA, CEILING) | |
491 | + | $Tuple5(cA, aN.payments[1].amount, (aN.payments[0].amount - cA), cn, cq) | |
483 | 492 | } | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | if (if ((size( | |
491 | - | then (size( | |
493 | + | let cB = cz._1 | |
494 | + | let cC = cz._2 | |
495 | + | let cD = cz._3 | |
496 | + | let cE = cz._4 | |
497 | + | let cF = cz._5 | |
498 | + | let cG = fraction(cF, au, aA) | |
499 | + | if (if ((size(aN.payments) != 2)) | |
500 | + | then (size(aN.payments) != 3) | |
492 | 501 | else false) | |
493 | 502 | then throw("Two or three payments expected") | |
494 | - | else if (if (( | |
503 | + | else if (if ((cn != al)) | |
495 | 504 | then true | |
496 | - | else ( | |
497 | - | then | |
498 | - | else if (( | |
505 | + | else (co != am)) | |
506 | + | then bK() | |
507 | + | else if ((cG == 0)) | |
499 | 508 | then throw("Too small amount to replenish") | |
500 | - | else if ((0 > | |
509 | + | else if ((0 > cD)) | |
501 | 510 | then throw("Change < 0") | |
502 | - | else if (!( | |
503 | - | then ([ScriptTransfer( | |
511 | + | else if (!(aU)) | |
512 | + | then ([ScriptTransfer(aN.caller, cB, cn), ScriptTransfer(aN.caller, cC, co)] ++ bM()) | |
504 | 513 | else { | |
505 | - | let | |
506 | - | then invoke(this, "stakeUnstake", [true, | |
514 | + | let cH = if (contains(ab, cs)) | |
515 | + | then invoke(this, "stakeUnstake", [true, cB, cs], nil) | |
507 | 516 | else 0 | |
508 | - | if (( | |
517 | + | if ((cH == cH)) | |
509 | 518 | then { | |
510 | - | let | |
511 | - | then invoke(this, "stakeUnstake", [true, | |
519 | + | let cI = if (contains(ab, cw)) | |
520 | + | then invoke(this, "stakeUnstake", [true, cC, cw], nil) | |
512 | 521 | else 0 | |
513 | - | if (( | |
522 | + | if ((cI == cI)) | |
514 | 523 | then { | |
515 | - | let | |
516 | - | if ( | |
524 | + | let cJ = [IntegerEntry(h, (ar + cB)), IntegerEntry(i, (as + cC)), IntegerEntry(k, (au + cG)), IntegerEntry(m, aY((ar + cB), (as + cC))), ScriptTransfer(aN.caller, cD, cE)] | |
525 | + | if (cl) | |
517 | 526 | then { | |
518 | - | let | |
519 | - | then [AttachedPayment(if (( | |
527 | + | let cK = ([AttachedPayment(at, cG)] ++ (if ((size(aN.payments) == 3)) | |
528 | + | then [AttachedPayment(if ((aN.payments[2].assetId == base58'')) | |
520 | 529 | then unit | |
521 | - | else | |
530 | + | else aN.payments[2].assetId, aN.payments[2].amount)] | |
522 | 531 | else nil)) | |
523 | - | let | |
524 | - | if (( | |
532 | + | let cL = invoke(this, "reissueShare", [cG], nil) | |
533 | + | if ((cL == cL)) | |
525 | 534 | then { | |
526 | - | let | |
527 | - | if (( | |
528 | - | then | |
535 | + | let cM = invoke(Z, "lockShareTokensFromPool", [aN.caller.bytes, toString(this), cm], cK) | |
536 | + | if ((cM == cM)) | |
537 | + | then cJ | |
529 | 538 | else throw("Strict value is not equal to itself.") | |
530 | 539 | } | |
531 | 540 | else throw("Strict value is not equal to itself.") | |
532 | 541 | } | |
533 | - | else ( | |
542 | + | else (cJ ++ [Reissue(at, cG, true), ScriptTransfer(aN.caller, cG, at)]) | |
534 | 543 | } | |
535 | 544 | else throw("Strict value is not equal to itself.") | |
536 | 545 | } | |
537 | 546 | else throw("Strict value is not equal to itself.") | |
538 | 547 | } | |
539 | 548 | } | |
540 | 549 | ||
541 | 550 | ||
542 | - | func | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
551 | + | func cN (aN,cO,cP,cl,cm) = { | |
552 | + | let cQ = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
553 | + | let cR = cQ._1 | |
554 | + | let ce = cQ._2 | |
555 | + | let cS = bA(ce) | |
556 | + | let cT = cS._1 | |
557 | + | let cU = cS._2 | |
558 | + | let cV = cS._3 | |
559 | + | let cW = 5000000 | |
560 | + | let cX = 50000000 | |
561 | + | let cY = if ((cX > cR)) | |
553 | 562 | then 100000 | |
554 | 563 | else 1 | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | if (( | |
559 | - | then throw((((("Payment amount " + toString( | |
560 | - | else if (if ((size( | |
561 | - | then (size( | |
564 | + | let cZ = (aA - ((aA * cY) / 10000000)) | |
565 | + | let da = (aA + ((aA * cY) / 10000000)) | |
566 | + | let db = (aA - ((aA * 1) / 10000000)) | |
567 | + | if ((cW > cR)) | |
568 | + | then throw((((("Payment amount " + toString(cR)) + " does not exceed the minimum amount of ") + toString(cW)) + " tokens")) | |
569 | + | else if (if ((size(aN.payments) != 1)) | |
570 | + | then (size(aN.payments) != 2) | |
562 | 571 | else false) | |
563 | 572 | then throw("One or two payments expected") | |
564 | - | else if (!( | |
565 | - | then ([ScriptTransfer( | |
566 | - | else if (if (( | |
567 | - | then ( | |
573 | + | else if (!(aU)) | |
574 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
575 | + | else if (if ((ce != al)) | |
576 | + | then (ce != am) | |
568 | 577 | else false) | |
569 | - | then | |
578 | + | then bK() | |
570 | 579 | else { | |
571 | - | let | |
572 | - | then $Tuple6(( | |
573 | - | else $Tuple6( | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | if (if (( | |
580 | + | let dc = if ((ce == al)) | |
581 | + | then $Tuple6((cR - cO), cP, (ar + cO), (as - cP), (ar + cR), as) | |
582 | + | else $Tuple6(cP, (cR - cO), (ar - cP), (as + cO), ar, (as + cR)) | |
583 | + | let dd = dc._1 | |
584 | + | let de = dc._2 | |
585 | + | let df = dc._3 | |
586 | + | let dg = dc._4 | |
587 | + | let cc = dc._5 | |
588 | + | let cd = dc._6 | |
589 | + | let dh = aY(df, dg) | |
590 | + | let di = (fraction(aB, df, dg) / fraction(aA, dd, de)) | |
591 | + | if (if ((db >= fraction(aA, av, dh))) | |
583 | 592 | then true | |
584 | - | else ( | |
593 | + | else (av > dh)) | |
585 | 594 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
586 | - | else if (if (( | |
595 | + | else if (if ((cZ > di)) | |
587 | 596 | then true | |
588 | - | else ( | |
597 | + | else (di > da)) | |
589 | 598 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
590 | - | else if (!( | |
599 | + | else if (!(cb(cc, cd, ce))) | |
591 | 600 | then throw() | |
592 | 601 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | then $Tuple3(( | |
602 | - | else $Tuple3(( | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | then invoke(this, "stakeUnstake", [true, | |
602 | + | let cp = fraction(dd, aA, df) | |
603 | + | let cq = fraction(de, aA, dg) | |
604 | + | let cG = fraction(min([cp, cq]), au, aA) | |
605 | + | let dj = fraction(cG, (ay - (aw / 2)), ay) | |
606 | + | let dk = fraction(cG, (ax / 2), ay) | |
607 | + | let dl = fraction(dk, ar, au) | |
608 | + | let dm = fraction(dk, as, au) | |
609 | + | let dn = if ((cT == aj)) | |
610 | + | then $Tuple3((cR - dl), dm, ak) | |
611 | + | else $Tuple3((cR - dm), dl, aj) | |
612 | + | let do = dn._1 | |
613 | + | let dp = dn._2 | |
614 | + | let dq = dn._3 | |
615 | + | let cH = if (contains(ab, cT)) | |
616 | + | then invoke(this, "stakeUnstake", [true, do, cT], nil) | |
608 | 617 | else 0 | |
609 | - | if (( | |
618 | + | if ((cH == cH)) | |
610 | 619 | then { | |
611 | - | let | |
612 | - | then invoke(this, "stakeUnstake", [false, | |
620 | + | let cI = if (contains(ab, dq)) | |
621 | + | then invoke(this, "stakeUnstake", [false, dp, dq], nil) | |
613 | 622 | else 0 | |
614 | - | if (( | |
623 | + | if ((cI == cI)) | |
615 | 624 | then { | |
616 | - | let | |
617 | - | if ( | |
625 | + | let cJ = [IntegerEntry(h, (cc - dl)), IntegerEntry(i, (cd - dm)), IntegerEntry(k, (au + dj)), IntegerEntry(m, aY((cc - dl), (cd - dm))), ScriptTransfer(V, dl, al), ScriptTransfer(V, dm, am)] | |
626 | + | if (cl) | |
618 | 627 | then { | |
619 | - | let | |
620 | - | then [AttachedPayment(if (( | |
628 | + | let cK = ([AttachedPayment(at, dj)] ++ (if ((size(aN.payments) == 2)) | |
629 | + | then [AttachedPayment(if ((aN.payments[1].assetId == base58'')) | |
621 | 630 | then unit | |
622 | - | else | |
631 | + | else aN.payments[1].assetId, aN.payments[1].amount)] | |
623 | 632 | else nil)) | |
624 | - | let | |
625 | - | if (( | |
633 | + | let cL = invoke(this, "reissueShare", [dj], nil) | |
634 | + | if ((cL == cL)) | |
626 | 635 | then { | |
627 | - | let | |
628 | - | if (( | |
629 | - | then | |
636 | + | let cM = invoke(Z, "lockShareTokensFromPool", [aN.caller.bytes, toString(this), cm], cK) | |
637 | + | if ((cM == cM)) | |
638 | + | then cJ | |
630 | 639 | else throw("Strict value is not equal to itself.") | |
631 | 640 | } | |
632 | 641 | else throw("Strict value is not equal to itself.") | |
633 | 642 | } | |
634 | - | else ( | |
643 | + | else (cJ ++ [Reissue(at, dj, true), ScriptTransfer(aN.caller, dj, at)]) | |
635 | 644 | } | |
636 | 645 | else throw("Strict value is not equal to itself.") | |
637 | 646 | } | |
638 | 647 | else throw("Strict value is not equal to itself.") | |
639 | 648 | } | |
640 | 649 | } | |
641 | 650 | } | |
642 | 651 | ||
643 | 652 | ||
644 | - | func | |
645 | - | let | |
646 | - | then if (( | |
647 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
648 | - | else $Tuple2( | |
649 | - | else $Tuple2(0, | |
650 | - | let | |
651 | - | let | |
652 | - | if (!( | |
653 | - | then ([ScriptTransfer( | |
653 | + | func dr (aN,ds) = { | |
654 | + | let dt = if ((size(aN.payments) == 1)) | |
655 | + | then if ((aN.payments[0].assetId != at)) | |
656 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(at))) | |
657 | + | else $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
658 | + | else $Tuple2(0, at) | |
659 | + | let cR = dt._1 | |
660 | + | let ce = dt._2 | |
661 | + | if (!(aU)) | |
662 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
654 | 663 | else { | |
655 | - | let | |
656 | - | then invoke( | |
664 | + | let du = if ((ds > 0)) | |
665 | + | then invoke(Z, "withdrawShareTokensFromPool", [aN.caller.bytes, toString(this), ds], nil) | |
657 | 666 | else 0 | |
658 | - | if (( | |
667 | + | if ((du == du)) | |
659 | 668 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | then invoke(this, "stakeUnstake", [false, | |
669 | + | let dv = (cR + ds) | |
670 | + | let dw = fraction(dv, ar, au) | |
671 | + | let dx = fraction(dv, as, au) | |
672 | + | let dy = aY((ar - dw), (as - dx)) | |
673 | + | let cH = if (contains(ab, aj)) | |
674 | + | then invoke(this, "stakeUnstake", [false, dw, aj], nil) | |
666 | 675 | else 0 | |
667 | - | if (( | |
676 | + | if ((cH == cH)) | |
668 | 677 | then { | |
669 | - | let | |
670 | - | then invoke(this, "stakeUnstake", [false, | |
678 | + | let cI = if (contains(ab, ak)) | |
679 | + | then invoke(this, "stakeUnstake", [false, dx, ak], nil) | |
671 | 680 | else 0 | |
672 | - | if (( | |
673 | - | then [IntegerEntry( | |
681 | + | if ((cI == cI)) | |
682 | + | then [IntegerEntry(h, (ar - dw)), IntegerEntry(i, (as - dx)), IntegerEntry(k, (au - dv)), IntegerEntry(m, dy), Burn(at, dv), ScriptTransfer(aN.caller, dw, al), ScriptTransfer(aN.caller, dx, am)] | |
674 | 683 | else throw("Strict value is not equal to itself.") | |
675 | 684 | } | |
676 | 685 | else throw("Strict value is not equal to itself.") | |
677 | 686 | } | |
678 | 687 | else throw("Strict value is not equal to itself.") | |
679 | 688 | } | |
680 | 689 | } | |
681 | 690 | ||
682 | 691 | ||
683 | - | @Callable( | |
684 | - | func init ( | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
692 | + | @Callable(aN) | |
693 | + | func init (dz) = { | |
694 | + | let dA = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
695 | + | let cB = dA._1 | |
696 | + | let cn = dA._2 | |
697 | + | let dB = $Tuple2(aN.payments[1].amount, aN.payments[1].assetId) | |
698 | + | let cC = dB._1 | |
699 | + | let co = dB._2 | |
700 | + | let dC = bA(cn) | |
701 | + | let cs = dC._1 | |
702 | + | let ct = dC._2 | |
703 | + | let cu = dC._3 | |
704 | + | let dD = bA(co) | |
705 | + | let cw = dD._1 | |
706 | + | let cx = dD._2 | |
707 | + | let cy = dD._3 | |
699 | 708 | if (isDefined(getBoolean(this, c))) | |
700 | - | then | |
701 | - | else if (( | |
709 | + | then bF() | |
710 | + | else if ((cn == co)) | |
702 | 711 | then throw("Assets must be different") | |
703 | 712 | else { | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | then invoke(this, "stakeUnstake", [true, | |
713 | + | let dE = ((("s" + take(ct, 7)) + "_") + take(cx, 7)) | |
714 | + | let dF = ((((("ShareToken of SwopFi protocol for " + ct) + " and ") + cx) + " at address ") + toString(this)) | |
715 | + | let dG = ((cu + cy) / 2) | |
716 | + | let dH = fraction(pow(cB, cu, 5, 1, cu, DOWN), pow(cC, cy, 5, 1, cy, DOWN), pow(10, 0, dG, 0, 0, DOWN)) | |
717 | + | let dI = Issue(dE, dF, dH, dG, true) | |
718 | + | let dJ = calculateAssetId(dI) | |
719 | + | let dy = aY(cB, cC) | |
720 | + | let cH = if (contains(ab, cs)) | |
721 | + | then invoke(this, "stakeUnstake", [true, cB, cs], nil) | |
713 | 722 | else 0 | |
714 | - | if (( | |
723 | + | if ((cH == cH)) | |
715 | 724 | then { | |
716 | - | let | |
717 | - | then invoke(this, "stakeUnstake", [true, | |
725 | + | let cI = if (contains(ab, cw)) | |
726 | + | then invoke(this, "stakeUnstake", [true, cC, cw], nil) | |
718 | 727 | else 0 | |
719 | - | if (( | |
728 | + | if ((cI == cI)) | |
720 | 729 | then { | |
721 | - | let | |
722 | - | if ( | |
723 | - | then ( | |
724 | - | else | |
730 | + | let dK = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(f, cs), StringEntry(g, cw), IntegerEntry(h, cB), IntegerEntry(i, cC), IntegerEntry(m, dy), IntegerEntry(l, getIntegerValue(L, "base_fee_flat")), IntegerEntry(A, 3), dI, StringEntry(j, toBase58String(dJ)), IntegerEntry(k, dH), ScriptTransfer(aN.caller, dH, dJ)] | |
731 | + | if (dz) | |
732 | + | then (dK ++ [BooleanEntry(u, dz), IntegerEntry(v, (ad + (af * ae)))]) | |
733 | + | else dK | |
725 | 734 | } | |
726 | 735 | else throw("Strict value is not equal to itself.") | |
727 | 736 | } | |
728 | 737 | else throw("Strict value is not equal to itself.") | |
729 | 738 | } | |
730 | 739 | } | |
731 | 740 | ||
732 | 741 | ||
733 | 742 | ||
734 | - | @Callable( | |
735 | - | func replenishWithTwoTokensV2 ( | |
743 | + | @Callable(aN) | |
744 | + | func replenishWithTwoTokensV2 (cl,cm) = valueOrElse(bG(), valueOrElse(bH(), ck(aN, cl, cm))) | |
736 | 745 | ||
737 | 746 | ||
738 | 747 | ||
739 | - | @Callable( | |
740 | - | func replenishWithOneTokenV2 ( | |
748 | + | @Callable(aN) | |
749 | + | func replenishWithOneTokenV2 (cO,cP,cl,cm) = valueOrElse(bG(), valueOrElse(bH(), cN(aN, cO, cP, cl, cm))) | |
741 | 750 | ||
742 | 751 | ||
743 | 752 | ||
744 | - | @Callable( | |
745 | - | func withdrawV2 ( | |
753 | + | @Callable(aN) | |
754 | + | func withdrawV2 (ds) = valueOrElse(bG(), dr(aN, ds)) | |
746 | 755 | ||
747 | 756 | ||
748 | 757 | ||
749 | - | @Callable( | |
750 | - | func withdrawOneToken ( | |
751 | - | let | |
752 | - | then if (( | |
753 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
754 | - | else $Tuple2( | |
755 | - | else $Tuple2(0, | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | if (if (( | |
760 | - | then ( | |
758 | + | @Callable(aN) | |
759 | + | func withdrawOneToken (ds,dL,dM,dN) = valueOrElse(bG(), valueOrElse(bH(), { | |
760 | + | let dO = if ((size(aN.payments) == 1)) | |
761 | + | then if ((aN.payments[0].assetId != at)) | |
762 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(at))) | |
763 | + | else $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
764 | + | else $Tuple2(0, at) | |
765 | + | let cR = dO._1 | |
766 | + | let ce = dO._2 | |
767 | + | let dv = (cR + ds) | |
768 | + | if (if ((dL != aj)) | |
769 | + | then (dL != ak) | |
761 | 770 | else false) | |
762 | 771 | then throw("Incorrect withdraw asset") | |
763 | - | else if ((0 >= | |
772 | + | else if ((0 >= dv)) | |
764 | 773 | then throw("withdraw amount must be grater than 0") | |
765 | - | else if (!( | |
766 | - | then ([ScriptTransfer( | |
774 | + | else if (!(aU)) | |
775 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
767 | 776 | else { | |
768 | - | let | |
769 | - | then invoke( | |
777 | + | let du = if ((ds > 0)) | |
778 | + | then invoke(Z, "withdrawShareTokensFromPool", [aN.caller.bytes, toString(this), ds], nil) | |
770 | 779 | else 0 | |
771 | - | if (( | |
780 | + | if ((du == du)) | |
772 | 781 | then { | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | then | |
780 | - | else | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | then $Tuple4(( | |
785 | - | else $Tuple4(( | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (!( | |
782 | + | let dw = fraction(dv, ar, au) | |
783 | + | let dx = fraction(dv, as, au) | |
784 | + | let dP = (ar - dw) | |
785 | + | let dQ = (as - dx) | |
786 | + | let dR = bV(aN.originCaller) | |
787 | + | let dS = if ((dL == aj)) | |
788 | + | then ba(dM, dN, dx, am, dP, dQ, aY(dP, dQ)) | |
789 | + | else ba(dM, dN, dw, al, dP, dQ, aY(dP, dQ)) | |
790 | + | let dT = fraction(dS, fraction(ax, dR, ay, CEILING), ay) | |
791 | + | let dU = fraction(dS, (ay - fraction(aw, dR, ay, CEILING)), ay) | |
792 | + | let dV = if ((dL == aj)) | |
793 | + | then $Tuple4((dw + dU), (((ar - dw) - dU) - dT), as, am) | |
794 | + | else $Tuple4((dx + dU), ar, (((as - dx) - dU) - dT), al) | |
795 | + | let dW = dV._1 | |
796 | + | let dX = dV._2 | |
797 | + | let dY = dV._3 | |
798 | + | let dZ = dV._4 | |
799 | + | if (!(cb(dX, dY, dZ))) | |
791 | 800 | then throw() | |
792 | 801 | else { | |
793 | - | let | |
794 | - | let | |
795 | - | then invoke(this, "stakeUnstake", [false, ( | |
802 | + | let dy = aY(dX, dY) | |
803 | + | let cH = if (contains(ab, dL)) | |
804 | + | then invoke(this, "stakeUnstake", [false, (dW + dT), dL], nil) | |
796 | 805 | else 0 | |
797 | - | if (( | |
798 | - | then [IntegerEntry( | |
806 | + | if ((cH == cH)) | |
807 | + | then [IntegerEntry(h, dX), IntegerEntry(i, dY), IntegerEntry(k, (au - dv)), IntegerEntry(m, dy), Burn(at, dv), ScriptTransfer(aN.caller, dW, fromBase58String(dL)), ScriptTransfer(V, dT, fromBase58String(dL))] | |
799 | 808 | else throw("Strict value is not equal to itself.") | |
800 | 809 | } | |
801 | 810 | } | |
802 | 811 | else throw("Strict value is not equal to itself.") | |
803 | 812 | } | |
804 | - | }) | |
813 | + | })) | |
805 | 814 | ||
806 | 815 | ||
807 | 816 | ||
808 | - | @Callable( | |
809 | - | func exchange ( | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | if ((0 >= | |
814 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
815 | - | else if (( | |
817 | + | @Callable(aN) | |
818 | + | func exchange (dM,dN) = valueOrElse(bG(), valueOrElse(bH(), { | |
819 | + | let ea = $Tuple2(aN.payments[0].amount, aN.payments[0].assetId) | |
820 | + | let cR = ea._1 | |
821 | + | let ce = ea._2 | |
822 | + | if ((0 >= dM)) | |
823 | + | then throw(("Estimated amount must be positive. Actual: " + toString(dM))) | |
824 | + | else if ((dN > dM)) | |
816 | 825 | then throw("Minimal amount can't be greater than estimated.") | |
817 | - | else if ((size( | |
818 | - | then | |
819 | - | else if (!( | |
820 | - | then ([ScriptTransfer( | |
821 | - | else if (if (( | |
822 | - | then ( | |
826 | + | else if ((size(aN.payments) != 1)) | |
827 | + | then bL() | |
828 | + | else if (!(aU)) | |
829 | + | then ([ScriptTransfer(aN.caller, cR, ce)] ++ bM()) | |
830 | + | else if (if ((ce != al)) | |
831 | + | then (ce != am) | |
823 | 832 | else false) | |
824 | - | then | |
825 | - | else if ((10000000 > | |
833 | + | then bK() | |
834 | + | else if ((10000000 > cR)) | |
826 | 835 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
827 | - | else if (if (( | |
836 | + | else if (if ((aD > fraction(aA, dN, cR))) | |
828 | 837 | then true | |
829 | - | else (fraction( | |
838 | + | else (fraction(aA, dM, cR) > aE)) | |
830 | 839 | then throw("Incorrect args and pmt ratio") | |
831 | 840 | else { | |
832 | - | let | |
833 | - | then | |
834 | - | else | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | then $Tuple2(( | |
841 | - | else $Tuple2((( | |
842 | - | let | |
843 | - | let | |
844 | - | if (!( | |
841 | + | let eb = if ((ce == al)) | |
842 | + | then am | |
843 | + | else al | |
844 | + | let bQ = ba(dM, dN, cR, ce, ar, as, av) | |
845 | + | let dR = bV(aN.originCaller) | |
846 | + | let ec = fraction(bQ, fraction(ax, dR, ay, CEILING), ay) | |
847 | + | let ed = fraction(bQ, (ay - fraction(aw, dR, ay, CEILING)), ay) | |
848 | + | let ee = if ((ce == al)) | |
849 | + | then $Tuple2((ar + cR), ((as - ed) - ec)) | |
850 | + | else $Tuple2(((ar - ed) - ec), (as + cR)) | |
851 | + | let cc = ee._1 | |
852 | + | let cd = ee._2 | |
853 | + | if (!(cb(cc, cd, ce))) | |
845 | 854 | then throw() | |
846 | 855 | else { | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then invoke(this, "stakeUnstake", [true, | |
856 | + | let ef = bA(ce) | |
857 | + | let cT = ef._1 | |
858 | + | let cU = ef._2 | |
859 | + | let cV = ef._3 | |
860 | + | let eg = bA(eb) | |
861 | + | let eh = eg._1 | |
862 | + | let ei = eg._2 | |
863 | + | let ej = eg._3 | |
864 | + | let cH = if (contains(ab, cT)) | |
865 | + | then invoke(this, "stakeUnstake", [true, cR, cT], nil) | |
857 | 866 | else 0 | |
858 | - | if (( | |
867 | + | if ((cH == cH)) | |
859 | 868 | then { | |
860 | - | let | |
861 | - | then invoke(this, "stakeUnstake", [false, ( | |
869 | + | let cI = if (contains(ab, eh)) | |
870 | + | then invoke(this, "stakeUnstake", [false, (ed + ec), eh], nil) | |
862 | 871 | else 0 | |
863 | - | if (( | |
864 | - | then $Tuple2([IntegerEntry( | |
872 | + | if ((cI == cI)) | |
873 | + | then $Tuple2([IntegerEntry(h, cc), IntegerEntry(i, cd), IntegerEntry(m, aY(cc, cd)), ScriptTransfer(aN.caller, ed, eb), ScriptTransfer(V, ec, eb)], [ed, eb]) | |
865 | 874 | else throw("Strict value is not equal to itself.") | |
866 | 875 | } | |
867 | 876 | else throw("Strict value is not equal to itself.") | |
868 | 877 | } | |
869 | 878 | } | |
870 | - | }) | |
879 | + | })) | |
871 | 880 | ||
872 | 881 | ||
873 | 882 | ||
874 | - | @Callable( | |
875 | - | func reissueShare ( | |
883 | + | @Callable(ek) | |
884 | + | func reissueShare (bQ) = valueOrElse(bJ(ek), [Reissue(at, bQ, true)]) | |
876 | 885 | ||
877 | 886 | ||
878 | 887 | ||
879 | - | @Callable( | |
880 | - | func shutdown () = valueOrElse( | |
881 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
882 | - | else | |
888 | + | @Callable(aN) | |
889 | + | func shutdown () = valueOrElse(bI(aN), if (!(ag)) | |
890 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
891 | + | else bD("Paused by admin")) | |
883 | 892 | ||
884 | 893 | ||
885 | 894 | ||
886 | - | @Callable( | |
887 | - | func activate () = valueOrElse( | |
888 | - | then | |
889 | - | else [BooleanEntry(c, true), DeleteEntry( | |
895 | + | @Callable(aN) | |
896 | + | func activate () = valueOrElse(bI(aN), if (ag) | |
897 | + | then bF() | |
898 | + | else [BooleanEntry(c, true), DeleteEntry(n)]) | |
890 | 899 | ||
891 | 900 | ||
892 | 901 | ||
893 | - | @Callable( | |
894 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
895 | - | let | |
902 | + | @Callable(aN) | |
903 | + | func takeIntoAccountExtraFunds () = valueOrElse(bG(), { | |
904 | + | let el = if (if ((al == aa)) | |
896 | 905 | then true | |
897 | - | else ( | |
898 | - | then invoke( | |
906 | + | else (am == aa)) | |
907 | + | then invoke(X, "claimRewards", nil, nil) | |
899 | 908 | else 0 | |
900 | - | if (( | |
909 | + | if ((el == el)) | |
901 | 910 | then { | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | if (( | |
911 | + | let em = (aS - ar) | |
912 | + | let en = (aT - as) | |
913 | + | let dh = aY((ar + em), (as + en)) | |
914 | + | if ((aN.caller != V)) | |
906 | 915 | then throw("Only the money box can call this function") | |
907 | - | else if (if ((0 > | |
916 | + | else if (if ((0 > em)) | |
908 | 917 | then true | |
909 | - | else (0 > | |
910 | - | then | |
911 | - | else if (if (( | |
912 | - | then ( | |
918 | + | else (0 > en)) | |
919 | + | then bD("Enroll amount negative") | |
920 | + | else if (if ((em == 0)) | |
921 | + | then (en == 0) | |
913 | 922 | else false) | |
914 | 923 | then throw("No money to take") | |
915 | 924 | else { | |
916 | - | let | |
917 | - | then ( | |
925 | + | let cH = if (if (contains(ab, aj)) | |
926 | + | then (em > 0) | |
918 | 927 | else false) | |
919 | - | then invoke(this, "stakeUnstake", [true, | |
928 | + | then invoke(this, "stakeUnstake", [true, em, aj], nil) | |
920 | 929 | else 0 | |
921 | - | if (( | |
930 | + | if ((cH == cH)) | |
922 | 931 | then { | |
923 | - | let | |
924 | - | then ( | |
932 | + | let cI = if (if (contains(ab, ak)) | |
933 | + | then (en > 0) | |
925 | 934 | else false) | |
926 | - | then invoke(this, "stakeUnstake", [true, | |
935 | + | then invoke(this, "stakeUnstake", [true, en, ak], nil) | |
927 | 936 | else 0 | |
928 | - | if (( | |
929 | - | then [IntegerEntry( | |
937 | + | if ((cI == cI)) | |
938 | + | then [IntegerEntry(m, dh), IntegerEntry(h, (ar + em)), IntegerEntry(i, (as + en))] | |
930 | 939 | else throw("Strict value is not equal to itself.") | |
931 | 940 | } | |
932 | 941 | else throw("Strict value is not equal to itself.") | |
933 | 942 | } | |
934 | 943 | } | |
935 | 944 | else throw("Strict value is not equal to itself.") | |
936 | 945 | }) | |
937 | 946 | ||
938 | 947 | ||
939 | 948 | ||
940 | - | @Callable( | |
941 | - | func keepLimitForFirstHarvest ( | |
949 | + | @Callable(aN) | |
950 | + | func keepLimitForFirstHarvest (eo) = valueOrElse(bG(), valueOrElse(bI(aN), [IntegerEntry(w, eo)])) | |
942 | 951 | ||
943 | 952 | ||
944 | 953 | ||
945 | - | @Callable( | |
946 | - | func stakeUnstake ( | |
954 | + | @Callable(aN) | |
955 | + | func stakeUnstake (bO,bQ,ep) = if ((aN.caller != this)) | |
947 | 956 | then throw("Only contract itself can invoke this function") | |
948 | 957 | else { | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | if (( | |
958 | + | let eq = bP(bO, bQ, fromBase58String(ep)) | |
959 | + | let bS = eq._1 | |
960 | + | let er = eq._2 | |
961 | + | let es = eq._3 | |
962 | + | let et = eq._4 | |
963 | + | let eu = invoke(er, bS, es, et) | |
964 | + | if ((eu == eu)) | |
956 | 965 | then nil | |
957 | 966 | else throw("Strict value is not equal to itself.") | |
958 | 967 | } | |
959 | 968 | ||
960 | 969 | ||
961 | 970 | ||
962 | - | @Callable( | |
963 | - | func replenishWithTwoTokens () = valueOrElse( | |
971 | + | @Callable(aN) | |
972 | + | func replenishWithTwoTokens () = valueOrElse(bG(), valueOrElse(bH(), ck(aN, false, 0))) | |
964 | 973 | ||
965 | 974 | ||
966 | 975 | ||
967 | - | @Callable( | |
968 | - | func replenishWithOneToken ( | |
976 | + | @Callable(aN) | |
977 | + | func replenishWithOneToken (cO,cP) = valueOrElse(bG(), valueOrElse(bH(), cN(aN, cO, cP, false, 0))) | |
969 | 978 | ||
970 | 979 | ||
971 | 980 | ||
972 | - | @Callable( | |
973 | - | func withdraw () = valueOrElse( | |
981 | + | @Callable(aN) | |
982 | + | func withdraw () = valueOrElse(bG(), dr(aN, 0)) | |
974 | 983 | ||
975 | 984 | ||
976 | - | @Verifier( | |
977 | - | func | |
978 | - | let | |
979 | - | let | |
985 | + | @Verifier(ev) | |
986 | + | func ew () = { | |
987 | + | let ex = { | |
988 | + | let ey = if (sigVerify(ev.bodyBytes, ev.proofs[0], R)) | |
980 | 989 | then 1 | |
981 | 990 | else 0 | |
982 | - | let | |
991 | + | let ez = if (sigVerify(ev.bodyBytes, ev.proofs[1], S)) | |
983 | 992 | then 1 | |
984 | 993 | else 0 | |
985 | - | let | |
994 | + | let eA = if (sigVerify(ev.bodyBytes, ev.proofs[2], T)) | |
986 | 995 | then 1 | |
987 | 996 | else 0 | |
988 | - | ((( | |
997 | + | (((ey + ez) + eA) >= 2) | |
989 | 998 | } | |
990 | - | let | |
991 | - | if ($isInstanceOf( | |
999 | + | let O = ev | |
1000 | + | if ($isInstanceOf(O, "InvokeScriptTransaction")) | |
992 | 1001 | then { | |
993 | - | let | |
994 | - | let | |
995 | - | then ( | |
1002 | + | let eu = O | |
1003 | + | let eB = if ((eu.dApp == this)) | |
1004 | + | then (eu.function == "takeIntoAccountExtraFunds") | |
996 | 1005 | else false | |
997 | - | let | |
1006 | + | let eC = if (if (if (sigVerify(ev.bodyBytes, ev.proofs[0], R)) | |
998 | 1007 | then true | |
999 | - | else sigVerify( | |
1008 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], S)) | |
1000 | 1009 | then true | |
1001 | - | else sigVerify( | |
1010 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], T)) | |
1002 | 1011 | then true | |
1003 | - | else sigVerify( | |
1004 | - | if (if ( | |
1005 | - | then | |
1012 | + | else sigVerify(ev.bodyBytes, ev.proofs[0], U) | |
1013 | + | if (if (eB) | |
1014 | + | then eC | |
1006 | 1015 | else false) | |
1007 | 1016 | then true | |
1008 | - | else | |
1017 | + | else ex | |
1009 | 1018 | } | |
1010 | - | else | |
1019 | + | else ex | |
1011 | 1020 | } | |
1012 | 1021 |
github/deemru/w8io/026f985 414.58 ms ◑