tx · YLNuyTbzcVX4Rfy1ifmgqJuooALTeRVGAaFfRRSkQyJ 3N1BabWCmcTCQWWMuWbLFPoY4VfpuUsAyq1: -0.01400000 Waves 2020.01.21 18:11 [864173] smart account 3N1BabWCmcTCQWWMuWbLFPoY4VfpuUsAyq1 > SELF 0.00000000 Waves
{ "type": 13, "id": "YLNuyTbzcVX4Rfy1ifmgqJuooALTeRVGAaFfRRSkQyJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1579619413479, "version": 1, "sender": "3N1BabWCmcTCQWWMuWbLFPoY4VfpuUsAyq1", "senderPublicKey": "7ovV8A4Am8Lw7FJ3mP7C2YWX6CSR52H4DyepL62fEhjX", "proofs": [], "script": "base64:AAIDAAAAAAAAAAgIARIAEgASAAAAADcAAAAADWlzc3VlckFzc2V0SWQBAAAAILexI7u70o1qePQ/1A8a6MxDlsiV4x3u/6ZL/3TtTfWUAAAAABFpbnZlc3RtZW50QXNzZXRJZAEAAAAAAAAAABhpbnZlc3RtZW50QXNzZXRJZElzV2F2ZXMGAAAAAA5vd25lclB1YmxpY0tleQEAAAAglzekY6T8LiZa5ZUEuiXVPCIAPFt1/58SItbMDT/dhTQAAAAADG93bmVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAOb3duZXJQdWJsaWNLZXkAAAAAEm93bmVyQWRkcmVzc1N0cmluZwIAAAAjM043cmRBcVQ2M2o4aUJVcW9WdDRpTW5ScmhGQ2syWUdvazYAAAAAE2Fzc2V0RGVjaW1hbHNPZmZzZXQAAAAAAAAAAAEAAAAAD3Rva2Vuc2FsZUFtb3VudAAAAAAAAAAD6AAAAAAJc3RhcnRUaW1lAAAAAABeGGToAAAAABFpbmNyZWFzZVByaWNlVGltZQAAAAAAXiwpxAAAAAAHZW5kVGltZQAAAAAAXiwpxAAAAAAFcHJpY2UAAAAAAAABhqAAAAAAC3ByaWNlU2Vjb25kAAAAAAAAAYagAAAAAA1zb2Z0Q2FwQW1vdW50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ACCQAAZAAAAAIFAAAAC3BLZXkxU2lnbmVkBQAAAAtwS2V5MlNpZ25lZAUAAAALcEtleTNTaWduZWQFAAAAC3BLZXk0U2lnbmVkBQAAAAtwS2V5NVNpZ25lZAAAAAAAAAAAAwcPMlfs", "chainId": 84, "height": 864173, "spentComplexity": 0 } View: original | compacted Prev: J6yQNipdn9YavSDALY6mcJ5ZG8YSUuwN6ocijENuQfZ7 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'DN4GmTRkkNYLSX4RjgzZbaSy2cTg1ahRLAhe23QwB2cs' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'' | |
7 | 7 | ||
8 | 8 | let c = true | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'BBHmotEPzeYbapjncSTyaVf1eM4yiCPabPzMFqH5Mk8s' | |
11 | 11 | ||
12 | 12 | let e = addressFromPublicKey(d) | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "3N7rdAqT63j8iBUqoVt4iMnRrhFCk2YGok6" | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 1000 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 1578657000 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 1579952580 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 1579952580 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 100000 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 100000 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 10000 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1000 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 100000 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = base58'AB1EjGamzeQdfjThY1MTabtCDDKYnK8YRgr9osK9GXoy' | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1000 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 10000000 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 1 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 0 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "swapSumAmount " | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "swapSumAssets " | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "swapAssets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "swapAmount" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "sumAmount " | |
59 | 59 | ||
60 | - | let C = " | |
60 | + | let C = "paidAmount " | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "sumAssets " | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "allow " | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "assets" | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "amount" | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = "issuer" | |
71 | 71 | ||
72 | - | let I = | |
72 | + | let I = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ') | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR') | |
75 | 75 | ||
76 | - | let K = addressFromString(" | |
76 | + | let K = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
77 | 77 | ||
78 | - | let L = addressFromString(" | |
78 | + | let L = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
79 | 79 | ||
80 | - | let M = " | |
80 | + | let M = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
83 | 83 | ||
84 | - | func O () = if ((q == r)) | |
84 | + | let O = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
85 | + | ||
86 | + | let P = "4.0.0-testnet" | |
87 | + | ||
88 | + | let Q = 1000 | |
89 | + | ||
90 | + | func R () = if ((t == u)) | |
85 | 91 | then true | |
86 | - | else ( | |
92 | + | else (t == w) | |
87 | 93 | ||
88 | 94 | ||
89 | - | func | |
95 | + | func S () = if ((t == v)) | |
90 | 96 | then true | |
91 | - | else ( | |
97 | + | else (t == w) | |
92 | 98 | ||
93 | 99 | ||
94 | - | func | |
95 | - | let | |
96 | - | ( | |
100 | + | func T () = { | |
101 | + | let U = value(blockInfoByHeight(height)) | |
102 | + | (U.timestamp / 1000) | |
97 | 103 | } | |
98 | 104 | ||
99 | 105 | ||
100 | - | func | |
101 | - | then | |
106 | + | func V (W,X) = if ((W == false)) | |
107 | + | then X | |
102 | 108 | else unit | |
103 | 109 | ||
104 | 110 | ||
105 | - | func | |
111 | + | func Y () = l | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
109 | - | let | |
110 | - | if ($isInstanceOf( | |
114 | + | func Z (aa) = { | |
115 | + | let ab = getInteger(this, aa) | |
116 | + | if ($isInstanceOf(ab, "Int")) | |
111 | 117 | then { | |
112 | - | let | |
113 | - | | |
118 | + | let ac = ab | |
119 | + | ac | |
114 | 120 | } | |
115 | 121 | else 0 | |
116 | 122 | } | |
117 | 123 | ||
118 | 124 | ||
119 | - | func | |
125 | + | func ad () = (T() >= i) | |
120 | 126 | ||
121 | 127 | ||
122 | - | func | |
123 | - | let | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
128 | + | func ae () = { | |
129 | + | let af = { | |
130 | + | let ab = getInteger(this, F) | |
131 | + | if ($isInstanceOf(ab, "Int")) | |
126 | 132 | then { | |
127 | - | let | |
128 | - | | |
133 | + | let ac = ab | |
134 | + | ac | |
129 | 135 | } | |
130 | 136 | else h | |
131 | 137 | } | |
132 | - | if (( | |
138 | + | if ((T() > k)) | |
133 | 139 | then true | |
134 | - | else ( | |
140 | + | else (af == 0) | |
135 | 141 | } | |
136 | 142 | ||
137 | 143 | ||
138 | - | func | |
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
144 | + | func ag () = { | |
145 | + | let af = { | |
146 | + | let ab = getInteger(this, z) | |
147 | + | if ($isInstanceOf(ab, "Int")) | |
142 | 148 | then { | |
143 | - | let | |
144 | - | | |
149 | + | let ac = ab | |
150 | + | ac | |
145 | 151 | } | |
146 | - | else | |
152 | + | else r | |
147 | 153 | } | |
148 | - | if (( | |
154 | + | if ((T() > k)) | |
149 | 155 | then true | |
150 | - | else ( | |
156 | + | else (af == 0) | |
151 | 157 | } | |
152 | 158 | ||
153 | 159 | ||
154 | - | func ae () = if (ab()) | |
155 | - | then ad() | |
156 | - | else false | |
160 | + | func ah () = if (if (S()) | |
161 | + | then R() | |
162 | + | else false) | |
163 | + | then if (ae()) | |
164 | + | then ag() | |
165 | + | else false | |
166 | + | else if (R()) | |
167 | + | then ae() | |
168 | + | else if (S()) | |
169 | + | then ag() | |
170 | + | else false | |
157 | 171 | ||
158 | 172 | ||
159 | - | func | |
160 | - | let | |
161 | - | if ($isInstanceOf( | |
173 | + | func ai (aj) = { | |
174 | + | let ab = aj.payment | |
175 | + | if ($isInstanceOf(ab, "AttachedPayment")) | |
162 | 176 | then { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | if ($isInstanceOf( | |
177 | + | let ak = ab | |
178 | + | let al = { | |
179 | + | let am = ak.assetId | |
180 | + | if ($isInstanceOf(am, "ByteVector")) | |
167 | 181 | then { | |
168 | - | let | |
182 | + | let X = am | |
169 | 183 | if (!(c)) | |
170 | - | then ( | |
184 | + | then (X == b) | |
171 | 185 | else false | |
172 | 186 | } | |
173 | 187 | else (c == true) | |
174 | 188 | } | |
175 | - | if ( | |
189 | + | if (al) | |
176 | 190 | then if ((g == 1)) | |
177 | - | then if ((( | |
178 | - | then | |
191 | + | then if (((ak.amount % l) == 0)) | |
192 | + | then ak.amount | |
179 | 193 | else throw("payment amount must be a multiple of token price") | |
180 | - | else | |
194 | + | else ak.amount | |
181 | 195 | else throw("Invalid asset ID of investment") | |
182 | 196 | } | |
183 | 197 | else throw("Payment must be attached") | |
184 | 198 | } | |
185 | 199 | ||
186 | 200 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
201 | + | func an (aj) = { | |
202 | + | let ab = aj.payment | |
203 | + | if ($isInstanceOf(ab, "AttachedPayment")) | |
190 | 204 | then { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
205 | + | let ak = ab | |
206 | + | let al = { | |
207 | + | let am = ak.assetId | |
208 | + | if ($isInstanceOf(am, "ByteVector")) | |
195 | 209 | then { | |
196 | - | let | |
197 | - | ( | |
210 | + | let X = am | |
211 | + | (X == q) | |
198 | 212 | } | |
199 | 213 | else false | |
200 | 214 | } | |
201 | - | if ( | |
215 | + | if (al) | |
202 | 216 | then if ((g == 1)) | |
203 | - | then if ((( | |
204 | - | then | |
217 | + | then if (((ak.amount % s) == 0)) | |
218 | + | then ak.amount | |
205 | 219 | else throw("payment amount must be a multiple of token price") | |
206 | - | else | |
220 | + | else ak.amount | |
207 | 221 | else throw("Invalid asset ID of investment") | |
208 | 222 | } | |
209 | 223 | else throw("Payment must be attached") | |
210 | 224 | } | |
211 | 225 | ||
212 | 226 | ||
213 | - | @Callable( | |
227 | + | @Callable(aj) | |
214 | 228 | func deposit () = { | |
215 | - | let | |
216 | - | let | |
217 | - | if (!( | |
229 | + | let ao = Y() | |
230 | + | let ap = Z(G) | |
231 | + | if (!(R())) | |
218 | 232 | then throw("This deposit method is unsopperted for this company") | |
219 | - | else if (!( | |
220 | - | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString( | |
221 | - | else if ( | |
233 | + | else if (!(ad())) | |
234 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
235 | + | else if (ae()) | |
222 | 236 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
223 | 237 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
238 | + | let aq = ai(aj) | |
239 | + | let ar = toBase58String(aj.caller.bytes) | |
240 | + | let as = { | |
241 | + | let ab = getInteger(I, ar) | |
242 | + | if ($isInstanceOf(ab, "Int")) | |
229 | 243 | then { | |
230 | - | let | |
231 | - | | |
244 | + | let ac = ab | |
245 | + | ac | |
232 | 246 | } | |
233 | 247 | else -255 | |
234 | 248 | } | |
235 | - | if (( | |
249 | + | if ((Q > as)) | |
236 | 250 | then throw("Your account has no right to send funds.") | |
237 | 251 | else { | |
238 | - | let | |
239 | - | let | |
240 | - | if ($isInstanceOf( | |
252 | + | let at = { | |
253 | + | let ab = getInteger(this, F) | |
254 | + | if ($isInstanceOf(ab, "Int")) | |
241 | 255 | then { | |
242 | - | let | |
243 | - | | |
256 | + | let ac = ab | |
257 | + | ac | |
244 | 258 | } | |
245 | 259 | else h | |
246 | 260 | } | |
247 | - | let | |
248 | - | let | |
249 | - | if (if (if ((0 > ( | |
261 | + | let au = ((aq * g) / ao) | |
262 | + | let av = ((p * g) / ao) | |
263 | + | if (if (if ((0 > (at - au))) | |
250 | 264 | then true | |
251 | - | else ( | |
265 | + | else (av > au)) | |
252 | 266 | then true | |
253 | - | else if (( | |
254 | - | then ( | |
267 | + | else if ((au != at)) | |
268 | + | then (au > (at - av)) | |
255 | 269 | else false) | |
256 | 270 | then throw("Incorrect payment amount.") | |
257 | 271 | else { | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | WriteSet([DataEntry(( | |
272 | + | let aw = (Z((B + ar)) + aq) | |
273 | + | let ax = (Z((D + ar)) + au) | |
274 | + | let ay = (at - au) | |
275 | + | let az = (ap + aq) | |
276 | + | WriteSet([DataEntry((B + ar), aw), DataEntry((D + ar), ax), DataEntry(F, ay), DataEntry(G, az)]) | |
263 | 277 | } | |
264 | 278 | } | |
265 | 279 | } | |
267 | 281 | ||
268 | 282 | ||
269 | 283 | ||
270 | - | @Callable( | |
284 | + | @Callable(aj) | |
271 | 285 | func swapDeposit () = { | |
272 | - | let | |
273 | - | let | |
274 | - | if (!( | |
286 | + | let ao = s | |
287 | + | let ap = Z(A) | |
288 | + | if (!(S())) | |
275 | 289 | then throw("This swap-deposit method is unsopperted for this company") | |
276 | - | else if (!( | |
277 | - | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString( | |
278 | - | else if ( | |
290 | + | else if (!(ad())) | |
291 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
292 | + | else if (ag()) | |
279 | 293 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
280 | 294 | else { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
295 | + | let aq = an(aj) | |
296 | + | let ar = toBase58String(aj.caller.bytes) | |
297 | + | let as = { | |
298 | + | let ab = getInteger(I, ar) | |
299 | + | if ($isInstanceOf(ab, "Int")) | |
286 | 300 | then { | |
287 | - | let | |
288 | - | | |
301 | + | let ac = ab | |
302 | + | ac | |
289 | 303 | } | |
290 | 304 | else -255 | |
291 | 305 | } | |
292 | - | if (( | |
306 | + | if ((Q > as)) | |
293 | 307 | then throw("Your account has no right to send funds.") | |
294 | 308 | else { | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
309 | + | let at = { | |
310 | + | let ab = getInteger(this, z) | |
311 | + | if ($isInstanceOf(ab, "Int")) | |
298 | 312 | then { | |
299 | - | let | |
300 | - | | |
313 | + | let ac = ab | |
314 | + | ac | |
301 | 315 | } | |
302 | - | else | |
316 | + | else r | |
303 | 317 | } | |
304 | - | let | |
305 | - | if ((0 > ( | |
318 | + | let au = ((aq * g) / ao) | |
319 | + | if ((0 > (at - au))) | |
306 | 320 | then throw("Incorrect payment amount.") | |
307 | 321 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | WriteSet([DataEntry(( | |
322 | + | let aw = (Z((x + ar)) + aq) | |
323 | + | let ax = (Z((y + ar)) + au) | |
324 | + | let ay = (at - au) | |
325 | + | let az = (ap + aq) | |
326 | + | WriteSet([DataEntry((x + ar), aw), DataEntry((y + ar), ax), DataEntry(z, ay), DataEntry(A, az)]) | |
313 | 327 | } | |
314 | 328 | } | |
315 | 329 | } | |
317 | 331 | ||
318 | 332 | ||
319 | 333 | ||
320 | - | @Callable( | |
334 | + | @Callable(aj) | |
321 | 335 | func withdrawal () = { | |
322 | - | let | |
323 | - | let | |
324 | - | if ($isInstanceOf( | |
336 | + | let aA = { | |
337 | + | let ab = getInteger(J, toString(this)) | |
338 | + | if ($isInstanceOf(ab, "Int")) | |
325 | 339 | then { | |
326 | - | let | |
327 | - | | |
340 | + | let ac = ab | |
341 | + | ac | |
328 | 342 | } | |
329 | 343 | else 0 | |
330 | 344 | } | |
331 | - | if (( | |
345 | + | if ((aA == 0)) | |
332 | 346 | then throw("Withdrawals are not available until the issuer passes verification") | |
333 | 347 | else { | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if (!( | |
348 | + | let ar = toBase58String(aj.caller.bytes) | |
349 | + | let aB = Z((D + ar)) | |
350 | + | let aC = Z((B + ar)) | |
351 | + | let aD = Z((y + ar)) | |
352 | + | let aE = Z((x + ar)) | |
353 | + | let aF = Z(A) | |
354 | + | let aG = Z(z) | |
355 | + | let ap = Z(G) | |
356 | + | let at = Z(F) | |
357 | + | let aH = V(c, b) | |
358 | + | if (!(ah())) | |
345 | 359 | then throw("The Company is still active") | |
346 | - | else if (if (if (( | |
347 | - | then if (( | |
360 | + | else if (if (if ((ar == f)) | |
361 | + | then if ((ap >= n)) | |
348 | 362 | then true | |
349 | - | else ( | |
363 | + | else (aF != 0) | |
350 | 364 | else false) | |
351 | - | then ( | |
365 | + | then (aA == 1) | |
352 | 366 | else false) | |
353 | 367 | then { | |
354 | - | let aF = W(E) | |
355 | - | if ((aF == 0)) | |
356 | - | then { | |
357 | - | let aG = nil | |
358 | - | let aH = if ((am >= l)) | |
359 | - | then ScriptTransfer(e, am, aE) :: aG | |
360 | - | else aG | |
361 | - | let aI = if ((am >= l)) | |
362 | - | then ScriptTransfer(e, aC, n) :: aH | |
363 | - | else aH | |
364 | - | ScriptResult(WriteSet([DataEntry(E, 1)]), TransferSet(aI)) | |
365 | - | } | |
368 | + | let aI = Z(H) | |
369 | + | if ((aI == 0)) | |
370 | + | then if (if (R()) | |
371 | + | then S() | |
372 | + | else false) | |
373 | + | then ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, ap, aH), ScriptTransfer(e, aF, q)])) | |
374 | + | else if (R()) | |
375 | + | then ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, ap, aH)])) | |
376 | + | else ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, aF, q)])) | |
366 | 377 | else throw("The issuer has already taken its share!") | |
367 | 378 | } | |
368 | - | else if (if (( | |
369 | - | then ( | |
379 | + | else if (if ((aC == 0)) | |
380 | + | then (aE == 0) | |
370 | 381 | else false) | |
371 | 382 | then throw("Don't have money") | |
372 | - | else { | |
373 | - | let aJ = nil | |
374 | - | let aG = nil | |
375 | - | let aK = if ((az != 0)) | |
376 | - | then [aJ, DataEntry((y + ao), 0), DataEntry((A + ao), 0)] | |
377 | - | else aJ | |
378 | - | let aL = if ((aB != 0)) | |
379 | - | then [aK, DataEntry((u + ao), 0), DataEntry((v + ao), 0)] | |
380 | - | else aK | |
381 | - | let aH = if ((az != 0)) | |
382 | - | then if (if ((am >= l)) | |
383 | - | then (ax == 1) | |
383 | + | else if (if (R()) | |
384 | + | then S() | |
385 | + | else false) | |
386 | + | then if ((aA == 1)) | |
387 | + | then ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0), DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aB, a), ScriptTransfer(aj.caller, aD, a)])) | |
388 | + | else ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0), DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aC, aH), ScriptTransfer(aj.caller, aE, q)])) | |
389 | + | else if (R()) | |
390 | + | then if (if ((ap >= n)) | |
391 | + | then (aA == 1) | |
384 | 392 | else false) | |
385 | - | then ScriptTransfer(ag.caller, ay, a) :: aG | |
386 | - | else ScriptTransfer(ag.caller, az, aE) :: aG | |
387 | - | else aG | |
388 | - | let aI = if ((aB != 0)) | |
389 | - | then ScriptTransfer(ag.caller, aA, a) :: aH | |
390 | - | else aH | |
391 | - | ScriptResult(WriteSet(aJ), TransferSet(aG)) | |
392 | - | } | |
393 | + | then ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aB, a)])) | |
394 | + | else ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aC, aH)])) | |
395 | + | else if ((aA == 1)) | |
396 | + | then ScriptResult(WriteSet([DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aD, a)])) | |
397 | + | else ScriptResult(WriteSet([DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aE, q)])) | |
393 | 398 | } | |
394 | 399 | } | |
395 | 400 | ||
396 | 401 | ||
397 | - | @Verifier( | |
398 | - | func | |
399 | - | let | |
400 | - | if (if ($isInstanceOf( | |
402 | + | @Verifier(aJ) | |
403 | + | func aK () = { | |
404 | + | let ab = aJ | |
405 | + | if (if ($isInstanceOf(ab, "SetAssetScriptTransaction")) | |
401 | 406 | then true | |
402 | - | else $isInstanceOf( | |
407 | + | else $isInstanceOf(ab, "SetScriptTransaction")) | |
403 | 408 | then { | |
404 | - | let | |
405 | - | let | |
409 | + | let aJ = ab | |
410 | + | let aL = if (isDefined(getInteger(extract(K), toBase58String(aJ.id)))) | |
406 | 411 | then 1 | |
407 | 412 | else 0 | |
408 | - | let | |
413 | + | let aM = if (isDefined(getInteger(extract(L), toBase58String(aJ.id)))) | |
409 | 414 | then 1 | |
410 | 415 | else 0 | |
411 | - | let | |
416 | + | let aN = if (isDefined(getInteger(extract(M), toBase58String(aJ.id)))) | |
412 | 417 | then 1 | |
413 | 418 | else 0 | |
414 | - | let | |
419 | + | let aO = if (isDefined(getInteger(extract(N), toBase58String(aJ.id)))) | |
415 | 420 | then 1 | |
416 | 421 | else 0 | |
417 | - | let | |
422 | + | let aP = if (isDefined(getInteger(extract(O), toBase58String(aJ.id)))) | |
418 | 423 | then 1 | |
419 | 424 | else 0 | |
420 | - | (((((aO + aP | |
425 | + | (((((aL + aM) + aN) + aO) + aP) >= 3) | |
421 | 426 | } | |
422 | 427 | else false | |
423 | 428 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'DN4GmTRkkNYLSX4RjgzZbaSy2cTg1ahRLAhe23QwB2cs' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'' | |
7 | 7 | ||
8 | 8 | let c = true | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'BBHmotEPzeYbapjncSTyaVf1eM4yiCPabPzMFqH5Mk8s' | |
11 | 11 | ||
12 | 12 | let e = addressFromPublicKey(d) | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "3N7rdAqT63j8iBUqoVt4iMnRrhFCk2YGok6" | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 1000 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 1578657000 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 1579952580 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 1579952580 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 100000 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 100000 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 10000 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1000 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 100000 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = base58'AB1EjGamzeQdfjThY1MTabtCDDKYnK8YRgr9osK9GXoy' | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1000 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 10000000 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 1 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 0 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "swapSumAmount " | |
51 | 51 | ||
52 | - | let y = " | |
52 | + | let y = "swapSumAssets " | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "swapAssets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "swapAmount" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "sumAmount " | |
59 | 59 | ||
60 | - | let C = " | |
60 | + | let C = "paidAmount " | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "sumAssets " | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "allow " | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "assets" | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "amount" | |
69 | 69 | ||
70 | - | let H = | |
70 | + | let H = "issuer" | |
71 | 71 | ||
72 | - | let I = | |
72 | + | let I = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ') | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR') | |
75 | 75 | ||
76 | - | let K = addressFromString(" | |
76 | + | let K = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
77 | 77 | ||
78 | - | let L = addressFromString(" | |
78 | + | let L = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
79 | 79 | ||
80 | - | let M = " | |
80 | + | let M = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
81 | 81 | ||
82 | - | let N = | |
82 | + | let N = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
83 | 83 | ||
84 | - | func O () = if ((q == r)) | |
84 | + | let O = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
85 | + | ||
86 | + | let P = "4.0.0-testnet" | |
87 | + | ||
88 | + | let Q = 1000 | |
89 | + | ||
90 | + | func R () = if ((t == u)) | |
85 | 91 | then true | |
86 | - | else ( | |
92 | + | else (t == w) | |
87 | 93 | ||
88 | 94 | ||
89 | - | func | |
95 | + | func S () = if ((t == v)) | |
90 | 96 | then true | |
91 | - | else ( | |
97 | + | else (t == w) | |
92 | 98 | ||
93 | 99 | ||
94 | - | func | |
95 | - | let | |
96 | - | ( | |
100 | + | func T () = { | |
101 | + | let U = value(blockInfoByHeight(height)) | |
102 | + | (U.timestamp / 1000) | |
97 | 103 | } | |
98 | 104 | ||
99 | 105 | ||
100 | - | func | |
101 | - | then | |
106 | + | func V (W,X) = if ((W == false)) | |
107 | + | then X | |
102 | 108 | else unit | |
103 | 109 | ||
104 | 110 | ||
105 | - | func | |
111 | + | func Y () = l | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
109 | - | let | |
110 | - | if ($isInstanceOf( | |
114 | + | func Z (aa) = { | |
115 | + | let ab = getInteger(this, aa) | |
116 | + | if ($isInstanceOf(ab, "Int")) | |
111 | 117 | then { | |
112 | - | let | |
113 | - | | |
118 | + | let ac = ab | |
119 | + | ac | |
114 | 120 | } | |
115 | 121 | else 0 | |
116 | 122 | } | |
117 | 123 | ||
118 | 124 | ||
119 | - | func | |
125 | + | func ad () = (T() >= i) | |
120 | 126 | ||
121 | 127 | ||
122 | - | func | |
123 | - | let | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
128 | + | func ae () = { | |
129 | + | let af = { | |
130 | + | let ab = getInteger(this, F) | |
131 | + | if ($isInstanceOf(ab, "Int")) | |
126 | 132 | then { | |
127 | - | let | |
128 | - | | |
133 | + | let ac = ab | |
134 | + | ac | |
129 | 135 | } | |
130 | 136 | else h | |
131 | 137 | } | |
132 | - | if (( | |
138 | + | if ((T() > k)) | |
133 | 139 | then true | |
134 | - | else ( | |
140 | + | else (af == 0) | |
135 | 141 | } | |
136 | 142 | ||
137 | 143 | ||
138 | - | func | |
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
144 | + | func ag () = { | |
145 | + | let af = { | |
146 | + | let ab = getInteger(this, z) | |
147 | + | if ($isInstanceOf(ab, "Int")) | |
142 | 148 | then { | |
143 | - | let | |
144 | - | | |
149 | + | let ac = ab | |
150 | + | ac | |
145 | 151 | } | |
146 | - | else | |
152 | + | else r | |
147 | 153 | } | |
148 | - | if (( | |
154 | + | if ((T() > k)) | |
149 | 155 | then true | |
150 | - | else ( | |
156 | + | else (af == 0) | |
151 | 157 | } | |
152 | 158 | ||
153 | 159 | ||
154 | - | func ae () = if (ab()) | |
155 | - | then ad() | |
156 | - | else false | |
160 | + | func ah () = if (if (S()) | |
161 | + | then R() | |
162 | + | else false) | |
163 | + | then if (ae()) | |
164 | + | then ag() | |
165 | + | else false | |
166 | + | else if (R()) | |
167 | + | then ae() | |
168 | + | else if (S()) | |
169 | + | then ag() | |
170 | + | else false | |
157 | 171 | ||
158 | 172 | ||
159 | - | func | |
160 | - | let | |
161 | - | if ($isInstanceOf( | |
173 | + | func ai (aj) = { | |
174 | + | let ab = aj.payment | |
175 | + | if ($isInstanceOf(ab, "AttachedPayment")) | |
162 | 176 | then { | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | if ($isInstanceOf( | |
177 | + | let ak = ab | |
178 | + | let al = { | |
179 | + | let am = ak.assetId | |
180 | + | if ($isInstanceOf(am, "ByteVector")) | |
167 | 181 | then { | |
168 | - | let | |
182 | + | let X = am | |
169 | 183 | if (!(c)) | |
170 | - | then ( | |
184 | + | then (X == b) | |
171 | 185 | else false | |
172 | 186 | } | |
173 | 187 | else (c == true) | |
174 | 188 | } | |
175 | - | if ( | |
189 | + | if (al) | |
176 | 190 | then if ((g == 1)) | |
177 | - | then if ((( | |
178 | - | then | |
191 | + | then if (((ak.amount % l) == 0)) | |
192 | + | then ak.amount | |
179 | 193 | else throw("payment amount must be a multiple of token price") | |
180 | - | else | |
194 | + | else ak.amount | |
181 | 195 | else throw("Invalid asset ID of investment") | |
182 | 196 | } | |
183 | 197 | else throw("Payment must be attached") | |
184 | 198 | } | |
185 | 199 | ||
186 | 200 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
201 | + | func an (aj) = { | |
202 | + | let ab = aj.payment | |
203 | + | if ($isInstanceOf(ab, "AttachedPayment")) | |
190 | 204 | then { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
205 | + | let ak = ab | |
206 | + | let al = { | |
207 | + | let am = ak.assetId | |
208 | + | if ($isInstanceOf(am, "ByteVector")) | |
195 | 209 | then { | |
196 | - | let | |
197 | - | ( | |
210 | + | let X = am | |
211 | + | (X == q) | |
198 | 212 | } | |
199 | 213 | else false | |
200 | 214 | } | |
201 | - | if ( | |
215 | + | if (al) | |
202 | 216 | then if ((g == 1)) | |
203 | - | then if ((( | |
204 | - | then | |
217 | + | then if (((ak.amount % s) == 0)) | |
218 | + | then ak.amount | |
205 | 219 | else throw("payment amount must be a multiple of token price") | |
206 | - | else | |
220 | + | else ak.amount | |
207 | 221 | else throw("Invalid asset ID of investment") | |
208 | 222 | } | |
209 | 223 | else throw("Payment must be attached") | |
210 | 224 | } | |
211 | 225 | ||
212 | 226 | ||
213 | - | @Callable( | |
227 | + | @Callable(aj) | |
214 | 228 | func deposit () = { | |
215 | - | let | |
216 | - | let | |
217 | - | if (!( | |
229 | + | let ao = Y() | |
230 | + | let ap = Z(G) | |
231 | + | if (!(R())) | |
218 | 232 | then throw("This deposit method is unsopperted for this company") | |
219 | - | else if (!( | |
220 | - | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString( | |
221 | - | else if ( | |
233 | + | else if (!(ad())) | |
234 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
235 | + | else if (ae()) | |
222 | 236 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
223 | 237 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
238 | + | let aq = ai(aj) | |
239 | + | let ar = toBase58String(aj.caller.bytes) | |
240 | + | let as = { | |
241 | + | let ab = getInteger(I, ar) | |
242 | + | if ($isInstanceOf(ab, "Int")) | |
229 | 243 | then { | |
230 | - | let | |
231 | - | | |
244 | + | let ac = ab | |
245 | + | ac | |
232 | 246 | } | |
233 | 247 | else -255 | |
234 | 248 | } | |
235 | - | if (( | |
249 | + | if ((Q > as)) | |
236 | 250 | then throw("Your account has no right to send funds.") | |
237 | 251 | else { | |
238 | - | let | |
239 | - | let | |
240 | - | if ($isInstanceOf( | |
252 | + | let at = { | |
253 | + | let ab = getInteger(this, F) | |
254 | + | if ($isInstanceOf(ab, "Int")) | |
241 | 255 | then { | |
242 | - | let | |
243 | - | | |
256 | + | let ac = ab | |
257 | + | ac | |
244 | 258 | } | |
245 | 259 | else h | |
246 | 260 | } | |
247 | - | let | |
248 | - | let | |
249 | - | if (if (if ((0 > ( | |
261 | + | let au = ((aq * g) / ao) | |
262 | + | let av = ((p * g) / ao) | |
263 | + | if (if (if ((0 > (at - au))) | |
250 | 264 | then true | |
251 | - | else ( | |
265 | + | else (av > au)) | |
252 | 266 | then true | |
253 | - | else if (( | |
254 | - | then ( | |
267 | + | else if ((au != at)) | |
268 | + | then (au > (at - av)) | |
255 | 269 | else false) | |
256 | 270 | then throw("Incorrect payment amount.") | |
257 | 271 | else { | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | WriteSet([DataEntry(( | |
272 | + | let aw = (Z((B + ar)) + aq) | |
273 | + | let ax = (Z((D + ar)) + au) | |
274 | + | let ay = (at - au) | |
275 | + | let az = (ap + aq) | |
276 | + | WriteSet([DataEntry((B + ar), aw), DataEntry((D + ar), ax), DataEntry(F, ay), DataEntry(G, az)]) | |
263 | 277 | } | |
264 | 278 | } | |
265 | 279 | } | |
266 | 280 | } | |
267 | 281 | ||
268 | 282 | ||
269 | 283 | ||
270 | - | @Callable( | |
284 | + | @Callable(aj) | |
271 | 285 | func swapDeposit () = { | |
272 | - | let | |
273 | - | let | |
274 | - | if (!( | |
286 | + | let ao = s | |
287 | + | let ap = Z(A) | |
288 | + | if (!(S())) | |
275 | 289 | then throw("This swap-deposit method is unsopperted for this company") | |
276 | - | else if (!( | |
277 | - | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString( | |
278 | - | else if ( | |
290 | + | else if (!(ad())) | |
291 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
292 | + | else if (ag()) | |
279 | 293 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
280 | 294 | else { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
295 | + | let aq = an(aj) | |
296 | + | let ar = toBase58String(aj.caller.bytes) | |
297 | + | let as = { | |
298 | + | let ab = getInteger(I, ar) | |
299 | + | if ($isInstanceOf(ab, "Int")) | |
286 | 300 | then { | |
287 | - | let | |
288 | - | | |
301 | + | let ac = ab | |
302 | + | ac | |
289 | 303 | } | |
290 | 304 | else -255 | |
291 | 305 | } | |
292 | - | if (( | |
306 | + | if ((Q > as)) | |
293 | 307 | then throw("Your account has no right to send funds.") | |
294 | 308 | else { | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
309 | + | let at = { | |
310 | + | let ab = getInteger(this, z) | |
311 | + | if ($isInstanceOf(ab, "Int")) | |
298 | 312 | then { | |
299 | - | let | |
300 | - | | |
313 | + | let ac = ab | |
314 | + | ac | |
301 | 315 | } | |
302 | - | else | |
316 | + | else r | |
303 | 317 | } | |
304 | - | let | |
305 | - | if ((0 > ( | |
318 | + | let au = ((aq * g) / ao) | |
319 | + | if ((0 > (at - au))) | |
306 | 320 | then throw("Incorrect payment amount.") | |
307 | 321 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | WriteSet([DataEntry(( | |
322 | + | let aw = (Z((x + ar)) + aq) | |
323 | + | let ax = (Z((y + ar)) + au) | |
324 | + | let ay = (at - au) | |
325 | + | let az = (ap + aq) | |
326 | + | WriteSet([DataEntry((x + ar), aw), DataEntry((y + ar), ax), DataEntry(z, ay), DataEntry(A, az)]) | |
313 | 327 | } | |
314 | 328 | } | |
315 | 329 | } | |
316 | 330 | } | |
317 | 331 | ||
318 | 332 | ||
319 | 333 | ||
320 | - | @Callable( | |
334 | + | @Callable(aj) | |
321 | 335 | func withdrawal () = { | |
322 | - | let | |
323 | - | let | |
324 | - | if ($isInstanceOf( | |
336 | + | let aA = { | |
337 | + | let ab = getInteger(J, toString(this)) | |
338 | + | if ($isInstanceOf(ab, "Int")) | |
325 | 339 | then { | |
326 | - | let | |
327 | - | | |
340 | + | let ac = ab | |
341 | + | ac | |
328 | 342 | } | |
329 | 343 | else 0 | |
330 | 344 | } | |
331 | - | if (( | |
345 | + | if ((aA == 0)) | |
332 | 346 | then throw("Withdrawals are not available until the issuer passes verification") | |
333 | 347 | else { | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if (!( | |
348 | + | let ar = toBase58String(aj.caller.bytes) | |
349 | + | let aB = Z((D + ar)) | |
350 | + | let aC = Z((B + ar)) | |
351 | + | let aD = Z((y + ar)) | |
352 | + | let aE = Z((x + ar)) | |
353 | + | let aF = Z(A) | |
354 | + | let aG = Z(z) | |
355 | + | let ap = Z(G) | |
356 | + | let at = Z(F) | |
357 | + | let aH = V(c, b) | |
358 | + | if (!(ah())) | |
345 | 359 | then throw("The Company is still active") | |
346 | - | else if (if (if (( | |
347 | - | then if (( | |
360 | + | else if (if (if ((ar == f)) | |
361 | + | then if ((ap >= n)) | |
348 | 362 | then true | |
349 | - | else ( | |
363 | + | else (aF != 0) | |
350 | 364 | else false) | |
351 | - | then ( | |
365 | + | then (aA == 1) | |
352 | 366 | else false) | |
353 | 367 | then { | |
354 | - | let aF = W(E) | |
355 | - | if ((aF == 0)) | |
356 | - | then { | |
357 | - | let aG = nil | |
358 | - | let aH = if ((am >= l)) | |
359 | - | then ScriptTransfer(e, am, aE) :: aG | |
360 | - | else aG | |
361 | - | let aI = if ((am >= l)) | |
362 | - | then ScriptTransfer(e, aC, n) :: aH | |
363 | - | else aH | |
364 | - | ScriptResult(WriteSet([DataEntry(E, 1)]), TransferSet(aI)) | |
365 | - | } | |
368 | + | let aI = Z(H) | |
369 | + | if ((aI == 0)) | |
370 | + | then if (if (R()) | |
371 | + | then S() | |
372 | + | else false) | |
373 | + | then ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, ap, aH), ScriptTransfer(e, aF, q)])) | |
374 | + | else if (R()) | |
375 | + | then ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, ap, aH)])) | |
376 | + | else ScriptResult(WriteSet([DataEntry(H, 1)]), TransferSet([ScriptTransfer(e, aF, q)])) | |
366 | 377 | else throw("The issuer has already taken its share!") | |
367 | 378 | } | |
368 | - | else if (if (( | |
369 | - | then ( | |
379 | + | else if (if ((aC == 0)) | |
380 | + | then (aE == 0) | |
370 | 381 | else false) | |
371 | 382 | then throw("Don't have money") | |
372 | - | else { | |
373 | - | let aJ = nil | |
374 | - | let aG = nil | |
375 | - | let aK = if ((az != 0)) | |
376 | - | then [aJ, DataEntry((y + ao), 0), DataEntry((A + ao), 0)] | |
377 | - | else aJ | |
378 | - | let aL = if ((aB != 0)) | |
379 | - | then [aK, DataEntry((u + ao), 0), DataEntry((v + ao), 0)] | |
380 | - | else aK | |
381 | - | let aH = if ((az != 0)) | |
382 | - | then if (if ((am >= l)) | |
383 | - | then (ax == 1) | |
383 | + | else if (if (R()) | |
384 | + | then S() | |
385 | + | else false) | |
386 | + | then if ((aA == 1)) | |
387 | + | then ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0), DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aB, a), ScriptTransfer(aj.caller, aD, a)])) | |
388 | + | else ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0), DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aC, aH), ScriptTransfer(aj.caller, aE, q)])) | |
389 | + | else if (R()) | |
390 | + | then if (if ((ap >= n)) | |
391 | + | then (aA == 1) | |
384 | 392 | else false) | |
385 | - | then ScriptTransfer(ag.caller, ay, a) :: aG | |
386 | - | else ScriptTransfer(ag.caller, az, aE) :: aG | |
387 | - | else aG | |
388 | - | let aI = if ((aB != 0)) | |
389 | - | then ScriptTransfer(ag.caller, aA, a) :: aH | |
390 | - | else aH | |
391 | - | ScriptResult(WriteSet(aJ), TransferSet(aG)) | |
392 | - | } | |
393 | + | then ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aB, a)])) | |
394 | + | else ScriptResult(WriteSet([DataEntry((B + ar), 0), DataEntry((D + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aC, aH)])) | |
395 | + | else if ((aA == 1)) | |
396 | + | then ScriptResult(WriteSet([DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aD, a)])) | |
397 | + | else ScriptResult(WriteSet([DataEntry((x + ar), 0), DataEntry((y + ar), 0)]), TransferSet([ScriptTransfer(aj.caller, aE, q)])) | |
393 | 398 | } | |
394 | 399 | } | |
395 | 400 | ||
396 | 401 | ||
397 | - | @Verifier( | |
398 | - | func | |
399 | - | let | |
400 | - | if (if ($isInstanceOf( | |
402 | + | @Verifier(aJ) | |
403 | + | func aK () = { | |
404 | + | let ab = aJ | |
405 | + | if (if ($isInstanceOf(ab, "SetAssetScriptTransaction")) | |
401 | 406 | then true | |
402 | - | else $isInstanceOf( | |
407 | + | else $isInstanceOf(ab, "SetScriptTransaction")) | |
403 | 408 | then { | |
404 | - | let | |
405 | - | let | |
409 | + | let aJ = ab | |
410 | + | let aL = if (isDefined(getInteger(extract(K), toBase58String(aJ.id)))) | |
406 | 411 | then 1 | |
407 | 412 | else 0 | |
408 | - | let | |
413 | + | let aM = if (isDefined(getInteger(extract(L), toBase58String(aJ.id)))) | |
409 | 414 | then 1 | |
410 | 415 | else 0 | |
411 | - | let | |
416 | + | let aN = if (isDefined(getInteger(extract(M), toBase58String(aJ.id)))) | |
412 | 417 | then 1 | |
413 | 418 | else 0 | |
414 | - | let | |
419 | + | let aO = if (isDefined(getInteger(extract(N), toBase58String(aJ.id)))) | |
415 | 420 | then 1 | |
416 | 421 | else 0 | |
417 | - | let | |
422 | + | let aP = if (isDefined(getInteger(extract(O), toBase58String(aJ.id)))) | |
418 | 423 | then 1 | |
419 | 424 | else 0 | |
420 | - | (((((aO + aP | |
425 | + | (((((aL + aM) + aN) + aO) + aP) >= 3) | |
421 | 426 | } | |
422 | 427 | else false | |
423 | 428 | } | |
424 | 429 |
github/deemru/w8io/169f3d6 292.54 ms ◑