1 | | - | {-# STDLIB_VERSION 3 #-} |
---|
2 | | - | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | | - | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'3Mrcd5V4by5mqq1rcZjBdMCYxwo37TpAtxP' |
---|
5 | | - | |
---|
6 | | - | let b = extract(addressFromString("3MsR4PdRDNeh4JzepHX1Xw5YeQp1iPoueo7")) |
---|
7 | | - | |
---|
8 | | - | let c = base58'FGZTpAqL2wwfXwFRX32tAeD88Uaw8LSt3DPS312XodHZ' |
---|
9 | | - | |
---|
10 | | - | let d = 1000 |
---|
11 | | - | |
---|
12 | | - | let e = pow(10, 0, 8, 0, 0, Up()) |
---|
13 | | - | |
---|
14 | | - | let f = 1000000 |
---|
15 | | - | |
---|
16 | | - | let g = 10000 |
---|
17 | | - | |
---|
18 | | - | let h = 1 |
---|
19 | | - | |
---|
20 | | - | let i = 100 |
---|
21 | | - | |
---|
22 | | - | let j = true |
---|
23 | | - | |
---|
24 | | - | let k = 1563271860 |
---|
25 | | - | |
---|
26 | | - | let l = 1609395060 |
---|
27 | | - | |
---|
28 | | - | let m = pow(10, 0, 8, 0, 0, Up()) |
---|
29 | | - | |
---|
30 | | - | func n (o) = { |
---|
31 | | - | let p = toBase58String(o) |
---|
32 | | - | let q = toBase58String(a) |
---|
33 | | - | if ((p != q)) |
---|
34 | | - | then false |
---|
35 | | - | else true |
---|
36 | | - | } |
---|
37 | | - | |
---|
38 | | - | |
---|
39 | | - | func r () = { |
---|
40 | | - | let s = value(blockInfoByHeight(height)) |
---|
41 | | - | (s.timestamp / 1000) |
---|
42 | | - | } |
---|
43 | | - | |
---|
44 | | - | |
---|
45 | | - | func t () = { |
---|
46 | | - | let u = getInteger(this, "startTime") |
---|
47 | | - | let v = u |
---|
48 | | - | if ($isInstanceOf(v, "Int")) |
---|
49 | | - | then { |
---|
50 | | - | let w = v |
---|
51 | | - | w |
---|
52 | | - | } |
---|
53 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
54 | | - | then { |
---|
55 | | - | let x = v |
---|
56 | | - | k |
---|
57 | | - | } |
---|
58 | | - | else throw() |
---|
59 | | - | } |
---|
60 | | - | |
---|
61 | | - | |
---|
62 | | - | func y () = { |
---|
63 | | - | let z = getInteger(this, "endTime") |
---|
64 | | - | let v = z |
---|
65 | | - | if ($isInstanceOf(v, "Int")) |
---|
66 | | - | then { |
---|
67 | | - | let A = v |
---|
68 | | - | A |
---|
69 | | - | } |
---|
70 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
71 | | - | then { |
---|
72 | | - | let x = v |
---|
73 | | - | l |
---|
74 | | - | } |
---|
75 | | - | else throw() |
---|
76 | | - | } |
---|
77 | | - | |
---|
78 | | - | |
---|
79 | | - | func B () = if ((r() > t())) |
---|
80 | | - | then true |
---|
81 | | - | else false |
---|
82 | | - | |
---|
83 | | - | |
---|
84 | | - | func C () = if ((r() > y())) |
---|
85 | | - | then true |
---|
86 | | - | else false |
---|
87 | | - | |
---|
88 | | - | |
---|
89 | | - | func D () = { |
---|
90 | | - | let E = getBoolean(this, "finalized") |
---|
91 | | - | let v = E |
---|
92 | | - | if ($isInstanceOf(v, "Boolean")) |
---|
93 | | - | then { |
---|
94 | | - | let F = v |
---|
95 | | - | F |
---|
96 | | - | } |
---|
97 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
98 | | - | then { |
---|
99 | | - | let G = v |
---|
100 | | - | false |
---|
101 | | - | } |
---|
102 | | - | else throw() |
---|
103 | | - | } |
---|
104 | | - | |
---|
105 | | - | |
---|
106 | | - | func H () = { |
---|
107 | | - | let I = getInteger(this, "wavesRaised") |
---|
108 | | - | let v = I |
---|
109 | | - | if ($isInstanceOf(v, "Int")) |
---|
110 | | - | then { |
---|
111 | | - | let J = v |
---|
112 | | - | J |
---|
113 | | - | } |
---|
114 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
115 | | - | then { |
---|
116 | | - | let K = v |
---|
117 | | - | 0 |
---|
118 | | - | } |
---|
119 | | - | else throw() |
---|
120 | | - | } |
---|
121 | | - | |
---|
122 | | - | |
---|
123 | | - | func L (M,N) = { |
---|
124 | | - | let O = ("whitelistedInvestors-" + toString(N)) |
---|
125 | | - | let P = getString(this, O) |
---|
126 | | - | let v = P |
---|
127 | | - | if ($isInstanceOf(v, "String")) |
---|
128 | | - | then { |
---|
129 | | - | let Q = v |
---|
130 | | - | let R = indexOf(Q, M) |
---|
131 | | - | let S = R |
---|
132 | | - | if ($isInstanceOf(S, "Int")) |
---|
133 | | - | then { |
---|
134 | | - | let T = S |
---|
135 | | - | true |
---|
136 | | - | } |
---|
137 | | - | else if ($isInstanceOf(S, "Unit")) |
---|
138 | | - | then { |
---|
139 | | - | let U = S |
---|
140 | | - | false |
---|
141 | | - | } |
---|
142 | | - | else throw() |
---|
143 | | - | } |
---|
144 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
145 | | - | then { |
---|
146 | | - | let V = v |
---|
147 | | - | false |
---|
148 | | - | } |
---|
149 | | - | else throw() |
---|
150 | | - | } |
---|
151 | | - | |
---|
152 | | - | |
---|
153 | | - | func W (M) = if (L(M, 0)) |
---|
154 | | - | then true |
---|
155 | | - | else if (L(M, 1)) |
---|
156 | | - | then true |
---|
157 | | - | else if (L(M, 2)) |
---|
158 | | - | then true |
---|
159 | | - | else if (L(M, 3)) |
---|
160 | | - | then true |
---|
161 | | - | else if (L(M, 4)) |
---|
162 | | - | then true |
---|
163 | | - | else if (L(M, 5)) |
---|
164 | | - | then true |
---|
165 | | - | else if (L(M, 6)) |
---|
166 | | - | then true |
---|
167 | | - | else if (L(M, 7)) |
---|
168 | | - | then true |
---|
169 | | - | else if (L(M, 8)) |
---|
170 | | - | then true |
---|
171 | | - | else if (L(M, 9)) |
---|
172 | | - | then true |
---|
173 | | - | else false |
---|
174 | | - | |
---|
175 | | - | |
---|
176 | | - | func X () = { |
---|
177 | | - | let Y = getInteger(this, "minInvestment") |
---|
178 | | - | let v = Y |
---|
179 | | - | if ($isInstanceOf(v, "Int")) |
---|
180 | | - | then { |
---|
181 | | - | let Z = v |
---|
182 | | - | Z |
---|
183 | | - | } |
---|
184 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
185 | | - | then { |
---|
186 | | - | let x = v |
---|
187 | | - | h |
---|
188 | | - | } |
---|
189 | | - | else throw() |
---|
190 | | - | } |
---|
191 | | - | |
---|
192 | | - | |
---|
193 | | - | func aa () = { |
---|
194 | | - | let ab = getInteger(this, "maxInvestment") |
---|
195 | | - | let v = ab |
---|
196 | | - | if ($isInstanceOf(v, "Int")) |
---|
197 | | - | then { |
---|
198 | | - | let ac = v |
---|
199 | | - | ac |
---|
200 | | - | } |
---|
201 | | - | else if ($isInstanceOf(v, "Unit")) |
---|
202 | | - | then { |
---|
203 | | - | let x = v |
---|
204 | | - | i |
---|
205 | | - | } |
---|
206 | | - | else throw() |
---|
207 | | - | } |
---|
208 | | - | |
---|
209 | | - | |
---|
210 | | - | |
---|
| 1 | + | # no script |
---|