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