tx · FjDSEXPyyMKYyPMzGWXnyHgnxX7ULXKSc9Z9o5K91yi4 3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq: -0.01400000 Waves 2021.04.03 13:32 [1466148] smart account 3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq > SELF 0.00000000 Waves
{ "type": 13, "id": "FjDSEXPyyMKYyPMzGWXnyHgnxX7ULXKSc9Z9o5K91yi4", "fee": 1400000, "feeAssetId": null, "timestamp": 1617446022514, "version": 2, "chainId": 84, "sender": "3MyytsRPxYr48we6CPWAQ1z4x6cmEbHWtFq", "senderPublicKey": "551T51u5CXgqTybnycyVjFjM9tKkqVEenm7ZrxxC7gLe", "proofs": [ "3S7d1ZtRPmMENrRpVwavgkJfHLUyvGpNvXbL244KPdvRtYUHBEvk3cdqmv7HrRsJw6qS5tpxwZFWEyagkjScZBdc" ], "script": "base64:AAIDAAAAAAAAACkIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgSAwoBCBIAEgMKAQESAAAAABoAAAAABnVwVm90ZQIAAAAGdXB2b3RlAAAAAA1hZG1pbkFkZHJlc3MxAQAAABoBVGx6nhB9WGGjnofF5YsTbL8z35oL0vs2fAAAAAANYWRtaW5BZGRyZXNzMgEAAAAaAVTlj1A9878YQ058BBZUI9QC+LwgFva37DoAAAAADWFkbWluQWRkcmVzczMBAAAAGgFUPo0bC5weIFiGP3KzAhxqwrizqd9EMgoVAAAAAAVkeXpJZAEAAAAgFZsfdOZJuZHuLptIBwOCMHYpnDoPtCAZD6J+T/NJGW4BAAAAD2dldFN0YWtlUG9vbEtleQAAAAACAAAACnN0YWtlX3Bvb2wBAAAADGdldFN0YWtlUG9vbAAAAAAEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkBAAAAD2dldFN0YWtlUG9vbEtleQAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAQZ2V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9vbEtleQAAAAAFAAAADG5ld1N0YWtlUG9vbAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGcmV3YXJkBQAAAAVkeXpJZAUAAAADbmlsAAAAALUODMM=", "height": 1466148, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A2QbYH22dXuvVsR8gsu5PtJ71yy4FEr5JhDRGZoGUtjQ Next: 8d58HpFC73VqGv9Y7JwX917L86Uuzt8Sp4nvZ321ST55 Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | if ($isInstanceOf(h, "Int")) | |
39 | 39 | then { | |
40 | 40 | let i = h | |
41 | - | | |
41 | + | i | |
42 | 42 | } | |
43 | 43 | else 56429415253623 | |
44 | 44 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "upvote" | |
5 | 5 | ||
6 | 6 | let b = base58'3MyofeFJ29LLoVcHYtYgkLP7EUuYYGKBB4P' | |
7 | 7 | ||
8 | 8 | let c = base58'3NAqtCScgFynCuRLUoXm2BHTdu8suatCe7b' | |
9 | 9 | ||
10 | 10 | let d = base58'3Mucpi1K4FMVrZKnYEgjxQf5DkkBX7QrHoJ' | |
11 | 11 | ||
12 | 12 | let e = base58'2TLkgUERqF1y21ShjiFVVTVYtP1BL8wvc6BGLZvt4fND' | |
13 | 13 | ||
14 | 14 | func f () = "stake_pool" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func g () = { | |
18 | 18 | let h = getInteger(this, f()) | |
19 | 19 | if ($isInstanceOf(h, "Int")) | |
20 | 20 | then { | |
21 | 21 | let i = h | |
22 | 22 | i | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func j (k,l) = if ((l == "upvote")) | |
29 | 29 | then (((k + "_") + l) + "_amount") | |
30 | 30 | else throw("Invalid vote type") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = "total_staked_amount" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n () = { | |
37 | 37 | let h = getInteger(this, m()) | |
38 | 38 | if ($isInstanceOf(h, "Int")) | |
39 | 39 | then { | |
40 | 40 | let i = h | |
41 | - | | |
41 | + | i | |
42 | 42 | } | |
43 | 43 | else 56429415253623 | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func o (p) = (p + "_stake") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (p) = { | |
51 | 51 | let h = getInteger(this, o(p)) | |
52 | 52 | if ($isInstanceOf(h, "Int")) | |
53 | 53 | then { | |
54 | 54 | let i = h | |
55 | 55 | i | |
56 | 56 | } | |
57 | 57 | else 0 | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func r (k) = (k + "_entrepreneurProfile") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func s (k) = (k + "_status") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func t (k,l) = if ((l == "upvote")) | |
68 | 68 | then (k + "_upvote") | |
69 | 69 | else throw("Invalid vote type") | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func u (k) = { | |
73 | 73 | let h = getString(this, r(k)) | |
74 | 74 | if ($isInstanceOf(h, "String")) | |
75 | 75 | then { | |
76 | 76 | let i = h | |
77 | 77 | true | |
78 | 78 | } | |
79 | 79 | else false | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func v (w) = { | |
84 | 84 | let h = getString(this, s(w)) | |
85 | 85 | if ($isInstanceOf(h, "String")) | |
86 | 86 | then { | |
87 | 87 | let i = h | |
88 | 88 | i | |
89 | 89 | } | |
90 | 90 | else false | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func x (k,w) = (((k + "_") + w) + "_amount") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func y (w,z) = { | |
98 | 98 | let h = getInteger(this, j(w, z)) | |
99 | 99 | if ($isInstanceOf(h, "Int")) | |
100 | 100 | then { | |
101 | 101 | let i = h | |
102 | 102 | i | |
103 | 103 | } | |
104 | 104 | else 0 | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func A (B) = { | |
109 | 109 | let h = getInteger(this, ("last_claim_" + B)) | |
110 | 110 | if ($isInstanceOf(h, "Int")) | |
111 | 111 | then { | |
112 | 112 | let i = h | |
113 | 113 | i | |
114 | 114 | } | |
115 | 115 | else 0 | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func C (w,z) = { | |
120 | 120 | let h = getInteger(this, t(w, z)) | |
121 | 121 | if ($isInstanceOf(h, "Int")) | |
122 | 122 | then { | |
123 | 123 | let i = h | |
124 | 124 | i | |
125 | 125 | } | |
126 | 126 | else throw("Not a valid vote ID") | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func D (E,w) = ((((E + "_") + w) + "_") + "vote") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func F (E,w) = { | |
134 | 134 | let h = getString(this, D(E, w)) | |
135 | 135 | if ($isInstanceOf(h, "String")) | |
136 | 136 | then { | |
137 | 137 | let i = h | |
138 | 138 | i | |
139 | 139 | } | |
140 | 140 | else "" | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func G (E,w) = { | |
145 | 145 | let H = F(E, w) | |
146 | 146 | if ((H == "")) | |
147 | 147 | then true | |
148 | 148 | else false | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func I () = { | |
153 | 153 | let h = getInteger(this, "claimed_total") | |
154 | 154 | if ($isInstanceOf(h, "Int")) | |
155 | 155 | then { | |
156 | 156 | let i = h | |
157 | 157 | i | |
158 | 158 | } | |
159 | 159 | else 0 | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func J (E) = { | |
164 | 164 | let h = getInteger(this, ("claimed_total_" + E)) | |
165 | 165 | if ($isInstanceOf(h, "Int")) | |
166 | 166 | then { | |
167 | 167 | let i = h | |
168 | 168 | i | |
169 | 169 | } | |
170 | 170 | else 0 | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(K) | |
175 | 175 | func addEntrepreneurProfile (L,M,N,O,P) = if (if (if ((K.caller.bytes == b)) | |
176 | 176 | then true | |
177 | 177 | else (K.caller.bytes == c)) | |
178 | 178 | then true | |
179 | 179 | else (K.caller.bytes == d)) | |
180 | 180 | then { | |
181 | 181 | let Q = toBase58String(K.transactionId) | |
182 | 182 | WriteSet([DataEntry(r(Q), ((((((((L + "_") + M) + "_") + N) + "_") + O) + "_") + P)), DataEntry(t(Q, "upvote"), 0), DataEntry(j(Q, "upvote"), 0), DataEntry(s(Q), "open")]) | |
183 | 183 | } | |
184 | 184 | else throw("Only Dyzrupt Admin can call this dApp function") | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Callable(K) | |
189 | 189 | func vote (w,z) = { | |
190 | 190 | let R = extract(K.payment) | |
191 | 191 | let H = toBase58String(K.caller.bytes) | |
192 | 192 | if ((R.amount == 0)) | |
193 | 193 | then throw("You cannot vote without paying voting fee") | |
194 | 194 | else if ((R.assetId != e)) | |
195 | 195 | then throw("You can only vote with DYZRUPT token") | |
196 | 196 | else if (G(toBase58String(K.caller.bytes), w)) | |
197 | 197 | then if (u(w)) | |
198 | 198 | then if ((v(w) == "open")) | |
199 | 199 | then if ((z == a)) | |
200 | 200 | then { | |
201 | 201 | let S = C(w, z) | |
202 | 202 | let T = y(w, z) | |
203 | 203 | let U = (S + 1) | |
204 | 204 | let V = (T + R.amount) | |
205 | 205 | ScriptResult(WriteSet([DataEntry(t(w, z), U), DataEntry(D(H, w), w), DataEntry(x(H, w), R.amount), DataEntry(j(w, z), V)]), TransferSet([ScriptTransfer(this, R.amount, e)])) | |
206 | 206 | } | |
207 | 207 | else throw("Not a valid vote value") | |
208 | 208 | else throw("This profile is not open for voting") | |
209 | 209 | else throw("Invalid Profile") | |
210 | 210 | else throw("You can't vote twice") | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(K) | |
216 | 216 | func openVote (w) = if (if (if ((K.caller.bytes == b)) | |
217 | 217 | then true | |
218 | 218 | else (K.caller.bytes == c)) | |
219 | 219 | then true | |
220 | 220 | else (K.caller.bytes == d)) | |
221 | 221 | then if (u(w)) | |
222 | 222 | then WriteSet([DataEntry(s(w), "open")]) | |
223 | 223 | else throw("Invalid ID") | |
224 | 224 | else throw("Only Dyzrupt Admin can call this dApp function") | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | ||
228 | 228 | @Callable(K) | |
229 | 229 | func closeVote (w) = if (if (if ((K.caller.bytes == b)) | |
230 | 230 | then true | |
231 | 231 | else (K.caller.bytes == c)) | |
232 | 232 | then true | |
233 | 233 | else (K.caller.bytes == d)) | |
234 | 234 | then if (u(w)) | |
235 | 235 | then WriteSet([DataEntry(s(w), "closed")]) | |
236 | 236 | else throw("Invalid ID") | |
237 | 237 | else throw("Only Dyzrupt Admin can call this dApp function") | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(K) | |
242 | 242 | func withdraw (w) = { | |
243 | 243 | let H = toBase58String(K.caller.bytes) | |
244 | 244 | if ((F(H, w) != "")) | |
245 | 245 | then if ((v(w) == "closed")) | |
246 | 246 | then { | |
247 | 247 | let W = x(H, w) | |
248 | 248 | let X = { | |
249 | 249 | let h = getInteger(this, W) | |
250 | 250 | if ($isInstanceOf(h, "Int")) | |
251 | 251 | then { | |
252 | 252 | let i = h | |
253 | 253 | i | |
254 | 254 | } | |
255 | 255 | else throw("You didn't vote for this entrepreneur") | |
256 | 256 | } | |
257 | 257 | if ((X == 0)) | |
258 | 258 | then throw("Seems you have previously withdrawn.") | |
259 | 259 | else ScriptResult(WriteSet([DataEntry(W, 0)]), TransferSet([ScriptTransfer(K.caller, X, e)])) | |
260 | 260 | } | |
261 | 261 | else throw("Can't withdraw vote amount while voting is still open.") | |
262 | 262 | else throw("You didn't vote for this entrepreneur") | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
267 | 267 | @Callable(K) | |
268 | 268 | func stake () = { | |
269 | 269 | let p = toBase58String(K.caller.bytes) | |
270 | 270 | let R = extract(K.payment) | |
271 | 271 | if ((R.amount == 0)) | |
272 | 272 | then throw("Stake amount too low") | |
273 | 273 | else if ((R.assetId != e)) | |
274 | 274 | then throw("You can only stake with DYZRUPT token") | |
275 | 275 | else { | |
276 | 276 | let Y = q(p) | |
277 | 277 | let Z = fraction(R.amount, 5, 100) | |
278 | 278 | let aa = (R.amount - Z) | |
279 | 279 | let ab = (Y + aa) | |
280 | 280 | let ac = g() | |
281 | 281 | let ad = (ac + Z) | |
282 | 282 | let ae = (n() + aa) | |
283 | 283 | ScriptResult(WriteSet([DataEntry(o(p), ab), DataEntry(m(), ae), DataEntry(f(), ad)]), TransferSet(nil)) | |
284 | 284 | } | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | ||
289 | 289 | @Callable(K) | |
290 | 290 | func unstake (af) = { | |
291 | 291 | let p = toBase58String(K.caller.bytes) | |
292 | 292 | let Y = q(p) | |
293 | 293 | if ((Y == 0)) | |
294 | 294 | then throw("You don't have any stakes") | |
295 | 295 | else if ((af > Y)) | |
296 | 296 | then throw("You can't withdraw an amount higher than you staked") | |
297 | 297 | else { | |
298 | 298 | let ag = fraction(af, 10, 100) | |
299 | 299 | let ah = (af - ag) | |
300 | 300 | let ai = (Y - af) | |
301 | 301 | let ac = g() | |
302 | 302 | let ad = (ac + ag) | |
303 | 303 | let ae = (n() - af) | |
304 | 304 | ScriptResult(WriteSet([DataEntry(o(p), ai), DataEntry(m(), ae), DataEntry(f(), ad)]), TransferSet([ScriptTransfer(K.caller, ah, e)])) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(K) | |
311 | 311 | func claimDailyStakeReward () = { | |
312 | 312 | let p = toBase58String(K.caller.bytes) | |
313 | 313 | let Y = q(p) | |
314 | 314 | let ac = g() | |
315 | 315 | let aj = height | |
316 | 316 | let ak = A(p) | |
317 | 317 | let al = I() | |
318 | 318 | let am = J(p) | |
319 | 319 | let an = fraction(Y, ac, n()) | |
320 | 320 | if ((Y == 0)) | |
321 | 321 | then throw("You don't have any stakes") | |
322 | 322 | else if ((ac == 0)) | |
323 | 323 | then throw("Nothing in Stake pool at this time. Try again later") | |
324 | 324 | else if ((an > ac)) | |
325 | 325 | then throw("No rewards at this time") | |
326 | 326 | else if (((ak + 1440) > aj)) | |
327 | 327 | then throw("You can only claim once a day") | |
328 | 328 | else { | |
329 | 329 | let ad = (ac - an) | |
330 | 330 | let ao = Y | |
331 | 331 | ScriptResult(WriteSet([DataEntry(("claimed_total_" + p), (am + an)), DataEntry("claimed_total", (al + an)), DataEntry(("last_claim_" + p), aj), DataEntry(o(p), ao), DataEntry(f(), ad)]), TransferSet([ScriptTransfer(K.caller, an, e)])) | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 |
github/deemru/w8io/169f3d6 42.80 ms ◑