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