tx · FVLP91sTd76TEsJBhLzT8zh8bjbrrtdBgJ6iRtjKgFNU 3N6CieDBUnAeTCaqPkJruN1sUZQ4oK8Xgk4: -0.01400000 Waves 2019.07.03 22:54 [569694] smart account 3N6CieDBUnAeTCaqPkJruN1sUZQ4oK8Xgk4 > SELF 0.00000000 Waves
{ "type": 13, "id": "FVLP91sTd76TEsJBhLzT8zh8bjbrrtdBgJ6iRtjKgFNU", "fee": 1400000, "feeAssetId": null, "timestamp": 1562183694427, "version": 1, "sender": "3N6CieDBUnAeTCaqPkJruN1sUZQ4oK8Xgk4", "senderPublicKey": "9pS8QdRJL6V92tFpw25gLevz6XJrnmk1Z8CPNmguccft", "proofs": [ "3D7YHafqpJvU4mDhXoEBg6ZRKmKqV4qLkspuhQXnEya82Q8WrB6cYKn9vqz8WvL2bNjsthBzqEkXKXouXWcV66tT" ], "script": "base64:AAIDAAAAAAAAAAAAAAAWAAAAAA1jdXN0b21Bc3NldElkAQAAACCXcK8L+jUufccrewgk3vR643dlGUkE+pD2cpnzDwAZQwAAAAAOb3duZXJQdWJsaWNLZXkBAAAAIHehK6FBO3onFSqX1eUuGjrI8wc6PxcvA3xSBbs384IKAAAAAAxvd25lckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADm93bmVyUHVibGljS2V5AAAAABJvd25lckFkZHJlc3NTdHJpbmcCAAAAIzNNeDFwbXBkb2t3TVZWSmk0dXdmejRZcUxaS1ZOSzJoU002AAAAABFhY2NvdW50VGhhdEFsbG93cwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMYbTDAWhUaVMk5pP6sw+hs730/Z1xCPOwAAAAALYXNzZXREaWdpdHMAAAAAAAAPQkAAAAAAEHN1bUFjY291bnRBc3NldHMAAAAAASoF8gAAAAAADGlzc3VlckFzc2V0cwAAAAABKgXyAAAAAAAKc3RhcnRCbG9jawAAAAAAAAixXAAAAAASaW5jcmVhc2VQcmljZUJsb2NrAAAAAAAACQRlAAAA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1cnJlbnRBc3NldHMFAAAADWN1c3RvbUFzc2V0SWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAASa2V5U3VtQW1vdW50UHJlZml4BQAAAApjdXJyZW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAAEmtleVN1bUFzc2V0c1ByZWZpeAUAAAAKY3VycmVudEtleQAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANY3VycmVudEFtb3VudAUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgHtDRtIg==", "chainId": 84, "height": 569694, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'BCADnePmqUEs6wVRibj5Pas7eeiFKqhfABf14ex9wsEz' | |
5 | + | ||
6 | + | let b = base58'93z4FK3C2MFZWRcyJ7VawhDmJEnrDUzU52cDbXxuCopM' | |
7 | + | ||
8 | + | let c = addressFromPublicKey(b) | |
9 | + | ||
10 | + | let d = "3Mx1pmpdokwMVVJi4uwfz4YqLZKVNK2hSM6" | |
11 | + | ||
12 | + | let e = Address(base58'3N7yaGaFS8BvgRrc9trhNy7v5H4qCcxW3Fp') | |
13 | + | ||
14 | + | let f = 1000000 | |
15 | + | ||
16 | + | let g = 5000000000 | |
17 | + | ||
18 | + | let h = 5000000000 | |
19 | + | ||
20 | + | let i = 569692 | |
21 | + | ||
22 | + | let j = 590949 | |
23 | + | ||
24 | + | let k = 590949 | |
25 | + | ||
26 | + | let l = 100000000 | |
27 | + | ||
28 | + | let m = 100000000 | |
29 | + | ||
30 | + | let n = 500000000000 | |
31 | + | ||
32 | + | let o = 500000000000 | |
33 | + | ||
34 | + | let p = "sumAmount " | |
35 | + | ||
36 | + | let q = "paidAmount " | |
37 | + | ||
38 | + | let r = "sumAssets " | |
39 | + | ||
40 | + | let s = "allow " | |
41 | + | ||
42 | + | let t = "assets" | |
43 | + | ||
44 | + | let u = "waves" | |
45 | + | ||
46 | + | let v = "issuer" | |
47 | + | ||
48 | + | @Callable(w) | |
49 | + | func deposit () = { | |
50 | + | let x = if ((j > height)) | |
51 | + | then l | |
52 | + | else m | |
53 | + | let y = { | |
54 | + | let z = getInteger(this, u) | |
55 | + | if ($isInstanceOf(z, "Int")) | |
56 | + | then { | |
57 | + | let A = z | |
58 | + | A | |
59 | + | } | |
60 | + | else 0 | |
61 | + | } | |
62 | + | if ((i > height)) | |
63 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(k))) | |
64 | + | else if (if ((height > k)) | |
65 | + | then true | |
66 | + | else (y >= o)) | |
67 | + | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
68 | + | else { | |
69 | + | let B = { | |
70 | + | let z = w.payment | |
71 | + | if ($isInstanceOf(z, "AttachedPayment")) | |
72 | + | then { | |
73 | + | let C = z | |
74 | + | let D = C.assetId | |
75 | + | if ($isInstanceOf(D, "ByteVector")) | |
76 | + | then { | |
77 | + | let E = D | |
78 | + | throw("Waves only") | |
79 | + | } | |
80 | + | else C.amount | |
81 | + | } | |
82 | + | else throw("Payment must be attached") | |
83 | + | } | |
84 | + | if ((x > B)) | |
85 | + | then throw((("Minimum payment is " + toString(x)) + " wavelet")) | |
86 | + | else { | |
87 | + | let F = toBase58String(w.caller.bytes) | |
88 | + | let G = { | |
89 | + | let z = getBoolean(e, (s + F)) | |
90 | + | if ($isInstanceOf(z, "Boolean")) | |
91 | + | then { | |
92 | + | let A = z | |
93 | + | A | |
94 | + | } | |
95 | + | else false | |
96 | + | } | |
97 | + | if ((G == false)) | |
98 | + | then throw("Your account has no right to send funds.") | |
99 | + | else { | |
100 | + | let H = { | |
101 | + | let z = getInteger(this, t) | |
102 | + | if ($isInstanceOf(z, "Int")) | |
103 | + | then { | |
104 | + | let A = z | |
105 | + | A | |
106 | + | } | |
107 | + | else g | |
108 | + | } | |
109 | + | if ((0 > (H - ((B * f) / x)))) | |
110 | + | then throw((("Payment is too big. Maximum possible payment is " + toString(((H * x) / f))) + " wavelet")) | |
111 | + | else { | |
112 | + | let I = { | |
113 | + | let z = getInteger(this, (p + F)) | |
114 | + | if ($isInstanceOf(z, "Int")) | |
115 | + | then { | |
116 | + | let A = z | |
117 | + | A | |
118 | + | } | |
119 | + | else 0 | |
120 | + | } | |
121 | + | let J = (I + B) | |
122 | + | let K = { | |
123 | + | let z = getInteger(this, (r + F)) | |
124 | + | if ($isInstanceOf(z, "Int")) | |
125 | + | then { | |
126 | + | let A = z | |
127 | + | A | |
128 | + | } | |
129 | + | else 0 | |
130 | + | } | |
131 | + | let L = (K + ((B * f) / x)) | |
132 | + | let M = (H - ((B * f) / x)) | |
133 | + | let N = (y + B) | |
134 | + | WriteSet([DataEntry((p + F), J), DataEntry((r + F), L), DataEntry(t, M), DataEntry(u, N)]) | |
135 | + | } | |
136 | + | } | |
137 | + | } | |
138 | + | } | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | @Callable(w) | |
144 | + | func withdrawal () = { | |
145 | + | let F = toBase58String(w.caller.bytes) | |
146 | + | let K = { | |
147 | + | let z = getInteger(this, (r + F)) | |
148 | + | if ($isInstanceOf(z, "Int")) | |
149 | + | then { | |
150 | + | let A = z | |
151 | + | A | |
152 | + | } | |
153 | + | else 0 | |
154 | + | } | |
155 | + | let I = { | |
156 | + | let z = getInteger(this, (p + F)) | |
157 | + | if ($isInstanceOf(z, "Int")) | |
158 | + | then { | |
159 | + | let A = z | |
160 | + | A | |
161 | + | } | |
162 | + | else 0 | |
163 | + | } | |
164 | + | let y = { | |
165 | + | let z = getInteger(this, u) | |
166 | + | if ($isInstanceOf(z, "Int")) | |
167 | + | then { | |
168 | + | let A = z | |
169 | + | A | |
170 | + | } | |
171 | + | else 0 | |
172 | + | } | |
173 | + | let H = { | |
174 | + | let z = getInteger(this, t) | |
175 | + | if ($isInstanceOf(z, "Int")) | |
176 | + | then { | |
177 | + | let A = z | |
178 | + | A | |
179 | + | } | |
180 | + | else 0 | |
181 | + | } | |
182 | + | if (!(if ((height > k)) | |
183 | + | then true | |
184 | + | else (y >= o))) | |
185 | + | then throw(("The Tokensale end on block " + toString(k))) | |
186 | + | else if (if ((F == d)) | |
187 | + | then (y >= n) | |
188 | + | else false) | |
189 | + | then { | |
190 | + | let O = { | |
191 | + | let z = getInteger(this, v) | |
192 | + | if ($isInstanceOf(z, "Int")) | |
193 | + | then { | |
194 | + | let A = z | |
195 | + | A | |
196 | + | } | |
197 | + | else 0 | |
198 | + | } | |
199 | + | if ((O == 0)) | |
200 | + | then ScriptResult(WriteSet([DataEntry(v, (H + h))]), TransferSet([ScriptTransfer(c, (H + h), a), ScriptTransfer(c, y, unit)])) | |
201 | + | else throw("The issuer has already taken its share!") | |
202 | + | } | |
203 | + | else if ((I == 0)) | |
204 | + | then throw("Don't have money") | |
205 | + | else if ((y >= n)) | |
206 | + | then ScriptResult(WriteSet([DataEntry((p + F), 0), DataEntry((r + F), 0)]), TransferSet([ScriptTransfer(w.caller, K, a)])) | |
207 | + | else ScriptResult(WriteSet([DataEntry((p + F), 0), DataEntry((r + F), 0)]), TransferSet([ScriptTransfer(w.caller, I, unit)])) | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | @Verifier(P) | |
212 | + | func Q () = { | |
213 | + | let z = P | |
214 | + | false | |
215 | + | } | |
216 | + |
github/deemru/w8io/169f3d6 23.34 ms ◑