tx · HqpzCEjASLRkNMN8iZFwLM1yHFGrAaaNhAijQkUqvRAt 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6: -0.01400000 Waves 2021.04.29 18:35 [1503929] smart account 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "HqpzCEjASLRkNMN8iZFwLM1yHFGrAaaNhAijQkUqvRAt", "fee": 1400000, "feeAssetId": null, "timestamp": 1619710521281, "version": 2, "chainId": 84, "sender": "3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6", "senderPublicKey": "75SuvmjmHX6J7smVGHvWY6acr5mqyRQCYpFxeFQh8Cy3", "proofs": [ "GiK4NFwu8ZcZoij4b7ZdSBEzmegWsNeEVqKnhRUibYvBobSPTgcou6x1Q1p4hgJVAqVNCfexAUKck1dv6mitENp" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAAvAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAABRrZXlNYXhBbW91bnRPZlZvdGluZwIAAAARbWF4X2Ftb3VudF92b3RpbmcAAAAAEWtleU1heERheU9mVm90aW5nAgAAAA5tYXhfZGF5X3ZvdGluZwAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb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V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkBAAAAB3N1c3BlbmQAAAABAgAAAA9QYXVzZWQgYnkgYWRtaW4AAAABaQEAAAAIYWN0aXZhdGUAAAAAAwUAAAAIaXNBY3RpdmUJAAACAAAAAQIAAAAWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQMJAQAAAAEhAAAAAQkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkhglAT", "height": 1503929, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9T4G6oK8usnDWwPPChdHP2Nx8vsqfRxqn4VENfHxkMXB Next: E2x3jdq4zy1V4SzhLuFhDcKbWLCxbcV4a4nUEQWf7299 Diff:
Old | New | Differences | |
---|---|---|---|
75 | 75 | ||
76 | 76 | let K = 5 | |
77 | 77 | ||
78 | - | let L = | |
78 | + | let L = (1440 * K) | |
79 | 79 | ||
80 | 80 | func M (N) = if ((N == "WAVES")) | |
81 | 81 | then unit |
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 = "number_voting" | |
11 | 11 | ||
12 | 12 | let e = "_height" | |
13 | 13 | ||
14 | 14 | let f = "_no" | |
15 | 15 | ||
16 | 16 | let g = "_yes" | |
17 | 17 | ||
18 | 18 | let h = "_status" | |
19 | 19 | ||
20 | 20 | let i = "amount_voting" | |
21 | 21 | ||
22 | 22 | let j = "max_amount_voting" | |
23 | 23 | ||
24 | 24 | let k = "max_day_voting" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "_cancel_cause" | |
33 | 33 | ||
34 | 34 | let p = "_SWOP_amount" | |
35 | 35 | ||
36 | 36 | let q = "_name" | |
37 | 37 | ||
38 | 38 | let r = "_votingId" | |
39 | 39 | ||
40 | 40 | let s = "period_voting" | |
41 | 41 | ||
42 | 42 | let t = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
43 | 43 | ||
44 | 44 | let u = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
45 | 45 | ||
46 | 46 | let v = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
47 | 47 | ||
48 | 48 | let w = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
49 | 49 | ||
50 | 50 | let x = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
51 | 51 | ||
52 | 52 | let y = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
53 | 53 | ||
54 | 54 | let z = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
55 | 55 | ||
56 | 56 | let A = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
57 | 57 | ||
58 | 58 | let B = getBooleanValue(this, c) | |
59 | 59 | ||
60 | 60 | let C = getIntegerValue(this, d) | |
61 | 61 | ||
62 | 62 | let D = getIntegerValue(this, i) | |
63 | 63 | ||
64 | 64 | let E = 1000000000 | |
65 | 65 | ||
66 | 66 | let F = 1000 | |
67 | 67 | ||
68 | 68 | let G = 100000000 | |
69 | 69 | ||
70 | 70 | let H = 1000 | |
71 | 71 | ||
72 | 72 | let I = 8 | |
73 | 73 | ||
74 | 74 | let J = 5 | |
75 | 75 | ||
76 | 76 | let K = 5 | |
77 | 77 | ||
78 | - | let L = | |
78 | + | let L = (1440 * K) | |
79 | 79 | ||
80 | 80 | func M (N) = if ((N == "WAVES")) | |
81 | 81 | then unit | |
82 | 82 | else fromBase58String(N) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func O (P) = { | |
86 | 86 | let Q = P | |
87 | 87 | if ($isInstanceOf(Q, "ByteVector")) | |
88 | 88 | then { | |
89 | 89 | let R = Q | |
90 | 90 | if (isDefined(assetInfo(R))) | |
91 | 91 | then { | |
92 | 92 | let S = toBase58String(R) | |
93 | 93 | let T = valueOrErrorMessage(assetInfo(R), (("Asset " + S) + " doesn't exist")) | |
94 | 94 | $Tuple3(S, T.name, T.decimals) | |
95 | 95 | } | |
96 | 96 | else throw("Asset is not define") | |
97 | 97 | } | |
98 | 98 | else if ($isInstanceOf(Q, "Unit")) | |
99 | 99 | then { | |
100 | 100 | let U = Q | |
101 | 101 | $Tuple3("WAVES", "WAVES", 8) | |
102 | 102 | } | |
103 | 103 | else throw("Match error") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func V (W) = isDefined(getInteger(this, W)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func X (D,Y,Z) = if (if (if (if (V((((((Y + "_") + Z) + "_") + toString((D - 1))) + r))) | |
111 | 111 | then true | |
112 | 112 | else V((((((Y + "_") + Z) + "_") + toString((D - 2))) + r))) | |
113 | 113 | then true | |
114 | 114 | else V((((((Y + "_") + Z) + "_") + toString((D - 3))) + r))) | |
115 | 115 | then true | |
116 | 116 | else V((((((Y + "_") + Z) + "_") + toString((D - 4))) + r))) | |
117 | 117 | then true | |
118 | 118 | else V((((((Y + "_") + Z) + "_") + toString((D - 5))) + r)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func aa (ab) = if ((valueOrElse(getInteger(y, (toString(ab) + p)), 0) > 0)) | |
122 | 122 | then true | |
123 | 123 | else false | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ac (ad) = { | |
127 | 127 | let ae = valueOrElse(getInteger(this, (toString(ad) + e)), 0) | |
128 | 128 | let af = valueOrElse(getBoolean(this, (toString(ad) + h)), true) | |
129 | 129 | let ag = height | |
130 | 130 | if ((0 > ad)) | |
131 | 131 | then 0 | |
132 | 132 | else if (!(af)) | |
133 | 133 | then 0 | |
134 | 134 | else if ((ae > ag)) | |
135 | 135 | then 1 | |
136 | 136 | else 0 | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func ah (ad) = ((((ac((ad - 1)) + ac((ad - 2))) + ac((ad - 3))) + ac((ad - 4))) + ac((ad - 5))) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ai (aj) = [BooleanEntry(c, false), StringEntry(n, aj)] | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ak (al,am) = throw(((((("Insufficient DApp balance to pay " + toString(al)) + " ") + am) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Callable(an) | |
150 | 150 | func init () = if ((an.caller != this)) | |
151 | 151 | then throw("Only the DApp itself can call this function") | |
152 | 152 | else if (isDefined(getBoolean(this, c))) | |
153 | 153 | then throw("DApp is already active") | |
154 | 154 | else { | |
155 | 155 | let ao = 0 | |
156 | 156 | let ap = 0 | |
157 | 157 | let aq = true | |
158 | 158 | [StringEntry(b, a), BooleanEntry(c, aq), IntegerEntry(d, ao), IntegerEntry(i, ap), IntegerEntry(j, J), IntegerEntry(k, K)] | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(an) | |
164 | 164 | func initVotingForNewPool (Y,Z) = { | |
165 | 165 | let ar = $Tuple2(an.payments[0].amount, an.payments[0].assetId) | |
166 | 166 | let as = ar._1 | |
167 | 167 | let at = ar._2 | |
168 | 168 | let au = $Tuple2(M(Y), M(Z)) | |
169 | 169 | let av = au._1 | |
170 | 170 | let aw = au._2 | |
171 | 171 | let ax = ah(D) | |
172 | 172 | let ay = X(D, Y, Z) | |
173 | 173 | let az = O(av) | |
174 | 174 | let aA = az._1 | |
175 | 175 | let aB = az._2 | |
176 | 176 | let aC = az._3 | |
177 | 177 | let aD = O(aw) | |
178 | 178 | let aE = aD._1 | |
179 | 179 | let aF = aD._2 | |
180 | 180 | let aG = aD._3 | |
181 | 181 | if (!(B)) | |
182 | 182 | then throw("DApp is inactive at this moment") | |
183 | 183 | else if ((av == aw)) | |
184 | 184 | then throw("Assets must be different") | |
185 | 185 | else if ((size(an.payments) != 1)) | |
186 | 186 | then throw("One attached assets expected") | |
187 | 187 | else if (ay) | |
188 | 188 | then throw("This pool already exists") | |
189 | 189 | else if ((at != A)) | |
190 | 190 | then throw("You must use a SWOP token") | |
191 | 191 | else if (if ((Y == "")) | |
192 | 192 | then true | |
193 | 193 | else (Z == "")) | |
194 | 194 | then throw("Assets can't be empty") | |
195 | 195 | else if ((as != E)) | |
196 | 196 | then throw("You need to attach 10 SWOP tokens") | |
197 | 197 | else if ((ax > J)) | |
198 | 198 | then throw(("Too many votes. Maximum quantity -" + toString(J))) | |
199 | 199 | else if (!(if (if ((aw == z)) | |
200 | 200 | then true | |
201 | 201 | else (av == unit)) | |
202 | 202 | then true | |
203 | 203 | else (av == A))) | |
204 | 204 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
205 | 205 | else [IntegerEntry((((((Y + "_") + Z) + "_") + toString(D)) + r), D), IntegerEntry((toString(D) + e), (height + L)), BooleanEntry((toString(D) + h), true), IntegerEntry(i, (D + 1)), IntegerEntry(d, (ax + 1)), StringEntry((Y + q), aB), StringEntry((Z + q), aF), ScriptTransfer(x, as, at)] | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | ||
210 | 210 | @Callable(an) | |
211 | 211 | func voteForPool (ad,aH,aI) = { | |
212 | 212 | let ag = height | |
213 | 213 | let aJ = valueOrErrorMessage(getIntegerValue(this, (toString(ad) + e)), "Empty pool height") | |
214 | 214 | let aK = valueOrElse(getInteger(y, (toString(an.caller) + p)), 0) | |
215 | 215 | let aL = ((valueOrElse(getInteger(this, (((toString(an.caller) + "_") + toString(ad)) + g)), 0) + valueOrElse(getInteger(this, (((toString(an.caller) + "_") + toString(ad)) + f)), 0)) + aI) | |
216 | 216 | if (!(aa(an.caller))) | |
217 | 217 | then throw("This address has 0 SWOP in Governance dApp") | |
218 | 218 | else if ((ag > aJ)) | |
219 | 219 | then [IntegerEntry(d, (C - 1))] | |
220 | 220 | else if ((0 > aI)) | |
221 | 221 | then throw("The number of votes must be positive") | |
222 | 222 | else if ((aL > aK)) | |
223 | 223 | then throw((((toString(this) + " has ") + toString(aK)) + " SWOP in governance.")) | |
224 | 224 | else if (aH) | |
225 | 225 | then { | |
226 | 226 | let aM = valueOrElse(getInteger(this, (((toString(an.caller) + "_") + toString(ad)) + g)), 0) | |
227 | 227 | let aN = ((valueOrElse(getInteger(this, (toString(ad) + g)), 0) - aM) + aI) | |
228 | 228 | [IntegerEntry((toString(ad) + g), aN), IntegerEntry((((toString(an.caller) + "_") + toString(ad)) + g), aI)] | |
229 | 229 | } | |
230 | 230 | else { | |
231 | 231 | let aM = valueOrElse(getInteger(this, (((toString(an.caller) + "_") + toString(ad)) + f)), 0) | |
232 | 232 | let aN = ((valueOrElse(getInteger(this, (toString(ad) + f)), 0) - aM) + aI) | |
233 | 233 | [IntegerEntry((toString(ad) + f), aN), IntegerEntry((((toString(an.caller) + "_") + toString(ad)) + f), aI)] | |
234 | 234 | } | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Callable(an) | |
240 | 240 | func cancellationVoting (ad,aj) = if (!(B)) | |
241 | 241 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
242 | 242 | else if (!(containsElement([t, u, v, w], an.callerPublicKey))) | |
243 | 243 | then throw("Only admin can call this function") | |
244 | 244 | else [IntegerEntry(d, (C - 1)), BooleanEntry((toString(ad) + h), false), StringEntry((toString(ad) + o), aj)] | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(an) | |
249 | 249 | func shutdown () = if (!(B)) | |
250 | 250 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
251 | 251 | else if (!(containsElement([t, u, v, w], an.callerPublicKey))) | |
252 | 252 | then throw("Only admin can call this function") | |
253 | 253 | else ai("Paused by admin") | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Callable(an) | |
258 | 258 | func activate () = if (B) | |
259 | 259 | then throw("DApp is already active") | |
260 | 260 | else if (!(containsElement([t, u, v, w], an.callerPublicKey))) | |
261 | 261 | then throw("Only admin can call this function") | |
262 | 262 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | @Verifier(aO) | |
266 | 266 | func aP () = sigVerify(aO.bodyBytes, aO.proofs[0], aO.senderPublicKey) | |
267 | 267 |
github/deemru/w8io/169f3d6 38.66 ms ◑