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