tx · 3kiBq9QGJBMfo91nrnnKbEtX5LeUcandh19pnr1jXW3H 3MyaxeXTYGU9ZYkx5CA3YFwQZU2PXV36crr: -0.01400000 Waves 2021.04.13 01:50 [1479863] smart account 3MyaxeXTYGU9ZYkx5CA3YFwQZU2PXV36crr > SELF 0.00000000 Waves
{ "type": 13, "id": "3kiBq9QGJBMfo91nrnnKbEtX5LeUcandh19pnr1jXW3H", "fee": 1400000, "feeAssetId": null, "timestamp": 1618267853719, "version": 1, "sender": "3MyaxeXTYGU9ZYkx5CA3YFwQZU2PXV36crr", "senderPublicKey": "FrLh9zDpe5zc5bWgFRKMZReNLHL87ZUBn4FSiAWtVSaF", "proofs": [ "4epsYbxVUnsPbcK63c33wyBL9SDLh9Jj4EYSm8sZaxWZhhF1etmSvVLQjVMZhMDTVmmJTCLVHexjMMLfCCka1D8P" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAABwAAAAADGFkbWluUHViS2V5MQEAAAAgugnXO4lZpNFdoP/xuzPQquE5aQ/L4r2R1jvuT16o4BMAAAAADGFkbWluUHViS2V5MgEAAAAgwpFEmbPSsLQNIqWRWL2IvKE3uwjL/92M5pTvWxYOfkAAAAAADGFkbWluUHViS2V5MwEAAAAgjh4XLnixBzv0SE56Myhgdih3/JnlkjCjIMLPqKvpDlUAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdGVfU1dPUAAAAAAL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mNhbGxlcgUAAAALcG9vbEFkZHJlc3MFAAAAE3VzZXJQb29sVm90ZVNXT1BuZXcAAAAA9+usqA==", "chainId": 84, "height": 1479863, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 38n5VthWKW197cgroBZHaygcQn2hcFuXPdtLfP3boGvr Next: 97iL91XNAouKxiia4w3rLmcpRpttxidiFSMwpEEbWPj9 Diff:
Old | New | Differences | |
---|---|---|---|
106 | 106 | let userPoolActiveVoteSWOP = $t040744716._2 | |
107 | 107 | let userPoolVotePeriod = $t040744716._3 | |
108 | 108 | let userPoolFreezeSWOP = $t040744716._4 | |
109 | - | let $ | |
110 | - | then | |
111 | - | | |
112 | - | | |
113 | - | | |
114 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
115 | - | ||
109 | + | let $t047225327 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc)))) | |
110 | + | then { | |
111 | + | let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
112 | + | if (true) | |
113 | + | then throw((toString(i.caller) + kUserTotalStruc)) | |
114 | + | else $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
115 | + | } | |
116 | 116 | else { | |
117 | 117 | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
118 | 118 | $Tuple3(uPoolTotalSWOP, 0, currPeriod) | |
119 | 119 | } | |
120 | - | let userTotalVoteSWOP = $ | |
121 | - | let userUnvoted = $ | |
122 | - | let userUnvotedPeriod = $ | |
123 | - | let $ | |
120 | + | let userTotalVoteSWOP = $t047225327._1 | |
121 | + | let userUnvoted = $t047225327._2 | |
122 | + | let userUnvotedPeriod = $t047225327._3 | |
123 | + | let $t053325811 = if (isDefined(getString(this, kPoolStruc))) | |
124 | 124 | then { | |
125 | 125 | let data = split(valueOrErrorMessage(getString(this, kPoolStruc), "Empty kPoolStruc"), "_") | |
126 | 126 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
129 | 129 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
130 | 130 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
131 | 131 | } | |
132 | - | let poolVoteSWOP = $ | |
133 | - | let poolActiveSWOP = $ | |
134 | - | let poolPeriod = $ | |
135 | - | let poolFreezeSWOP = $ | |
136 | - | let $ | |
132 | + | let poolVoteSWOP = $t053325811._1 | |
133 | + | let poolActiveSWOP = $t053325811._2 | |
134 | + | let poolPeriod = $t053325811._3 | |
135 | + | let poolFreezeSWOP = $t053325811._4 | |
136 | + | let $t058176293 = if (isDefined(getString(this, kTotalStruc))) | |
137 | 137 | then { | |
138 | 138 | let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_") | |
139 | 139 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
142 | 142 | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
143 | 143 | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
144 | 144 | } | |
145 | - | let totalVoteSWOP = $ | |
146 | - | let totalActiveSWOP = $ | |
147 | - | let totalPeriod = $ | |
148 | - | let totalFreezeSWOP = $ | |
145 | + | let totalVoteSWOP = $t058176293._1 | |
146 | + | let totalActiveSWOP = $t058176293._2 | |
147 | + | let totalPeriod = $t058176293._3 | |
148 | + | let totalFreezeSWOP = $t058176293._4 | |
149 | 149 | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
150 | 150 | let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP) | |
151 | 151 | if (!(isCallerInGovernance(i.caller))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
9 | 9 | ||
10 | 10 | let kUserPoolVoteSWOP = "_vote" | |
11 | 11 | ||
12 | 12 | let kUserPoolStruc = "_user_pool_struc" | |
13 | 13 | ||
14 | 14 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
15 | 15 | ||
16 | 16 | let kUserTotalStruc = "_user_total_struc" | |
17 | 17 | ||
18 | 18 | let kPoolVoteSWOP = "_vote_SWOP" | |
19 | 19 | ||
20 | 20 | let kPoolStruc = "_pool_struc" | |
21 | 21 | ||
22 | 22 | let kTotalVoteSWOP = "total_vote_SWOP" | |
23 | 23 | ||
24 | 24 | let kTotalStruc = "total_struc" | |
25 | 25 | ||
26 | 26 | let kStartHeight = "start_height" | |
27 | 27 | ||
28 | 28 | let kBasePeriod = "base_period" | |
29 | 29 | ||
30 | 30 | let kPeriodLength = "period_legth" | |
31 | 31 | ||
32 | 32 | let kDurationFullVotePower = "duration_full_vote_power" | |
33 | 33 | ||
34 | 34 | let kMinVotePower = "min_vote_power" | |
35 | 35 | ||
36 | 36 | let scale8 = 100000000 | |
37 | 37 | ||
38 | 38 | let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod") | |
39 | 39 | ||
40 | 40 | let startHeight = valueOrErrorMessage(getInteger(this, kStartHeight), "Empty kStartHeight") | |
41 | 41 | ||
42 | 42 | let periodLength = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength") | |
43 | 43 | ||
44 | 44 | let durationFullVotePower = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength") | |
45 | 45 | ||
46 | 46 | let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower") | |
47 | 47 | ||
48 | 48 | let govAddr = Address(base58'3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj') | |
49 | 49 | ||
50 | 50 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
51 | 51 | ||
52 | 52 | func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0)) | |
53 | 53 | then true | |
54 | 54 | else false | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func isPoolInGovernance (poolAddress) = isDefined(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward"))) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func votingCoef () = { | |
61 | 61 | let votingDuration = (height - (startHeight + (currPeriod * periodLength))) | |
62 | 62 | if ((durationFullVotePower > votingDuration)) | |
63 | 63 | then scale8 | |
64 | 64 | else { | |
65 | 65 | let x1 = durationFullVotePower | |
66 | 66 | let y1 = scale8 | |
67 | 67 | let x2 = periodLength | |
68 | 68 | let y2 = minVotePower | |
69 | 69 | let k = (((y2 - y1) * scale8) / (x2 - x1)) | |
70 | 70 | let b = ((y1 * scale8) - (k * x1)) | |
71 | 71 | (((votingDuration * k) / scale8) + (b / scale8)) | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func calcDeleteEntry (caller,poolAddress,userPoolVoteSWOPnew) = { | |
77 | 77 | let deleteKeyUserPoolVoteSWOP = if (isDefined(getInteger(this, (((caller + "_") + poolAddress) + kUserPoolVoteSWOP)))) | |
78 | 78 | then DeleteEntry((((caller + "_") + poolAddress) + kUserPoolVoteSWOP)) | |
79 | 79 | else DeleteEntry(".") | |
80 | 80 | let deleteKeyUserTotalVoteSWOP = if (isDefined(getInteger(this, (caller + kUserTotalVoteSWOP)))) | |
81 | 81 | then DeleteEntry((caller + kUserTotalVoteSWOP)) | |
82 | 82 | else DeleteEntry(".") | |
83 | 83 | let deleteKeyPoolVoteSWOP = if (isDefined(getInteger(this, (poolAddress + kPoolVoteSWOP)))) | |
84 | 84 | then DeleteEntry((poolAddress + kPoolVoteSWOP)) | |
85 | 85 | else DeleteEntry(".") | |
86 | 86 | let deleteKeyTotalVoteSWOP = if (isDefined(getInteger(this, kTotalVoteSWOP))) | |
87 | 87 | then DeleteEntry(kTotalVoteSWOP) | |
88 | 88 | else DeleteEntry(".") | |
89 | 89 | [deleteKeyUserPoolVoteSWOP, deleteKeyUserTotalVoteSWOP, deleteKeyPoolVoteSWOP, deleteKeyTotalVoteSWOP] | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(i) | |
94 | 94 | func votePoolWeight (poolAddress,userPoolVoteSWOPnew) = { | |
95 | 95 | let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
96 | 96 | let $t040744716 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)))) | |
97 | 97 | then { | |
98 | 98 | let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_") | |
99 | 99 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
100 | 100 | } | |
101 | 101 | else { | |
102 | 102 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
103 | 103 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, currPeriod, 0) | |
104 | 104 | } | |
105 | 105 | let userPoolVoteSWOP = $t040744716._1 | |
106 | 106 | let userPoolActiveVoteSWOP = $t040744716._2 | |
107 | 107 | let userPoolVotePeriod = $t040744716._3 | |
108 | 108 | let userPoolFreezeSWOP = $t040744716._4 | |
109 | - | let $ | |
110 | - | then | |
111 | - | | |
112 | - | | |
113 | - | | |
114 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
115 | - | ||
109 | + | let $t047225327 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc)))) | |
110 | + | then { | |
111 | + | let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
112 | + | if (true) | |
113 | + | then throw((toString(i.caller) + kUserTotalStruc)) | |
114 | + | else $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
115 | + | } | |
116 | 116 | else { | |
117 | 117 | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
118 | 118 | $Tuple3(uPoolTotalSWOP, 0, currPeriod) | |
119 | 119 | } | |
120 | - | let userTotalVoteSWOP = $ | |
121 | - | let userUnvoted = $ | |
122 | - | let userUnvotedPeriod = $ | |
123 | - | let $ | |
120 | + | let userTotalVoteSWOP = $t047225327._1 | |
121 | + | let userUnvoted = $t047225327._2 | |
122 | + | let userUnvotedPeriod = $t047225327._3 | |
123 | + | let $t053325811 = if (isDefined(getString(this, kPoolStruc))) | |
124 | 124 | then { | |
125 | 125 | let data = split(valueOrErrorMessage(getString(this, kPoolStruc), "Empty kPoolStruc"), "_") | |
126 | 126 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
127 | 127 | } | |
128 | 128 | else { | |
129 | 129 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
130 | 130 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
131 | 131 | } | |
132 | - | let poolVoteSWOP = $ | |
133 | - | let poolActiveSWOP = $ | |
134 | - | let poolPeriod = $ | |
135 | - | let poolFreezeSWOP = $ | |
136 | - | let $ | |
132 | + | let poolVoteSWOP = $t053325811._1 | |
133 | + | let poolActiveSWOP = $t053325811._2 | |
134 | + | let poolPeriod = $t053325811._3 | |
135 | + | let poolFreezeSWOP = $t053325811._4 | |
136 | + | let $t058176293 = if (isDefined(getString(this, kTotalStruc))) | |
137 | 137 | then { | |
138 | 138 | let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_") | |
139 | 139 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
140 | 140 | } | |
141 | 141 | else { | |
142 | 142 | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
143 | 143 | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
144 | 144 | } | |
145 | - | let totalVoteSWOP = $ | |
146 | - | let totalActiveSWOP = $ | |
147 | - | let totalPeriod = $ | |
148 | - | let totalFreezeSWOP = $ | |
145 | + | let totalVoteSWOP = $t058176293._1 | |
146 | + | let totalActiveSWOP = $t058176293._2 | |
147 | + | let totalPeriod = $t058176293._3 | |
148 | + | let totalFreezeSWOP = $t058176293._4 | |
149 | 149 | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
150 | 150 | let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP) | |
151 | 151 | if (!(isCallerInGovernance(i.caller))) | |
152 | 152 | then throw("This address has 0 SWOP in Governance dApp") | |
153 | 153 | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
154 | 154 | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
155 | 155 | else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
156 | 156 | then { | |
157 | 157 | let coef = votingCoef() | |
158 | 158 | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
159 | 159 | then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
160 | 160 | else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
161 | 161 | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
162 | 162 | then userPoolFreezeSWOP | |
163 | 163 | else userPoolVoteSWOP | |
164 | 164 | let userUnvotedNew = if ((userUnvoted == currPeriod)) | |
165 | 165 | then userUnvoted | |
166 | 166 | else max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
167 | 167 | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
168 | 168 | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
169 | 169 | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
170 | 170 | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
171 | 171 | if (true) | |
172 | 172 | then throw(((toString(totalVoteSWOP) + " ") + toString(poolVoteDiffSWOP))) | |
173 | 173 | else { | |
174 | 174 | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
175 | 175 | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
176 | 176 | then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
177 | 177 | else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
178 | 178 | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
179 | 179 | then poolFreezeSWOP | |
180 | 180 | else poolVoteSWOP | |
181 | 181 | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
182 | 182 | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
183 | 183 | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
184 | 184 | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
185 | 185 | then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
186 | 186 | else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
187 | 187 | let totalFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
188 | 188 | then totalFreezeSWOP | |
189 | 189 | else totalVoteSWOP | |
190 | 190 | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
191 | 191 | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
192 | 192 | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | else { | |
196 | 196 | let removePoolVote = -(poolVoteDiffSWOP) | |
197 | 197 | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
198 | 198 | then min([userPoolFreezeSWOP, userPoolVoteSWOPnew]) | |
199 | 199 | else userPoolVoteSWOPnew | |
200 | 200 | let userPoolActiveVoteSWOPnew = if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
201 | 201 | then 0 | |
202 | 202 | else (userPoolFreezeSWOPnew + (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))) | |
203 | 203 | let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod)) | |
204 | 204 | then (userPoolVoteSWOP - userPoolFreezeSWOP) | |
205 | 205 | else 0))]) | |
206 | 206 | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
207 | 207 | then userUnvoted | |
208 | 208 | else (0 + newUnvoted) | |
209 | 209 | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
210 | 210 | then currPeriod | |
211 | 211 | else userUnvotedPeriod | |
212 | 212 | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
213 | 213 | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
214 | 214 | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
215 | 215 | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
216 | 216 | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
217 | 217 | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
218 | 218 | then min([poolFreezeSWOP, poolVoteSWOPnew]) | |
219 | 219 | else poolVoteSWOPnew | |
220 | 220 | let poolActiveSWOPnew = if (((poolVoteSWOP - poolFreezeSWOP) == 0)) | |
221 | 221 | then 0 | |
222 | 222 | else (poolFreezeSWOPnew + (((poolActiveSWOP - poolFreezeSWOP) * (poolVoteSWOPnew - poolFreezeSWOPnew)) / (poolVoteSWOP - poolFreezeSWOP))) | |
223 | 223 | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
224 | 224 | let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)] | |
225 | 225 | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
226 | 226 | let totalFreezeSWOPnew = if ((totalPeriod == currPeriod)) | |
227 | 227 | then min([totalFreezeSWOP, totalVoteSWOPnew]) | |
228 | 228 | else totalVoteSWOPnew | |
229 | 229 | let totalActiveSWOPnew = if (((totalVoteSWOP - totalFreezeSWOP) == 0)) | |
230 | 230 | then 0 | |
231 | 231 | else (totalFreezeSWOPnew + (((totalActiveSWOP - totalFreezeSWOP) * (totalVoteSWOPnew - totalFreezeSWOPnew)) / (totalVoteSWOP - totalFreezeSWOP))) | |
232 | 232 | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
233 | 233 | let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)] | |
234 | 234 | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
235 | 235 | } | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 |
github/deemru/w8io/026f985 48.26 ms ◑