tx · 8ZDxUfV6wzUP17Dj4hhoatCXJmR678Gbt1wbE2VvApUA 3N8VprziouggRRQaP2aFdem2ycS6GudUaft: -0.01400000 Waves 2021.05.19 17:42 [1532692] smart account 3N8VprziouggRRQaP2aFdem2ycS6GudUaft > SELF 0.00000000 Waves
{ "type": 13, "id": "8ZDxUfV6wzUP17Dj4hhoatCXJmR678Gbt1wbE2VvApUA", "fee": 1400000, "feeAssetId": null, "timestamp": 1621435356220, "version": 2, "chainId": 84, "sender": "3N8VprziouggRRQaP2aFdem2ycS6GudUaft", "senderPublicKey": "2RHKgKhtb7zn9BWj8GWz6YUyfTFMaoicZKLhjge5B6z2", "proofs": [ "2ihvzkGC1NDAgHYUZz4wJjdfN8XwAJzmYyaCDtjLpkcD6Z5hL1hQPkcx3G9cKFyYZN8tmVWjeJ7qbVsvU9tt7fMe" ], "script": "base64:AAIEAAAAAAAAACoIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQEAAABIAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABNrZXlTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1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MgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAC2NhbGxTdGFraW5nCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQBYARA=", "height": 1532692, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ECyExyzc8KGgEMA6xkaJb7QDxddPHizitBrLkN8knYUi Next: none Diff:
Old | New | Differences | |
---|---|---|---|
41 | 41 | ||
42 | 42 | let t = "duration_full_vote_power" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "share_limit_on_first_harvest" | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = "min_vote_power" | |
47 | 47 | ||
48 | 48 | let w = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
49 | 49 | ||
53 | 53 | ||
54 | 54 | let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
60 | - | let C = Address(base58' | |
60 | + | let C = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 61 | ||
62 | - | let D = base58' | |
62 | + | let D = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
63 | 63 | ||
64 | - | let E = ( | |
64 | + | let E = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = (9 * value(value(assetInfo(F)).minSponsoredFee)) | |
69 | 69 | ||
70 | - | let H = valueOrErrorMessage(getInteger( | |
70 | + | let H = valueOrErrorMessage(getInteger(D, p), "Empty kBasePeriod") | |
71 | 71 | ||
72 | - | let I = valueOrErrorMessage(getInteger( | |
72 | + | let I = valueOrErrorMessage(getInteger(D, r), "Empty kStartHeight") | |
73 | 73 | ||
74 | - | let J = valueOrErrorMessage(getInteger( | |
74 | + | let J = valueOrErrorMessage(getInteger(D, q), "Empty kPeriodLength") | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = valueOrErrorMessage(getInteger(D, t), "Empty kDurationFullVotePower") | |
77 | 77 | ||
78 | - | let L = (( | |
78 | + | let L = valueOrErrorMessage(getInteger(D, v), "Empty kMinVotePower") | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = ((H + ((height - I) / J)) + 2) | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = getBooleanValue(this, c) | |
83 | 83 | ||
84 | - | let O = getStringValue(this, | |
84 | + | let O = getStringValue(this, d) | |
85 | 85 | ||
86 | - | let P = if ((N == "WAVES")) | |
87 | - | then unit | |
88 | - | else fromBase58String(N) | |
86 | + | let P = getStringValue(this, e) | |
89 | 87 | ||
90 | 88 | let Q = if ((O == "WAVES")) | |
91 | 89 | then unit | |
92 | 90 | else fromBase58String(O) | |
93 | 91 | ||
94 | - | let R = { | |
95 | - | let S = P | |
96 | - | if ($isInstanceOf(S, "ByteVector")) | |
92 | + | let R = if ((P == "WAVES")) | |
93 | + | then unit | |
94 | + | else fromBase58String(P) | |
95 | + | ||
96 | + | let S = { | |
97 | + | let T = Q | |
98 | + | if ($isInstanceOf(T, "ByteVector")) | |
97 | 99 | then { | |
98 | - | let | |
99 | - | value(assetInfo( | |
100 | + | let U = T | |
101 | + | value(assetInfo(U)).name | |
100 | 102 | } | |
101 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(T, "Unit")) | |
102 | 104 | then { | |
103 | - | let | |
105 | + | let V = T | |
104 | 106 | "WAVES" | |
105 | 107 | } | |
106 | 108 | else throw("Match error") | |
107 | 109 | } | |
108 | 110 | ||
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
111 | + | let W = { | |
112 | + | let T = R | |
113 | + | if ($isInstanceOf(T, "ByteVector")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | value(assetInfo( | |
115 | + | let U = T | |
116 | + | value(assetInfo(U)).name | |
115 | 117 | } | |
116 | - | else if ($isInstanceOf( | |
118 | + | else if ($isInstanceOf(T, "Unit")) | |
117 | 119 | then { | |
118 | - | let | |
120 | + | let V = T | |
119 | 121 | "WAVES" | |
120 | 122 | } | |
121 | 123 | else throw("Match error") | |
122 | 124 | } | |
123 | 125 | ||
124 | - | let | |
126 | + | let X = getIntegerValue(this, f) | |
125 | 127 | ||
126 | - | let | |
128 | + | let Y = getIntegerValue(this, g) | |
127 | 129 | ||
128 | - | let | |
130 | + | let Z = fromBase58String(getStringValue(this, j)) | |
129 | 131 | ||
130 | - | let | |
132 | + | let aa = getIntegerValue(this, k) | |
131 | 133 | ||
132 | - | let | |
134 | + | let ab = 3000 | |
133 | 135 | ||
134 | - | let | |
136 | + | let ac = 1200 | |
135 | 137 | ||
136 | - | let | |
138 | + | let ad = 1000000 | |
137 | 139 | ||
138 | - | let | |
140 | + | let ae = 1000 | |
139 | 141 | ||
140 | - | let | |
142 | + | let af = 100000000 | |
141 | 143 | ||
142 | - | let | |
144 | + | let ag = 1000 | |
143 | 145 | ||
144 | - | let | |
146 | + | let ah = 8 | |
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
148 | + | func ai (aj) = { | |
149 | + | let T = aj | |
150 | + | if ($isInstanceOf(T, "ByteVector")) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | assetBalance(this, | |
152 | + | let U = T | |
153 | + | assetBalance(this, U) | |
152 | 154 | } | |
153 | - | else if ($isInstanceOf( | |
155 | + | else if ($isInstanceOf(T, "Unit")) | |
154 | 156 | then { | |
155 | - | let | |
157 | + | let V = T | |
156 | 158 | wavesBalance(this).available | |
157 | 159 | } | |
158 | 160 | else throw("Match error") | |
159 | 161 | } | |
160 | 162 | ||
161 | 163 | ||
162 | - | let | |
163 | - | let | |
164 | - | if ($isInstanceOf( | |
164 | + | let ak = { | |
165 | + | let T = getInteger(E, ((("rpd_balance_" + toBase58String(F)) + "_") + toString(this))) | |
166 | + | if ($isInstanceOf(T, "Int")) | |
165 | 167 | then { | |
166 | - | let | |
167 | - | | |
168 | + | let al = T | |
169 | + | al | |
168 | 170 | } | |
169 | - | else if ($isInstanceOf( | |
171 | + | else if ($isInstanceOf(T, "Unit")) | |
170 | 172 | then { | |
171 | - | let | |
173 | + | let am = T | |
172 | 174 | 0 | |
173 | 175 | } | |
174 | 176 | else throw("Match error") | |
175 | 177 | } | |
176 | 178 | ||
177 | - | let | |
179 | + | let an = getIntegerValue(this, h) | |
178 | 180 | ||
179 | - | let | |
181 | + | let ao = getIntegerValue(this, i) | |
180 | 182 | ||
181 | - | let | |
182 | - | then | |
183 | + | let ap = (X - (if ((Q == F)) | |
184 | + | then ak | |
183 | 185 | else 0)) | |
184 | 186 | ||
185 | - | let | |
186 | - | then | |
187 | + | let aq = (Y - (if ((R == F)) | |
188 | + | then ak | |
187 | 189 | else 0)) | |
188 | 190 | ||
189 | - | let | |
190 | - | then | |
191 | + | let ar = (ai(Q) + (if ((Q == F)) | |
192 | + | then ak | |
191 | 193 | else 0)) | |
192 | 194 | ||
193 | - | let | |
194 | - | then | |
195 | + | let as = (ai(R) + (if ((R == F)) | |
196 | + | then ak | |
195 | 197 | else 0)) | |
196 | 198 | ||
197 | - | let | |
198 | - | then ( | |
199 | + | let at = if ((ar >= X)) | |
200 | + | then (as >= Y) | |
199 | 201 | else false | |
200 | 202 | ||
201 | - | func | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
203 | + | func au (aj) = { | |
204 | + | let T = aj | |
205 | + | if ($isInstanceOf(T, "ByteVector")) | |
204 | 206 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple3( | |
207 | + | let U = T | |
208 | + | let av = toBase58String(U) | |
209 | + | let aw = valueOrErrorMessage(assetInfo(U), (("Asset " + av) + " doesn't exist")) | |
210 | + | $Tuple3(av, aw.name, aw.decimals) | |
209 | 211 | } | |
210 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(T, "Unit")) | |
211 | 213 | then { | |
212 | - | let | |
214 | + | let V = T | |
213 | 215 | $Tuple3("WAVES", "WAVES", 8) | |
214 | 216 | } | |
215 | 217 | else throw("Match error") | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 | ||
219 | - | func | |
221 | + | func ax (ay) = if ((ay == "WAVES")) | |
220 | 222 | then $Tuple3("WAVES", "WAVES", 8) | |
221 | 223 | else { | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | $Tuple3( | |
224 | + | let av = ay | |
225 | + | let U = fromBase58String(ay) | |
226 | + | let aw = valueOrErrorMessage(assetInfo(U), (("Asset " + av) + " doesn't exist")) | |
227 | + | $Tuple3(av, aw.name, aw.decimals) | |
226 | 228 | } | |
227 | 229 | ||
228 | 230 | ||
229 | - | func | |
231 | + | func az (aA) = [BooleanEntry(c, false), StringEntry(n, aA)] | |
230 | 232 | ||
231 | 233 | ||
232 | - | func | |
234 | + | func aB (aC,aj) = if ((aj == F)) | |
233 | 235 | then { | |
234 | - | let | |
235 | - | if ((0 >= | |
236 | - | then throw((((("Insufficient amount " + toString( | |
237 | - | else | |
236 | + | let aD = (aC - G) | |
237 | + | if ((0 >= aD)) | |
238 | + | then throw((((("Insufficient amount " + toString(aC)) + " to deduct staking fee ") + toString(G)) + " USD-N")) | |
239 | + | else aD | |
238 | 240 | } | |
239 | - | else | |
241 | + | else aC | |
240 | 242 | ||
241 | 243 | ||
242 | - | func | |
244 | + | func aE (aC,aF,aG) = throw((((((((("Insufficient DApp balance to pay " + toString(aC)) + " ") + aG) + " due to staking. Available: ") + toString(aF)) + " ") + aG) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
243 | 245 | ||
244 | 246 | ||
245 | - | func | |
247 | + | func aH (aI,aJ) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aI)) + " ") + S) + " and ") + toString(aJ)) + " ") + W) + " due to staking. Available: ") + toString(ap)) + " ") + S) + " and ") + toString(aq)) + " ") + W) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
246 | 248 | ||
247 | 249 | ||
248 | - | @Callable( | |
249 | - | func init () = { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
250 | + | @Callable(aK) | |
251 | + | func init (aL) = { | |
252 | + | let aM = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
253 | + | let aN = aM._1 | |
254 | + | let aO = aM._2 | |
255 | + | let aP = $Tuple2(aK.payments[1].amount, aK.payments[1].assetId) | |
256 | + | let aQ = aP._1 | |
257 | + | let aR = aP._2 | |
258 | + | let aS = au(aO) | |
259 | + | let aT = aS._1 | |
260 | + | let aU = aS._2 | |
261 | + | let aV = aS._3 | |
262 | + | let aW = au(aR) | |
263 | + | let aX = aW._1 | |
264 | + | let aY = aW._2 | |
265 | + | let aZ = aW._3 | |
264 | 266 | if (isDefined(getBoolean(this, c))) | |
265 | 267 | then throw("DApp is already active") | |
266 | - | else if (( | |
268 | + | else if ((aO == aR)) | |
267 | 269 | then throw("Assets must be different") | |
268 | 270 | else { | |
269 | - | let aY = ((("s" + take(aS, 7)) + "_") + take(aW, 7)) | |
270 | - | let aZ = ((((("ShareToken of SwopFi protocol for " + aS) + " and ") + aW) + " at address ") + toString(this)) | |
271 | - | let ba = ((aT + aX) / 2) | |
272 | - | let bb = fraction(pow(aL, aT, 5, 1, aT, HALFDOWN), pow(aO, aX, 5, 1, aX, HALFDOWN), pow(10, 0, ba, 0, 0, HALFDOWN)) | |
273 | - | let bc = Issue(aY, aZ, bb, ba, true) | |
274 | - | let bd = calculateAssetId(bc) | |
275 | - | [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aR), StringEntry(e, aV), IntegerEntry(f, aL), IntegerEntry(g, aO), IntegerEntry(l, aa), IntegerEntry(m, ac), bc, StringEntry(j, toBase58String(bd)), IntegerEntry(k, bb), ScriptTransfer(aJ.caller, bb, bd)] | |
271 | + | let ba = ((("s" + take(aU, 7)) + "_") + take(aY, 7)) | |
272 | + | let bb = ((((("ShareToken of SwopFi protocol for " + aU) + " and ") + aY) + " at address ") + toString(this)) | |
273 | + | let bc = ((aV + aZ) / 2) | |
274 | + | let bd = fraction(pow(aN, aV, 5, 1, aV, HALFDOWN), pow(aQ, aZ, 5, 1, aZ, HALFDOWN), pow(10, 0, bc, 0, 0, HALFDOWN)) | |
275 | + | let be = Issue(ba, bb, bd, bc, true) | |
276 | + | let bf = calculateAssetId(be) | |
277 | + | let bg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aT), StringEntry(e, aX), IntegerEntry(f, aN), IntegerEntry(g, aQ), IntegerEntry(l, ab), IntegerEntry(m, ad), be, StringEntry(j, toBase58String(bf)), IntegerEntry(k, bd), ScriptTransfer(aK.caller, bd, bf)] | |
278 | + | if (aL) | |
279 | + | then (bg ++ [BooleanEntry(o, aL), IntegerEntry(s, M)]) | |
280 | + | else bg | |
276 | 281 | } | |
277 | 282 | } | |
278 | 283 | ||
279 | 284 | ||
280 | 285 | ||
281 | - | @Callable( | |
282 | - | func initWithInitRatio ( | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
286 | + | @Callable(aK) | |
287 | + | func initWithInitRatio (bh,bi,O,P,aL) = { | |
288 | + | let bj = ax(O) | |
289 | + | let aT = bj._1 | |
290 | + | let aU = bj._2 | |
291 | + | let aV = bj._3 | |
292 | + | let bk = ax(P) | |
293 | + | let aX = bk._1 | |
294 | + | let aY = bk._2 | |
295 | + | let aZ = bk._3 | |
291 | 296 | if (isDefined(getBoolean(this, c))) | |
292 | 297 | then throw("DApp is already active") | |
293 | - | else if (( | |
298 | + | else if ((O == P)) | |
294 | 299 | then throw("Assets must be different") | |
295 | 300 | else { | |
296 | - | let aY = ((("s" + take(aS, 7)) + "_") + take(aW, 7)) | |
297 | - | let aZ = ((((("ShareToken of SwopFi protocol for " + aS) + " and ") + aW) + " at address ") + toString(this)) | |
298 | - | let ba = ((aT + aX) / 2) | |
299 | - | let bb = 0 | |
300 | - | let bc = Issue(aY, aZ, bb, ba, true) | |
301 | - | let bd = calculateAssetId(bc) | |
302 | - | [StringEntry(b, a), BooleanEntry(c, true), BooleanEntry(o, true), StringEntry(d, aR), StringEntry(e, aV), IntegerEntry(h, be), IntegerEntry(i, bf), IntegerEntry(l, aa), IntegerEntry(m, ac), bc, StringEntry(j, toBase58String(bd)), IntegerEntry(s, L), IntegerEntry(k, bb), IntegerEntry(f, 0), IntegerEntry(g, 0)] | |
301 | + | let ba = ((("s" + take(aU, 7)) + "_") + take(aY, 7)) | |
302 | + | let bb = ((((("ShareToken of SwopFi protocol for " + aU) + " and ") + aY) + " at address ") + toString(this)) | |
303 | + | let bc = ((aV + aZ) / 2) | |
304 | + | let bd = 0 | |
305 | + | let be = Issue(ba, bb, bd, bc, true) | |
306 | + | let bf = calculateAssetId(be) | |
307 | + | let bg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aT), StringEntry(e, aX), IntegerEntry(h, bh), IntegerEntry(i, bi), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ab), IntegerEntry(m, ad), be, StringEntry(j, toBase58String(bf)), IntegerEntry(s, M), IntegerEntry(k, bd)] | |
308 | + | if (aL) | |
309 | + | then (bg ++ [BooleanEntry(o, aL), IntegerEntry(s, M)]) | |
310 | + | else bg | |
303 | 311 | } | |
304 | 312 | } | |
305 | 313 | ||
306 | 314 | ||
307 | 315 | ||
308 | - | @Callable(aJ) | |
309 | - | func replenishWithTwoTokens (bi) = { | |
310 | - | let aM = aJ.payments[0].assetId | |
311 | - | let aP = aJ.payments[1].assetId | |
312 | - | let aL = aA(aJ.payments[0].amount, aM) | |
313 | - | let aO = aA(aJ.payments[1].amount, aP) | |
314 | - | if (if ((W == 0)) | |
315 | - | then (X == 0) | |
316 | + | @Callable(aK) | |
317 | + | func keepLimitForFirstHarvest (bl) = if (!(N)) | |
318 | + | then throw("DApp is inactive at this moment") | |
319 | + | else if (!(containsElement([w, x, y, B], aK.callerPublicKey))) | |
320 | + | then throw("Only admin can call this function") | |
321 | + | else [IntegerEntry(u, bl)] | |
322 | + | ||
323 | + | ||
324 | + | ||
325 | + | @Callable(aK) | |
326 | + | func replenishWithTwoTokens (bm) = { | |
327 | + | let aO = aK.payments[0].assetId | |
328 | + | let aR = aK.payments[1].assetId | |
329 | + | let aN = aB(aK.payments[0].amount, aO) | |
330 | + | let aQ = aB(aK.payments[1].amount, aR) | |
331 | + | if (if ((X == 0)) | |
332 | + | then (Y == 0) | |
316 | 333 | else false) | |
317 | 334 | then { | |
318 | - | let bj = at(aM) | |
319 | - | let aR = bj._1 | |
320 | - | let aS = bj._2 | |
321 | - | let aT = bj._3 | |
322 | - | let bk = at(aP) | |
323 | - | let aV = bk._1 | |
324 | - | let aW = bk._2 | |
325 | - | let aX = bk._3 | |
326 | - | if (isDefined(getBoolean(this, c))) | |
327 | - | then throw("DApp is already active") | |
328 | - | else if ((aM == aP)) | |
329 | - | then throw("Assets must be different") | |
330 | - | else { | |
331 | - | let ba = ((aT + aX) / 2) | |
332 | - | let bb = fraction(pow(aL, aT, 5, 1, aT, HALFDOWN), pow(aO, aX, 5, 1, aX, HALFDOWN), pow(10, 0, ba, 0, 0, HALFDOWN)) | |
333 | - | let bl = fraction(fraction(am, ae, aL), ad, fraction(an, ae, aO)) | |
334 | - | if (!(M)) | |
335 | - | then throw("DApp is inactive at this moment") | |
336 | - | else if (if ((0 > bi)) | |
337 | - | then true | |
338 | - | else (bi > af)) | |
339 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(af)) + " inclusively. Actual: ") + toString(bi))) | |
340 | - | else if ((size(aJ.payments) != 2)) | |
341 | - | then throw("Two attached assets expected") | |
342 | - | else if (if ((aM != P)) | |
343 | - | then true | |
344 | - | else (aP != Q)) | |
345 | - | then throw(((("Incorrect assets attached. Expected: " + N) + " and ") + O)) | |
346 | - | else if (if ((((ad * (af - bi)) / af) > bl)) | |
347 | - | then true | |
348 | - | else (bl > ((ad * (af + bi)) / af))) | |
349 | - | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
350 | - | else if ((bb == 0)) | |
351 | - | then throw("Too small amount to replenish") | |
352 | - | else if (!(as)) | |
353 | - | then ay(((((((((((((((("Suspicious state. Actual balances: " + toString(W)) + " ") + R) + ", ") + toString(X)) + " ") + V) + ". State: ") + toString(ah(P))) + " ") + R) + ", ") + toString(ah(Q))) + " ") + V)) | |
354 | - | else [Reissue(Y, bb, true), IntegerEntry(f, aL), IntegerEntry(g, aO), IntegerEntry(k, bb), ScriptTransfer(aJ.caller, bb, Y)] | |
355 | - | } | |
335 | + | let bn = au(aO) | |
336 | + | let aT = bn._1 | |
337 | + | let aU = bn._2 | |
338 | + | let aV = bn._3 | |
339 | + | let bo = au(aR) | |
340 | + | let aX = bo._1 | |
341 | + | let aY = bo._2 | |
342 | + | let aZ = bo._3 | |
343 | + | if ((aO == aR)) | |
344 | + | then throw("Assets must be different") | |
345 | + | else { | |
346 | + | let bc = ((aV + aZ) / 2) | |
347 | + | let bd = fraction(pow(aN, aV, 5, 1, aV, HALFDOWN), pow(aQ, aZ, 5, 1, aZ, HALFDOWN), pow(10, 0, bc, 0, 0, HALFDOWN)) | |
348 | + | if (!(N)) | |
349 | + | then throw("DApp is inactive at this moment") | |
350 | + | else if (if ((0 > bm)) | |
351 | + | then true | |
352 | + | else (bm > ag)) | |
353 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(ag)) + " inclusively. Actual: ") + toString(bm))) | |
354 | + | else if ((size(aK.payments) != 2)) | |
355 | + | then throw("Two attached assets expected") | |
356 | + | else if (if ((aO != Q)) | |
357 | + | then true | |
358 | + | else (aR != R)) | |
359 | + | then throw(((("Incorrect assets attached. Expected: " + O) + " and ") + P)) | |
360 | + | else if ((bd == 0)) | |
361 | + | then throw("Too small amount to replenish") | |
362 | + | else if (!(at)) | |
363 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
364 | + | else [Reissue(Z, bd, true), IntegerEntry(f, aN), IntegerEntry(g, aQ), IntegerEntry(k, bd), ScriptTransfer(aK.caller, bd, Z)] | |
365 | + | } | |
356 | 366 | } | |
357 | 367 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if (!( | |
368 | + | let bp = fraction(fraction(X, af, aN), ae, fraction(Y, af, aQ)) | |
369 | + | let bq = fraction(aN, af, X) | |
370 | + | let br = fraction(aQ, af, Y) | |
371 | + | let bs = fraction(min([bq, br]), aa, af) | |
372 | + | if (!(N)) | |
363 | 373 | then throw("DApp is inactive at this moment") | |
364 | - | else if (if ((0 > | |
374 | + | else if (if ((0 > bm)) | |
365 | 375 | then true | |
366 | - | else ( | |
367 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
368 | - | else if ((size( | |
376 | + | else (bm > ag)) | |
377 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(ag)) + " inclusively. Actual: ") + toString(bm))) | |
378 | + | else if ((size(aK.payments) != 2)) | |
369 | 379 | then throw("Two attached assets expected") | |
370 | - | else if (if (( | |
380 | + | else if (if ((aO != Q)) | |
371 | 381 | then true | |
372 | - | else ( | |
373 | - | then throw(((("Incorrect assets attached. Expected: " + | |
374 | - | else if (if (((( | |
382 | + | else (aR != R)) | |
383 | + | then throw(((("Incorrect assets attached. Expected: " + O) + " and ") + P)) | |
384 | + | else if (if ((((ae * (ag - bm)) / ag) > bp)) | |
375 | 385 | then true | |
376 | - | else ( | |
386 | + | else (bp > ((ae * (ag + bm)) / ag))) | |
377 | 387 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
378 | - | else if (( | |
388 | + | else if ((bs == 0)) | |
379 | 389 | then throw("Too small amount to replenish") | |
380 | - | else if (!( | |
381 | - | then | |
382 | - | else [IntegerEntry(f, ( | |
390 | + | else if (!(at)) | |
391 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
392 | + | else [IntegerEntry(f, (X + aN)), IntegerEntry(g, (Y + aQ)), IntegerEntry(k, (aa + bs)), Reissue(Z, bs, true), ScriptTransfer(aK.caller, bs, Z)] | |
383 | 393 | } | |
384 | 394 | } | |
385 | 395 | ||
386 | 396 | ||
387 | 397 | ||
388 | - | @Callable( | |
398 | + | @Callable(aK) | |
389 | 399 | func withdraw () = { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | if (!( | |
400 | + | let bt = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
401 | + | let bu = bt._1 | |
402 | + | let bv = bt._2 | |
403 | + | let bw = aB(fraction(bu, X, aa), Q) | |
404 | + | let bx = aB(fraction(bu, Y, aa), R) | |
405 | + | if (!(N)) | |
396 | 406 | then throw("DApp is inactive at this moment") | |
397 | - | else if ((size( | |
407 | + | else if ((size(aK.payments) != 1)) | |
398 | 408 | then throw("One attached payment expected") | |
399 | - | else if (( | |
400 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
401 | - | else if (!( | |
402 | - | then | |
403 | - | else if (if (( | |
409 | + | else if ((bv != Z)) | |
410 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(Z))) | |
411 | + | else if (!(at)) | |
412 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
413 | + | else if (if ((bw > ap)) | |
404 | 414 | then true | |
405 | - | else ( | |
406 | - | then | |
407 | - | else [IntegerEntry(f, ( | |
415 | + | else (bx > aq)) | |
416 | + | then aH(bw, bx) | |
417 | + | else [IntegerEntry(f, (X - bw)), IntegerEntry(g, (Y - bx)), IntegerEntry(k, (aa - bu)), Burn(Z, bu), ScriptTransfer(aK.caller, bw, Q), ScriptTransfer(aK.caller, bx, R)] | |
408 | 418 | } | |
409 | 419 | ||
410 | 420 | ||
411 | 421 | ||
412 | - | @Callable( | |
413 | - | func exchange ( | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (( | |
422 | - | then throw(((("Calculated amount to receive " + toString( | |
423 | - | else $Tuple3( | |
422 | + | @Callable(aK) | |
423 | + | func exchange (by) = { | |
424 | + | let bz = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
425 | + | let bu = bz._1 | |
426 | + | let bv = bz._2 | |
427 | + | func bA (bB,bC) = { | |
428 | + | let bD = fraction(bC, bu, (bu + bB)) | |
429 | + | let bE = fraction(bD, (ad - ab), ad) | |
430 | + | let bF = fraction(bD, ac, ad) | |
431 | + | if ((by > bE)) | |
432 | + | then throw(((("Calculated amount to receive " + toString(bE)) + " is less than specified minimum ") + toString(by))) | |
433 | + | else $Tuple3(bD, bE, bF) | |
424 | 434 | } | |
425 | 435 | ||
426 | - | if (!( | |
436 | + | if (!(N)) | |
427 | 437 | then throw("DApp is inactive at this moment") | |
428 | - | else if (if (( | |
429 | - | then ( | |
438 | + | else if (if ((X == 0)) | |
439 | + | then (Y == 0) | |
430 | 440 | else false) | |
431 | 441 | then throw("Can't exchange with zero balance") | |
432 | - | else if ((0 >= | |
433 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
434 | - | else if ((size( | |
442 | + | else if ((0 >= by)) | |
443 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(by))) | |
444 | + | else if ((size(aK.payments) != 1)) | |
435 | 445 | then throw("One attached payment expected") | |
436 | - | else if (!( | |
437 | - | then | |
438 | - | else if (( | |
446 | + | else if (!(at)) | |
447 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
448 | + | else if ((bv == Q)) | |
439 | 449 | then { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (if (if (( | |
448 | - | then ( | |
450 | + | let bG = R | |
451 | + | let bH = bA(X, Y) | |
452 | + | let bD = bH._1 | |
453 | + | let bE = bH._2 | |
454 | + | let bF = bH._3 | |
455 | + | let bI = (X + bu) | |
456 | + | let bJ = ((Y - bE) - bF) | |
457 | + | if (if (if ((Q == F)) | |
458 | + | then (ak >= bI) | |
449 | 459 | else false) | |
450 | 460 | then true | |
451 | - | else if (( | |
452 | - | then ( | |
461 | + | else if ((R == F)) | |
462 | + | then (ak >= bJ) | |
453 | 463 | else false) | |
454 | - | then | |
455 | - | else [IntegerEntry(f, | |
464 | + | then aE(bE, aq, W) | |
465 | + | else [IntegerEntry(f, bI), IntegerEntry(g, bJ), ScriptTransfer(aK.caller, bE, bG), ScriptTransfer(C, bF, bG)] | |
456 | 466 | } | |
457 | - | else if (( | |
467 | + | else if ((bv == R)) | |
458 | 468 | then { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if (if (if (( | |
467 | - | then ( | |
469 | + | let bG = Q | |
470 | + | let bK = bA(Y, X) | |
471 | + | let bD = bK._1 | |
472 | + | let bE = bK._2 | |
473 | + | let bF = bK._3 | |
474 | + | let bI = ((X - bE) - bF) | |
475 | + | let bJ = (Y + bu) | |
476 | + | if (if (if ((Q == F)) | |
477 | + | then (ak >= bI) | |
468 | 478 | else false) | |
469 | 479 | then true | |
470 | - | else if (( | |
471 | - | then ( | |
480 | + | else if ((R == F)) | |
481 | + | then (ak >= bJ) | |
472 | 482 | else false) | |
473 | - | then | |
474 | - | else [IntegerEntry(f, | |
483 | + | then aE(bE, ap, S) | |
484 | + | else [IntegerEntry(f, bI), IntegerEntry(g, bJ), ScriptTransfer(aK.caller, bE, bG), ScriptTransfer(C, bF, bG)] | |
475 | 485 | } | |
476 | - | else throw(((("Incorrect asset attached. Expected: " + | |
486 | + | else throw(((("Incorrect asset attached. Expected: " + O) + " or ") + P)) | |
477 | 487 | } | |
478 | 488 | ||
479 | 489 | ||
480 | 490 | ||
481 | - | @Callable( | |
482 | - | func shutdown () = if (!( | |
491 | + | @Callable(aK) | |
492 | + | func shutdown () = if (!(N)) | |
483 | 493 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
484 | - | else if (!(containsElement([ | |
494 | + | else if (!(containsElement([w, x, y, z], aK.callerPublicKey))) | |
485 | 495 | then throw("Only admin can call this function") | |
486 | - | else | |
496 | + | else az("Paused by admin") | |
487 | 497 | ||
488 | 498 | ||
489 | 499 | ||
490 | - | @Callable( | |
491 | - | func activate () = if ( | |
500 | + | @Callable(aK) | |
501 | + | func activate () = if (N) | |
492 | 502 | then throw("DApp is already active") | |
493 | - | else if (!(containsElement([ | |
503 | + | else if (!(containsElement([w, x, y, z], aK.callerPublicKey))) | |
494 | 504 | then throw("Only admin can call this function") | |
495 | 505 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
496 | 506 | ||
497 | 507 | ||
498 | 508 | ||
499 | - | @Callable( | |
500 | - | func takeIntoAccountExtraFunds ( | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | then | |
509 | + | @Callable(aK) | |
510 | + | func takeIntoAccountExtraFunds (bL) = { | |
511 | + | let bM = (ar - X) | |
512 | + | let bN = (as - Y) | |
513 | + | let bO = (bM - (if ((Q == F)) | |
514 | + | then bL | |
505 | 515 | else 0)) | |
506 | - | let | |
507 | - | then | |
516 | + | let bP = (bN - (if ((R == F)) | |
517 | + | then bL | |
508 | 518 | else 0)) | |
509 | - | if (!( | |
519 | + | if (!(N)) | |
510 | 520 | then throw("DApp is inactive at this moment") | |
511 | - | else if (( | |
521 | + | else if ((aK.caller != this)) | |
512 | 522 | then throw("Only the DApp itself can call this function") | |
513 | - | else if ((0 > | |
514 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
515 | - | else if (if ((0 > | |
523 | + | else if ((0 > bL)) | |
524 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bL))) | |
525 | + | else if (if ((0 > bM)) | |
516 | 526 | then true | |
517 | - | else (0 > | |
518 | - | then | |
519 | - | else if (if ((0 > | |
527 | + | else (0 > bN)) | |
528 | + | then az("Enroll amount negative") | |
529 | + | else if (if ((0 > bO)) | |
520 | 530 | then true | |
521 | - | else (0 > | |
531 | + | else (0 > bP)) | |
522 | 532 | then throw("Too large amountLeave") | |
523 | - | else [IntegerEntry(f, ( | |
533 | + | else [IntegerEntry(f, (X + bO)), IntegerEntry(g, (Y + bP)), IntegerEntry(("last_income_" + O), bO), IntegerEntry(("last_income_" + P), bP)] | |
524 | 534 | } | |
525 | 535 | ||
526 | 536 | ||
527 | - | @Verifier( | |
528 | - | func | |
529 | - | let | |
530 | - | if ($isInstanceOf( | |
537 | + | @Verifier(bQ) | |
538 | + | func bR () = { | |
539 | + | let T = bQ | |
540 | + | if ($isInstanceOf(T, "InvokeScriptTransaction")) | |
531 | 541 | then { | |
532 | - | let | |
533 | - | let | |
534 | - | then ( | |
542 | + | let bS = T | |
543 | + | let bT = if ((bS.dApp == this)) | |
544 | + | then (bS.function == "takeIntoAccountExtraFunds") | |
535 | 545 | else false | |
536 | - | let | |
537 | - | then if (if (if (( | |
538 | - | then (size( | |
546 | + | let bU = if ((bS.dApp == E)) | |
547 | + | then if (if (if ((bS.function == "lockNeutrino")) | |
548 | + | then (size(bS.payments) == 1) | |
539 | 549 | else false) | |
540 | - | then ( | |
550 | + | then (bS.payments[0].assetId == F) | |
541 | 551 | else false) | |
542 | 552 | then true | |
543 | - | else if (( | |
544 | - | then (size( | |
553 | + | else if ((bS.function == "unlockNeutrino")) | |
554 | + | then (size(bS.payments) == 0) | |
545 | 555 | else false | |
546 | 556 | else false | |
547 | - | let | |
557 | + | let bV = if (if (if (sigVerify(bQ.bodyBytes, bQ.proofs[0], w)) | |
548 | 558 | then true | |
549 | - | else sigVerify( | |
559 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], x)) | |
550 | 560 | then true | |
551 | - | else sigVerify( | |
561 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], y)) | |
552 | 562 | then true | |
553 | - | else sigVerify( | |
554 | - | if ( | |
563 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], A) | |
564 | + | if (bT) | |
555 | 565 | then true | |
556 | - | else | |
566 | + | else bU | |
557 | 567 | } | |
558 | - | else sigVerify( | |
568 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], bQ.senderPublicKey) | |
559 | 569 | } | |
560 | 570 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
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 = "base_period" | |
35 | 35 | ||
36 | 36 | let q = "period_length" | |
37 | 37 | ||
38 | 38 | let r = "start_height" | |
39 | 39 | ||
40 | 40 | let s = "first_harvest_height" | |
41 | 41 | ||
42 | 42 | let t = "duration_full_vote_power" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "share_limit_on_first_harvest" | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = "min_vote_power" | |
47 | 47 | ||
48 | 48 | let w = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
49 | 49 | ||
50 | 50 | let x = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
51 | 51 | ||
52 | 52 | let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
53 | 53 | ||
54 | 54 | let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 59 | ||
60 | - | let C = Address(base58' | |
60 | + | let C = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 61 | ||
62 | - | let D = base58' | |
62 | + | let D = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
63 | 63 | ||
64 | - | let E = ( | |
64 | + | let E = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = (9 * value(value(assetInfo(F)).minSponsoredFee)) | |
69 | 69 | ||
70 | - | let H = valueOrErrorMessage(getInteger( | |
70 | + | let H = valueOrErrorMessage(getInteger(D, p), "Empty kBasePeriod") | |
71 | 71 | ||
72 | - | let I = valueOrErrorMessage(getInteger( | |
72 | + | let I = valueOrErrorMessage(getInteger(D, r), "Empty kStartHeight") | |
73 | 73 | ||
74 | - | let J = valueOrErrorMessage(getInteger( | |
74 | + | let J = valueOrErrorMessage(getInteger(D, q), "Empty kPeriodLength") | |
75 | 75 | ||
76 | - | let K = | |
76 | + | let K = valueOrErrorMessage(getInteger(D, t), "Empty kDurationFullVotePower") | |
77 | 77 | ||
78 | - | let L = (( | |
78 | + | let L = valueOrErrorMessage(getInteger(D, v), "Empty kMinVotePower") | |
79 | 79 | ||
80 | - | let M = | |
80 | + | let M = ((H + ((height - I) / J)) + 2) | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = getBooleanValue(this, c) | |
83 | 83 | ||
84 | - | let O = getStringValue(this, | |
84 | + | let O = getStringValue(this, d) | |
85 | 85 | ||
86 | - | let P = if ((N == "WAVES")) | |
87 | - | then unit | |
88 | - | else fromBase58String(N) | |
86 | + | let P = getStringValue(this, e) | |
89 | 87 | ||
90 | 88 | let Q = if ((O == "WAVES")) | |
91 | 89 | then unit | |
92 | 90 | else fromBase58String(O) | |
93 | 91 | ||
94 | - | let R = { | |
95 | - | let S = P | |
96 | - | if ($isInstanceOf(S, "ByteVector")) | |
92 | + | let R = if ((P == "WAVES")) | |
93 | + | then unit | |
94 | + | else fromBase58String(P) | |
95 | + | ||
96 | + | let S = { | |
97 | + | let T = Q | |
98 | + | if ($isInstanceOf(T, "ByteVector")) | |
97 | 99 | then { | |
98 | - | let | |
99 | - | value(assetInfo( | |
100 | + | let U = T | |
101 | + | value(assetInfo(U)).name | |
100 | 102 | } | |
101 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(T, "Unit")) | |
102 | 104 | then { | |
103 | - | let | |
105 | + | let V = T | |
104 | 106 | "WAVES" | |
105 | 107 | } | |
106 | 108 | else throw("Match error") | |
107 | 109 | } | |
108 | 110 | ||
109 | - | let | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
111 | + | let W = { | |
112 | + | let T = R | |
113 | + | if ($isInstanceOf(T, "ByteVector")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | value(assetInfo( | |
115 | + | let U = T | |
116 | + | value(assetInfo(U)).name | |
115 | 117 | } | |
116 | - | else if ($isInstanceOf( | |
118 | + | else if ($isInstanceOf(T, "Unit")) | |
117 | 119 | then { | |
118 | - | let | |
120 | + | let V = T | |
119 | 121 | "WAVES" | |
120 | 122 | } | |
121 | 123 | else throw("Match error") | |
122 | 124 | } | |
123 | 125 | ||
124 | - | let | |
126 | + | let X = getIntegerValue(this, f) | |
125 | 127 | ||
126 | - | let | |
128 | + | let Y = getIntegerValue(this, g) | |
127 | 129 | ||
128 | - | let | |
130 | + | let Z = fromBase58String(getStringValue(this, j)) | |
129 | 131 | ||
130 | - | let | |
132 | + | let aa = getIntegerValue(this, k) | |
131 | 133 | ||
132 | - | let | |
134 | + | let ab = 3000 | |
133 | 135 | ||
134 | - | let | |
136 | + | let ac = 1200 | |
135 | 137 | ||
136 | - | let | |
138 | + | let ad = 1000000 | |
137 | 139 | ||
138 | - | let | |
140 | + | let ae = 1000 | |
139 | 141 | ||
140 | - | let | |
142 | + | let af = 100000000 | |
141 | 143 | ||
142 | - | let | |
144 | + | let ag = 1000 | |
143 | 145 | ||
144 | - | let | |
146 | + | let ah = 8 | |
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
148 | + | func ai (aj) = { | |
149 | + | let T = aj | |
150 | + | if ($isInstanceOf(T, "ByteVector")) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | assetBalance(this, | |
152 | + | let U = T | |
153 | + | assetBalance(this, U) | |
152 | 154 | } | |
153 | - | else if ($isInstanceOf( | |
155 | + | else if ($isInstanceOf(T, "Unit")) | |
154 | 156 | then { | |
155 | - | let | |
157 | + | let V = T | |
156 | 158 | wavesBalance(this).available | |
157 | 159 | } | |
158 | 160 | else throw("Match error") | |
159 | 161 | } | |
160 | 162 | ||
161 | 163 | ||
162 | - | let | |
163 | - | let | |
164 | - | if ($isInstanceOf( | |
164 | + | let ak = { | |
165 | + | let T = getInteger(E, ((("rpd_balance_" + toBase58String(F)) + "_") + toString(this))) | |
166 | + | if ($isInstanceOf(T, "Int")) | |
165 | 167 | then { | |
166 | - | let | |
167 | - | | |
168 | + | let al = T | |
169 | + | al | |
168 | 170 | } | |
169 | - | else if ($isInstanceOf( | |
171 | + | else if ($isInstanceOf(T, "Unit")) | |
170 | 172 | then { | |
171 | - | let | |
173 | + | let am = T | |
172 | 174 | 0 | |
173 | 175 | } | |
174 | 176 | else throw("Match error") | |
175 | 177 | } | |
176 | 178 | ||
177 | - | let | |
179 | + | let an = getIntegerValue(this, h) | |
178 | 180 | ||
179 | - | let | |
181 | + | let ao = getIntegerValue(this, i) | |
180 | 182 | ||
181 | - | let | |
182 | - | then | |
183 | + | let ap = (X - (if ((Q == F)) | |
184 | + | then ak | |
183 | 185 | else 0)) | |
184 | 186 | ||
185 | - | let | |
186 | - | then | |
187 | + | let aq = (Y - (if ((R == F)) | |
188 | + | then ak | |
187 | 189 | else 0)) | |
188 | 190 | ||
189 | - | let | |
190 | - | then | |
191 | + | let ar = (ai(Q) + (if ((Q == F)) | |
192 | + | then ak | |
191 | 193 | else 0)) | |
192 | 194 | ||
193 | - | let | |
194 | - | then | |
195 | + | let as = (ai(R) + (if ((R == F)) | |
196 | + | then ak | |
195 | 197 | else 0)) | |
196 | 198 | ||
197 | - | let | |
198 | - | then ( | |
199 | + | let at = if ((ar >= X)) | |
200 | + | then (as >= Y) | |
199 | 201 | else false | |
200 | 202 | ||
201 | - | func | |
202 | - | let | |
203 | - | if ($isInstanceOf( | |
203 | + | func au (aj) = { | |
204 | + | let T = aj | |
205 | + | if ($isInstanceOf(T, "ByteVector")) | |
204 | 206 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple3( | |
207 | + | let U = T | |
208 | + | let av = toBase58String(U) | |
209 | + | let aw = valueOrErrorMessage(assetInfo(U), (("Asset " + av) + " doesn't exist")) | |
210 | + | $Tuple3(av, aw.name, aw.decimals) | |
209 | 211 | } | |
210 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(T, "Unit")) | |
211 | 213 | then { | |
212 | - | let | |
214 | + | let V = T | |
213 | 215 | $Tuple3("WAVES", "WAVES", 8) | |
214 | 216 | } | |
215 | 217 | else throw("Match error") | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 | ||
219 | - | func | |
221 | + | func ax (ay) = if ((ay == "WAVES")) | |
220 | 222 | then $Tuple3("WAVES", "WAVES", 8) | |
221 | 223 | else { | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | $Tuple3( | |
224 | + | let av = ay | |
225 | + | let U = fromBase58String(ay) | |
226 | + | let aw = valueOrErrorMessage(assetInfo(U), (("Asset " + av) + " doesn't exist")) | |
227 | + | $Tuple3(av, aw.name, aw.decimals) | |
226 | 228 | } | |
227 | 229 | ||
228 | 230 | ||
229 | - | func | |
231 | + | func az (aA) = [BooleanEntry(c, false), StringEntry(n, aA)] | |
230 | 232 | ||
231 | 233 | ||
232 | - | func | |
234 | + | func aB (aC,aj) = if ((aj == F)) | |
233 | 235 | then { | |
234 | - | let | |
235 | - | if ((0 >= | |
236 | - | then throw((((("Insufficient amount " + toString( | |
237 | - | else | |
236 | + | let aD = (aC - G) | |
237 | + | if ((0 >= aD)) | |
238 | + | then throw((((("Insufficient amount " + toString(aC)) + " to deduct staking fee ") + toString(G)) + " USD-N")) | |
239 | + | else aD | |
238 | 240 | } | |
239 | - | else | |
241 | + | else aC | |
240 | 242 | ||
241 | 243 | ||
242 | - | func | |
244 | + | func aE (aC,aF,aG) = throw((((((((("Insufficient DApp balance to pay " + toString(aC)) + " ") + aG) + " due to staking. Available: ") + toString(aF)) + " ") + aG) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
243 | 245 | ||
244 | 246 | ||
245 | - | func | |
247 | + | func aH (aI,aJ) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aI)) + " ") + S) + " and ") + toString(aJ)) + " ") + W) + " due to staking. Available: ") + toString(ap)) + " ") + S) + " and ") + toString(aq)) + " ") + W) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
246 | 248 | ||
247 | 249 | ||
248 | - | @Callable( | |
249 | - | func init () = { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
250 | + | @Callable(aK) | |
251 | + | func init (aL) = { | |
252 | + | let aM = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
253 | + | let aN = aM._1 | |
254 | + | let aO = aM._2 | |
255 | + | let aP = $Tuple2(aK.payments[1].amount, aK.payments[1].assetId) | |
256 | + | let aQ = aP._1 | |
257 | + | let aR = aP._2 | |
258 | + | let aS = au(aO) | |
259 | + | let aT = aS._1 | |
260 | + | let aU = aS._2 | |
261 | + | let aV = aS._3 | |
262 | + | let aW = au(aR) | |
263 | + | let aX = aW._1 | |
264 | + | let aY = aW._2 | |
265 | + | let aZ = aW._3 | |
264 | 266 | if (isDefined(getBoolean(this, c))) | |
265 | 267 | then throw("DApp is already active") | |
266 | - | else if (( | |
268 | + | else if ((aO == aR)) | |
267 | 269 | then throw("Assets must be different") | |
268 | 270 | else { | |
269 | - | let aY = ((("s" + take(aS, 7)) + "_") + take(aW, 7)) | |
270 | - | let aZ = ((((("ShareToken of SwopFi protocol for " + aS) + " and ") + aW) + " at address ") + toString(this)) | |
271 | - | let ba = ((aT + aX) / 2) | |
272 | - | let bb = fraction(pow(aL, aT, 5, 1, aT, HALFDOWN), pow(aO, aX, 5, 1, aX, HALFDOWN), pow(10, 0, ba, 0, 0, HALFDOWN)) | |
273 | - | let bc = Issue(aY, aZ, bb, ba, true) | |
274 | - | let bd = calculateAssetId(bc) | |
275 | - | [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aR), StringEntry(e, aV), IntegerEntry(f, aL), IntegerEntry(g, aO), IntegerEntry(l, aa), IntegerEntry(m, ac), bc, StringEntry(j, toBase58String(bd)), IntegerEntry(k, bb), ScriptTransfer(aJ.caller, bb, bd)] | |
271 | + | let ba = ((("s" + take(aU, 7)) + "_") + take(aY, 7)) | |
272 | + | let bb = ((((("ShareToken of SwopFi protocol for " + aU) + " and ") + aY) + " at address ") + toString(this)) | |
273 | + | let bc = ((aV + aZ) / 2) | |
274 | + | let bd = fraction(pow(aN, aV, 5, 1, aV, HALFDOWN), pow(aQ, aZ, 5, 1, aZ, HALFDOWN), pow(10, 0, bc, 0, 0, HALFDOWN)) | |
275 | + | let be = Issue(ba, bb, bd, bc, true) | |
276 | + | let bf = calculateAssetId(be) | |
277 | + | let bg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aT), StringEntry(e, aX), IntegerEntry(f, aN), IntegerEntry(g, aQ), IntegerEntry(l, ab), IntegerEntry(m, ad), be, StringEntry(j, toBase58String(bf)), IntegerEntry(k, bd), ScriptTransfer(aK.caller, bd, bf)] | |
278 | + | if (aL) | |
279 | + | then (bg ++ [BooleanEntry(o, aL), IntegerEntry(s, M)]) | |
280 | + | else bg | |
276 | 281 | } | |
277 | 282 | } | |
278 | 283 | ||
279 | 284 | ||
280 | 285 | ||
281 | - | @Callable( | |
282 | - | func initWithInitRatio ( | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
286 | + | @Callable(aK) | |
287 | + | func initWithInitRatio (bh,bi,O,P,aL) = { | |
288 | + | let bj = ax(O) | |
289 | + | let aT = bj._1 | |
290 | + | let aU = bj._2 | |
291 | + | let aV = bj._3 | |
292 | + | let bk = ax(P) | |
293 | + | let aX = bk._1 | |
294 | + | let aY = bk._2 | |
295 | + | let aZ = bk._3 | |
291 | 296 | if (isDefined(getBoolean(this, c))) | |
292 | 297 | then throw("DApp is already active") | |
293 | - | else if (( | |
298 | + | else if ((O == P)) | |
294 | 299 | then throw("Assets must be different") | |
295 | 300 | else { | |
296 | - | let aY = ((("s" + take(aS, 7)) + "_") + take(aW, 7)) | |
297 | - | let aZ = ((((("ShareToken of SwopFi protocol for " + aS) + " and ") + aW) + " at address ") + toString(this)) | |
298 | - | let ba = ((aT + aX) / 2) | |
299 | - | let bb = 0 | |
300 | - | let bc = Issue(aY, aZ, bb, ba, true) | |
301 | - | let bd = calculateAssetId(bc) | |
302 | - | [StringEntry(b, a), BooleanEntry(c, true), BooleanEntry(o, true), StringEntry(d, aR), StringEntry(e, aV), IntegerEntry(h, be), IntegerEntry(i, bf), IntegerEntry(l, aa), IntegerEntry(m, ac), bc, StringEntry(j, toBase58String(bd)), IntegerEntry(s, L), IntegerEntry(k, bb), IntegerEntry(f, 0), IntegerEntry(g, 0)] | |
301 | + | let ba = ((("s" + take(aU, 7)) + "_") + take(aY, 7)) | |
302 | + | let bb = ((((("ShareToken of SwopFi protocol for " + aU) + " and ") + aY) + " at address ") + toString(this)) | |
303 | + | let bc = ((aV + aZ) / 2) | |
304 | + | let bd = 0 | |
305 | + | let be = Issue(ba, bb, bd, bc, true) | |
306 | + | let bf = calculateAssetId(be) | |
307 | + | let bg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aT), StringEntry(e, aX), IntegerEntry(h, bh), IntegerEntry(i, bi), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ab), IntegerEntry(m, ad), be, StringEntry(j, toBase58String(bf)), IntegerEntry(s, M), IntegerEntry(k, bd)] | |
308 | + | if (aL) | |
309 | + | then (bg ++ [BooleanEntry(o, aL), IntegerEntry(s, M)]) | |
310 | + | else bg | |
303 | 311 | } | |
304 | 312 | } | |
305 | 313 | ||
306 | 314 | ||
307 | 315 | ||
308 | - | @Callable(aJ) | |
309 | - | func replenishWithTwoTokens (bi) = { | |
310 | - | let aM = aJ.payments[0].assetId | |
311 | - | let aP = aJ.payments[1].assetId | |
312 | - | let aL = aA(aJ.payments[0].amount, aM) | |
313 | - | let aO = aA(aJ.payments[1].amount, aP) | |
314 | - | if (if ((W == 0)) | |
315 | - | then (X == 0) | |
316 | + | @Callable(aK) | |
317 | + | func keepLimitForFirstHarvest (bl) = if (!(N)) | |
318 | + | then throw("DApp is inactive at this moment") | |
319 | + | else if (!(containsElement([w, x, y, B], aK.callerPublicKey))) | |
320 | + | then throw("Only admin can call this function") | |
321 | + | else [IntegerEntry(u, bl)] | |
322 | + | ||
323 | + | ||
324 | + | ||
325 | + | @Callable(aK) | |
326 | + | func replenishWithTwoTokens (bm) = { | |
327 | + | let aO = aK.payments[0].assetId | |
328 | + | let aR = aK.payments[1].assetId | |
329 | + | let aN = aB(aK.payments[0].amount, aO) | |
330 | + | let aQ = aB(aK.payments[1].amount, aR) | |
331 | + | if (if ((X == 0)) | |
332 | + | then (Y == 0) | |
316 | 333 | else false) | |
317 | 334 | then { | |
318 | - | let bj = at(aM) | |
319 | - | let aR = bj._1 | |
320 | - | let aS = bj._2 | |
321 | - | let aT = bj._3 | |
322 | - | let bk = at(aP) | |
323 | - | let aV = bk._1 | |
324 | - | let aW = bk._2 | |
325 | - | let aX = bk._3 | |
326 | - | if (isDefined(getBoolean(this, c))) | |
327 | - | then throw("DApp is already active") | |
328 | - | else if ((aM == aP)) | |
329 | - | then throw("Assets must be different") | |
330 | - | else { | |
331 | - | let ba = ((aT + aX) / 2) | |
332 | - | let bb = fraction(pow(aL, aT, 5, 1, aT, HALFDOWN), pow(aO, aX, 5, 1, aX, HALFDOWN), pow(10, 0, ba, 0, 0, HALFDOWN)) | |
333 | - | let bl = fraction(fraction(am, ae, aL), ad, fraction(an, ae, aO)) | |
334 | - | if (!(M)) | |
335 | - | then throw("DApp is inactive at this moment") | |
336 | - | else if (if ((0 > bi)) | |
337 | - | then true | |
338 | - | else (bi > af)) | |
339 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(af)) + " inclusively. Actual: ") + toString(bi))) | |
340 | - | else if ((size(aJ.payments) != 2)) | |
341 | - | then throw("Two attached assets expected") | |
342 | - | else if (if ((aM != P)) | |
343 | - | then true | |
344 | - | else (aP != Q)) | |
345 | - | then throw(((("Incorrect assets attached. Expected: " + N) + " and ") + O)) | |
346 | - | else if (if ((((ad * (af - bi)) / af) > bl)) | |
347 | - | then true | |
348 | - | else (bl > ((ad * (af + bi)) / af))) | |
349 | - | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
350 | - | else if ((bb == 0)) | |
351 | - | then throw("Too small amount to replenish") | |
352 | - | else if (!(as)) | |
353 | - | then ay(((((((((((((((("Suspicious state. Actual balances: " + toString(W)) + " ") + R) + ", ") + toString(X)) + " ") + V) + ". State: ") + toString(ah(P))) + " ") + R) + ", ") + toString(ah(Q))) + " ") + V)) | |
354 | - | else [Reissue(Y, bb, true), IntegerEntry(f, aL), IntegerEntry(g, aO), IntegerEntry(k, bb), ScriptTransfer(aJ.caller, bb, Y)] | |
355 | - | } | |
335 | + | let bn = au(aO) | |
336 | + | let aT = bn._1 | |
337 | + | let aU = bn._2 | |
338 | + | let aV = bn._3 | |
339 | + | let bo = au(aR) | |
340 | + | let aX = bo._1 | |
341 | + | let aY = bo._2 | |
342 | + | let aZ = bo._3 | |
343 | + | if ((aO == aR)) | |
344 | + | then throw("Assets must be different") | |
345 | + | else { | |
346 | + | let bc = ((aV + aZ) / 2) | |
347 | + | let bd = fraction(pow(aN, aV, 5, 1, aV, HALFDOWN), pow(aQ, aZ, 5, 1, aZ, HALFDOWN), pow(10, 0, bc, 0, 0, HALFDOWN)) | |
348 | + | if (!(N)) | |
349 | + | then throw("DApp is inactive at this moment") | |
350 | + | else if (if ((0 > bm)) | |
351 | + | then true | |
352 | + | else (bm > ag)) | |
353 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(ag)) + " inclusively. Actual: ") + toString(bm))) | |
354 | + | else if ((size(aK.payments) != 2)) | |
355 | + | then throw("Two attached assets expected") | |
356 | + | else if (if ((aO != Q)) | |
357 | + | then true | |
358 | + | else (aR != R)) | |
359 | + | then throw(((("Incorrect assets attached. Expected: " + O) + " and ") + P)) | |
360 | + | else if ((bd == 0)) | |
361 | + | then throw("Too small amount to replenish") | |
362 | + | else if (!(at)) | |
363 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
364 | + | else [Reissue(Z, bd, true), IntegerEntry(f, aN), IntegerEntry(g, aQ), IntegerEntry(k, bd), ScriptTransfer(aK.caller, bd, Z)] | |
365 | + | } | |
356 | 366 | } | |
357 | 367 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if (!( | |
368 | + | let bp = fraction(fraction(X, af, aN), ae, fraction(Y, af, aQ)) | |
369 | + | let bq = fraction(aN, af, X) | |
370 | + | let br = fraction(aQ, af, Y) | |
371 | + | let bs = fraction(min([bq, br]), aa, af) | |
372 | + | if (!(N)) | |
363 | 373 | then throw("DApp is inactive at this moment") | |
364 | - | else if (if ((0 > | |
374 | + | else if (if ((0 > bm)) | |
365 | 375 | then true | |
366 | - | else ( | |
367 | - | then throw(((("Slippage tolerance must be between 0 and " + toString( | |
368 | - | else if ((size( | |
376 | + | else (bm > ag)) | |
377 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(ag)) + " inclusively. Actual: ") + toString(bm))) | |
378 | + | else if ((size(aK.payments) != 2)) | |
369 | 379 | then throw("Two attached assets expected") | |
370 | - | else if (if (( | |
380 | + | else if (if ((aO != Q)) | |
371 | 381 | then true | |
372 | - | else ( | |
373 | - | then throw(((("Incorrect assets attached. Expected: " + | |
374 | - | else if (if (((( | |
382 | + | else (aR != R)) | |
383 | + | then throw(((("Incorrect assets attached. Expected: " + O) + " and ") + P)) | |
384 | + | else if (if ((((ae * (ag - bm)) / ag) > bp)) | |
375 | 385 | then true | |
376 | - | else ( | |
386 | + | else (bp > ((ae * (ag + bm)) / ag))) | |
377 | 387 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
378 | - | else if (( | |
388 | + | else if ((bs == 0)) | |
379 | 389 | then throw("Too small amount to replenish") | |
380 | - | else if (!( | |
381 | - | then | |
382 | - | else [IntegerEntry(f, ( | |
390 | + | else if (!(at)) | |
391 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
392 | + | else [IntegerEntry(f, (X + aN)), IntegerEntry(g, (Y + aQ)), IntegerEntry(k, (aa + bs)), Reissue(Z, bs, true), ScriptTransfer(aK.caller, bs, Z)] | |
383 | 393 | } | |
384 | 394 | } | |
385 | 395 | ||
386 | 396 | ||
387 | 397 | ||
388 | - | @Callable( | |
398 | + | @Callable(aK) | |
389 | 399 | func withdraw () = { | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | if (!( | |
400 | + | let bt = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
401 | + | let bu = bt._1 | |
402 | + | let bv = bt._2 | |
403 | + | let bw = aB(fraction(bu, X, aa), Q) | |
404 | + | let bx = aB(fraction(bu, Y, aa), R) | |
405 | + | if (!(N)) | |
396 | 406 | then throw("DApp is inactive at this moment") | |
397 | - | else if ((size( | |
407 | + | else if ((size(aK.payments) != 1)) | |
398 | 408 | then throw("One attached payment expected") | |
399 | - | else if (( | |
400 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
401 | - | else if (!( | |
402 | - | then | |
403 | - | else if (if (( | |
409 | + | else if ((bv != Z)) | |
410 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(Z))) | |
411 | + | else if (!(at)) | |
412 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
413 | + | else if (if ((bw > ap)) | |
404 | 414 | then true | |
405 | - | else ( | |
406 | - | then | |
407 | - | else [IntegerEntry(f, ( | |
415 | + | else (bx > aq)) | |
416 | + | then aH(bw, bx) | |
417 | + | else [IntegerEntry(f, (X - bw)), IntegerEntry(g, (Y - bx)), IntegerEntry(k, (aa - bu)), Burn(Z, bu), ScriptTransfer(aK.caller, bw, Q), ScriptTransfer(aK.caller, bx, R)] | |
408 | 418 | } | |
409 | 419 | ||
410 | 420 | ||
411 | 421 | ||
412 | - | @Callable( | |
413 | - | func exchange ( | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (( | |
422 | - | then throw(((("Calculated amount to receive " + toString( | |
423 | - | else $Tuple3( | |
422 | + | @Callable(aK) | |
423 | + | func exchange (by) = { | |
424 | + | let bz = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId) | |
425 | + | let bu = bz._1 | |
426 | + | let bv = bz._2 | |
427 | + | func bA (bB,bC) = { | |
428 | + | let bD = fraction(bC, bu, (bu + bB)) | |
429 | + | let bE = fraction(bD, (ad - ab), ad) | |
430 | + | let bF = fraction(bD, ac, ad) | |
431 | + | if ((by > bE)) | |
432 | + | then throw(((("Calculated amount to receive " + toString(bE)) + " is less than specified minimum ") + toString(by))) | |
433 | + | else $Tuple3(bD, bE, bF) | |
424 | 434 | } | |
425 | 435 | ||
426 | - | if (!( | |
436 | + | if (!(N)) | |
427 | 437 | then throw("DApp is inactive at this moment") | |
428 | - | else if (if (( | |
429 | - | then ( | |
438 | + | else if (if ((X == 0)) | |
439 | + | then (Y == 0) | |
430 | 440 | else false) | |
431 | 441 | then throw("Can't exchange with zero balance") | |
432 | - | else if ((0 >= | |
433 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
434 | - | else if ((size( | |
442 | + | else if ((0 >= by)) | |
443 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(by))) | |
444 | + | else if ((size(aK.payments) != 1)) | |
435 | 445 | then throw("One attached payment expected") | |
436 | - | else if (!( | |
437 | - | then | |
438 | - | else if (( | |
446 | + | else if (!(at)) | |
447 | + | then az(((((((((((((((("Suspicious state. Actual balances: " + toString(X)) + " ") + S) + ", ") + toString(Y)) + " ") + W) + ". State: ") + toString(ai(Q))) + " ") + S) + ", ") + toString(ai(R))) + " ") + W)) | |
448 | + | else if ((bv == Q)) | |
439 | 449 | then { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (if (if (( | |
448 | - | then ( | |
450 | + | let bG = R | |
451 | + | let bH = bA(X, Y) | |
452 | + | let bD = bH._1 | |
453 | + | let bE = bH._2 | |
454 | + | let bF = bH._3 | |
455 | + | let bI = (X + bu) | |
456 | + | let bJ = ((Y - bE) - bF) | |
457 | + | if (if (if ((Q == F)) | |
458 | + | then (ak >= bI) | |
449 | 459 | else false) | |
450 | 460 | then true | |
451 | - | else if (( | |
452 | - | then ( | |
461 | + | else if ((R == F)) | |
462 | + | then (ak >= bJ) | |
453 | 463 | else false) | |
454 | - | then | |
455 | - | else [IntegerEntry(f, | |
464 | + | then aE(bE, aq, W) | |
465 | + | else [IntegerEntry(f, bI), IntegerEntry(g, bJ), ScriptTransfer(aK.caller, bE, bG), ScriptTransfer(C, bF, bG)] | |
456 | 466 | } | |
457 | - | else if (( | |
467 | + | else if ((bv == R)) | |
458 | 468 | then { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if (if (if (( | |
467 | - | then ( | |
469 | + | let bG = Q | |
470 | + | let bK = bA(Y, X) | |
471 | + | let bD = bK._1 | |
472 | + | let bE = bK._2 | |
473 | + | let bF = bK._3 | |
474 | + | let bI = ((X - bE) - bF) | |
475 | + | let bJ = (Y + bu) | |
476 | + | if (if (if ((Q == F)) | |
477 | + | then (ak >= bI) | |
468 | 478 | else false) | |
469 | 479 | then true | |
470 | - | else if (( | |
471 | - | then ( | |
480 | + | else if ((R == F)) | |
481 | + | then (ak >= bJ) | |
472 | 482 | else false) | |
473 | - | then | |
474 | - | else [IntegerEntry(f, | |
483 | + | then aE(bE, ap, S) | |
484 | + | else [IntegerEntry(f, bI), IntegerEntry(g, bJ), ScriptTransfer(aK.caller, bE, bG), ScriptTransfer(C, bF, bG)] | |
475 | 485 | } | |
476 | - | else throw(((("Incorrect asset attached. Expected: " + | |
486 | + | else throw(((("Incorrect asset attached. Expected: " + O) + " or ") + P)) | |
477 | 487 | } | |
478 | 488 | ||
479 | 489 | ||
480 | 490 | ||
481 | - | @Callable( | |
482 | - | func shutdown () = if (!( | |
491 | + | @Callable(aK) | |
492 | + | func shutdown () = if (!(N)) | |
483 | 493 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
484 | - | else if (!(containsElement([ | |
494 | + | else if (!(containsElement([w, x, y, z], aK.callerPublicKey))) | |
485 | 495 | then throw("Only admin can call this function") | |
486 | - | else | |
496 | + | else az("Paused by admin") | |
487 | 497 | ||
488 | 498 | ||
489 | 499 | ||
490 | - | @Callable( | |
491 | - | func activate () = if ( | |
500 | + | @Callable(aK) | |
501 | + | func activate () = if (N) | |
492 | 502 | then throw("DApp is already active") | |
493 | - | else if (!(containsElement([ | |
503 | + | else if (!(containsElement([w, x, y, z], aK.callerPublicKey))) | |
494 | 504 | then throw("Only admin can call this function") | |
495 | 505 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
496 | 506 | ||
497 | 507 | ||
498 | 508 | ||
499 | - | @Callable( | |
500 | - | func takeIntoAccountExtraFunds ( | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | then | |
509 | + | @Callable(aK) | |
510 | + | func takeIntoAccountExtraFunds (bL) = { | |
511 | + | let bM = (ar - X) | |
512 | + | let bN = (as - Y) | |
513 | + | let bO = (bM - (if ((Q == F)) | |
514 | + | then bL | |
505 | 515 | else 0)) | |
506 | - | let | |
507 | - | then | |
516 | + | let bP = (bN - (if ((R == F)) | |
517 | + | then bL | |
508 | 518 | else 0)) | |
509 | - | if (!( | |
519 | + | if (!(N)) | |
510 | 520 | then throw("DApp is inactive at this moment") | |
511 | - | else if (( | |
521 | + | else if ((aK.caller != this)) | |
512 | 522 | then throw("Only the DApp itself can call this function") | |
513 | - | else if ((0 > | |
514 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
515 | - | else if (if ((0 > | |
523 | + | else if ((0 > bL)) | |
524 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bL))) | |
525 | + | else if (if ((0 > bM)) | |
516 | 526 | then true | |
517 | - | else (0 > | |
518 | - | then | |
519 | - | else if (if ((0 > | |
527 | + | else (0 > bN)) | |
528 | + | then az("Enroll amount negative") | |
529 | + | else if (if ((0 > bO)) | |
520 | 530 | then true | |
521 | - | else (0 > | |
531 | + | else (0 > bP)) | |
522 | 532 | then throw("Too large amountLeave") | |
523 | - | else [IntegerEntry(f, ( | |
533 | + | else [IntegerEntry(f, (X + bO)), IntegerEntry(g, (Y + bP)), IntegerEntry(("last_income_" + O), bO), IntegerEntry(("last_income_" + P), bP)] | |
524 | 534 | } | |
525 | 535 | ||
526 | 536 | ||
527 | - | @Verifier( | |
528 | - | func | |
529 | - | let | |
530 | - | if ($isInstanceOf( | |
537 | + | @Verifier(bQ) | |
538 | + | func bR () = { | |
539 | + | let T = bQ | |
540 | + | if ($isInstanceOf(T, "InvokeScriptTransaction")) | |
531 | 541 | then { | |
532 | - | let | |
533 | - | let | |
534 | - | then ( | |
542 | + | let bS = T | |
543 | + | let bT = if ((bS.dApp == this)) | |
544 | + | then (bS.function == "takeIntoAccountExtraFunds") | |
535 | 545 | else false | |
536 | - | let | |
537 | - | then if (if (if (( | |
538 | - | then (size( | |
546 | + | let bU = if ((bS.dApp == E)) | |
547 | + | then if (if (if ((bS.function == "lockNeutrino")) | |
548 | + | then (size(bS.payments) == 1) | |
539 | 549 | else false) | |
540 | - | then ( | |
550 | + | then (bS.payments[0].assetId == F) | |
541 | 551 | else false) | |
542 | 552 | then true | |
543 | - | else if (( | |
544 | - | then (size( | |
553 | + | else if ((bS.function == "unlockNeutrino")) | |
554 | + | then (size(bS.payments) == 0) | |
545 | 555 | else false | |
546 | 556 | else false | |
547 | - | let | |
557 | + | let bV = if (if (if (sigVerify(bQ.bodyBytes, bQ.proofs[0], w)) | |
548 | 558 | then true | |
549 | - | else sigVerify( | |
559 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], x)) | |
550 | 560 | then true | |
551 | - | else sigVerify( | |
561 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], y)) | |
552 | 562 | then true | |
553 | - | else sigVerify( | |
554 | - | if ( | |
563 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], A) | |
564 | + | if (bT) | |
555 | 565 | then true | |
556 | - | else | |
566 | + | else bU | |
557 | 567 | } | |
558 | - | else sigVerify( | |
568 | + | else sigVerify(bQ.bodyBytes, bQ.proofs[0], bQ.senderPublicKey) | |
559 | 569 | } | |
560 | 570 |
github/deemru/w8io/169f3d6 289.39 ms ◑