tx · GEfp81L4wJFhnkKYyP4AZwaYMS5ykBaiowaejFjjWggn 3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8: -0.01400000 Waves 2021.04.13 01:08 [1479818] smart account 3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8 > SELF 0.00000000 Waves
{ "type": 13, "id": "GEfp81L4wJFhnkKYyP4AZwaYMS5ykBaiowaejFjjWggn", "fee": 1400000, "feeAssetId": null, "timestamp": 1618265326798, "version": 1, "sender": "3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8", "senderPublicKey": "ReiqufhbLnC2pPiXqQ3bQ8ZomvxLZFSa99hjbhLW98i", "proofs": [ "5KbKKMPLBs7SjMV2bdg7HgZwJdv3WdaReYjQ6S4CnrEDJfVXgqjcsG6Lh6A7K41XpQ93AoJ6YTr3TK592pnsqawd" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAABwAAAAADGFkbWluUHViS2V5MQEAAAAgugnXO4lZpNFdoP/xuzPQquE5aQ/L4r2R1jvuT16o4BMAAAAADGFkbWluUHViS2V5MgEAAAAgwpFEmbPSsLQNIqWRWL2IvKE3uwjL/92M5pTvWxYOfkAAAAAADGFkbWluUHViS2V5MwEAAAAgjh4XLnixBzv0SE56Myhgdih3/JnlkjCjIMLPqKvpDlUAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdGVfU1dPUAAAA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AACCQAAZQAAAAIFAAAADXRvdGFsVm90ZVNXT1AFAAAAD3RvdGFsRnJlZXplU1dPUAAAAAAAAAAAAAAAAAAAAAAAAAkAAGQAAAACBQAAABJ0b3RhbEZyZWV6ZVNXT1BuZXcJAABpAAAAAgkAAGgAAAACCQAAZQAAAAIFAAAAD3RvdGFsQWN0aXZlU1dPUAUAAAAPdG90YWxGcmVlemVTV09QCQAAZQAAAAIFAAAAEHRvdGFsVm90ZVNXT1BuZXcFAAAAEnRvdGFsRnJlZXplU1dPUG5ldwkAAGUAAAACBQAAAA10b3RhbFZvdGVTV09QBQAAAA90b3RhbEZyZWV6ZVNXT1AEAAAADXRvdGFsU3RydWNOZXcJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAQdG90YWxWb3RlU1dPUG5ldwIAAAABXwkAAaQAAAABBQAAABJ0b3RhbEFjdGl2ZVNXT1BuZXcCAAAAAV8JAAGkAAAAAQUAAAALdG90YWxQZXJpb2QCAAAAAV8JAAGkAAAAAQUAAAASdG90YWxGcmVlemVTV09QbmV3BAAAAAp0b3RhbEVudHJ5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAALcG9vbEFkZHJlc3MFAAAADmtVc2VyUG9vbFN0cnVjBQAAAA10b3RhbFN0cnVjTmV3BQAAAANuaWwJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgUAAAANdXNlclBvb2xFbnRyeQUAAAAOdXNlclRvdGFsRW50cnkFAAAACXBvb2xFbnRyeQUAAAAKdG90YWxFbnRyeQkBAAAAD2NhbGNEZWxldGVFbnRyeQAAAAMJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAtwb29sQWRkcmVzcwUAAAATdXNlclBvb2xWb3RlU1dPUG5ldwAAAADwoWbI", "chainId": 84, "height": 1479818, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5BFRs9331uUcj3d7YztXYYf1kg3nFkWUFYqRhxMFGDce Next: Bqw4jfy56249ofVE92xuUau3NXKfSLeye5anPngZYVbh Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | @Callable(R) | |
94 | 94 | func votePoolWeight (B,M) = { | |
95 | 95 | let S = valueOrErrorMessage(getInteger(w, (toString(R.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
96 | - | let T = if (isDefined( | |
96 | + | let T = if (isDefined(getString(this, (((toString(R.caller) + "_") + B) + e)))) | |
97 | 97 | then { | |
98 | 98 | let U = split(valueOrErrorMessage(getString(this, (((toString(R.caller) + "_") + B) + e)), "Empty kUserPoolStruc"), "_") | |
99 | 99 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) | |
106 | 106 | let X = T._2 | |
107 | 107 | let Y = T._3 | |
108 | 108 | let Z = T._4 | |
109 | - | let aa = if (isDefined( | |
109 | + | let aa = if (isDefined(getString(this, (toString(R.caller) + g)))) | |
110 | 110 | then { | |
111 | 111 | let U = split(valueOrErrorMessage(getString(this, (toString(R.caller) + g)), "Empty kUserTotalStruc"), "_") | |
112 | 112 | $Tuple3(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2])) | |
118 | 118 | let ac = aa._1 | |
119 | 119 | let ad = aa._2 | |
120 | 120 | let ae = aa._3 | |
121 | - | let af = if (isDefined(split( | |
121 | + | let af = if (isDefined(split(valueOrErrorMessage(getString(this, i), "Empty kPoolStruc"), "_"))) | |
122 | 122 | then { | |
123 | 123 | let U = split(valueOrErrorMessage(getString(this, i), "Empty kPoolStruc"), "_") | |
124 | 124 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) | |
131 | 131 | let ah = af._2 | |
132 | 132 | let ai = af._3 | |
133 | 133 | let aj = af._4 | |
134 | - | let ak = if (isDefined( | |
134 | + | let ak = if (isDefined(getString(this, k))) | |
135 | 135 | then { | |
136 | 136 | let U = split(valueOrErrorMessage(getString(this, k), "Empty kTotalStruc"), "_") | |
137 | 137 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let b = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let c = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
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 = "start_height" | |
27 | 27 | ||
28 | 28 | let m = "base_period" | |
29 | 29 | ||
30 | 30 | let n = "period_legth" | |
31 | 31 | ||
32 | 32 | let o = "duration_full_vote_power" | |
33 | 33 | ||
34 | 34 | let p = "min_vote_power" | |
35 | 35 | ||
36 | 36 | let q = 100000000 | |
37 | 37 | ||
38 | 38 | let r = valueOrErrorMessage(getInteger(this, m), "Empty kBasePeriod") | |
39 | 39 | ||
40 | 40 | let s = valueOrErrorMessage(getInteger(this, l), "Empty kStartHeight") | |
41 | 41 | ||
42 | 42 | let t = valueOrErrorMessage(getInteger(this, n), "Empty kPeriodLength") | |
43 | 43 | ||
44 | 44 | let u = valueOrErrorMessage(getInteger(this, n), "Empty kPeriodLength") | |
45 | 45 | ||
46 | 46 | let v = valueOrErrorMessage(getInteger(this, p), "Empty kMinVotePower") | |
47 | 47 | ||
48 | 48 | let w = Address(base58'3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj') | |
49 | 49 | ||
50 | 50 | let x = (r + ((height - s) / t)) | |
51 | 51 | ||
52 | 52 | func y (z) = if ((valueOrElse(getInteger(w, (toString(z) + "_SWOP_amount")), 0) > 0)) | |
53 | 53 | then true | |
54 | 54 | else false | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func A (B) = isDefined(getInteger(w, (B + "_current_pool_fraction_reward"))) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func C () = { | |
61 | 61 | let D = (height - (s + (x * t))) | |
62 | 62 | if ((u > D)) | |
63 | 63 | then q | |
64 | 64 | else { | |
65 | 65 | let E = u | |
66 | 66 | let F = q | |
67 | 67 | let G = t | |
68 | 68 | let H = v | |
69 | 69 | let I = (((H - F) * q) / (G - E)) | |
70 | 70 | let J = ((F * q) - (I * E)) | |
71 | 71 | (((D * I) / q) + (J / q)) | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func K (L,B,M) = { | |
77 | 77 | let N = if (isDefined((((L + "_") + B) + d))) | |
78 | 78 | then DeleteEntry((((L + "_") + B) + d)) | |
79 | 79 | else DeleteEntry("") | |
80 | 80 | let O = if (isDefined((L + f))) | |
81 | 81 | then DeleteEntry((L + f)) | |
82 | 82 | else DeleteEntry("") | |
83 | 83 | let P = if (isDefined((B + h))) | |
84 | 84 | then DeleteEntry((B + h)) | |
85 | 85 | else DeleteEntry("") | |
86 | 86 | let Q = if (isDefined(j)) | |
87 | 87 | then DeleteEntry(j) | |
88 | 88 | else DeleteEntry("") | |
89 | 89 | [N, O, P, Q] | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(R) | |
94 | 94 | func votePoolWeight (B,M) = { | |
95 | 95 | let S = valueOrErrorMessage(getInteger(w, (toString(R.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
96 | - | let T = if (isDefined( | |
96 | + | let T = if (isDefined(getString(this, (((toString(R.caller) + "_") + B) + e)))) | |
97 | 97 | then { | |
98 | 98 | let U = split(valueOrErrorMessage(getString(this, (((toString(R.caller) + "_") + B) + e)), "Empty kUserPoolStruc"), "_") | |
99 | 99 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) | |
100 | 100 | } | |
101 | 101 | else { | |
102 | 102 | let V = valueOrElse(getInteger(this, (((toString(R.caller) + "_") + B) + d)), 0) | |
103 | 103 | $Tuple4(V, V, 0, 0) | |
104 | 104 | } | |
105 | 105 | let W = T._1 | |
106 | 106 | let X = T._2 | |
107 | 107 | let Y = T._3 | |
108 | 108 | let Z = T._4 | |
109 | - | let aa = if (isDefined( | |
109 | + | let aa = if (isDefined(getString(this, (toString(R.caller) + g)))) | |
110 | 110 | then { | |
111 | 111 | let U = split(valueOrErrorMessage(getString(this, (toString(R.caller) + g)), "Empty kUserTotalStruc"), "_") | |
112 | 112 | $Tuple3(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2])) | |
113 | 113 | } | |
114 | 114 | else { | |
115 | 115 | let ab = valueOrElse(getInteger(this, (toString(R.caller) + f)), 0) | |
116 | 116 | $Tuple3(ab, 0, 0) | |
117 | 117 | } | |
118 | 118 | let ac = aa._1 | |
119 | 119 | let ad = aa._2 | |
120 | 120 | let ae = aa._3 | |
121 | - | let af = if (isDefined(split( | |
121 | + | let af = if (isDefined(split(valueOrErrorMessage(getString(this, i), "Empty kPoolStruc"), "_"))) | |
122 | 122 | then { | |
123 | 123 | let U = split(valueOrErrorMessage(getString(this, i), "Empty kPoolStruc"), "_") | |
124 | 124 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) | |
125 | 125 | } | |
126 | 126 | else { | |
127 | 127 | let V = valueOrElse(getInteger(this, (B + h)), 0) | |
128 | 128 | $Tuple4(V, V, 0, 0) | |
129 | 129 | } | |
130 | 130 | let ag = af._1 | |
131 | 131 | let ah = af._2 | |
132 | 132 | let ai = af._3 | |
133 | 133 | let aj = af._4 | |
134 | - | let ak = if (isDefined( | |
134 | + | let ak = if (isDefined(getString(this, k))) | |
135 | 135 | then { | |
136 | 136 | let U = split(valueOrErrorMessage(getString(this, k), "Empty kTotalStruc"), "_") | |
137 | 137 | $Tuple4(parseIntValue(U[0]), parseIntValue(U[1]), parseIntValue(U[2]), parseIntValue(U[3])) | |
138 | 138 | } | |
139 | 139 | else { | |
140 | 140 | let al = valueOrElse(getInteger(this, j), 0) | |
141 | 141 | $Tuple4(al, al, 0, 0) | |
142 | 142 | } | |
143 | 143 | let am = ak._1 | |
144 | 144 | let an = ak._2 | |
145 | 145 | let ao = ak._3 | |
146 | 146 | let ap = ak._4 | |
147 | 147 | let aq = (M - W) | |
148 | 148 | let ar = (am + aq) | |
149 | 149 | if (!(y(R.caller))) | |
150 | 150 | then throw("This address has 0 SWOP in Governance dApp") | |
151 | 151 | else if ((ar > S)) | |
152 | 152 | then throw(((((toString(this) + " has ") + toString(S)) + " SWOP in governance. New SWOP in voting ") + toString(ar))) | |
153 | 153 | else if ((M >= W)) | |
154 | 154 | then { | |
155 | 155 | let as = C() | |
156 | 156 | let at = if ((Y == x)) | |
157 | 157 | then (X + ((aq * as) / q)) | |
158 | 158 | else (W + ((aq * as) / q)) | |
159 | 159 | let au = if ((Y == x)) | |
160 | 160 | then Z | |
161 | 161 | else W | |
162 | 162 | let av = if ((ad == x)) | |
163 | 163 | then ad | |
164 | 164 | else max([0, (ad - aq)]) | |
165 | 165 | let aw = ((((((toString(M) + "_") + toString(at)) + "_") + toString(x)) + "_") + toString(au)) | |
166 | 166 | let ax = [StringEntry((((toString(R.caller) + "_") + B) + e), aw)] | |
167 | 167 | let ay = ((((toString(ar) + "_") + toString(av)) + "_") + toString(x)) | |
168 | 168 | let az = [StringEntry((toString(R.caller) + g), ay)] | |
169 | 169 | let aA = (ag + aq) | |
170 | 170 | let aB = if ((aj == x)) | |
171 | 171 | then (ah + ((aq * as) / q)) | |
172 | 172 | else (ag + ((aq * as) / q)) | |
173 | 173 | let aC = if ((aj == x)) | |
174 | 174 | then ai | |
175 | 175 | else ag | |
176 | 176 | let aD = ((((((toString(aA) + "_") + toString(aB)) + "_") + toString(x)) + "_") + toString(aC)) | |
177 | 177 | let aE = [StringEntry((B + e), aD)] | |
178 | 178 | let aF = (am + aq) | |
179 | 179 | let aG = if ((ap == x)) | |
180 | 180 | then (an + ((aq * as) / q)) | |
181 | 181 | else (am + ((aq * as) / q)) | |
182 | 182 | let aH = if ((aj == x)) | |
183 | 183 | then ao | |
184 | 184 | else am | |
185 | 185 | let aI = ((((((toString(aF) + "_") + toString(aG)) + "_") + toString(ap)) + "_") + toString(aH)) | |
186 | 186 | let aJ = [StringEntry((B + e), aI)] | |
187 | 187 | ((((ax ++ az) ++ aE) ++ aJ) ++ K(toString(R.caller), B, M)) | |
188 | 188 | } | |
189 | 189 | else { | |
190 | 190 | let aK = -(aq) | |
191 | 191 | let au = if ((Y == x)) | |
192 | 192 | then min([Z, M]) | |
193 | 193 | else M | |
194 | 194 | let at = if (((W - Z) == 0)) | |
195 | 195 | then 0 | |
196 | 196 | else (au + (((X - Z) * (M - au)) / (W - Z))) | |
197 | 197 | let aL = max([0, (aK - (if ((ae == x)) | |
198 | 198 | then (W - Z) | |
199 | 199 | else 0))]) | |
200 | 200 | let av = if ((ae == x)) | |
201 | 201 | then ad | |
202 | 202 | else (0 + aL) | |
203 | 203 | let aM = if ((aL > 0)) | |
204 | 204 | then x | |
205 | 205 | else ae | |
206 | 206 | let aw = ((((((toString(M) + "_") + toString(at)) + "_") + toString(x)) + "_") + toString(au)) | |
207 | 207 | let ax = [StringEntry((((toString(R.caller) + "_") + B) + e), aw)] | |
208 | 208 | let ay = ((((toString(ar) + "_") + toString(av)) + "_") + toString(x)) | |
209 | 209 | let az = [StringEntry((toString(R.caller) + g), ay)] | |
210 | 210 | let aA = (ag - aK) | |
211 | 211 | let aC = if ((aj == x)) | |
212 | 212 | then min([ai, aA]) | |
213 | 213 | else aA | |
214 | 214 | let aB = if (((ag - ai) == 0)) | |
215 | 215 | then 0 | |
216 | 216 | else (aC + (((ah - ai) * (aA - aC)) / (ag - ai))) | |
217 | 217 | let aD = ((((((toString(aA) + "_") + toString(aB)) + "_") + toString(x)) + "_") + toString(aC)) | |
218 | 218 | let aE = [StringEntry((B + e), aD)] | |
219 | 219 | let aF = (am - aK) | |
220 | 220 | let aH = if ((ap == x)) | |
221 | 221 | then min([ao, aF]) | |
222 | 222 | else aF | |
223 | 223 | let aG = if (((am - ao) == 0)) | |
224 | 224 | then 0 | |
225 | 225 | else (aH + (((an - ao) * (aF - aH)) / (am - ao))) | |
226 | 226 | let aI = ((((((toString(aF) + "_") + toString(aG)) + "_") + toString(ap)) + "_") + toString(aH)) | |
227 | 227 | let aJ = [StringEntry((B + e), aI)] | |
228 | 228 | ((((ax ++ az) ++ aE) ++ aJ) ++ K(toString(R.caller), B, M)) | |
229 | 229 | } | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 |
github/deemru/w8io/169f3d6 54.96 ms ◑