tx · H9ZGrS12gXUQtFY6GjwTiTdWfy9LsEuXsZ3pKRPrgW7K 3MuJAx8D1JFXv7ZjtNuURcedcSGmtYduQ2q: -0.01400000 Waves 2021.03.31 13:42 [1461832] smart account 3MuJAx8D1JFXv7ZjtNuURcedcSGmtYduQ2q > SELF 0.00000000 Waves
{ "type": 13, "id": "H9ZGrS12gXUQtFY6GjwTiTdWfy9LsEuXsZ3pKRPrgW7K", "fee": 1400000, "feeAssetId": null, "timestamp": 1617187384113, "version": 2, "chainId": 84, "sender": "3MuJAx8D1JFXv7ZjtNuURcedcSGmtYduQ2q", "senderPublicKey": "4tLctgXkiGzxgvZ9mRcUmnC3FwXQEMwqq5ugWvmyFnuM", "proofs": [ "E9ySLUQh9Yp38mtaphXbCPfheot2zUTDCYop76TajXTnwShqPi5kU22rdSLXCpKVuZMY2xxaTrwQmgb34B9sRBQ" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQESABIDCgEBEgASABIDCgEBAAAAMwAAAAAHdmVyc2lvbgIAAAAFMS4wLjAAAAAACmtleVZlcnNpb24CAAAAB3ZlcnNpb24AAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAC2tleUJhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAAC2tleUJhbGFuY2VCAgAAAA9CX2Fzc2V0X2JhbGFuY2UAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAIa2V5Q2F1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50RW5yb2xsQQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxsYXN0X2luY29tZV8FAAAAC3N0ckFzc2V0SWRCBQAAAA1hbW91bnRFbnJvbGxCBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABvCMrEE=", "height": 1461832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HF93y5GtzJNP9FaDze98wxhEWdwAPLmuF61cXF2mn88E Next: none Diff:
Old | New | Differences | |
---|---|---|---|
247 | 247 | then au | |
248 | 248 | else ar | |
249 | 249 | let aQ = if ((aM > aL)) | |
250 | + | then ((G + at) - aO) | |
251 | + | else (G + at) | |
252 | + | let aR = if ((aL > aM)) | |
250 | 253 | then ((F + aq) - aO) | |
251 | 254 | else (F + aq) | |
252 | - | let aR = if ((aL > aM)) | |
253 | - | then ((G + at) - aO) | |
254 | - | else (G + at) | |
255 | 255 | if (!(v)) | |
256 | 256 | then throw("DApp is inactive at this moment") | |
257 | 257 | else if (if ((0 > aJ)) |
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 = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let i = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let j = "commission" | |
23 | 23 | ||
24 | 24 | let k = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let l = "shutdown_cause" | |
27 | 27 | ||
28 | 28 | let m = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
29 | 29 | ||
30 | 30 | let n = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
31 | 31 | ||
32 | 32 | let o = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
33 | 33 | ||
34 | 34 | let p = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
35 | 35 | ||
36 | 36 | let q = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h' | |
37 | 37 | ||
38 | 38 | let r = Address(base58'3P6J84oH51DzY6xk2mT5TheXRbrCwBMxonp') | |
39 | 39 | ||
40 | 40 | let s = Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ') | |
41 | 41 | ||
42 | 42 | let t = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
43 | 43 | ||
44 | 44 | let u = (9 * value(value(assetInfo(t)).minSponsoredFee)) | |
45 | 45 | ||
46 | 46 | let v = getBooleanValue(this, c) | |
47 | 47 | ||
48 | 48 | let w = getStringValue(this, d) | |
49 | 49 | ||
50 | 50 | let x = getStringValue(this, e) | |
51 | 51 | ||
52 | 52 | let y = if ((w == "WAVES")) | |
53 | 53 | then unit | |
54 | 54 | else fromBase58String(w) | |
55 | 55 | ||
56 | 56 | let z = if ((x == "WAVES")) | |
57 | 57 | then unit | |
58 | 58 | else fromBase58String(x) | |
59 | 59 | ||
60 | 60 | let A = { | |
61 | 61 | let B = y | |
62 | 62 | if ($isInstanceOf(B, "ByteVector")) | |
63 | 63 | then { | |
64 | 64 | let C = B | |
65 | 65 | value(assetInfo(C)).name | |
66 | 66 | } | |
67 | 67 | else if ($isInstanceOf(B, "Unit")) | |
68 | 68 | then { | |
69 | 69 | let D = B | |
70 | 70 | "WAVES" | |
71 | 71 | } | |
72 | 72 | else throw("Match error") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | let E = { | |
76 | 76 | let B = z | |
77 | 77 | if ($isInstanceOf(B, "ByteVector")) | |
78 | 78 | then { | |
79 | 79 | let C = B | |
80 | 80 | value(assetInfo(C)).name | |
81 | 81 | } | |
82 | 82 | else if ($isInstanceOf(B, "Unit")) | |
83 | 83 | then { | |
84 | 84 | let D = B | |
85 | 85 | "WAVES" | |
86 | 86 | } | |
87 | 87 | else throw("Match error") | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | let F = getIntegerValue(this, f) | |
91 | 91 | ||
92 | 92 | let G = getIntegerValue(this, g) | |
93 | 93 | ||
94 | 94 | let H = fromBase58String(getStringValue(this, h)) | |
95 | 95 | ||
96 | 96 | let I = getIntegerValue(this, i) | |
97 | 97 | ||
98 | 98 | let J = 3000 | |
99 | 99 | ||
100 | 100 | let K = 1200 | |
101 | 101 | ||
102 | 102 | let L = 1000000 | |
103 | 103 | ||
104 | 104 | let M = 1000 | |
105 | 105 | ||
106 | 106 | let N = 100000000 | |
107 | 107 | ||
108 | 108 | let O = 1000 | |
109 | 109 | ||
110 | 110 | let P = 8 | |
111 | 111 | ||
112 | 112 | func Q (R) = { | |
113 | 113 | let B = R | |
114 | 114 | if ($isInstanceOf(B, "ByteVector")) | |
115 | 115 | then { | |
116 | 116 | let C = B | |
117 | 117 | assetBalance(this, C) | |
118 | 118 | } | |
119 | 119 | else if ($isInstanceOf(B, "Unit")) | |
120 | 120 | then { | |
121 | 121 | let D = B | |
122 | 122 | wavesBalance(this).available | |
123 | 123 | } | |
124 | 124 | else throw("Match error") | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | let S = { | |
129 | 129 | let B = getInteger(s, ((("rpd_balance_" + toBase58String(t)) + "_") + toString(this))) | |
130 | 130 | if ($isInstanceOf(B, "Int")) | |
131 | 131 | then { | |
132 | 132 | let T = B | |
133 | 133 | T | |
134 | 134 | } | |
135 | 135 | else if ($isInstanceOf(B, "Unit")) | |
136 | 136 | then { | |
137 | 137 | let U = B | |
138 | 138 | 0 | |
139 | 139 | } | |
140 | 140 | else throw("Match error") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | let V = (F - (if ((y == t)) | |
144 | 144 | then S | |
145 | 145 | else 0)) | |
146 | 146 | ||
147 | 147 | let W = (G - (if ((z == t)) | |
148 | 148 | then S | |
149 | 149 | else 0)) | |
150 | 150 | ||
151 | 151 | let X = (Q(y) + (if ((y == t)) | |
152 | 152 | then S | |
153 | 153 | else 0)) | |
154 | 154 | ||
155 | 155 | let Y = (Q(z) + (if ((z == t)) | |
156 | 156 | then S | |
157 | 157 | else 0)) | |
158 | 158 | ||
159 | 159 | let Z = if ((X >= F)) | |
160 | 160 | then (Y >= G) | |
161 | 161 | else false | |
162 | 162 | ||
163 | 163 | func aa (R) = { | |
164 | 164 | let B = R | |
165 | 165 | if ($isInstanceOf(B, "ByteVector")) | |
166 | 166 | then { | |
167 | 167 | let C = B | |
168 | 168 | let ab = toBase58String(C) | |
169 | 169 | let ac = valueOrErrorMessage(assetInfo(C), (("Asset " + ab) + " doesn't exist")) | |
170 | 170 | $Tuple3(ab, ac.name, ac.decimals) | |
171 | 171 | } | |
172 | 172 | else if ($isInstanceOf(B, "Unit")) | |
173 | 173 | then { | |
174 | 174 | let D = B | |
175 | 175 | $Tuple3("WAVES", "WAVES", 8) | |
176 | 176 | } | |
177 | 177 | else throw("Match error") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func ad (ae) = [BooleanEntry(c, false), StringEntry(l, ae)] | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func af (ag,R) = if ((R == t)) | |
185 | 185 | then { | |
186 | 186 | let ah = (ag - u) | |
187 | 187 | if ((0 >= ah)) | |
188 | 188 | then throw((((("Insufficient amount " + toString(ag)) + " to deduct staking fee ") + toString(u)) + " USD-N")) | |
189 | 189 | else ah | |
190 | 190 | } | |
191 | 191 | else ag | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | 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")) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func al (am,an) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(am)) + " ") + A) + " and ") + toString(an)) + " ") + E) + " due to staking. Available: ") + toString(V)) + " ") + A) + " and ") + toString(W)) + " ") + E) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(ao) | |
201 | 201 | func init () = { | |
202 | 202 | let ap = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId) | |
203 | 203 | let aq = ap._1 | |
204 | 204 | let ar = ap._2 | |
205 | 205 | let as = $Tuple2(ao.payments[1].amount, ao.payments[1].assetId) | |
206 | 206 | let at = as._1 | |
207 | 207 | let au = as._2 | |
208 | 208 | let av = aa(ar) | |
209 | 209 | let aw = av._1 | |
210 | 210 | let ax = av._2 | |
211 | 211 | let ay = av._3 | |
212 | 212 | let az = aa(au) | |
213 | 213 | let aA = az._1 | |
214 | 214 | let aB = az._2 | |
215 | 215 | let aC = az._3 | |
216 | 216 | if (isDefined(getBoolean(this, c))) | |
217 | 217 | then throw("DApp is already active") | |
218 | 218 | else if ((ar == au)) | |
219 | 219 | then throw("Assets must be different") | |
220 | 220 | else { | |
221 | 221 | let aD = ((("s" + take(ax, 7)) + "_") + take(aB, 7)) | |
222 | 222 | let aE = ((((("ShareToken of SwopFi protocol for " + ax) + " and ") + aB) + " at address ") + toString(this)) | |
223 | 223 | let aF = ((ay + aC) / 2) | |
224 | 224 | let aG = fraction(pow(aq, ay, 5, 1, ay, HALFDOWN), pow(at, aC, 5, 1, aC, HALFDOWN), pow(10, 0, aF, 0, 0, HALFDOWN)) | |
225 | 225 | let aH = Issue(aD, aE, aG, aF, true) | |
226 | 226 | let aI = calculateAssetId(aH) | |
227 | 227 | [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aw), StringEntry(e, aA), IntegerEntry(f, aq), IntegerEntry(g, at), IntegerEntry(j, J), IntegerEntry(k, L), aH, StringEntry(h, toBase58String(aI)), IntegerEntry(i, aG), ScriptTransfer(ao.caller, aG, aI)] | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(ao) | |
234 | 234 | func replenishWithTwoTokens (aJ) = { | |
235 | 235 | let ar = ao.payments[0].assetId | |
236 | 236 | let au = ao.payments[1].assetId | |
237 | 237 | let aq = af(ao.payments[0].amount, ar) | |
238 | 238 | let at = af(ao.payments[1].amount, au) | |
239 | 239 | let aK = fraction(fraction(F, N, aq), M, fraction(G, N, at)) | |
240 | 240 | let aL = fraction(aq, N, F) | |
241 | 241 | let aM = fraction(at, N, G) | |
242 | 242 | let aN = fraction(min([aL, aM]), I, N) | |
243 | 243 | let aO = if ((aM > aL)) | |
244 | 244 | then fraction((aM - aL), G, N) | |
245 | 245 | else fraction((aL - aM), F, N) | |
246 | 246 | let aP = if ((aM > aL)) | |
247 | 247 | then au | |
248 | 248 | else ar | |
249 | 249 | let aQ = if ((aM > aL)) | |
250 | + | then ((G + at) - aO) | |
251 | + | else (G + at) | |
252 | + | let aR = if ((aL > aM)) | |
250 | 253 | then ((F + aq) - aO) | |
251 | 254 | else (F + aq) | |
252 | - | let aR = if ((aL > aM)) | |
253 | - | then ((G + at) - aO) | |
254 | - | else (G + at) | |
255 | 255 | if (!(v)) | |
256 | 256 | then throw("DApp is inactive at this moment") | |
257 | 257 | else if (if ((0 > aJ)) | |
258 | 258 | then true | |
259 | 259 | else (aJ > O)) | |
260 | 260 | then throw(((("Slippage tolerance must be between 0 and " + toString(O)) + " inclusively. Actual: ") + toString(aJ))) | |
261 | 261 | else if ((size(ao.payments) != 2)) | |
262 | 262 | then throw("Two attached assets expected") | |
263 | 263 | else if (if ((ar != y)) | |
264 | 264 | then true | |
265 | 265 | else (au != z)) | |
266 | 266 | then throw(((("Incorrect assets attached. Expected: " + w) + " and ") + x)) | |
267 | 267 | else if (if ((((M * (O - aJ)) / O) > aK)) | |
268 | 268 | then true | |
269 | 269 | else (aK > ((M * (O + aJ)) / O))) | |
270 | 270 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
271 | 271 | else if ((aN == 0)) | |
272 | 272 | then throw("Too small amount to replenish") | |
273 | 273 | else if (!(Z)) | |
274 | 274 | then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E)) | |
275 | 275 | else [IntegerEntry(f, aQ), IntegerEntry(g, aR), IntegerEntry(i, (I + aN)), Reissue(H, aN, true), ScriptTransfer(ao.caller, aN, H), ScriptTransfer(ao.caller, aO, aP)] | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(ao) | |
281 | 281 | func withdraw () = { | |
282 | 282 | let aS = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId) | |
283 | 283 | let aT = aS._1 | |
284 | 284 | let aU = aS._2 | |
285 | 285 | let aV = af(fraction(aT, F, I), y) | |
286 | 286 | let aW = af(fraction(aT, G, I), z) | |
287 | 287 | if (!(v)) | |
288 | 288 | then throw("DApp is inactive at this moment") | |
289 | 289 | else if ((size(ao.payments) != 1)) | |
290 | 290 | then throw("One attached payment expected") | |
291 | 291 | else if ((aU != H)) | |
292 | 292 | then throw(("Incorrect asset attached. Expected: " + toBase58String(H))) | |
293 | 293 | else if (!(Z)) | |
294 | 294 | then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E)) | |
295 | 295 | else if (if ((aV > V)) | |
296 | 296 | then true | |
297 | 297 | else (aW > W)) | |
298 | 298 | then al(aV, aW) | |
299 | 299 | else [IntegerEntry(f, (F - aV)), IntegerEntry(g, (G - aW)), IntegerEntry(i, (I - aT)), Burn(H, aT), ScriptTransfer(ao.caller, aV, y), ScriptTransfer(ao.caller, aW, z)] | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | ||
304 | 304 | @Callable(ao) | |
305 | 305 | func exchange (aX) = { | |
306 | 306 | let aY = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId) | |
307 | 307 | let aT = aY._1 | |
308 | 308 | let aU = aY._2 | |
309 | 309 | func aZ (ba,bb) = { | |
310 | 310 | let bc = fraction(bb, aT, (aT + ba)) | |
311 | 311 | let bd = fraction(bc, (L - J), L) | |
312 | 312 | let be = fraction(bc, K, L) | |
313 | 313 | if ((aX > bd)) | |
314 | 314 | then throw(((("Calculated amount to receive " + toString(bd)) + " is less than specified minimum ") + toString(aX))) | |
315 | 315 | else $Tuple3(bc, bd, be) | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 | if (!(v)) | |
319 | 319 | then throw("DApp is inactive at this moment") | |
320 | 320 | else if ((0 >= aX)) | |
321 | 321 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(aX))) | |
322 | 322 | else if ((size(ao.payments) != 1)) | |
323 | 323 | then throw("One attached payment expected") | |
324 | 324 | else if (!(Z)) | |
325 | 325 | then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E)) | |
326 | 326 | else if ((aU == y)) | |
327 | 327 | then { | |
328 | 328 | let bf = z | |
329 | 329 | let bg = aZ(F, G) | |
330 | 330 | let bc = bg._1 | |
331 | 331 | let bd = bg._2 | |
332 | 332 | let be = bg._3 | |
333 | 333 | let bh = (F + aT) | |
334 | 334 | let bi = ((G - bd) - be) | |
335 | 335 | if (if (if ((y == t)) | |
336 | 336 | then (S >= bh) | |
337 | 337 | else false) | |
338 | 338 | then true | |
339 | 339 | else if ((z == t)) | |
340 | 340 | then (S >= bi) | |
341 | 341 | else false) | |
342 | 342 | then ai(bd, W, E) | |
343 | 343 | else [IntegerEntry(f, bh), IntegerEntry(g, bi), ScriptTransfer(ao.caller, bd, bf), ScriptTransfer(r, be, bf)] | |
344 | 344 | } | |
345 | 345 | else if ((aU == z)) | |
346 | 346 | then { | |
347 | 347 | let bf = y | |
348 | 348 | let bj = aZ(G, F) | |
349 | 349 | let bc = bj._1 | |
350 | 350 | let bd = bj._2 | |
351 | 351 | let be = bj._3 | |
352 | 352 | let bh = ((F - bd) - be) | |
353 | 353 | let bi = (G + aT) | |
354 | 354 | if (if (if ((y == t)) | |
355 | 355 | then (S >= bh) | |
356 | 356 | else false) | |
357 | 357 | then true | |
358 | 358 | else if ((z == t)) | |
359 | 359 | then (S >= bi) | |
360 | 360 | else false) | |
361 | 361 | then ai(bd, V, A) | |
362 | 362 | else [IntegerEntry(f, bh), IntegerEntry(g, bi), ScriptTransfer(ao.caller, bd, bf), ScriptTransfer(r, be, bf)] | |
363 | 363 | } | |
364 | 364 | else throw(((("Incorrect asset attached. Expected: " + w) + " or ") + x)) | |
365 | 365 | } | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | ||
369 | 369 | @Callable(ao) | |
370 | 370 | func shutdown () = if (!(v)) | |
371 | 371 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified"))) | |
372 | 372 | else if (!(containsElement([m, n, o, p], ao.callerPublicKey))) | |
373 | 373 | then throw("Only admin can call this function") | |
374 | 374 | else ad("Paused by admin") | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | ||
378 | 378 | @Callable(ao) | |
379 | 379 | func activate () = if (v) | |
380 | 380 | then throw("DApp is already active") | |
381 | 381 | else if (!(containsElement([m, n, o, p], ao.callerPublicKey))) | |
382 | 382 | then throw("Only admin can call this function") | |
383 | 383 | else [BooleanEntry(c, true), DeleteEntry(l)] | |
384 | 384 | ||
385 | 385 | ||
386 | 386 | ||
387 | 387 | @Callable(ao) | |
388 | 388 | func takeIntoAccountExtraFunds (bk) = { | |
389 | 389 | let bl = (X - F) | |
390 | 390 | let bm = (Y - G) | |
391 | 391 | let bn = (bl - (if ((y == t)) | |
392 | 392 | then bk | |
393 | 393 | else 0)) | |
394 | 394 | let bo = (bm - (if ((z == t)) | |
395 | 395 | then bk | |
396 | 396 | else 0)) | |
397 | 397 | if (!(v)) | |
398 | 398 | then throw("DApp is inactive at this moment") | |
399 | 399 | else if ((ao.caller != this)) | |
400 | 400 | then throw("Only the DApp itself can call this function") | |
401 | 401 | else if ((0 > bk)) | |
402 | 402 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bk))) | |
403 | 403 | else if (if ((0 > bl)) | |
404 | 404 | then true | |
405 | 405 | else (0 > bm)) | |
406 | 406 | then ad("Enroll amount negative") | |
407 | 407 | else if (if ((0 > bn)) | |
408 | 408 | then true | |
409 | 409 | else (0 > bo)) | |
410 | 410 | then throw("Too large amountLeave") | |
411 | 411 | else [IntegerEntry(f, (F + bn)), IntegerEntry(g, (G + bo)), IntegerEntry(("last_income_" + w), bn), IntegerEntry(("last_income_" + x), bo)] | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | @Verifier(bp) | |
416 | 416 | func bq () = true | |
417 | 417 |
github/deemru/w8io/026f985 55.92 ms ◑