tx · 7W9xf1kFJa4MobB5EcgwGkiM7BtYT6sFQTzJQH67nsVs 3N95zy625ACAsKajQX1tmob5hQMrzEk5kT4: -0.01400000 Waves 2021.12.29 16:59 [1855602] smart account 3N95zy625ACAsKajQX1tmob5hQMrzEk5kT4 > SELF 0.00000000 Waves
{ "type": 13, "id": "7W9xf1kFJa4MobB5EcgwGkiM7BtYT6sFQTzJQH67nsVs", "fee": 1400000, "feeAssetId": null, "timestamp": 1640786413285, "version": 2, "chainId": 84, "sender": "3N95zy625ACAsKajQX1tmob5hQMrzEk5kT4", "senderPublicKey": "HWuSxxqPxviP2UUvftMmvAewr3Ld2N7CNBLTPARFozyP", "proofs": [ "3pnoDFPZqsB29jftnAZJs58w6BgPaUtZc9EMmw1kupVGjLo2J5s7n7PUfpa6vfcEHeeZAFdTVvLX2VR4tpeQmG48", "4miQzSCMQ1MVG7rVFhr7M1QG9UKWQSQqxoycqcmCAqnEkHDWUmZ2QfZadg9BjAyjQxMiVFoj4h4UAG2zD2dMi4UR" ], "script": "base64:AAIFAAAAAAAAD2cIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESBQoDBAEIEgAaFAoBQRIPa2V5QWRtaW5QdWJLZXkyGhQKAUISD2tleUFkbWluUHViS2V5MxoLCgFDEgZvcmFjbGUaEAoBRBILZ2V0QWRtaW5QdWIaEAoBRRILa2V5QWRtaW5QdWIaDAoBRhIHJG1hdGNoMBoLCgFHEgZzdHJpbmcaDAoBSBIHbm90aGluZxoRCgFJEgxhZG1pblB1YktleTEaEQoBShIMYWRtaW5QdWJLZXkyGhEKAUsSDGFkbWluUHViS2V5MxoZCgFMEhRhZG1pblB1YktleVN0YXJ0U3RvcBoXCgFNEhJhZG1pblB1YktleVN0YWtpbmcaEgoBThINd2FsbGV0QWRkcmVzcxoSCgFPEg12b3RpbmdBZGRyZXNzGgkKAVASBFVTRE4aCQoBURIETlNCVBoJCgFSEgRFVVJOGhIKAVMSDXN0YWtp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Ym9keUJ5dGVzCQABkQAAAAIIBQAAAAJjQwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAU0DAwMDBQAAAAJjSQYFAAAAAmNKBgUAAAACY0sFAAAAAmNMBwYFAAAAAmNFBQAAAAJjRaC0PsE=", "height": 1855602, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J732EDPDECrFT5U5bhj718JUX9eHXytwUtaTmsABFpFL Next: none Diff:
Old | New | Differences | |
---|---|---|---|
41 | 41 | ||
42 | 42 | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "staking_eurn_address" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "leasing_address" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "leasing_amount" | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = "leasing_id" | |
53 | 53 | ||
54 | - | func z (A) = { | |
55 | - | let B = getString(y, A) | |
56 | - | if ($isInstanceOf(B, "String")) | |
54 | + | let z = "admin_pub_1" | |
55 | + | ||
56 | + | let A = "admin_pub_2" | |
57 | + | ||
58 | + | let B = "admin_pub_3" | |
59 | + | ||
60 | + | let C = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
61 | + | ||
62 | + | func D (E) = { | |
63 | + | let F = getString(C, E) | |
64 | + | if ($isInstanceOf(F, "String")) | |
57 | 65 | then { | |
58 | - | let | |
59 | - | fromBase58String( | |
66 | + | let G = F | |
67 | + | fromBase58String(G) | |
60 | 68 | } | |
61 | 69 | else { | |
62 | - | let | |
70 | + | let H = F | |
63 | 71 | throw("Admin public key is empty") | |
64 | 72 | } | |
65 | 73 | } | |
66 | 74 | ||
67 | 75 | ||
68 | - | let | |
76 | + | let I = D(z) | |
69 | 77 | ||
70 | - | let | |
78 | + | let J = D(A) | |
71 | 79 | ||
72 | - | let | |
80 | + | let K = D(B) | |
73 | 81 | ||
74 | - | let | |
82 | + | let L = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
75 | 83 | ||
76 | - | let | |
84 | + | let M = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
77 | 85 | ||
78 | - | let | |
86 | + | let N = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
79 | 87 | ||
80 | - | let | |
88 | + | let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
81 | 89 | ||
82 | - | let | |
90 | + | let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
83 | 91 | ||
84 | - | let | |
92 | + | let Q = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
85 | 93 | ||
86 | - | let | |
94 | + | let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
87 | 95 | ||
88 | - | let | |
96 | + | let S = ["WAVES", toBase58String(P), toBase58String(Q), toBase58String(R)] | |
89 | 97 | ||
90 | - | let | |
98 | + | let T = Address(fromBase58String(valueOrErrorMessage(getString(C, u), "no usdn staking address"))) | |
91 | 99 | ||
92 | - | let | |
100 | + | let U = Address(fromBase58String(valueOrErrorMessage(getString(C, v), "no usdn staking address"))) | |
93 | 101 | ||
94 | - | let | |
102 | + | let V = Address(base58'3N8PGkzXhbtTvEwEQTtE2xiTJmsDEQ9XfoZ') | |
95 | 103 | ||
96 | - | let | |
104 | + | let W = Address(base58'3MqW1t2cxdYy2emEMk3YtZkRwQPhHaTfWRe') | |
97 | 105 | ||
98 | - | let | |
106 | + | let X = valueOrErrorMessage(getInteger(O, r), "Empty kBasePeriod") | |
99 | 107 | ||
100 | - | let | |
108 | + | let Y = valueOrErrorMessage(getInteger(O, t), "Empty kStartHeight") | |
101 | 109 | ||
102 | - | let | |
110 | + | let Z = valueOrErrorMessage(getInteger(O, s), "Empty kPeriodLength") | |
103 | 111 | ||
104 | - | let | |
112 | + | let aa = ((X + ((height - Y) / Z)) + 3) | |
105 | 113 | ||
106 | - | let | |
114 | + | let ab = getBooleanValue(this, c) | |
107 | 115 | ||
108 | - | let | |
116 | + | let ac = getStringValue(this, d) | |
109 | 117 | ||
110 | - | let | |
118 | + | let ad = getStringValue(this, e) | |
111 | 119 | ||
112 | - | let aa = getStringValue(this, d) | |
120 | + | let ae = if ((ac == "WAVES")) | |
121 | + | then unit | |
122 | + | else fromBase58String(ac) | |
113 | 123 | ||
114 | - | let ab = getStringValue(this, e) | |
124 | + | let af = if ((ad == "WAVES")) | |
125 | + | then unit | |
126 | + | else fromBase58String(ad) | |
115 | 127 | ||
116 | - | let ac = if ((aa == "WAVES")) | |
117 | - | then unit | |
118 | - | else fromBase58String(aa) | |
119 | - | ||
120 | - | let ad = if ((ab == "WAVES")) | |
121 | - | then unit | |
122 | - | else fromBase58String(ab) | |
123 | - | ||
124 | - | let ae = { | |
125 | - | let B = ac | |
126 | - | if ($isInstanceOf(B, "ByteVector")) | |
128 | + | let ag = { | |
129 | + | let F = ae | |
130 | + | if ($isInstanceOf(F, "ByteVector")) | |
127 | 131 | then { | |
128 | - | let | |
129 | - | value(assetInfo( | |
132 | + | let ah = F | |
133 | + | value(assetInfo(ah)).name | |
130 | 134 | } | |
131 | - | else if ($isInstanceOf( | |
135 | + | else if ($isInstanceOf(F, "Unit")) | |
132 | 136 | then { | |
133 | - | let | |
137 | + | let ai = F | |
134 | 138 | "WAVES" | |
135 | 139 | } | |
136 | 140 | else throw("Match error") | |
137 | 141 | } | |
138 | 142 | ||
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
143 | + | let aj = { | |
144 | + | let F = af | |
145 | + | if ($isInstanceOf(F, "ByteVector")) | |
142 | 146 | then { | |
143 | - | let | |
144 | - | value(assetInfo( | |
147 | + | let ah = F | |
148 | + | value(assetInfo(ah)).name | |
145 | 149 | } | |
146 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(F, "Unit")) | |
147 | 151 | then { | |
148 | - | let | |
152 | + | let ai = F | |
149 | 153 | "WAVES" | |
150 | 154 | } | |
151 | 155 | else throw("Match error") | |
152 | 156 | } | |
153 | 157 | ||
154 | - | let | |
158 | + | let ak = getIntegerValue(this, f) | |
155 | 159 | ||
156 | - | let | |
160 | + | let al = getIntegerValue(this, g) | |
157 | 161 | ||
158 | - | let | |
162 | + | let am = fromBase58String(getStringValue(this, j)) | |
159 | 163 | ||
160 | - | let | |
164 | + | let an = getIntegerValue(this, k) | |
161 | 165 | ||
162 | - | let | |
166 | + | let ao = 3000 | |
163 | 167 | ||
164 | - | let | |
168 | + | let ap = 1000000 | |
165 | 169 | ||
166 | - | let | |
170 | + | let aq = 1000 | |
167 | 171 | ||
168 | - | let | |
172 | + | let ar = 100000000 | |
169 | 173 | ||
170 | - | let aq = 100000000 | |
171 | - | ||
172 | - | let ar = 1000 | |
173 | - | ||
174 | - | let as = 8 | |
174 | + | let as = 1000 | |
175 | 175 | ||
176 | 176 | func at (au) = { | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
177 | + | let F = au | |
178 | + | if ($isInstanceOf(F, "ByteVector")) | |
179 | 179 | then { | |
180 | - | let | |
181 | - | assetBalance(this, | |
180 | + | let ah = F | |
181 | + | assetBalance(this, ah) | |
182 | 182 | } | |
183 | - | else if ($isInstanceOf( | |
183 | + | else if ($isInstanceOf(F, "Unit")) | |
184 | 184 | then { | |
185 | - | let | |
185 | + | let ai = F | |
186 | 186 | wavesBalance(this).available | |
187 | 187 | } | |
188 | 188 | else throw("Match error") | |
191 | 191 | ||
192 | 192 | func av (au) = { | |
193 | 193 | let aw = { | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
194 | + | let F = au | |
195 | + | if ($isInstanceOf(F, "ByteVector")) | |
196 | 196 | then { | |
197 | - | let ax = | |
198 | - | if (if ((ax == | |
197 | + | let ax = F | |
198 | + | if (if ((ax == P)) | |
199 | 199 | then true | |
200 | - | else (ax == | |
201 | - | then getInteger( | |
202 | - | else if ((ax == | |
203 | - | then getInteger( | |
200 | + | else (ax == Q)) | |
201 | + | then getInteger(T, ((("rpd_balance_" + toBase58String(ax)) + "_") + toString(this))) | |
202 | + | else if ((ax == R)) | |
203 | + | then getInteger(U, ((("%s%s%s__stakingBalance__" + toBase58String(ax)) + "__") + toString(this))) | |
204 | 204 | else 0 | |
205 | 205 | } | |
206 | - | else if ($isInstanceOf( | |
207 | - | then 0 | |
206 | + | else if ($isInstanceOf(F, "Unit")) | |
207 | + | then valueOrElse(getInteger(this, x), 0) | |
208 | 208 | else throw("Match error") | |
209 | 209 | } | |
210 | - | let | |
211 | - | if ($isInstanceOf( | |
210 | + | let F = aw | |
211 | + | if ($isInstanceOf(F, "Int")) | |
212 | 212 | then { | |
213 | - | let ay = | |
213 | + | let ay = F | |
214 | 214 | ay | |
215 | 215 | } | |
216 | 216 | else 0 | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | - | let az = av( | |
220 | + | let az = av(ae) | |
221 | 221 | ||
222 | - | let aA = av( | |
222 | + | let aA = av(af) | |
223 | 223 | ||
224 | 224 | let aB = getIntegerValue(this, h) | |
225 | 225 | ||
226 | 226 | let aC = getIntegerValue(this, i) | |
227 | 227 | ||
228 | - | let aD = ( | |
228 | + | let aD = (ak - az) | |
229 | 229 | ||
230 | - | let aE = ( | |
230 | + | let aE = (al - aA) | |
231 | 231 | ||
232 | - | let aF = (at( | |
232 | + | let aF = (at(ae) + az) | |
233 | 233 | ||
234 | - | let aG = (at( | |
234 | + | let aG = (at(af) + aA) | |
235 | 235 | ||
236 | - | let aH = if ((aF >= | |
237 | - | then (aG >= | |
236 | + | let aH = if ((aF >= ak)) | |
237 | + | then (aG >= al) | |
238 | 238 | else false | |
239 | 239 | ||
240 | 240 | func aI (au) = { | |
241 | - | let | |
242 | - | if ($isInstanceOf( | |
241 | + | let F = au | |
242 | + | if ($isInstanceOf(F, "ByteVector")) | |
243 | 243 | then { | |
244 | - | let | |
245 | - | let aJ = toBase58String( | |
246 | - | let aK = valueOrErrorMessage(assetInfo( | |
244 | + | let ah = F | |
245 | + | let aJ = toBase58String(ah) | |
246 | + | let aK = valueOrErrorMessage(assetInfo(ah), (("Asset " + aJ) + " doesn't exist")) | |
247 | 247 | $Tuple3(aJ, aK.name, aK.decimals) | |
248 | 248 | } | |
249 | - | else if ($isInstanceOf( | |
249 | + | else if ($isInstanceOf(F, "Unit")) | |
250 | 250 | then { | |
251 | - | let | |
251 | + | let ai = F | |
252 | 252 | $Tuple3("WAVES", "WAVES", 8) | |
253 | 253 | } | |
254 | 254 | else throw("Match error") | |
259 | 259 | then $Tuple3("WAVES", "WAVES", 8) | |
260 | 260 | else { | |
261 | 261 | let aJ = aM | |
262 | - | let | |
263 | - | let aK = valueOrErrorMessage(assetInfo( | |
262 | + | let ah = fromBase58String(aM) | |
263 | + | let aK = valueOrErrorMessage(assetInfo(ah), (("Asset " + aJ) + " doesn't exist")) | |
264 | 264 | $Tuple3(aJ, aK.name, aK.decimals) | |
265 | 265 | } | |
266 | 266 | ||
268 | 268 | func aN (aO) = [BooleanEntry(c, false), StringEntry(n, aO)] | |
269 | 269 | ||
270 | 270 | ||
271 | - | func aP (aQ,au,aR) = if (if ((au == L)) | |
272 | - | then true | |
273 | - | else (au == O)) | |
274 | - | then { | |
275 | - | let aS = if ((au == L)) | |
276 | - | then (T * (if ((aR == M)) | |
277 | - | then 2 | |
278 | - | else 1)) | |
279 | - | else if ((au == O)) | |
280 | - | then U | |
281 | - | else 0 | |
282 | - | let aT = (aQ - aS) | |
283 | - | if ((0 >= aT)) | |
284 | - | then throw((((("Insufficient amount " + toString(aQ)) + " to deduct staking fee ") + toString(aS)) + "USDN/EURN")) | |
285 | - | else aT | |
286 | - | } | |
287 | - | else aQ | |
271 | + | func aP (aQ,au) = if (aQ) | |
272 | + | then if ((au == P)) | |
273 | + | then $Tuple2("lockNeutrino", T) | |
274 | + | else if ((au == Q)) | |
275 | + | then $Tuple2("lockNsbt", T) | |
276 | + | else $Tuple2("startStaking", U) | |
277 | + | else if ((au == P)) | |
278 | + | then $Tuple2("unlockNeutrino", T) | |
279 | + | else if ((au == Q)) | |
280 | + | then $Tuple2("unlockNsbt", T) | |
281 | + | else $Tuple2("stopStaking", U) | |
288 | 282 | ||
289 | 283 | ||
290 | - | func aU (au,aR) = if ((au == L)) | |
291 | - | then (T * (if ((aR == M)) | |
292 | - | then 2 | |
293 | - | else 1)) | |
294 | - | else if ((au == O)) | |
295 | - | then U | |
296 | - | else 0 | |
284 | + | func aR (aQ,aS,au) = if (aQ) | |
285 | + | then { | |
286 | + | let aT = aP(aQ, au) | |
287 | + | let aU = aT._1 | |
288 | + | let aV = aT._2 | |
289 | + | $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)]) | |
290 | + | } | |
291 | + | else { | |
292 | + | let aW = aP(aQ, au) | |
293 | + | let aU = aW._1 | |
294 | + | let aV = aW._2 | |
295 | + | $Tuple4(aU, aV, [aS, toBase58String(au)], nil) | |
296 | + | } | |
297 | 297 | ||
298 | 298 | ||
299 | - | func | |
299 | + | func aX (aS,aY,aZ) = throw((((((((("Insufficient DApp balance to pay " + toString(aS)) + " ") + aZ) + " due to staking. Available: ") + toString(aY)) + " ") + aZ) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
300 | 300 | ||
301 | 301 | ||
302 | - | func | |
302 | + | func ba (bb,bc) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bb)) + " ") + ag) + " and ") + toString(bc)) + " ") + aj) + " due to staking. Available: ") + toString(aD)) + " ") + ag) + " and ") + toString(aE)) + " ") + aj) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
303 | 303 | ||
304 | 304 | ||
305 | - | func | |
305 | + | func bd () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ag) + ", ") + toString(aG)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj)) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(ay) | |
309 | - | func init ( | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | if (!(containsElement([ | |
309 | + | func init (be) = { | |
310 | + | let bf = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
311 | + | let bg = bf._1 | |
312 | + | let bh = bf._2 | |
313 | + | let bi = $Tuple2(ay.payments[1].amount, ay.payments[1].assetId) | |
314 | + | let bj = bi._1 | |
315 | + | let bk = bi._2 | |
316 | + | let bl = aI(bh) | |
317 | + | let bm = bl._1 | |
318 | + | let bn = bl._2 | |
319 | + | let bo = bl._3 | |
320 | + | let bp = aI(bk) | |
321 | + | let bq = bp._1 | |
322 | + | let br = bp._2 | |
323 | + | let bs = bp._3 | |
324 | + | if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
325 | 325 | then throw("Only admin can call this function") | |
326 | 326 | else if (isDefined(getBoolean(this, c))) | |
327 | 327 | then throw("DApp is already active") | |
328 | - | else if (( | |
328 | + | else if ((bh == bk)) | |
329 | 329 | then throw("Assets must be different") | |
330 | 330 | else { | |
331 | - | let br = ((("s" + take(bl, 7)) + "_") + take(bp, 7)) | |
332 | - | let bs = ((((("ShareToken of SwopFi protocol for " + bl) + " and ") + bp) + " at address ") + toString(this)) | |
333 | - | let bt = ((bm + bq) / 2) | |
334 | - | let bu = pow(be, bm, 5, 1, bm, DOWN) | |
335 | - | let bv = pow(bh, bq, 5, 1, bq, DOWN) | |
336 | - | let bw = pow(10, 0, bt, 0, 0, DOWN) | |
337 | - | let bx = fraction(bu, bv, bw) | |
338 | - | let by = Issue(br, bs, bx, bt, true) | |
339 | - | let bz = calculateAssetId(by) | |
340 | - | let bA = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bk), StringEntry(e, bo), IntegerEntry(f, be), IntegerEntry(g, bh), IntegerEntry(l, am), IntegerEntry(m, ao), by, StringEntry(j, toBase58String(bz)), IntegerEntry(k, bx), ScriptTransfer(ay.caller, bx, bz)] | |
341 | - | if (bc) | |
342 | - | then (bA ++ [BooleanEntry(o, bc), IntegerEntry(p, (W + (Y * X)))]) | |
343 | - | else bA | |
331 | + | let bt = ((("s" + take(bn, 7)) + "_") + take(br, 7)) | |
332 | + | let bu = ((((("ShareToken of SwopFi protocol for " + bn) + " and ") + br) + " at address ") + toString(this)) | |
333 | + | let bv = ((bo + bs) / 2) | |
334 | + | let bw = pow(bg, bo, 5, 1, bo, DOWN) | |
335 | + | let bx = pow(bj, bs, 5, 1, bs, DOWN) | |
336 | + | let by = pow(10, 0, bv, 0, 0, DOWN) | |
337 | + | let bz = fraction(bw, bx, by) | |
338 | + | let bA = Issue(bt, bu, bz, bv, true) | |
339 | + | let bB = calculateAssetId(bA) | |
340 | + | let bC = if (containsElement(S, bm)) | |
341 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
342 | + | else 0 | |
343 | + | if ((bC == bC)) | |
344 | + | then { | |
345 | + | let bD = if (containsElement(S, bq)) | |
346 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
347 | + | else 0 | |
348 | + | if ((bD == bD)) | |
349 | + | then { | |
350 | + | let bE = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bm), StringEntry(e, bq), IntegerEntry(f, bg), IntegerEntry(g, bj), IntegerEntry(l, ao), IntegerEntry(m, ap), bA, StringEntry(j, toBase58String(bB)), IntegerEntry(k, bz), ScriptTransfer(ay.caller, bz, bB)] | |
351 | + | if (be) | |
352 | + | then (bE ++ [BooleanEntry(o, be), IntegerEntry(p, (Y + (aa * Z)))]) | |
353 | + | else bE | |
354 | + | } | |
355 | + | else throw("Strict value is not equal to itself.") | |
356 | + | } | |
357 | + | else throw("Strict value is not equal to itself.") | |
344 | 358 | } | |
345 | 359 | } | |
346 | 360 | ||
347 | 361 | ||
348 | 362 | ||
349 | 363 | @Callable(ay) | |
350 | - | func initWithInitRatio ( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if (!(containsElement([ | |
364 | + | func initWithInitRatio (bF,bG,ac,ad,be) = { | |
365 | + | let bH = aL(ac) | |
366 | + | let bm = bH._1 | |
367 | + | let bn = bH._2 | |
368 | + | let bo = bH._3 | |
369 | + | let bI = aL(ad) | |
370 | + | let bq = bI._1 | |
371 | + | let br = bI._2 | |
372 | + | let bs = bI._3 | |
373 | + | if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
360 | 374 | then throw("Only admin can call this function") | |
361 | 375 | else if (isDefined(getBoolean(this, c))) | |
362 | 376 | then throw("DApp is already active") | |
363 | - | else if (( | |
377 | + | else if ((ac == ad)) | |
364 | 378 | then throw("Assets must be different") | |
365 | 379 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ( | |
374 | - | then ( | |
375 | - | else | |
380 | + | let bt = ((("s" + take(bn, 7)) + "_") + take(br, 7)) | |
381 | + | let bu = ((((("ShareToken of SwopFi protocol for " + bn) + " and ") + br) + " at address ") + toString(this)) | |
382 | + | let bv = ((bo + bs) / 2) | |
383 | + | let bz = 0 | |
384 | + | let bA = Issue(bt, bu, bz, bv, true) | |
385 | + | let bB = calculateAssetId(bA) | |
386 | + | let bE = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bm), StringEntry(e, bq), IntegerEntry(h, bF), IntegerEntry(i, bG), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ao), IntegerEntry(m, ap), bA, StringEntry(j, toBase58String(bB)), IntegerEntry(k, bz)] | |
387 | + | if (be) | |
388 | + | then (bE ++ [BooleanEntry(o, be), IntegerEntry(p, (Y + (aa * Z)))]) | |
389 | + | else bE | |
376 | 390 | } | |
377 | 391 | } | |
378 | 392 | ||
379 | 393 | ||
380 | 394 | ||
381 | 395 | @Callable(ay) | |
382 | - | func keepLimitForFirstHarvest ( | |
396 | + | func keepLimitForFirstHarvest (bJ) = if (!(ab)) | |
383 | 397 | then throw("DApp is inactive at this moment") | |
384 | - | else if (!(containsElement([ | |
398 | + | else if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
385 | 399 | then throw("Only admin can call this function") | |
386 | - | else [IntegerEntry(q, | |
400 | + | else [IntegerEntry(q, bJ)] | |
387 | 401 | ||
388 | 402 | ||
389 | 403 | ||
390 | 404 | @Callable(ay) | |
391 | - | func replenishWithTwoTokens (bG) = { | |
392 | - | let bf = ay.payments[0].assetId | |
393 | - | let bi = ay.payments[1].assetId | |
394 | - | let be = aP(ay.payments[0].amount, bf, bi) | |
395 | - | let bh = aP(ay.payments[1].amount, bi, bf) | |
396 | - | if (if ((ai == 0)) | |
397 | - | then (aj == 0) | |
405 | + | func replenishWithTwoTokens (bK) = { | |
406 | + | let bh = ay.payments[0].assetId | |
407 | + | let bk = ay.payments[1].assetId | |
408 | + | let bg = ay.payments[0].amount | |
409 | + | let bj = ay.payments[1].amount | |
410 | + | let bL = aI(bh) | |
411 | + | let bm = bL._1 | |
412 | + | let bn = bL._2 | |
413 | + | let bo = bL._3 | |
414 | + | let bM = aI(bk) | |
415 | + | let bq = bM._1 | |
416 | + | let br = bM._2 | |
417 | + | let bs = bM._3 | |
418 | + | if (if ((ak == 0)) | |
419 | + | then (al == 0) | |
398 | 420 | else false) | |
399 | 421 | then { | |
400 | - | let bH = aI(bf) | |
401 | - | let bk = bH._1 | |
402 | - | let bl = bH._2 | |
403 | - | let bm = bH._3 | |
404 | - | let bI = aI(bi) | |
405 | - | let bo = bI._1 | |
406 | - | let bp = bI._2 | |
407 | - | let bq = bI._3 | |
408 | - | let bJ = fraction(fraction(aB, aq, be), ap, fraction(aC, aq, bh)) | |
409 | - | if ((bf == bi)) | |
422 | + | let bN = fraction(fraction(aB, ar, bg), aq, fraction(aC, ar, bj)) | |
423 | + | if ((bh == bk)) | |
410 | 424 | then throw("Assets must be different") | |
411 | 425 | else { | |
412 | - | let | |
413 | - | let | |
414 | - | if (!( | |
426 | + | let bv = ((bo + bs) / 2) | |
427 | + | let bz = fraction(pow(bg, bo, 5, 1, bo, DOWN), pow(bj, bs, 5, 1, bs, DOWN), pow(10, 0, bv, 0, 0, DOWN)) | |
428 | + | if (!(ab)) | |
415 | 429 | then throw("DApp is inactive at this moment") | |
416 | - | else if (if ((0 > | |
430 | + | else if (if ((0 > bK)) | |
417 | 431 | then true | |
418 | - | else ( | |
419 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
432 | + | else (bK > as)) | |
433 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(as)) + " inclusively. Actual: ") + toString(bK))) | |
420 | 434 | else if ((size(ay.payments) != 2)) | |
421 | 435 | then throw("Two attached assets expected") | |
422 | - | else if (if (((( | |
436 | + | else if (if ((((aq * (as - bK)) / as) > bN)) | |
423 | 437 | then true | |
424 | - | else ( | |
438 | + | else (bN > ((aq * (as + bK)) / as))) | |
425 | 439 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
426 | - | else if (if (( | |
440 | + | else if (if ((bh != ae)) | |
427 | 441 | then true | |
428 | - | else ( | |
429 | - | then throw(((("Incorrect assets attached. Expected: " + | |
430 | - | else if (( | |
442 | + | else (bk != af)) | |
443 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
444 | + | else if ((bz == 0)) | |
431 | 445 | then throw("Too small amount to replenish") | |
432 | 446 | else if (!(aH)) | |
433 | - | then ([ScriptTransfer(ay.caller, be, bf), ScriptTransfer(ay.caller, bh, bi)] ++ bb()) | |
434 | - | else [Reissue(ak, bx, true), IntegerEntry(f, be), IntegerEntry(g, bh), IntegerEntry(k, bx), ScriptTransfer(ay.caller, bx, ak)] | |
447 | + | then ([ScriptTransfer(ay.caller, bg, bh), ScriptTransfer(ay.caller, bj, bk)] ++ bd()) | |
448 | + | else { | |
449 | + | let bC = if (containsElement(S, bm)) | |
450 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
451 | + | else 0 | |
452 | + | if ((bC == bC)) | |
453 | + | then { | |
454 | + | let bD = if (containsElement(S, bq)) | |
455 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
456 | + | else 0 | |
457 | + | if ((bD == bD)) | |
458 | + | then [Reissue(am, bz, true), IntegerEntry(f, bg), IntegerEntry(g, bj), IntegerEntry(k, bz), ScriptTransfer(ay.caller, bz, am)] | |
459 | + | else throw("Strict value is not equal to itself.") | |
460 | + | } | |
461 | + | else throw("Strict value is not equal to itself.") | |
462 | + | } | |
435 | 463 | } | |
436 | 464 | } | |
437 | 465 | else { | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | if (!( | |
466 | + | let bN = fraction(fraction(ak, ar, bg), aq, fraction(al, ar, bj)) | |
467 | + | let bO = fraction(bg, ar, ak) | |
468 | + | let bP = fraction(bj, ar, al) | |
469 | + | let bQ = fraction(min([bO, bP]), an, ar) | |
470 | + | if (!(ab)) | |
443 | 471 | then throw("DApp is inactive at this moment") | |
444 | - | else if (if ((0 > | |
472 | + | else if (if ((0 > bK)) | |
445 | 473 | then true | |
446 | - | else ( | |
447 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
474 | + | else (bK > as)) | |
475 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(as)) + " inclusively. Actual: ") + toString(bK))) | |
448 | 476 | else if ((size(ay.payments) != 2)) | |
449 | 477 | then throw("Two attached assets expected") | |
450 | - | else if (if (( | |
478 | + | else if (if ((bh != ae)) | |
451 | 479 | then true | |
452 | - | else ( | |
453 | - | then throw(((("Incorrect assets attached. Expected: " + | |
454 | - | else if (if (((( | |
480 | + | else (bk != af)) | |
481 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
482 | + | else if (if ((((aq * (as - bK)) / as) > bN)) | |
455 | 483 | then true | |
456 | - | else ( | |
484 | + | else (bN > ((aq * (as + bK)) / as))) | |
457 | 485 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
458 | - | else if (( | |
486 | + | else if ((bQ == 0)) | |
459 | 487 | then throw("Too small amount to replenish") | |
460 | 488 | else if (!(aH)) | |
461 | - | then ([ScriptTransfer(ay.caller, be, bf), ScriptTransfer(ay.caller, bh, bi)] ++ bb()) | |
462 | - | else [IntegerEntry(f, (ai + be)), IntegerEntry(g, (aj + bh)), IntegerEntry(k, (al + bM)), Reissue(ak, bM, true), ScriptTransfer(ay.caller, bM, ak)] | |
489 | + | then ([ScriptTransfer(ay.caller, bg, bh), ScriptTransfer(ay.caller, bj, bk)] ++ bd()) | |
490 | + | else { | |
491 | + | let bC = if (containsElement(S, bm)) | |
492 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
493 | + | else 0 | |
494 | + | if ((bC == bC)) | |
495 | + | then { | |
496 | + | let bD = if (containsElement(S, bq)) | |
497 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
498 | + | else 0 | |
499 | + | if ((bD == bD)) | |
500 | + | then [IntegerEntry(f, (ak + bg)), IntegerEntry(g, (al + bj)), IntegerEntry(k, (an + bQ)), Reissue(am, bQ, true), ScriptTransfer(ay.caller, bQ, am)] | |
501 | + | else throw("Strict value is not equal to itself.") | |
502 | + | } | |
503 | + | else throw("Strict value is not equal to itself.") | |
504 | + | } | |
463 | 505 | } | |
464 | 506 | } | |
465 | 507 | ||
467 | 509 | ||
468 | 510 | @Callable(ay) | |
469 | 511 | func withdraw () = { | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | if (!( | |
512 | + | let bR = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
513 | + | let bS = bR._1 | |
514 | + | let bT = bR._2 | |
515 | + | let bU = fraction(bS, ak, an) | |
516 | + | let bV = fraction(bS, al, an) | |
517 | + | if (!(ab)) | |
476 | 518 | then throw("DApp is inactive at this moment") | |
477 | 519 | else if ((size(ay.payments) != 1)) | |
478 | 520 | then throw("One attached payment expected") | |
479 | - | else if (( | |
480 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
521 | + | else if ((bT != am)) | |
522 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
481 | 523 | else if (!(aH)) | |
482 | - | then ([ScriptTransfer(ay.caller, | |
483 | - | else if (if (( | |
524 | + | then ([ScriptTransfer(ay.caller, bS, bT)] ++ bd()) | |
525 | + | else if (if ((bU > aD)) | |
484 | 526 | then true | |
485 | - | else (bR > aE)) | |
486 | - | then aY(bQ, bR) | |
487 | - | else [IntegerEntry(f, (ai - bQ)), IntegerEntry(g, (aj - bR)), IntegerEntry(k, (al - bO)), Burn(ak, bO), ScriptTransfer(ay.caller, bQ, ac), ScriptTransfer(ay.caller, bR, ad)] | |
527 | + | else (bV > aE)) | |
528 | + | then ba(bU, bV) | |
529 | + | else { | |
530 | + | let bC = if (containsElement(S, ac)) | |
531 | + | then invoke(this, "stakeUnstake", [false, bU, ac], nil) | |
532 | + | else 0 | |
533 | + | if ((bC == bC)) | |
534 | + | then { | |
535 | + | let bD = if (containsElement(S, ad)) | |
536 | + | then invoke(this, "stakeUnstake", [false, bV, ad], nil) | |
537 | + | else 0 | |
538 | + | if ((bD == bD)) | |
539 | + | then [IntegerEntry(f, (ak - bU)), IntegerEntry(g, (al - bV)), IntegerEntry(k, (an - bS)), Burn(am, bS), ScriptTransfer(ay.caller, bU, ae), ScriptTransfer(ay.caller, bV, af)] | |
540 | + | else throw("Strict value is not equal to itself.") | |
541 | + | } | |
542 | + | else throw("Strict value is not equal to itself.") | |
543 | + | } | |
488 | 544 | } | |
489 | 545 | ||
490 | 546 | ||
491 | 547 | ||
492 | 548 | @Callable(ay) | |
493 | - | func exchange ( | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | func | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | if (( | |
502 | - | then throw(((("Calculated amount to receive " + toString( | |
503 | - | else $Tuple3( | |
549 | + | func exchange (bW) = { | |
550 | + | let bX = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
551 | + | let bS = bX._1 | |
552 | + | let bT = bX._2 | |
553 | + | func bY (bZ,ca) = { | |
554 | + | let cb = fraction(ca, bS, (bS + bZ)) | |
555 | + | let cc = fraction(cb, (ap - ao), ap) | |
556 | + | let cd = fraction(cb, commissionGovernance, ap) | |
557 | + | if ((bW > cc)) | |
558 | + | then throw(((("Calculated amount to receive " + toString(cc)) + " is less than specified minimum ") + toString(bW))) | |
559 | + | else $Tuple3(cb, cc, cd) | |
504 | 560 | } | |
505 | 561 | ||
506 | - | if (!( | |
562 | + | if (!(ab)) | |
507 | 563 | then throw("DApp is inactive at this moment") | |
508 | - | else if (if (( | |
564 | + | else if (if ((ak == 0)) | |
509 | 565 | then true | |
510 | - | else ( | |
566 | + | else (al == 0)) | |
511 | 567 | then throw("Can't exchange with zero balance") | |
512 | - | else if ((0 >= | |
513 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
568 | + | else if ((0 >= bW)) | |
569 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(bW))) | |
514 | 570 | else if ((size(ay.payments) != 1)) | |
515 | 571 | then throw("One attached payment expected") | |
516 | 572 | else if (!(aH)) | |
517 | - | then ([ScriptTransfer(ay.caller, | |
518 | - | else if (( | |
573 | + | then ([ScriptTransfer(ay.caller, bS, bT)] ++ bd()) | |
574 | + | else if ((bT == ae)) | |
519 | 575 | then { | |
520 | - | let ca = ad | |
521 | - | let cb = bU(ai, aj) | |
522 | - | let bX = cb._1 | |
523 | - | let bY = cb._2 | |
524 | - | let bZ = cb._3 | |
525 | - | let cc = (ai + bO) | |
526 | - | let cd = ((aj - bY) - bZ) | |
527 | - | if (if ((az >= cc)) | |
528 | - | then true | |
529 | - | else (aA >= cd)) | |
530 | - | then aV(bY, aE, ah) | |
531 | - | else [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(ay.caller, bY, ca), ScriptTransfer(J, bZ, ca)] | |
576 | + | let ce = af | |
577 | + | let cf = bY(ak, al) | |
578 | + | let cb = cf._1 | |
579 | + | let cc = cf._2 | |
580 | + | let cd = cf._3 | |
581 | + | let cg = (ak + bS) | |
582 | + | let ch = ((al - cc) - cd) | |
583 | + | let bC = if (containsElement(S, ac)) | |
584 | + | then invoke(this, "stakeUnstake", [true, bS, ac], nil) | |
585 | + | else 0 | |
586 | + | if ((bC == bC)) | |
587 | + | then { | |
588 | + | let bD = if (containsElement(S, ad)) | |
589 | + | then invoke(this, "stakeUnstake", [false, (cc + cd), ad], nil) | |
590 | + | else 0 | |
591 | + | if ((bD == bD)) | |
592 | + | then [IntegerEntry(f, cg), IntegerEntry(g, ch), ScriptTransfer(ay.caller, cc, ce), ScriptTransfer(N, cd, ce)] | |
593 | + | else throw("Strict value is not equal to itself.") | |
594 | + | } | |
595 | + | else throw("Strict value is not equal to itself.") | |
532 | 596 | } | |
533 | - | else if (( | |
597 | + | else if ((bT == af)) | |
534 | 598 | then { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | if (if ((az >= | |
599 | + | let ce = ae | |
600 | + | let ci = bY(al, ak) | |
601 | + | let cb = ci._1 | |
602 | + | let cc = ci._2 | |
603 | + | let cd = ci._3 | |
604 | + | let cg = ((ak - cc) - cd) | |
605 | + | let ch = (al + bS) | |
606 | + | if (if ((az >= cg)) | |
543 | 607 | then true | |
544 | - | else (aA >= cd)) | |
545 | - | then aV(bY, aD, ae) | |
546 | - | else [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(ay.caller, bY, ca), ScriptTransfer(J, bZ, ca)] | |
608 | + | else (aA >= ch)) | |
609 | + | then aX(cc, aD, ag) | |
610 | + | else { | |
611 | + | let bC = if (containsElement(S, ac)) | |
612 | + | then invoke(this, "stakeUnstake", [false, (cc + cd), ac], nil) | |
613 | + | else 0 | |
614 | + | if ((bC == bC)) | |
615 | + | then { | |
616 | + | let bD = if (containsElement(S, ad)) | |
617 | + | then invoke(this, "stakeUnstake", [true, bS, ad], nil) | |
618 | + | else 0 | |
619 | + | if ((bD == bD)) | |
620 | + | then [IntegerEntry(f, cg), IntegerEntry(g, ch), ScriptTransfer(ay.caller, cc, ce), ScriptTransfer(N, cd, ce)] | |
621 | + | else throw("Strict value is not equal to itself.") | |
622 | + | } | |
623 | + | else throw("Strict value is not equal to itself.") | |
624 | + | } | |
547 | 625 | } | |
548 | - | else throw(((("Incorrect asset attached. Expected: " + | |
626 | + | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
549 | 627 | } | |
550 | 628 | ||
551 | 629 | ||
552 | 630 | ||
553 | 631 | @Callable(ay) | |
554 | - | func shutdown () = if (!( | |
632 | + | func shutdown () = if (!(ab)) | |
555 | 633 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
556 | - | else if (!(containsElement([ | |
634 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
557 | 635 | then throw("Only admin can call this function") | |
558 | 636 | else aN("Paused by admin") | |
559 | 637 | ||
560 | 638 | ||
561 | 639 | ||
562 | 640 | @Callable(ay) | |
563 | - | func activate () = if ( | |
641 | + | func activate () = if (ab) | |
564 | 642 | then throw("DApp is already active") | |
565 | - | else if (!(containsElement([ | |
643 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
566 | 644 | then throw("Only admin can call this function") | |
567 | 645 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
568 | 646 | ||
569 | 647 | ||
570 | 648 | ||
571 | 649 | @Callable(ay) | |
572 | - | func takeIntoAccountExtraFunds ( | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | then | |
650 | + | func takeIntoAccountExtraFunds (cj) = { | |
651 | + | let ck = (aF - ak) | |
652 | + | let cl = (aG - al) | |
653 | + | let cm = (ck - (if ((ae == unit)) | |
654 | + | then cj | |
577 | 655 | else 0)) | |
578 | - | let | |
579 | - | then | |
656 | + | let cn = (cl - (if ((af == unit)) | |
657 | + | then cj | |
580 | 658 | else 0)) | |
581 | - | if (!( | |
659 | + | if (!(ab)) | |
582 | 660 | then throw("DApp is inactive at this moment") | |
583 | 661 | else if ((ay.caller != this)) | |
584 | 662 | then throw("Only the DApp itself can call this function") | |
585 | - | else if ((0 > | |
586 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
587 | - | else if (if ((0 > | |
663 | + | else if ((0 > cj)) | |
664 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cj))) | |
665 | + | else if (if ((0 > ck)) | |
588 | 666 | then true | |
589 | - | else (0 > | |
667 | + | else (0 > cl)) | |
590 | 668 | then aN("Enroll amount negative") | |
591 | - | else if (if ((0 > | |
669 | + | else if (if ((0 > cm)) | |
592 | 670 | then true | |
593 | - | else (0 > | |
671 | + | else (0 > cn)) | |
594 | 672 | then throw("Too large amountLeave") | |
595 | - | else [IntegerEntry(f, (ai + ci)), IntegerEntry(g, (aj + cj)), IntegerEntry(("last_income_" + aa), ci), IntegerEntry(("last_income_" + ab), cj)] | |
673 | + | else { | |
674 | + | let bC = if (if (containsElement(S, ac)) | |
675 | + | then (cm > 0) | |
676 | + | else false) | |
677 | + | then invoke(this, "stakeUnstake", [true, cm, ac], nil) | |
678 | + | else 0 | |
679 | + | if ((bC == bC)) | |
680 | + | then { | |
681 | + | let bD = if (if (containsElement(S, ad)) | |
682 | + | then (cn > 0) | |
683 | + | else false) | |
684 | + | then invoke(this, "stakeUnstake", [true, cn, ad], nil) | |
685 | + | else 0 | |
686 | + | if ((bD == bD)) | |
687 | + | then [IntegerEntry(f, (ak + cm)), IntegerEntry(g, (al + cn)), IntegerEntry(("last_income_" + ac), cm), IntegerEntry(("last_income_" + ad), cn)] | |
688 | + | else throw("Strict value is not equal to itself.") | |
689 | + | } | |
690 | + | else throw("Strict value is not equal to itself.") | |
691 | + | } | |
596 | 692 | } | |
597 | 693 | ||
598 | 694 | ||
599 | - | @Verifier(ck) | |
600 | - | func cl () = { | |
601 | - | let cm = { | |
602 | - | let cn = if (sigVerify(ck.bodyBytes, ck.proofs[0], E)) | |
695 | + | ||
696 | + | @Callable(ay) | |
697 | + | func stakeUnstake (aQ,aS,co) = if ((ay.caller != this)) | |
698 | + | then throw("Only contract itself can invoke this function") | |
699 | + | else if ((co == "WAVES")) | |
700 | + | then { | |
701 | + | let cp = addressFromStringValue(valueOrErrorMessage(getString(C, w), "No leasing pool in oracle")) | |
702 | + | let cq = getBinary(this, y) | |
703 | + | let cr = valueOrElse(getInteger(this, x), 0) | |
704 | + | let cs = if (aQ) | |
705 | + | then (cr + aS) | |
706 | + | else (cr - aS) | |
707 | + | let ct = Lease(cp, cs) | |
708 | + | let cu = calculateLeaseId(ct) | |
709 | + | let cv = [ct, BinaryEntry(y, cu), IntegerEntry(x, cs)] | |
710 | + | let F = cq | |
711 | + | if ($isInstanceOf(F, "ByteVector")) | |
712 | + | then { | |
713 | + | let cw = F | |
714 | + | ([LeaseCancel(cw)] ++ cv) | |
715 | + | } | |
716 | + | else cv | |
717 | + | } | |
718 | + | else { | |
719 | + | let cx = aR(aQ, aS, fromBase58String(co)) | |
720 | + | let aU = cx._1 | |
721 | + | let cy = cx._2 | |
722 | + | let cz = cx._3 | |
723 | + | let cA = cx._4 | |
724 | + | let cB = invoke(cy, aU, cz, cA) | |
725 | + | nil | |
726 | + | } | |
727 | + | ||
728 | + | ||
729 | + | ||
730 | + | @Callable(ay) | |
731 | + | func stakeAll () = if (!(ab)) | |
732 | + | then throw("DApp is inactive at this moment") | |
733 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
734 | + | then throw("Only admin can call this function") | |
735 | + | else { | |
736 | + | let bC = if (containsElement(S, ac)) | |
737 | + | then { | |
738 | + | let bb = (ak - az) | |
739 | + | if ((bb > 0)) | |
740 | + | then invoke(this, "stakeUnstake", [true, bb, ac], nil) | |
741 | + | else 0 | |
742 | + | } | |
743 | + | else 0 | |
744 | + | if ((bC == bC)) | |
745 | + | then { | |
746 | + | let bD = if (containsElement(S, ad)) | |
747 | + | then { | |
748 | + | let bc = (al - aA) | |
749 | + | if ((bc > 0)) | |
750 | + | then invoke(this, "stakeUnstake", [true, bc, ad], nil) | |
751 | + | else 0 | |
752 | + | } | |
753 | + | else 0 | |
754 | + | if ((bD == bD)) | |
755 | + | then nil | |
756 | + | else throw("Strict value is not equal to itself.") | |
757 | + | } | |
758 | + | else throw("Strict value is not equal to itself.") | |
759 | + | } | |
760 | + | ||
761 | + | ||
762 | + | @Verifier(cC) | |
763 | + | func cD () = { | |
764 | + | let cE = { | |
765 | + | let cF = if (sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
603 | 766 | then 1 | |
604 | 767 | else 0 | |
605 | - | let | |
768 | + | let cG = if (sigVerify(cC.bodyBytes, cC.proofs[1], J)) | |
606 | 769 | then 1 | |
607 | 770 | else 0 | |
608 | - | let | |
771 | + | let cH = if (sigVerify(cC.bodyBytes, cC.proofs[2], K)) | |
609 | 772 | then 1 | |
610 | 773 | else 0 | |
611 | - | ((( | |
774 | + | (((cF + cG) + cH) >= 2) | |
612 | 775 | } | |
613 | - | let | |
614 | - | if ($isInstanceOf( | |
776 | + | let F = cC | |
777 | + | if ($isInstanceOf(F, "InvokeScriptTransaction")) | |
615 | 778 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | then ( | |
779 | + | let cB = F | |
780 | + | let cI = if ((cB.dApp == this)) | |
781 | + | then (cB.function == "takeIntoAccountExtraFunds") | |
619 | 782 | else false | |
620 | - | let cs = if (if ((cq.dApp == P)) | |
621 | - | then if (if (if (containsElement(["lockNeutrino", "lockNsbt"], cq.function)) | |
622 | - | then (size(cq.payments) == 1) | |
623 | - | else false) | |
624 | - | then if ((cq.payments[0].assetId == L)) | |
625 | - | then true | |
626 | - | else (cq.payments[0].assetId == M) | |
627 | - | else false) | |
628 | - | then true | |
629 | - | else if (containsElement(["unlockNeutrino", "unlockNsbt"], cq.function)) | |
630 | - | then (size(cq.payments) == 0) | |
631 | - | else false | |
783 | + | let cJ = if (if (if ((cB.dApp == V)) | |
784 | + | then (cB.function == "exchange") | |
785 | + | else false) | |
786 | + | then (ae == P) | |
632 | 787 | else false) | |
633 | 788 | then true | |
634 | - | else if ((cq.dApp == Q)) | |
635 | - | then if (if (if ((cq.function == "startStaking")) | |
636 | - | then (size(cq.payments) == 1) | |
637 | - | else false) | |
638 | - | then (cq.payments[0].assetId == O) | |
639 | - | else false) | |
640 | - | then true | |
641 | - | else if ((cq.function == "stopStaking")) | |
642 | - | then (size(cq.payments) == 0) | |
643 | - | else false | |
789 | + | else if (if ((af == P)) | |
790 | + | then (size(cB.payments) == 1) | |
791 | + | else false) | |
792 | + | then (cB.payments[0].assetId == P) | |
644 | 793 | else false | |
645 | - | let | |
646 | - | then ( | |
794 | + | let cK = if (if (if ((cB.dApp == W)) | |
795 | + | then (cB.function == "exchange") | |
647 | 796 | else false) | |
648 | - | then ( | |
797 | + | then (ae == Q) | |
649 | 798 | else false) | |
650 | 799 | then true | |
651 | - | else if (if (( | |
652 | - | then (size( | |
800 | + | else if (if ((af == Q)) | |
801 | + | then (size(cB.payments) == 1) | |
653 | 802 | else false) | |
654 | - | then ( | |
803 | + | then (cB.payments[0].assetId == P) | |
655 | 804 | else false | |
656 | - | let cu = if (if (if ((cq.dApp == S)) | |
657 | - | then (cq.function == "exchange") | |
658 | - | else false) | |
659 | - | then (ac == M) | |
805 | + | let cL = if (if (if (sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
806 | + | then true | |
807 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], J)) | |
808 | + | then true | |
809 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], K)) | |
810 | + | then true | |
811 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], M) | |
812 | + | if (if (if (if (cI) | |
813 | + | then true | |
814 | + | else cJ) | |
815 | + | then true | |
816 | + | else cK) | |
817 | + | then cL | |
660 | 818 | else false) | |
661 | 819 | then true | |
662 | - | else if (if ((ad == M)) | |
663 | - | then (size(cq.payments) == 1) | |
664 | - | else false) | |
665 | - | then (cq.payments[0].assetId == L) | |
666 | - | else false | |
667 | - | let cv = if (if (if (sigVerify(ck.bodyBytes, ck.proofs[0], E)) | |
668 | - | then true | |
669 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], F)) | |
670 | - | then true | |
671 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], G)) | |
672 | - | then true | |
673 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], I) | |
674 | - | if (if (if (if (if (cr) | |
675 | - | then true | |
676 | - | else cs) | |
677 | - | then true | |
678 | - | else ct) | |
679 | - | then true | |
680 | - | else cu) | |
681 | - | then cv | |
682 | - | else false) | |
683 | - | then true | |
684 | - | else cm | |
820 | + | else cE | |
685 | 821 | } | |
686 | - | else | |
822 | + | else cE | |
687 | 823 | } | |
688 | 824 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let e = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let g = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let i = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let j = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let k = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "first_harvest" | |
33 | 33 | ||
34 | 34 | let p = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let q = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let r = "base_period" | |
39 | 39 | ||
40 | 40 | let s = "period_length" | |
41 | 41 | ||
42 | 42 | let t = "start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "staking_eurn_address" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "leasing_address" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "leasing_amount" | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = "leasing_id" | |
53 | 53 | ||
54 | - | func z (A) = { | |
55 | - | let B = getString(y, A) | |
56 | - | if ($isInstanceOf(B, "String")) | |
54 | + | let z = "admin_pub_1" | |
55 | + | ||
56 | + | let A = "admin_pub_2" | |
57 | + | ||
58 | + | let B = "admin_pub_3" | |
59 | + | ||
60 | + | let C = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
61 | + | ||
62 | + | func D (E) = { | |
63 | + | let F = getString(C, E) | |
64 | + | if ($isInstanceOf(F, "String")) | |
57 | 65 | then { | |
58 | - | let | |
59 | - | fromBase58String( | |
66 | + | let G = F | |
67 | + | fromBase58String(G) | |
60 | 68 | } | |
61 | 69 | else { | |
62 | - | let | |
70 | + | let H = F | |
63 | 71 | throw("Admin public key is empty") | |
64 | 72 | } | |
65 | 73 | } | |
66 | 74 | ||
67 | 75 | ||
68 | - | let | |
76 | + | let I = D(z) | |
69 | 77 | ||
70 | - | let | |
78 | + | let J = D(A) | |
71 | 79 | ||
72 | - | let | |
80 | + | let K = D(B) | |
73 | 81 | ||
74 | - | let | |
82 | + | let L = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
75 | 83 | ||
76 | - | let | |
84 | + | let M = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
77 | 85 | ||
78 | - | let | |
86 | + | let N = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
79 | 87 | ||
80 | - | let | |
88 | + | let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
81 | 89 | ||
82 | - | let | |
90 | + | let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
83 | 91 | ||
84 | - | let | |
92 | + | let Q = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
85 | 93 | ||
86 | - | let | |
94 | + | let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
87 | 95 | ||
88 | - | let | |
96 | + | let S = ["WAVES", toBase58String(P), toBase58String(Q), toBase58String(R)] | |
89 | 97 | ||
90 | - | let | |
98 | + | let T = Address(fromBase58String(valueOrErrorMessage(getString(C, u), "no usdn staking address"))) | |
91 | 99 | ||
92 | - | let | |
100 | + | let U = Address(fromBase58String(valueOrErrorMessage(getString(C, v), "no usdn staking address"))) | |
93 | 101 | ||
94 | - | let | |
102 | + | let V = Address(base58'3N8PGkzXhbtTvEwEQTtE2xiTJmsDEQ9XfoZ') | |
95 | 103 | ||
96 | - | let | |
104 | + | let W = Address(base58'3MqW1t2cxdYy2emEMk3YtZkRwQPhHaTfWRe') | |
97 | 105 | ||
98 | - | let | |
106 | + | let X = valueOrErrorMessage(getInteger(O, r), "Empty kBasePeriod") | |
99 | 107 | ||
100 | - | let | |
108 | + | let Y = valueOrErrorMessage(getInteger(O, t), "Empty kStartHeight") | |
101 | 109 | ||
102 | - | let | |
110 | + | let Z = valueOrErrorMessage(getInteger(O, s), "Empty kPeriodLength") | |
103 | 111 | ||
104 | - | let | |
112 | + | let aa = ((X + ((height - Y) / Z)) + 3) | |
105 | 113 | ||
106 | - | let | |
114 | + | let ab = getBooleanValue(this, c) | |
107 | 115 | ||
108 | - | let | |
116 | + | let ac = getStringValue(this, d) | |
109 | 117 | ||
110 | - | let | |
118 | + | let ad = getStringValue(this, e) | |
111 | 119 | ||
112 | - | let aa = getStringValue(this, d) | |
120 | + | let ae = if ((ac == "WAVES")) | |
121 | + | then unit | |
122 | + | else fromBase58String(ac) | |
113 | 123 | ||
114 | - | let ab = getStringValue(this, e) | |
124 | + | let af = if ((ad == "WAVES")) | |
125 | + | then unit | |
126 | + | else fromBase58String(ad) | |
115 | 127 | ||
116 | - | let ac = if ((aa == "WAVES")) | |
117 | - | then unit | |
118 | - | else fromBase58String(aa) | |
119 | - | ||
120 | - | let ad = if ((ab == "WAVES")) | |
121 | - | then unit | |
122 | - | else fromBase58String(ab) | |
123 | - | ||
124 | - | let ae = { | |
125 | - | let B = ac | |
126 | - | if ($isInstanceOf(B, "ByteVector")) | |
128 | + | let ag = { | |
129 | + | let F = ae | |
130 | + | if ($isInstanceOf(F, "ByteVector")) | |
127 | 131 | then { | |
128 | - | let | |
129 | - | value(assetInfo( | |
132 | + | let ah = F | |
133 | + | value(assetInfo(ah)).name | |
130 | 134 | } | |
131 | - | else if ($isInstanceOf( | |
135 | + | else if ($isInstanceOf(F, "Unit")) | |
132 | 136 | then { | |
133 | - | let | |
137 | + | let ai = F | |
134 | 138 | "WAVES" | |
135 | 139 | } | |
136 | 140 | else throw("Match error") | |
137 | 141 | } | |
138 | 142 | ||
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
143 | + | let aj = { | |
144 | + | let F = af | |
145 | + | if ($isInstanceOf(F, "ByteVector")) | |
142 | 146 | then { | |
143 | - | let | |
144 | - | value(assetInfo( | |
147 | + | let ah = F | |
148 | + | value(assetInfo(ah)).name | |
145 | 149 | } | |
146 | - | else if ($isInstanceOf( | |
150 | + | else if ($isInstanceOf(F, "Unit")) | |
147 | 151 | then { | |
148 | - | let | |
152 | + | let ai = F | |
149 | 153 | "WAVES" | |
150 | 154 | } | |
151 | 155 | else throw("Match error") | |
152 | 156 | } | |
153 | 157 | ||
154 | - | let | |
158 | + | let ak = getIntegerValue(this, f) | |
155 | 159 | ||
156 | - | let | |
160 | + | let al = getIntegerValue(this, g) | |
157 | 161 | ||
158 | - | let | |
162 | + | let am = fromBase58String(getStringValue(this, j)) | |
159 | 163 | ||
160 | - | let | |
164 | + | let an = getIntegerValue(this, k) | |
161 | 165 | ||
162 | - | let | |
166 | + | let ao = 3000 | |
163 | 167 | ||
164 | - | let | |
168 | + | let ap = 1000000 | |
165 | 169 | ||
166 | - | let | |
170 | + | let aq = 1000 | |
167 | 171 | ||
168 | - | let | |
172 | + | let ar = 100000000 | |
169 | 173 | ||
170 | - | let aq = 100000000 | |
171 | - | ||
172 | - | let ar = 1000 | |
173 | - | ||
174 | - | let as = 8 | |
174 | + | let as = 1000 | |
175 | 175 | ||
176 | 176 | func at (au) = { | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
177 | + | let F = au | |
178 | + | if ($isInstanceOf(F, "ByteVector")) | |
179 | 179 | then { | |
180 | - | let | |
181 | - | assetBalance(this, | |
180 | + | let ah = F | |
181 | + | assetBalance(this, ah) | |
182 | 182 | } | |
183 | - | else if ($isInstanceOf( | |
183 | + | else if ($isInstanceOf(F, "Unit")) | |
184 | 184 | then { | |
185 | - | let | |
185 | + | let ai = F | |
186 | 186 | wavesBalance(this).available | |
187 | 187 | } | |
188 | 188 | else throw("Match error") | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func av (au) = { | |
193 | 193 | let aw = { | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
194 | + | let F = au | |
195 | + | if ($isInstanceOf(F, "ByteVector")) | |
196 | 196 | then { | |
197 | - | let ax = | |
198 | - | if (if ((ax == | |
197 | + | let ax = F | |
198 | + | if (if ((ax == P)) | |
199 | 199 | then true | |
200 | - | else (ax == | |
201 | - | then getInteger( | |
202 | - | else if ((ax == | |
203 | - | then getInteger( | |
200 | + | else (ax == Q)) | |
201 | + | then getInteger(T, ((("rpd_balance_" + toBase58String(ax)) + "_") + toString(this))) | |
202 | + | else if ((ax == R)) | |
203 | + | then getInteger(U, ((("%s%s%s__stakingBalance__" + toBase58String(ax)) + "__") + toString(this))) | |
204 | 204 | else 0 | |
205 | 205 | } | |
206 | - | else if ($isInstanceOf( | |
207 | - | then 0 | |
206 | + | else if ($isInstanceOf(F, "Unit")) | |
207 | + | then valueOrElse(getInteger(this, x), 0) | |
208 | 208 | else throw("Match error") | |
209 | 209 | } | |
210 | - | let | |
211 | - | if ($isInstanceOf( | |
210 | + | let F = aw | |
211 | + | if ($isInstanceOf(F, "Int")) | |
212 | 212 | then { | |
213 | - | let ay = | |
213 | + | let ay = F | |
214 | 214 | ay | |
215 | 215 | } | |
216 | 216 | else 0 | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | - | let az = av( | |
220 | + | let az = av(ae) | |
221 | 221 | ||
222 | - | let aA = av( | |
222 | + | let aA = av(af) | |
223 | 223 | ||
224 | 224 | let aB = getIntegerValue(this, h) | |
225 | 225 | ||
226 | 226 | let aC = getIntegerValue(this, i) | |
227 | 227 | ||
228 | - | let aD = ( | |
228 | + | let aD = (ak - az) | |
229 | 229 | ||
230 | - | let aE = ( | |
230 | + | let aE = (al - aA) | |
231 | 231 | ||
232 | - | let aF = (at( | |
232 | + | let aF = (at(ae) + az) | |
233 | 233 | ||
234 | - | let aG = (at( | |
234 | + | let aG = (at(af) + aA) | |
235 | 235 | ||
236 | - | let aH = if ((aF >= | |
237 | - | then (aG >= | |
236 | + | let aH = if ((aF >= ak)) | |
237 | + | then (aG >= al) | |
238 | 238 | else false | |
239 | 239 | ||
240 | 240 | func aI (au) = { | |
241 | - | let | |
242 | - | if ($isInstanceOf( | |
241 | + | let F = au | |
242 | + | if ($isInstanceOf(F, "ByteVector")) | |
243 | 243 | then { | |
244 | - | let | |
245 | - | let aJ = toBase58String( | |
246 | - | let aK = valueOrErrorMessage(assetInfo( | |
244 | + | let ah = F | |
245 | + | let aJ = toBase58String(ah) | |
246 | + | let aK = valueOrErrorMessage(assetInfo(ah), (("Asset " + aJ) + " doesn't exist")) | |
247 | 247 | $Tuple3(aJ, aK.name, aK.decimals) | |
248 | 248 | } | |
249 | - | else if ($isInstanceOf( | |
249 | + | else if ($isInstanceOf(F, "Unit")) | |
250 | 250 | then { | |
251 | - | let | |
251 | + | let ai = F | |
252 | 252 | $Tuple3("WAVES", "WAVES", 8) | |
253 | 253 | } | |
254 | 254 | else throw("Match error") | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func aL (aM) = if ((aM == "WAVES")) | |
259 | 259 | then $Tuple3("WAVES", "WAVES", 8) | |
260 | 260 | else { | |
261 | 261 | let aJ = aM | |
262 | - | let | |
263 | - | let aK = valueOrErrorMessage(assetInfo( | |
262 | + | let ah = fromBase58String(aM) | |
263 | + | let aK = valueOrErrorMessage(assetInfo(ah), (("Asset " + aJ) + " doesn't exist")) | |
264 | 264 | $Tuple3(aJ, aK.name, aK.decimals) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func aN (aO) = [BooleanEntry(c, false), StringEntry(n, aO)] | |
269 | 269 | ||
270 | 270 | ||
271 | - | func aP (aQ,au,aR) = if (if ((au == L)) | |
272 | - | then true | |
273 | - | else (au == O)) | |
274 | - | then { | |
275 | - | let aS = if ((au == L)) | |
276 | - | then (T * (if ((aR == M)) | |
277 | - | then 2 | |
278 | - | else 1)) | |
279 | - | else if ((au == O)) | |
280 | - | then U | |
281 | - | else 0 | |
282 | - | let aT = (aQ - aS) | |
283 | - | if ((0 >= aT)) | |
284 | - | then throw((((("Insufficient amount " + toString(aQ)) + " to deduct staking fee ") + toString(aS)) + "USDN/EURN")) | |
285 | - | else aT | |
286 | - | } | |
287 | - | else aQ | |
271 | + | func aP (aQ,au) = if (aQ) | |
272 | + | then if ((au == P)) | |
273 | + | then $Tuple2("lockNeutrino", T) | |
274 | + | else if ((au == Q)) | |
275 | + | then $Tuple2("lockNsbt", T) | |
276 | + | else $Tuple2("startStaking", U) | |
277 | + | else if ((au == P)) | |
278 | + | then $Tuple2("unlockNeutrino", T) | |
279 | + | else if ((au == Q)) | |
280 | + | then $Tuple2("unlockNsbt", T) | |
281 | + | else $Tuple2("stopStaking", U) | |
288 | 282 | ||
289 | 283 | ||
290 | - | func aU (au,aR) = if ((au == L)) | |
291 | - | then (T * (if ((aR == M)) | |
292 | - | then 2 | |
293 | - | else 1)) | |
294 | - | else if ((au == O)) | |
295 | - | then U | |
296 | - | else 0 | |
284 | + | func aR (aQ,aS,au) = if (aQ) | |
285 | + | then { | |
286 | + | let aT = aP(aQ, au) | |
287 | + | let aU = aT._1 | |
288 | + | let aV = aT._2 | |
289 | + | $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)]) | |
290 | + | } | |
291 | + | else { | |
292 | + | let aW = aP(aQ, au) | |
293 | + | let aU = aW._1 | |
294 | + | let aV = aW._2 | |
295 | + | $Tuple4(aU, aV, [aS, toBase58String(au)], nil) | |
296 | + | } | |
297 | 297 | ||
298 | 298 | ||
299 | - | func | |
299 | + | func aX (aS,aY,aZ) = throw((((((((("Insufficient DApp balance to pay " + toString(aS)) + " ") + aZ) + " due to staking. Available: ") + toString(aY)) + " ") + aZ) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
300 | 300 | ||
301 | 301 | ||
302 | - | func | |
302 | + | func ba (bb,bc) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bb)) + " ") + ag) + " and ") + toString(bc)) + " ") + aj) + " due to staking. Available: ") + toString(aD)) + " ") + ag) + " and ") + toString(aE)) + " ") + aj) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
303 | 303 | ||
304 | 304 | ||
305 | - | func | |
305 | + | func bd () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ag) + ", ") + toString(aG)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj)) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(ay) | |
309 | - | func init ( | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | if (!(containsElement([ | |
309 | + | func init (be) = { | |
310 | + | let bf = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
311 | + | let bg = bf._1 | |
312 | + | let bh = bf._2 | |
313 | + | let bi = $Tuple2(ay.payments[1].amount, ay.payments[1].assetId) | |
314 | + | let bj = bi._1 | |
315 | + | let bk = bi._2 | |
316 | + | let bl = aI(bh) | |
317 | + | let bm = bl._1 | |
318 | + | let bn = bl._2 | |
319 | + | let bo = bl._3 | |
320 | + | let bp = aI(bk) | |
321 | + | let bq = bp._1 | |
322 | + | let br = bp._2 | |
323 | + | let bs = bp._3 | |
324 | + | if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
325 | 325 | then throw("Only admin can call this function") | |
326 | 326 | else if (isDefined(getBoolean(this, c))) | |
327 | 327 | then throw("DApp is already active") | |
328 | - | else if (( | |
328 | + | else if ((bh == bk)) | |
329 | 329 | then throw("Assets must be different") | |
330 | 330 | else { | |
331 | - | let br = ((("s" + take(bl, 7)) + "_") + take(bp, 7)) | |
332 | - | let bs = ((((("ShareToken of SwopFi protocol for " + bl) + " and ") + bp) + " at address ") + toString(this)) | |
333 | - | let bt = ((bm + bq) / 2) | |
334 | - | let bu = pow(be, bm, 5, 1, bm, DOWN) | |
335 | - | let bv = pow(bh, bq, 5, 1, bq, DOWN) | |
336 | - | let bw = pow(10, 0, bt, 0, 0, DOWN) | |
337 | - | let bx = fraction(bu, bv, bw) | |
338 | - | let by = Issue(br, bs, bx, bt, true) | |
339 | - | let bz = calculateAssetId(by) | |
340 | - | let bA = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bk), StringEntry(e, bo), IntegerEntry(f, be), IntegerEntry(g, bh), IntegerEntry(l, am), IntegerEntry(m, ao), by, StringEntry(j, toBase58String(bz)), IntegerEntry(k, bx), ScriptTransfer(ay.caller, bx, bz)] | |
341 | - | if (bc) | |
342 | - | then (bA ++ [BooleanEntry(o, bc), IntegerEntry(p, (W + (Y * X)))]) | |
343 | - | else bA | |
331 | + | let bt = ((("s" + take(bn, 7)) + "_") + take(br, 7)) | |
332 | + | let bu = ((((("ShareToken of SwopFi protocol for " + bn) + " and ") + br) + " at address ") + toString(this)) | |
333 | + | let bv = ((bo + bs) / 2) | |
334 | + | let bw = pow(bg, bo, 5, 1, bo, DOWN) | |
335 | + | let bx = pow(bj, bs, 5, 1, bs, DOWN) | |
336 | + | let by = pow(10, 0, bv, 0, 0, DOWN) | |
337 | + | let bz = fraction(bw, bx, by) | |
338 | + | let bA = Issue(bt, bu, bz, bv, true) | |
339 | + | let bB = calculateAssetId(bA) | |
340 | + | let bC = if (containsElement(S, bm)) | |
341 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
342 | + | else 0 | |
343 | + | if ((bC == bC)) | |
344 | + | then { | |
345 | + | let bD = if (containsElement(S, bq)) | |
346 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
347 | + | else 0 | |
348 | + | if ((bD == bD)) | |
349 | + | then { | |
350 | + | let bE = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bm), StringEntry(e, bq), IntegerEntry(f, bg), IntegerEntry(g, bj), IntegerEntry(l, ao), IntegerEntry(m, ap), bA, StringEntry(j, toBase58String(bB)), IntegerEntry(k, bz), ScriptTransfer(ay.caller, bz, bB)] | |
351 | + | if (be) | |
352 | + | then (bE ++ [BooleanEntry(o, be), IntegerEntry(p, (Y + (aa * Z)))]) | |
353 | + | else bE | |
354 | + | } | |
355 | + | else throw("Strict value is not equal to itself.") | |
356 | + | } | |
357 | + | else throw("Strict value is not equal to itself.") | |
344 | 358 | } | |
345 | 359 | } | |
346 | 360 | ||
347 | 361 | ||
348 | 362 | ||
349 | 363 | @Callable(ay) | |
350 | - | func initWithInitRatio ( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if (!(containsElement([ | |
364 | + | func initWithInitRatio (bF,bG,ac,ad,be) = { | |
365 | + | let bH = aL(ac) | |
366 | + | let bm = bH._1 | |
367 | + | let bn = bH._2 | |
368 | + | let bo = bH._3 | |
369 | + | let bI = aL(ad) | |
370 | + | let bq = bI._1 | |
371 | + | let br = bI._2 | |
372 | + | let bs = bI._3 | |
373 | + | if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
360 | 374 | then throw("Only admin can call this function") | |
361 | 375 | else if (isDefined(getBoolean(this, c))) | |
362 | 376 | then throw("DApp is already active") | |
363 | - | else if (( | |
377 | + | else if ((ac == ad)) | |
364 | 378 | then throw("Assets must be different") | |
365 | 379 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if ( | |
374 | - | then ( | |
375 | - | else | |
380 | + | let bt = ((("s" + take(bn, 7)) + "_") + take(br, 7)) | |
381 | + | let bu = ((((("ShareToken of SwopFi protocol for " + bn) + " and ") + br) + " at address ") + toString(this)) | |
382 | + | let bv = ((bo + bs) / 2) | |
383 | + | let bz = 0 | |
384 | + | let bA = Issue(bt, bu, bz, bv, true) | |
385 | + | let bB = calculateAssetId(bA) | |
386 | + | let bE = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bm), StringEntry(e, bq), IntegerEntry(h, bF), IntegerEntry(i, bG), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ao), IntegerEntry(m, ap), bA, StringEntry(j, toBase58String(bB)), IntegerEntry(k, bz)] | |
387 | + | if (be) | |
388 | + | then (bE ++ [BooleanEntry(o, be), IntegerEntry(p, (Y + (aa * Z)))]) | |
389 | + | else bE | |
376 | 390 | } | |
377 | 391 | } | |
378 | 392 | ||
379 | 393 | ||
380 | 394 | ||
381 | 395 | @Callable(ay) | |
382 | - | func keepLimitForFirstHarvest ( | |
396 | + | func keepLimitForFirstHarvest (bJ) = if (!(ab)) | |
383 | 397 | then throw("DApp is inactive at this moment") | |
384 | - | else if (!(containsElement([ | |
398 | + | else if (!(containsElement([I, J, K, M], ay.callerPublicKey))) | |
385 | 399 | then throw("Only admin can call this function") | |
386 | - | else [IntegerEntry(q, | |
400 | + | else [IntegerEntry(q, bJ)] | |
387 | 401 | ||
388 | 402 | ||
389 | 403 | ||
390 | 404 | @Callable(ay) | |
391 | - | func replenishWithTwoTokens (bG) = { | |
392 | - | let bf = ay.payments[0].assetId | |
393 | - | let bi = ay.payments[1].assetId | |
394 | - | let be = aP(ay.payments[0].amount, bf, bi) | |
395 | - | let bh = aP(ay.payments[1].amount, bi, bf) | |
396 | - | if (if ((ai == 0)) | |
397 | - | then (aj == 0) | |
405 | + | func replenishWithTwoTokens (bK) = { | |
406 | + | let bh = ay.payments[0].assetId | |
407 | + | let bk = ay.payments[1].assetId | |
408 | + | let bg = ay.payments[0].amount | |
409 | + | let bj = ay.payments[1].amount | |
410 | + | let bL = aI(bh) | |
411 | + | let bm = bL._1 | |
412 | + | let bn = bL._2 | |
413 | + | let bo = bL._3 | |
414 | + | let bM = aI(bk) | |
415 | + | let bq = bM._1 | |
416 | + | let br = bM._2 | |
417 | + | let bs = bM._3 | |
418 | + | if (if ((ak == 0)) | |
419 | + | then (al == 0) | |
398 | 420 | else false) | |
399 | 421 | then { | |
400 | - | let bH = aI(bf) | |
401 | - | let bk = bH._1 | |
402 | - | let bl = bH._2 | |
403 | - | let bm = bH._3 | |
404 | - | let bI = aI(bi) | |
405 | - | let bo = bI._1 | |
406 | - | let bp = bI._2 | |
407 | - | let bq = bI._3 | |
408 | - | let bJ = fraction(fraction(aB, aq, be), ap, fraction(aC, aq, bh)) | |
409 | - | if ((bf == bi)) | |
422 | + | let bN = fraction(fraction(aB, ar, bg), aq, fraction(aC, ar, bj)) | |
423 | + | if ((bh == bk)) | |
410 | 424 | then throw("Assets must be different") | |
411 | 425 | else { | |
412 | - | let | |
413 | - | let | |
414 | - | if (!( | |
426 | + | let bv = ((bo + bs) / 2) | |
427 | + | let bz = fraction(pow(bg, bo, 5, 1, bo, DOWN), pow(bj, bs, 5, 1, bs, DOWN), pow(10, 0, bv, 0, 0, DOWN)) | |
428 | + | if (!(ab)) | |
415 | 429 | then throw("DApp is inactive at this moment") | |
416 | - | else if (if ((0 > | |
430 | + | else if (if ((0 > bK)) | |
417 | 431 | then true | |
418 | - | else ( | |
419 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
432 | + | else (bK > as)) | |
433 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(as)) + " inclusively. Actual: ") + toString(bK))) | |
420 | 434 | else if ((size(ay.payments) != 2)) | |
421 | 435 | then throw("Two attached assets expected") | |
422 | - | else if (if (((( | |
436 | + | else if (if ((((aq * (as - bK)) / as) > bN)) | |
423 | 437 | then true | |
424 | - | else ( | |
438 | + | else (bN > ((aq * (as + bK)) / as))) | |
425 | 439 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
426 | - | else if (if (( | |
440 | + | else if (if ((bh != ae)) | |
427 | 441 | then true | |
428 | - | else ( | |
429 | - | then throw(((("Incorrect assets attached. Expected: " + | |
430 | - | else if (( | |
442 | + | else (bk != af)) | |
443 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
444 | + | else if ((bz == 0)) | |
431 | 445 | then throw("Too small amount to replenish") | |
432 | 446 | else if (!(aH)) | |
433 | - | then ([ScriptTransfer(ay.caller, be, bf), ScriptTransfer(ay.caller, bh, bi)] ++ bb()) | |
434 | - | else [Reissue(ak, bx, true), IntegerEntry(f, be), IntegerEntry(g, bh), IntegerEntry(k, bx), ScriptTransfer(ay.caller, bx, ak)] | |
447 | + | then ([ScriptTransfer(ay.caller, bg, bh), ScriptTransfer(ay.caller, bj, bk)] ++ bd()) | |
448 | + | else { | |
449 | + | let bC = if (containsElement(S, bm)) | |
450 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
451 | + | else 0 | |
452 | + | if ((bC == bC)) | |
453 | + | then { | |
454 | + | let bD = if (containsElement(S, bq)) | |
455 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
456 | + | else 0 | |
457 | + | if ((bD == bD)) | |
458 | + | then [Reissue(am, bz, true), IntegerEntry(f, bg), IntegerEntry(g, bj), IntegerEntry(k, bz), ScriptTransfer(ay.caller, bz, am)] | |
459 | + | else throw("Strict value is not equal to itself.") | |
460 | + | } | |
461 | + | else throw("Strict value is not equal to itself.") | |
462 | + | } | |
435 | 463 | } | |
436 | 464 | } | |
437 | 465 | else { | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | if (!( | |
466 | + | let bN = fraction(fraction(ak, ar, bg), aq, fraction(al, ar, bj)) | |
467 | + | let bO = fraction(bg, ar, ak) | |
468 | + | let bP = fraction(bj, ar, al) | |
469 | + | let bQ = fraction(min([bO, bP]), an, ar) | |
470 | + | if (!(ab)) | |
443 | 471 | then throw("DApp is inactive at this moment") | |
444 | - | else if (if ((0 > | |
472 | + | else if (if ((0 > bK)) | |
445 | 473 | then true | |
446 | - | else ( | |
447 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
474 | + | else (bK > as)) | |
475 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(as)) + " inclusively. Actual: ") + toString(bK))) | |
448 | 476 | else if ((size(ay.payments) != 2)) | |
449 | 477 | then throw("Two attached assets expected") | |
450 | - | else if (if (( | |
478 | + | else if (if ((bh != ae)) | |
451 | 479 | then true | |
452 | - | else ( | |
453 | - | then throw(((("Incorrect assets attached. Expected: " + | |
454 | - | else if (if (((( | |
480 | + | else (bk != af)) | |
481 | + | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
482 | + | else if (if ((((aq * (as - bK)) / as) > bN)) | |
455 | 483 | then true | |
456 | - | else ( | |
484 | + | else (bN > ((aq * (as + bK)) / as))) | |
457 | 485 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
458 | - | else if (( | |
486 | + | else if ((bQ == 0)) | |
459 | 487 | then throw("Too small amount to replenish") | |
460 | 488 | else if (!(aH)) | |
461 | - | then ([ScriptTransfer(ay.caller, be, bf), ScriptTransfer(ay.caller, bh, bi)] ++ bb()) | |
462 | - | else [IntegerEntry(f, (ai + be)), IntegerEntry(g, (aj + bh)), IntegerEntry(k, (al + bM)), Reissue(ak, bM, true), ScriptTransfer(ay.caller, bM, ak)] | |
489 | + | then ([ScriptTransfer(ay.caller, bg, bh), ScriptTransfer(ay.caller, bj, bk)] ++ bd()) | |
490 | + | else { | |
491 | + | let bC = if (containsElement(S, bm)) | |
492 | + | then invoke(this, "stakeUnstake", [true, bg, bm], nil) | |
493 | + | else 0 | |
494 | + | if ((bC == bC)) | |
495 | + | then { | |
496 | + | let bD = if (containsElement(S, bq)) | |
497 | + | then invoke(this, "stakeUnstake", [true, bj, bq], nil) | |
498 | + | else 0 | |
499 | + | if ((bD == bD)) | |
500 | + | then [IntegerEntry(f, (ak + bg)), IntegerEntry(g, (al + bj)), IntegerEntry(k, (an + bQ)), Reissue(am, bQ, true), ScriptTransfer(ay.caller, bQ, am)] | |
501 | + | else throw("Strict value is not equal to itself.") | |
502 | + | } | |
503 | + | else throw("Strict value is not equal to itself.") | |
504 | + | } | |
463 | 505 | } | |
464 | 506 | } | |
465 | 507 | ||
466 | 508 | ||
467 | 509 | ||
468 | 510 | @Callable(ay) | |
469 | 511 | func withdraw () = { | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | if (!( | |
512 | + | let bR = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
513 | + | let bS = bR._1 | |
514 | + | let bT = bR._2 | |
515 | + | let bU = fraction(bS, ak, an) | |
516 | + | let bV = fraction(bS, al, an) | |
517 | + | if (!(ab)) | |
476 | 518 | then throw("DApp is inactive at this moment") | |
477 | 519 | else if ((size(ay.payments) != 1)) | |
478 | 520 | then throw("One attached payment expected") | |
479 | - | else if (( | |
480 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
521 | + | else if ((bT != am)) | |
522 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
481 | 523 | else if (!(aH)) | |
482 | - | then ([ScriptTransfer(ay.caller, | |
483 | - | else if (if (( | |
524 | + | then ([ScriptTransfer(ay.caller, bS, bT)] ++ bd()) | |
525 | + | else if (if ((bU > aD)) | |
484 | 526 | then true | |
485 | - | else (bR > aE)) | |
486 | - | then aY(bQ, bR) | |
487 | - | else [IntegerEntry(f, (ai - bQ)), IntegerEntry(g, (aj - bR)), IntegerEntry(k, (al - bO)), Burn(ak, bO), ScriptTransfer(ay.caller, bQ, ac), ScriptTransfer(ay.caller, bR, ad)] | |
527 | + | else (bV > aE)) | |
528 | + | then ba(bU, bV) | |
529 | + | else { | |
530 | + | let bC = if (containsElement(S, ac)) | |
531 | + | then invoke(this, "stakeUnstake", [false, bU, ac], nil) | |
532 | + | else 0 | |
533 | + | if ((bC == bC)) | |
534 | + | then { | |
535 | + | let bD = if (containsElement(S, ad)) | |
536 | + | then invoke(this, "stakeUnstake", [false, bV, ad], nil) | |
537 | + | else 0 | |
538 | + | if ((bD == bD)) | |
539 | + | then [IntegerEntry(f, (ak - bU)), IntegerEntry(g, (al - bV)), IntegerEntry(k, (an - bS)), Burn(am, bS), ScriptTransfer(ay.caller, bU, ae), ScriptTransfer(ay.caller, bV, af)] | |
540 | + | else throw("Strict value is not equal to itself.") | |
541 | + | } | |
542 | + | else throw("Strict value is not equal to itself.") | |
543 | + | } | |
488 | 544 | } | |
489 | 545 | ||
490 | 546 | ||
491 | 547 | ||
492 | 548 | @Callable(ay) | |
493 | - | func exchange ( | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | func | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | if (( | |
502 | - | then throw(((("Calculated amount to receive " + toString( | |
503 | - | else $Tuple3( | |
549 | + | func exchange (bW) = { | |
550 | + | let bX = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId) | |
551 | + | let bS = bX._1 | |
552 | + | let bT = bX._2 | |
553 | + | func bY (bZ,ca) = { | |
554 | + | let cb = fraction(ca, bS, (bS + bZ)) | |
555 | + | let cc = fraction(cb, (ap - ao), ap) | |
556 | + | let cd = fraction(cb, commissionGovernance, ap) | |
557 | + | if ((bW > cc)) | |
558 | + | then throw(((("Calculated amount to receive " + toString(cc)) + " is less than specified minimum ") + toString(bW))) | |
559 | + | else $Tuple3(cb, cc, cd) | |
504 | 560 | } | |
505 | 561 | ||
506 | - | if (!( | |
562 | + | if (!(ab)) | |
507 | 563 | then throw("DApp is inactive at this moment") | |
508 | - | else if (if (( | |
564 | + | else if (if ((ak == 0)) | |
509 | 565 | then true | |
510 | - | else ( | |
566 | + | else (al == 0)) | |
511 | 567 | then throw("Can't exchange with zero balance") | |
512 | - | else if ((0 >= | |
513 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
568 | + | else if ((0 >= bW)) | |
569 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(bW))) | |
514 | 570 | else if ((size(ay.payments) != 1)) | |
515 | 571 | then throw("One attached payment expected") | |
516 | 572 | else if (!(aH)) | |
517 | - | then ([ScriptTransfer(ay.caller, | |
518 | - | else if (( | |
573 | + | then ([ScriptTransfer(ay.caller, bS, bT)] ++ bd()) | |
574 | + | else if ((bT == ae)) | |
519 | 575 | then { | |
520 | - | let ca = ad | |
521 | - | let cb = bU(ai, aj) | |
522 | - | let bX = cb._1 | |
523 | - | let bY = cb._2 | |
524 | - | let bZ = cb._3 | |
525 | - | let cc = (ai + bO) | |
526 | - | let cd = ((aj - bY) - bZ) | |
527 | - | if (if ((az >= cc)) | |
528 | - | then true | |
529 | - | else (aA >= cd)) | |
530 | - | then aV(bY, aE, ah) | |
531 | - | else [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(ay.caller, bY, ca), ScriptTransfer(J, bZ, ca)] | |
576 | + | let ce = af | |
577 | + | let cf = bY(ak, al) | |
578 | + | let cb = cf._1 | |
579 | + | let cc = cf._2 | |
580 | + | let cd = cf._3 | |
581 | + | let cg = (ak + bS) | |
582 | + | let ch = ((al - cc) - cd) | |
583 | + | let bC = if (containsElement(S, ac)) | |
584 | + | then invoke(this, "stakeUnstake", [true, bS, ac], nil) | |
585 | + | else 0 | |
586 | + | if ((bC == bC)) | |
587 | + | then { | |
588 | + | let bD = if (containsElement(S, ad)) | |
589 | + | then invoke(this, "stakeUnstake", [false, (cc + cd), ad], nil) | |
590 | + | else 0 | |
591 | + | if ((bD == bD)) | |
592 | + | then [IntegerEntry(f, cg), IntegerEntry(g, ch), ScriptTransfer(ay.caller, cc, ce), ScriptTransfer(N, cd, ce)] | |
593 | + | else throw("Strict value is not equal to itself.") | |
594 | + | } | |
595 | + | else throw("Strict value is not equal to itself.") | |
532 | 596 | } | |
533 | - | else if (( | |
597 | + | else if ((bT == af)) | |
534 | 598 | then { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | if (if ((az >= | |
599 | + | let ce = ae | |
600 | + | let ci = bY(al, ak) | |
601 | + | let cb = ci._1 | |
602 | + | let cc = ci._2 | |
603 | + | let cd = ci._3 | |
604 | + | let cg = ((ak - cc) - cd) | |
605 | + | let ch = (al + bS) | |
606 | + | if (if ((az >= cg)) | |
543 | 607 | then true | |
544 | - | else (aA >= cd)) | |
545 | - | then aV(bY, aD, ae) | |
546 | - | else [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(ay.caller, bY, ca), ScriptTransfer(J, bZ, ca)] | |
608 | + | else (aA >= ch)) | |
609 | + | then aX(cc, aD, ag) | |
610 | + | else { | |
611 | + | let bC = if (containsElement(S, ac)) | |
612 | + | then invoke(this, "stakeUnstake", [false, (cc + cd), ac], nil) | |
613 | + | else 0 | |
614 | + | if ((bC == bC)) | |
615 | + | then { | |
616 | + | let bD = if (containsElement(S, ad)) | |
617 | + | then invoke(this, "stakeUnstake", [true, bS, ad], nil) | |
618 | + | else 0 | |
619 | + | if ((bD == bD)) | |
620 | + | then [IntegerEntry(f, cg), IntegerEntry(g, ch), ScriptTransfer(ay.caller, cc, ce), ScriptTransfer(N, cd, ce)] | |
621 | + | else throw("Strict value is not equal to itself.") | |
622 | + | } | |
623 | + | else throw("Strict value is not equal to itself.") | |
624 | + | } | |
547 | 625 | } | |
548 | - | else throw(((("Incorrect asset attached. Expected: " + | |
626 | + | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
549 | 627 | } | |
550 | 628 | ||
551 | 629 | ||
552 | 630 | ||
553 | 631 | @Callable(ay) | |
554 | - | func shutdown () = if (!( | |
632 | + | func shutdown () = if (!(ab)) | |
555 | 633 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
556 | - | else if (!(containsElement([ | |
634 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
557 | 635 | then throw("Only admin can call this function") | |
558 | 636 | else aN("Paused by admin") | |
559 | 637 | ||
560 | 638 | ||
561 | 639 | ||
562 | 640 | @Callable(ay) | |
563 | - | func activate () = if ( | |
641 | + | func activate () = if (ab) | |
564 | 642 | then throw("DApp is already active") | |
565 | - | else if (!(containsElement([ | |
643 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
566 | 644 | then throw("Only admin can call this function") | |
567 | 645 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
568 | 646 | ||
569 | 647 | ||
570 | 648 | ||
571 | 649 | @Callable(ay) | |
572 | - | func takeIntoAccountExtraFunds ( | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | then | |
650 | + | func takeIntoAccountExtraFunds (cj) = { | |
651 | + | let ck = (aF - ak) | |
652 | + | let cl = (aG - al) | |
653 | + | let cm = (ck - (if ((ae == unit)) | |
654 | + | then cj | |
577 | 655 | else 0)) | |
578 | - | let | |
579 | - | then | |
656 | + | let cn = (cl - (if ((af == unit)) | |
657 | + | then cj | |
580 | 658 | else 0)) | |
581 | - | if (!( | |
659 | + | if (!(ab)) | |
582 | 660 | then throw("DApp is inactive at this moment") | |
583 | 661 | else if ((ay.caller != this)) | |
584 | 662 | then throw("Only the DApp itself can call this function") | |
585 | - | else if ((0 > | |
586 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
587 | - | else if (if ((0 > | |
663 | + | else if ((0 > cj)) | |
664 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cj))) | |
665 | + | else if (if ((0 > ck)) | |
588 | 666 | then true | |
589 | - | else (0 > | |
667 | + | else (0 > cl)) | |
590 | 668 | then aN("Enroll amount negative") | |
591 | - | else if (if ((0 > | |
669 | + | else if (if ((0 > cm)) | |
592 | 670 | then true | |
593 | - | else (0 > | |
671 | + | else (0 > cn)) | |
594 | 672 | then throw("Too large amountLeave") | |
595 | - | else [IntegerEntry(f, (ai + ci)), IntegerEntry(g, (aj + cj)), IntegerEntry(("last_income_" + aa), ci), IntegerEntry(("last_income_" + ab), cj)] | |
673 | + | else { | |
674 | + | let bC = if (if (containsElement(S, ac)) | |
675 | + | then (cm > 0) | |
676 | + | else false) | |
677 | + | then invoke(this, "stakeUnstake", [true, cm, ac], nil) | |
678 | + | else 0 | |
679 | + | if ((bC == bC)) | |
680 | + | then { | |
681 | + | let bD = if (if (containsElement(S, ad)) | |
682 | + | then (cn > 0) | |
683 | + | else false) | |
684 | + | then invoke(this, "stakeUnstake", [true, cn, ad], nil) | |
685 | + | else 0 | |
686 | + | if ((bD == bD)) | |
687 | + | then [IntegerEntry(f, (ak + cm)), IntegerEntry(g, (al + cn)), IntegerEntry(("last_income_" + ac), cm), IntegerEntry(("last_income_" + ad), cn)] | |
688 | + | else throw("Strict value is not equal to itself.") | |
689 | + | } | |
690 | + | else throw("Strict value is not equal to itself.") | |
691 | + | } | |
596 | 692 | } | |
597 | 693 | ||
598 | 694 | ||
599 | - | @Verifier(ck) | |
600 | - | func cl () = { | |
601 | - | let cm = { | |
602 | - | let cn = if (sigVerify(ck.bodyBytes, ck.proofs[0], E)) | |
695 | + | ||
696 | + | @Callable(ay) | |
697 | + | func stakeUnstake (aQ,aS,co) = if ((ay.caller != this)) | |
698 | + | then throw("Only contract itself can invoke this function") | |
699 | + | else if ((co == "WAVES")) | |
700 | + | then { | |
701 | + | let cp = addressFromStringValue(valueOrErrorMessage(getString(C, w), "No leasing pool in oracle")) | |
702 | + | let cq = getBinary(this, y) | |
703 | + | let cr = valueOrElse(getInteger(this, x), 0) | |
704 | + | let cs = if (aQ) | |
705 | + | then (cr + aS) | |
706 | + | else (cr - aS) | |
707 | + | let ct = Lease(cp, cs) | |
708 | + | let cu = calculateLeaseId(ct) | |
709 | + | let cv = [ct, BinaryEntry(y, cu), IntegerEntry(x, cs)] | |
710 | + | let F = cq | |
711 | + | if ($isInstanceOf(F, "ByteVector")) | |
712 | + | then { | |
713 | + | let cw = F | |
714 | + | ([LeaseCancel(cw)] ++ cv) | |
715 | + | } | |
716 | + | else cv | |
717 | + | } | |
718 | + | else { | |
719 | + | let cx = aR(aQ, aS, fromBase58String(co)) | |
720 | + | let aU = cx._1 | |
721 | + | let cy = cx._2 | |
722 | + | let cz = cx._3 | |
723 | + | let cA = cx._4 | |
724 | + | let cB = invoke(cy, aU, cz, cA) | |
725 | + | nil | |
726 | + | } | |
727 | + | ||
728 | + | ||
729 | + | ||
730 | + | @Callable(ay) | |
731 | + | func stakeAll () = if (!(ab)) | |
732 | + | then throw("DApp is inactive at this moment") | |
733 | + | else if (!(containsElement([I, J, K, L], ay.callerPublicKey))) | |
734 | + | then throw("Only admin can call this function") | |
735 | + | else { | |
736 | + | let bC = if (containsElement(S, ac)) | |
737 | + | then { | |
738 | + | let bb = (ak - az) | |
739 | + | if ((bb > 0)) | |
740 | + | then invoke(this, "stakeUnstake", [true, bb, ac], nil) | |
741 | + | else 0 | |
742 | + | } | |
743 | + | else 0 | |
744 | + | if ((bC == bC)) | |
745 | + | then { | |
746 | + | let bD = if (containsElement(S, ad)) | |
747 | + | then { | |
748 | + | let bc = (al - aA) | |
749 | + | if ((bc > 0)) | |
750 | + | then invoke(this, "stakeUnstake", [true, bc, ad], nil) | |
751 | + | else 0 | |
752 | + | } | |
753 | + | else 0 | |
754 | + | if ((bD == bD)) | |
755 | + | then nil | |
756 | + | else throw("Strict value is not equal to itself.") | |
757 | + | } | |
758 | + | else throw("Strict value is not equal to itself.") | |
759 | + | } | |
760 | + | ||
761 | + | ||
762 | + | @Verifier(cC) | |
763 | + | func cD () = { | |
764 | + | let cE = { | |
765 | + | let cF = if (sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
603 | 766 | then 1 | |
604 | 767 | else 0 | |
605 | - | let | |
768 | + | let cG = if (sigVerify(cC.bodyBytes, cC.proofs[1], J)) | |
606 | 769 | then 1 | |
607 | 770 | else 0 | |
608 | - | let | |
771 | + | let cH = if (sigVerify(cC.bodyBytes, cC.proofs[2], K)) | |
609 | 772 | then 1 | |
610 | 773 | else 0 | |
611 | - | ((( | |
774 | + | (((cF + cG) + cH) >= 2) | |
612 | 775 | } | |
613 | - | let | |
614 | - | if ($isInstanceOf( | |
776 | + | let F = cC | |
777 | + | if ($isInstanceOf(F, "InvokeScriptTransaction")) | |
615 | 778 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | then ( | |
779 | + | let cB = F | |
780 | + | let cI = if ((cB.dApp == this)) | |
781 | + | then (cB.function == "takeIntoAccountExtraFunds") | |
619 | 782 | else false | |
620 | - | let cs = if (if ((cq.dApp == P)) | |
621 | - | then if (if (if (containsElement(["lockNeutrino", "lockNsbt"], cq.function)) | |
622 | - | then (size(cq.payments) == 1) | |
623 | - | else false) | |
624 | - | then if ((cq.payments[0].assetId == L)) | |
625 | - | then true | |
626 | - | else (cq.payments[0].assetId == M) | |
627 | - | else false) | |
628 | - | then true | |
629 | - | else if (containsElement(["unlockNeutrino", "unlockNsbt"], cq.function)) | |
630 | - | then (size(cq.payments) == 0) | |
631 | - | else false | |
783 | + | let cJ = if (if (if ((cB.dApp == V)) | |
784 | + | then (cB.function == "exchange") | |
785 | + | else false) | |
786 | + | then (ae == P) | |
632 | 787 | else false) | |
633 | 788 | then true | |
634 | - | else if ((cq.dApp == Q)) | |
635 | - | then if (if (if ((cq.function == "startStaking")) | |
636 | - | then (size(cq.payments) == 1) | |
637 | - | else false) | |
638 | - | then (cq.payments[0].assetId == O) | |
639 | - | else false) | |
640 | - | then true | |
641 | - | else if ((cq.function == "stopStaking")) | |
642 | - | then (size(cq.payments) == 0) | |
643 | - | else false | |
789 | + | else if (if ((af == P)) | |
790 | + | then (size(cB.payments) == 1) | |
791 | + | else false) | |
792 | + | then (cB.payments[0].assetId == P) | |
644 | 793 | else false | |
645 | - | let | |
646 | - | then ( | |
794 | + | let cK = if (if (if ((cB.dApp == W)) | |
795 | + | then (cB.function == "exchange") | |
647 | 796 | else false) | |
648 | - | then ( | |
797 | + | then (ae == Q) | |
649 | 798 | else false) | |
650 | 799 | then true | |
651 | - | else if (if (( | |
652 | - | then (size( | |
800 | + | else if (if ((af == Q)) | |
801 | + | then (size(cB.payments) == 1) | |
653 | 802 | else false) | |
654 | - | then ( | |
803 | + | then (cB.payments[0].assetId == P) | |
655 | 804 | else false | |
656 | - | let cu = if (if (if ((cq.dApp == S)) | |
657 | - | then (cq.function == "exchange") | |
658 | - | else false) | |
659 | - | then (ac == M) | |
805 | + | let cL = if (if (if (sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
806 | + | then true | |
807 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], J)) | |
808 | + | then true | |
809 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], K)) | |
810 | + | then true | |
811 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], M) | |
812 | + | if (if (if (if (cI) | |
813 | + | then true | |
814 | + | else cJ) | |
815 | + | then true | |
816 | + | else cK) | |
817 | + | then cL | |
660 | 818 | else false) | |
661 | 819 | then true | |
662 | - | else if (if ((ad == M)) | |
663 | - | then (size(cq.payments) == 1) | |
664 | - | else false) | |
665 | - | then (cq.payments[0].assetId == L) | |
666 | - | else false | |
667 | - | let cv = if (if (if (sigVerify(ck.bodyBytes, ck.proofs[0], E)) | |
668 | - | then true | |
669 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], F)) | |
670 | - | then true | |
671 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], G)) | |
672 | - | then true | |
673 | - | else sigVerify(ck.bodyBytes, ck.proofs[0], I) | |
674 | - | if (if (if (if (if (cr) | |
675 | - | then true | |
676 | - | else cs) | |
677 | - | then true | |
678 | - | else ct) | |
679 | - | then true | |
680 | - | else cu) | |
681 | - | then cv | |
682 | - | else false) | |
683 | - | then true | |
684 | - | else cm | |
820 | + | else cE | |
685 | 821 | } | |
686 | - | else | |
822 | + | else cE | |
687 | 823 | } | |
688 | 824 |
github/deemru/w8io/169f3d6 195.11 ms ◑