tx · 13E9BawDkWAXdGT6f97qxae8jqNjpEK4zdNQZCnimPKh 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ: -0.01400000 Waves 2021.05.31 13:10 [1549715] smart account 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ > SELF 0.00000000 Waves
{ "type": 13, "id": "13E9BawDkWAXdGT6f97qxae8jqNjpEK4zdNQZCnimPKh", "fee": 1400000, "feeAssetId": null, "timestamp": 1622455840398, "version": 2, "chainId": 84, "sender": "3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ", "senderPublicKey": "Dkwrk2dDeUwNM8gVg17qj6fCpJ2e7Qb2myPi1FE9Y6is", "proofs": [ "4o8ngswwgmKfQw3MXc7qrd1mN2na2WdQqZMvPd56iEZtxPcshgycaz9CHNuYcnh1B6CvDkLbnXEMeMgDtNZXa5ap" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIYEQAAAB4AAAAADGFkbWluUHViS2V5MQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MgEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MwEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdGVfU1dPU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UG9vbEZyZWV6ZVNXT1BuZXcJAARMAAAAAgUAAAAOdXNlclVudm90ZWROZXcJAARMAAAAAgUAAAAUdXNlclVudm90ZWRQZXJpb2ROZXcJAARMAAAAAgUAAAAPcG9vbFZvdGVTV09QbmV3CQAETAAAAAIFAAAAEXBvb2xBY3RpdmVTV09QbmV3CQAETAAAAAIFAAAAEHRvdGFsVm90ZVNXT1BuZXcJAARMAAAAAgUAAAASdG90YWxBY3RpdmVTV09QbmV3BQAAAANuaWwDCQAAZgAAAAIAAAAAAAAAAAAJAAGXAAAAAQUAAAAMYWxsTmV3VmFsdWVzCQAAAgAAAAECAAAAH09uZSBvciBtb3JlIHZhbHVlcyBhcmUgbmVnYXRpdmUJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIFAAAADXVzZXJQb29sRW50cnkFAAAADnVzZXJUb3RhbEVudHJ5BQAAAAlwb29sRW50cnkFAAAACnRvdGFsRW50cnkJAQAAAA9jYWxjRGVsZXRlRW50cnkAAAADCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAALcG9vbEFkZHJlc3MFAAAAE3VzZXJQb29sVm90ZVNXT1BuZXcFAAAAH2hhcnZlc3RQb29sQWN0aXZlVm90ZVN0cnVjRW50cnkFAAAAI2hhcnZlc3RVc2VyUG9vbEFjdGl2ZVZvdGVTdHJ1Y0VudHJ5AAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkdtVtC", "height": 1549715, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6cG22wDnKnbmqs93Goyk5VojGCQDLeLxwLnqXKwt3x2i Next: GMoFeieSfinpWEfsBHuwheMFJFwTyaaHVfiC6CN1Hcwp Diff:
Old | New | Differences | |
---|---|---|---|
158 | 158 | else if ((0 > O)) | |
159 | 159 | then throw("New userPoolVoteSWOPnew < 0") | |
160 | 160 | else { | |
161 | - | let at = split(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), "_") | |
162 | - | let au = split(getStringValue(this, (D + i)), "_") | |
163 | - | let av = if ((z != parseInt(au[2]))) | |
161 | + | let at = split(valueOrElse(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), ""), "_") | |
162 | + | let au = split(valueOrElse(getStringValue(this, (D + i)), ""), "_") | |
163 | + | let av = if (if ((valueOrElse(getStringValue(this, (D + i)), "") != "")) | |
164 | + | then (z != parseInt(au[2])) | |
165 | + | else false) | |
164 | 166 | then { | |
165 | 167 | let aw = ((au[1] + "_") + au[2]) | |
166 | 168 | [StringEntry((D + l), aw)] | |
167 | 169 | } | |
168 | 170 | else nil | |
169 | - | let ax = if ((z != parseInt(at[2]))) | |
171 | + | let ax = if (if ((valueOrElse(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), "") != "")) | |
172 | + | then (z != parseInt(at[2])) | |
173 | + | else false) | |
170 | 174 | then { | |
171 | 175 | let ay = ((at[1] + "_") + at[2]) | |
172 | 176 | [StringEntry((((toString(S.caller) + "_") + D) + m), ay)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let b = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let c = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let d = "_vote" | |
11 | 11 | ||
12 | 12 | let e = "_user_pool_struc" | |
13 | 13 | ||
14 | 14 | let f = "_user_total_SWOP_vote" | |
15 | 15 | ||
16 | 16 | let g = "_user_total_struc" | |
17 | 17 | ||
18 | 18 | let h = "_vote_SWOP" | |
19 | 19 | ||
20 | 20 | let i = "_pool_struc" | |
21 | 21 | ||
22 | 22 | let j = "total_vote_SWOP" | |
23 | 23 | ||
24 | 24 | let k = "total_struc" | |
25 | 25 | ||
26 | 26 | let l = "_harvest_pool_activeVote_struc" | |
27 | 27 | ||
28 | 28 | let m = "_harvest_user_pool_activeVote_struc" | |
29 | 29 | ||
30 | 30 | let n = "start_height" | |
31 | 31 | ||
32 | 32 | let o = "base_period" | |
33 | 33 | ||
34 | 34 | let p = "period_length" | |
35 | 35 | ||
36 | 36 | let q = "duration_full_vote_power" | |
37 | 37 | ||
38 | 38 | let r = "min_vote_power" | |
39 | 39 | ||
40 | 40 | let s = 100000000 | |
41 | 41 | ||
42 | 42 | let t = valueOrErrorMessage(getInteger(this, o), "Empty kBasePeriod") | |
43 | 43 | ||
44 | 44 | let u = valueOrErrorMessage(getInteger(this, n), "Empty kStartHeight") | |
45 | 45 | ||
46 | 46 | let v = valueOrErrorMessage(getInteger(this, p), "Empty kPeriodLength") | |
47 | 47 | ||
48 | 48 | let w = valueOrErrorMessage(getInteger(this, q), "Empty kDurationFullVotePower") | |
49 | 49 | ||
50 | 50 | let x = valueOrErrorMessage(getInteger(this, r), "Empty kMinVotePower") | |
51 | 51 | ||
52 | 52 | let y = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
53 | 53 | ||
54 | 54 | let z = (t + ((height - u) / v)) | |
55 | 55 | ||
56 | 56 | func A (B) = if ((valueOrElse(getInteger(y, (toString(B) + "_SWOP_amount")), 0) > 0)) | |
57 | 57 | then true | |
58 | 58 | else false | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (D) = isDefined(getInteger(y, (D + "_current_pool_fraction_reward"))) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func E () = { | |
65 | 65 | let F = (height - (u + (z * v))) | |
66 | 66 | if ((w > F)) | |
67 | 67 | then s | |
68 | 68 | else { | |
69 | 69 | let G = w | |
70 | 70 | let H = s | |
71 | 71 | let I = v | |
72 | 72 | let J = x | |
73 | 73 | let K = (((J - H) * s) / (I - G)) | |
74 | 74 | let L = ((H * s) - (K * G)) | |
75 | 75 | (((F * K) / s) + (L / s)) | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func M (N,D,O) = { | |
81 | 81 | func P (Q,R) = if (isDefined(getInteger(this, R))) | |
82 | 82 | then (Q :+ DeleteEntry(R)) | |
83 | 83 | else Q | |
84 | 84 | ||
85 | 85 | P(P(P(P(nil, (((N + "_") + D) + d)), (N + f)), (D + h)), j) | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(S) | |
90 | 90 | func votePoolWeight (T,U) = if (if ((size(T) > 1)) | |
91 | 91 | then true | |
92 | 92 | else (size(U) > 1)) | |
93 | 93 | then throw("poolAddressesL.size > 1 or poolsVoteSWOPNewL.size > 1") | |
94 | 94 | else { | |
95 | 95 | let D = T[0] | |
96 | 96 | let O = U[0] | |
97 | 97 | if (!(C(D))) | |
98 | 98 | then throw("This pool has no _current_pool_fraction_reward in Governance dApp") | |
99 | 99 | else { | |
100 | 100 | let V = valueOrErrorMessage(getInteger(y, (toString(S.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
101 | 101 | let W = if (isDefined(getString(this, (((toString(S.caller) + "_") + D) + e)))) | |
102 | 102 | then { | |
103 | 103 | let X = split(valueOrErrorMessage(getString(this, (((toString(S.caller) + "_") + D) + e)), "Empty kUserPoolStruc"), "_") | |
104 | 104 | $Tuple4(parseIntValue(X[0]), parseIntValue(X[1]), parseIntValue(X[2]), parseIntValue(X[3])) | |
105 | 105 | } | |
106 | 106 | else { | |
107 | 107 | let Y = valueOrElse(getInteger(this, (((toString(S.caller) + "_") + D) + d)), 0) | |
108 | 108 | $Tuple4(Y, Y, 0, 0) | |
109 | 109 | } | |
110 | 110 | let Z = W._1 | |
111 | 111 | let aa = W._2 | |
112 | 112 | let ab = W._3 | |
113 | 113 | let ac = W._4 | |
114 | 114 | let ad = if (isDefined(getString(this, (toString(S.caller) + g)))) | |
115 | 115 | then { | |
116 | 116 | let X = split(valueOrErrorMessage(getString(this, (toString(S.caller) + g)), "Empty kUserTotalStruc"), "_") | |
117 | 117 | $Tuple3(parseIntValue(X[0]), parseIntValue(X[1]), parseIntValue(X[2])) | |
118 | 118 | } | |
119 | 119 | else { | |
120 | 120 | let ae = valueOrElse(getInteger(this, (toString(S.caller) + f)), 0) | |
121 | 121 | $Tuple3(ae, 0, 0) | |
122 | 122 | } | |
123 | 123 | let af = ad._1 | |
124 | 124 | let ag = ad._2 | |
125 | 125 | let ah = ad._3 | |
126 | 126 | let ai = if (isDefined(getString(this, (D + i)))) | |
127 | 127 | then { | |
128 | 128 | let X = split(valueOrErrorMessage(getString(this, (D + i)), "Empty kPoolStruc"), "_") | |
129 | 129 | $Tuple3(parseIntValue(X[0]), parseIntValue(X[1]), parseIntValue(X[2])) | |
130 | 130 | } | |
131 | 131 | else { | |
132 | 132 | let Y = valueOrElse(getInteger(this, (D + h)), 0) | |
133 | 133 | $Tuple4(Y, Y, 0, 0) | |
134 | 134 | } | |
135 | 135 | let aj = ai._1 | |
136 | 136 | let ak = ai._2 | |
137 | 137 | let al = ai._3 | |
138 | 138 | let am = if (isDefined(getString(this, k))) | |
139 | 139 | then { | |
140 | 140 | let X = split(valueOrErrorMessage(getString(this, k), "Empty kTotalStruc"), "_") | |
141 | 141 | $Tuple3(parseIntValue(X[0]), parseIntValue(X[1]), parseIntValue(X[2])) | |
142 | 142 | } | |
143 | 143 | else { | |
144 | 144 | let an = valueOrElse(getInteger(this, j), 0) | |
145 | 145 | $Tuple4(an, an, 0, 0) | |
146 | 146 | } | |
147 | 147 | let ao = am._1 | |
148 | 148 | let ap = am._2 | |
149 | 149 | let aq = am._3 | |
150 | 150 | let ar = (O - Z) | |
151 | 151 | let as = (af + ar) | |
152 | 152 | if (!(A(S.caller))) | |
153 | 153 | then throw("This address has 0 SWOP in Governance dApp") | |
154 | 154 | else if ((as > V)) | |
155 | 155 | then throw(((((toString(this) + " has ") + toString(V)) + " SWOP in governance. New SWOP in voting ") + toString(as))) | |
156 | 156 | else if ((0 > as)) | |
157 | 157 | then throw("New userTotalVoteSWOPnew < 0") | |
158 | 158 | else if ((0 > O)) | |
159 | 159 | then throw("New userPoolVoteSWOPnew < 0") | |
160 | 160 | else { | |
161 | - | let at = split(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), "_") | |
162 | - | let au = split(getStringValue(this, (D + i)), "_") | |
163 | - | let av = if ((z != parseInt(au[2]))) | |
161 | + | let at = split(valueOrElse(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), ""), "_") | |
162 | + | let au = split(valueOrElse(getStringValue(this, (D + i)), ""), "_") | |
163 | + | let av = if (if ((valueOrElse(getStringValue(this, (D + i)), "") != "")) | |
164 | + | then (z != parseInt(au[2])) | |
165 | + | else false) | |
164 | 166 | then { | |
165 | 167 | let aw = ((au[1] + "_") + au[2]) | |
166 | 168 | [StringEntry((D + l), aw)] | |
167 | 169 | } | |
168 | 170 | else nil | |
169 | - | let ax = if ((z != parseInt(at[2]))) | |
171 | + | let ax = if (if ((valueOrElse(getStringValue(this, (((toString(S.caller) + "_") + D) + e)), "") != "")) | |
172 | + | then (z != parseInt(at[2])) | |
173 | + | else false) | |
170 | 174 | then { | |
171 | 175 | let ay = ((at[1] + "_") + at[2]) | |
172 | 176 | [StringEntry((((toString(S.caller) + "_") + D) + m), ay)] | |
173 | 177 | } | |
174 | 178 | else nil | |
175 | 179 | if ((O >= Z)) | |
176 | 180 | then { | |
177 | 181 | let az = E() | |
178 | 182 | let aA = if ((ab == z)) | |
179 | 183 | then (aa + fraction(ar, az, s)) | |
180 | 184 | else (Z + fraction(ar, az, s)) | |
181 | 185 | let aB = if ((ab == z)) | |
182 | 186 | then ac | |
183 | 187 | else Z | |
184 | 188 | let aC = if ((ah == z)) | |
185 | 189 | then max([0, (ag - ar)]) | |
186 | 190 | else 0 | |
187 | 191 | let aD = z | |
188 | 192 | let aE = ((((((toString(O) + "_") + toString(aA)) + "_") + toString(z)) + "_") + toString(aB)) | |
189 | 193 | let aF = [StringEntry((((toString(S.caller) + "_") + D) + e), aE)] | |
190 | 194 | let aG = ((((toString(as) + "_") + toString(aC)) + "_") + toString(aD)) | |
191 | 195 | let aH = [StringEntry((toString(S.caller) + g), aG)] | |
192 | 196 | let aI = (aj + ar) | |
193 | 197 | let aJ = if ((al == z)) | |
194 | 198 | then (ak + fraction(ar, az, s)) | |
195 | 199 | else (aj + fraction(ar, az, s)) | |
196 | 200 | let aK = ((((toString(aI) + "_") + toString(aJ)) + "_") + toString(z)) | |
197 | 201 | let aL = [StringEntry((D + i), aK)] | |
198 | 202 | let aM = (ao + ar) | |
199 | 203 | let aN = if ((aq == z)) | |
200 | 204 | then (ap + fraction(ar, az, s)) | |
201 | 205 | else (ao + fraction(ar, az, s)) | |
202 | 206 | let aO = ((((toString(aM) + "_") + toString(aN)) + "_") + toString(z)) | |
203 | 207 | let aP = [StringEntry(k, aO)] | |
204 | 208 | ((((((aF ++ aH) ++ aL) ++ aP) ++ M(toString(S.caller), D, O)) ++ av) ++ ax) | |
205 | 209 | } | |
206 | 210 | else { | |
207 | 211 | let aQ = -(ar) | |
208 | 212 | let aB = if ((ab == z)) | |
209 | 213 | then ac | |
210 | 214 | else Z | |
211 | 215 | let aR = min([ac, Z]) | |
212 | 216 | let aS = min([aB, O]) | |
213 | 217 | let aA = (aS + (if (((Z - ac) == 0)) | |
214 | 218 | then 0 | |
215 | 219 | else fraction((aa - ac), (O - aS), (Z - ac)))) | |
216 | 220 | let aT = (aA - (if ((ab == z)) | |
217 | 221 | then aa | |
218 | 222 | else Z)) | |
219 | 223 | let aU = max([0, (aQ - (if ((ab == z)) | |
220 | 224 | then (Z - aR) | |
221 | 225 | else 0))]) | |
222 | 226 | let aC = (aU + (if ((ah == z)) | |
223 | 227 | then ag | |
224 | 228 | else 0)) | |
225 | 229 | let aD = if ((aU > 0)) | |
226 | 230 | then z | |
227 | 231 | else ah | |
228 | 232 | let aE = ((((((toString(O) + "_") + toString(aA)) + "_") + toString(z)) + "_") + toString(aB)) | |
229 | 233 | let aF = [StringEntry((((toString(S.caller) + "_") + D) + e), aE)] | |
230 | 234 | let aG = ((((toString(as) + "_") + toString(aC)) + "_") + toString(aD)) | |
231 | 235 | let aH = [StringEntry((toString(S.caller) + g), aG)] | |
232 | 236 | let aI = (aj - aQ) | |
233 | 237 | let aJ = if ((al == z)) | |
234 | 238 | then (ak + aT) | |
235 | 239 | else (aj + aT) | |
236 | 240 | let aK = ((((toString(aI) + "_") + toString(aJ)) + "_") + toString(z)) | |
237 | 241 | let aL = [StringEntry((D + i), aK)] | |
238 | 242 | let aM = (ao - aQ) | |
239 | 243 | let aN = if ((aq == z)) | |
240 | 244 | then (ap + aT) | |
241 | 245 | else (ao + aT) | |
242 | 246 | let aO = ((((toString(aM) + "_") + toString(aN)) + "_") + toString(z)) | |
243 | 247 | let aP = [StringEntry(k, aO)] | |
244 | 248 | let aV = [z, aB, aA, aB, aC, aD, aI, aJ, aM, aN] | |
245 | 249 | if ((0 > min(aV))) | |
246 | 250 | then throw("One or more values are negative") | |
247 | 251 | else ((((((aF ++ aH) ++ aL) ++ aP) ++ M(toString(S.caller), D, O)) ++ av) ++ ax) | |
248 | 252 | } | |
249 | 253 | } | |
250 | 254 | } | |
251 | 255 | } | |
252 | 256 | ||
253 | 257 | ||
254 | 258 | @Verifier(aW) | |
255 | 259 | func aX () = sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey) | |
256 | 260 |
github/deemru/w8io/026f985 40.57 ms ◑