tx · C6Q3aND2LSkeem2pansrFx3kyNRFrLXZeBsA8PNHUscv 3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8: -0.01400000 Waves 2021.04.13 00:56 [1479807] smart account 3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8 > SELF 0.00000000 Waves
{ "type": 13, "id": "C6Q3aND2LSkeem2pansrFx3kyNRFrLXZeBsA8PNHUscv", "fee": 1400000, "feeAssetId": null, "timestamp": 1618264618131, "version": 1, "sender": "3N7XLR4rc4dBk4QCb9ujmcsEF8teXgSwxG8", "senderPublicKey": "ReiqufhbLnC2pPiXqQ3bQ8ZomvxLZFSa99hjbhLW98i", "proofs": [ "3UoiQLJhyd6vB5ikA9rpSxgtCMquCtBougqSbfbNNTzhMPmp2DxjSnfHeKaiCVVUXGkXhioB5xg4MpfwwHKLr5s8" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAABwAAAAADGFkbWluUHViS2V5MQEAAAAgugnXO4lZpNFdoP/xuzPQquE5aQ/L4r2R1jvuT16o4BMAAAAADGFkbWluUHViS2V5MgEAAAAgwpFEmbPSsLQNIqWRWL2IvKE3uwjL/92M5pTvWxYOfkAAAAAADGFkbWluUHViS2V5MwEAAAAgjh4XLnixBzv0SE56Myhgdih3/JnlkjCjIMLPqKvpDlUAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdGVfU1dPUAAAAAAL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AAIFAAAAD3RvdGFsQWN0aXZlU1dPUAUAAAAPdG90YWxGcmVlemVTV09QCQAAZQAAAAIFAAAAEHRvdGFsVm90ZVNXT1BuZXcFAAAAEnRvdGFsRnJlZXplU1dPUG5ldwkAAGUAAAACBQAAAA10b3RhbFZvdGVTV09QBQAAAA90b3RhbEZyZWV6ZVNXT1AEAAAADXRvdGFsU3RydWNOZXcJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAQdG90YWxWb3RlU1dPUG5ldwIAAAABXwkAAaQAAAABBQAAABJ0b3RhbEFjdGl2ZVNXT1BuZXcCAAAAAV8JAAGkAAAAAQUAAAALdG90YWxQZXJpb2QCAAAAAV8JAAGkAAAAAQUAAAASdG90YWxGcmVlemVTV09QbmV3BAAAAAp0b3RhbEVudHJ5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAALcG9vbEFkZHJlc3MFAAAADmtVc2VyUG9vbFN0cnVjBQAAAA10b3RhbFN0cnVjTmV3BQAAAANuaWwJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgUAAAANdXNlclBvb2xFbnRyeQUAAAAOdXNlclRvdGFsRW50cnkFAAAACXBvb2xFbnRyeQUAAAAKdG90YWxFbnRyeQkBAAAAD2NhbGNEZWxldGVFbnRyeQAAAAMJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAtwb29sQWRkcmVzcwUAAAATdXNlclBvb2xWb3RlU1dPUG5ldwAAAAD7ToO4", "chainId": 84, "height": 1479807, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6xCKLhsP1hy9NFeeQTCyPTaN8VJY95jX4sDojCUSo1wU Next: 9Mx3e2okM9aBQZRiTsrXe5nMaVvvxxRwMvCEASGG6Wni Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | @Callable(i) | |
94 | 94 | func votePoolWeight (poolAddress,userPoolVoteSWOPnew) = { | |
95 | 95 | let userSWOPinGovernance = getIntegerValue(govAddr, (toString(i.caller) + "_SWOP_amount")) | |
96 | - | let $t039704527 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
97 | - | then { | |
98 | - | let data = split(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "_") | |
99 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
100 | - | } | |
96 | + | if (true) | |
97 | + | then throw(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))) | |
101 | 98 | else { | |
102 | - | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
103 | - | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
104 | - | } | |
105 | - | let userPoolVoteSWOP = $t039704527._1 | |
106 | - | let userPoolActiveVoteSWOP = $t039704527._2 | |
107 | - | let userPoolVotePeriod = $t039704527._3 | |
108 | - | let userPoolFreezeSWOP = $t039704527._4 | |
109 | - | let $t045334984 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
110 | - | then { | |
111 | - | let data = split(getStringValue(this, (toString(i.caller) + kUserTotalStruc)), "_") | |
112 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
113 | - | } | |
114 | - | else { | |
115 | - | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
116 | - | $Tuple3(uPoolTotalSWOP, 0, 0) | |
117 | - | } | |
118 | - | let userTotalVoteSWOP = $t045334984._1 | |
119 | - | let userUnvoted = $t045334984._2 | |
120 | - | let userUnvotedPeriod = $t045334984._3 | |
121 | - | let $t049905418 = if (isDefined(kPoolStruc)) | |
122 | - | then { | |
123 | - | let data = split(getStringValue(this, kPoolStruc), "_") | |
124 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
125 | - | } | |
126 | - | else { | |
127 | - | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
128 | - | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
129 | - | } | |
130 | - | let poolVoteSWOP = $t049905418._1 | |
131 | - | let poolActiveSWOP = $t049905418._2 | |
132 | - | let poolFreezeSWOP = $t049905418._3 | |
133 | - | let poolPeriod = $t049905418._4 | |
134 | - | let $t054245848 = if (isDefined(kTotalStruc)) | |
135 | - | then { | |
136 | - | let data = split(getStringValue(this, kTotalStruc), "_") | |
137 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
138 | - | } | |
139 | - | else { | |
140 | - | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
141 | - | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
142 | - | } | |
143 | - | let totalVoteSWOP = $t054245848._1 | |
144 | - | let totalActiveSWOP = $t054245848._2 | |
145 | - | let totalFreezeSWOP = $t054245848._3 | |
146 | - | let totalPeriod = $t054245848._4 | |
147 | - | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
148 | - | let userTotalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
149 | - | if (!(isCallerInGovernance(i.caller))) | |
150 | - | then throw("This address has 0 SWOP in Governance dApp") | |
151 | - | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
152 | - | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
153 | - | else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
99 | + | let $t040784635 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
154 | 100 | then { | |
155 | - | let coef = votingCoef() | |
156 | - | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
157 | - | then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
158 | - | else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
159 | - | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
160 | - | then userPoolFreezeSWOP | |
161 | - | else userPoolVoteSWOP | |
162 | - | let userUnvotedNew = if ((userUnvoted == currPeriod)) | |
163 | - | then userUnvoted | |
164 | - | else max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
165 | - | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
166 | - | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
167 | - | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
168 | - | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
169 | - | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
170 | - | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
171 | - | then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
172 | - | else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
173 | - | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
174 | - | then poolFreezeSWOP | |
175 | - | else poolVoteSWOP | |
176 | - | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
177 | - | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
178 | - | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
179 | - | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
180 | - | then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
181 | - | else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
182 | - | let totalFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
183 | - | then totalFreezeSWOP | |
184 | - | else totalVoteSWOP | |
185 | - | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
186 | - | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
187 | - | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
101 | + | let data = split(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "_") | |
102 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
188 | 103 | } | |
189 | 104 | else { | |
190 | - | let removePoolVote = -(poolVoteDiffSWOP) | |
191 | - | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
192 | - | then min([userPoolFreezeSWOP, userPoolVoteSWOPnew]) | |
193 | - | else userPoolVoteSWOPnew | |
194 | - | let userPoolActiveVoteSWOPnew = if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
195 | - | then 0 | |
196 | - | else (userPoolFreezeSWOPnew + (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))) | |
197 | - | let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod)) | |
198 | - | then (userPoolVoteSWOP - userPoolFreezeSWOP) | |
199 | - | else 0))]) | |
200 | - | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
201 | - | then userUnvoted | |
202 | - | else (0 + newUnvoted) | |
203 | - | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
204 | - | then currPeriod | |
205 | - | else userUnvotedPeriod | |
206 | - | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
207 | - | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
208 | - | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
209 | - | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
210 | - | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
211 | - | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
212 | - | then min([poolFreezeSWOP, poolVoteSWOPnew]) | |
213 | - | else poolVoteSWOPnew | |
214 | - | let poolActiveSWOPnew = if (((poolVoteSWOP - poolFreezeSWOP) == 0)) | |
215 | - | then 0 | |
216 | - | else (poolFreezeSWOPnew + (((poolActiveSWOP - poolFreezeSWOP) * (poolVoteSWOPnew - poolFreezeSWOPnew)) / (poolVoteSWOP - poolFreezeSWOP))) | |
217 | - | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
218 | - | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
219 | - | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
220 | - | let totalFreezeSWOPnew = if ((totalPeriod == currPeriod)) | |
221 | - | then min([totalFreezeSWOP, totalVoteSWOPnew]) | |
222 | - | else totalVoteSWOPnew | |
223 | - | let totalActiveSWOPnew = if (((totalVoteSWOP - totalFreezeSWOP) == 0)) | |
224 | - | then 0 | |
225 | - | else (totalFreezeSWOPnew + (((totalActiveSWOP - totalFreezeSWOP) * (totalVoteSWOPnew - totalFreezeSWOPnew)) / (totalVoteSWOP - totalFreezeSWOP))) | |
226 | - | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
227 | - | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
228 | - | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
105 | + | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
106 | + | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
229 | 107 | } | |
108 | + | let userPoolVoteSWOP = $t040784635._1 | |
109 | + | let userPoolActiveVoteSWOP = $t040784635._2 | |
110 | + | let userPoolVotePeriod = $t040784635._3 | |
111 | + | let userPoolFreezeSWOP = $t040784635._4 | |
112 | + | let $t046415092 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
113 | + | then { | |
114 | + | let data = split(getStringValue(this, (toString(i.caller) + kUserTotalStruc)), "_") | |
115 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
116 | + | } | |
117 | + | else { | |
118 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
119 | + | $Tuple3(uPoolTotalSWOP, 0, 0) | |
120 | + | } | |
121 | + | let userTotalVoteSWOP = $t046415092._1 | |
122 | + | let userUnvoted = $t046415092._2 | |
123 | + | let userUnvotedPeriod = $t046415092._3 | |
124 | + | let $t050985526 = if (isDefined(kPoolStruc)) | |
125 | + | then { | |
126 | + | let data = split(getStringValue(this, kPoolStruc), "_") | |
127 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
128 | + | } | |
129 | + | else { | |
130 | + | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
131 | + | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
132 | + | } | |
133 | + | let poolVoteSWOP = $t050985526._1 | |
134 | + | let poolActiveSWOP = $t050985526._2 | |
135 | + | let poolFreezeSWOP = $t050985526._3 | |
136 | + | let poolPeriod = $t050985526._4 | |
137 | + | let $t055325956 = if (isDefined(kTotalStruc)) | |
138 | + | then { | |
139 | + | let data = split(getStringValue(this, kTotalStruc), "_") | |
140 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
141 | + | } | |
142 | + | else { | |
143 | + | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
144 | + | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
145 | + | } | |
146 | + | let totalVoteSWOP = $t055325956._1 | |
147 | + | let totalActiveSWOP = $t055325956._2 | |
148 | + | let totalFreezeSWOP = $t055325956._3 | |
149 | + | let totalPeriod = $t055325956._4 | |
150 | + | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
151 | + | let userTotalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
152 | + | if (!(isCallerInGovernance(i.caller))) | |
153 | + | then throw("This address has 0 SWOP in Governance dApp") | |
154 | + | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
155 | + | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
156 | + | else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
157 | + | then { | |
158 | + | let coef = votingCoef() | |
159 | + | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
160 | + | then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
161 | + | else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
162 | + | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
163 | + | then userPoolFreezeSWOP | |
164 | + | else userPoolVoteSWOP | |
165 | + | let userUnvotedNew = if ((userUnvoted == currPeriod)) | |
166 | + | then userUnvoted | |
167 | + | else max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
168 | + | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
169 | + | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
170 | + | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
171 | + | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
172 | + | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
173 | + | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
174 | + | then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
175 | + | else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
176 | + | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
177 | + | then poolFreezeSWOP | |
178 | + | else poolVoteSWOP | |
179 | + | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
180 | + | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
181 | + | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
182 | + | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
183 | + | then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
184 | + | else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
185 | + | let totalFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
186 | + | then totalFreezeSWOP | |
187 | + | else totalVoteSWOP | |
188 | + | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
189 | + | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
190 | + | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
191 | + | } | |
192 | + | else { | |
193 | + | let removePoolVote = -(poolVoteDiffSWOP) | |
194 | + | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
195 | + | then min([userPoolFreezeSWOP, userPoolVoteSWOPnew]) | |
196 | + | else userPoolVoteSWOPnew | |
197 | + | let userPoolActiveVoteSWOPnew = if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
198 | + | then 0 | |
199 | + | else (userPoolFreezeSWOPnew + (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))) | |
200 | + | let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod)) | |
201 | + | then (userPoolVoteSWOP - userPoolFreezeSWOP) | |
202 | + | else 0))]) | |
203 | + | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
204 | + | then userUnvoted | |
205 | + | else (0 + newUnvoted) | |
206 | + | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
207 | + | then currPeriod | |
208 | + | else userUnvotedPeriod | |
209 | + | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
210 | + | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
211 | + | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
212 | + | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
213 | + | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
214 | + | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
215 | + | then min([poolFreezeSWOP, poolVoteSWOPnew]) | |
216 | + | else poolVoteSWOPnew | |
217 | + | let poolActiveSWOPnew = if (((poolVoteSWOP - poolFreezeSWOP) == 0)) | |
218 | + | then 0 | |
219 | + | else (poolFreezeSWOPnew + (((poolActiveSWOP - poolFreezeSWOP) * (poolVoteSWOPnew - poolFreezeSWOPnew)) / (poolVoteSWOP - poolFreezeSWOP))) | |
220 | + | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
221 | + | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
222 | + | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
223 | + | let totalFreezeSWOPnew = if ((totalPeriod == currPeriod)) | |
224 | + | then min([totalFreezeSWOP, totalVoteSWOPnew]) | |
225 | + | else totalVoteSWOPnew | |
226 | + | let totalActiveSWOPnew = if (((totalVoteSWOP - totalFreezeSWOP) == 0)) | |
227 | + | then 0 | |
228 | + | else (totalFreezeSWOPnew + (((totalActiveSWOP - totalFreezeSWOP) * (totalVoteSWOPnew - totalFreezeSWOPnew)) / (totalVoteSWOP - totalFreezeSWOP))) | |
229 | + | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
230 | + | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
231 | + | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
232 | + | } | |
233 | + | } | |
230 | 234 | } | |
231 | 235 | ||
232 | 236 |
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(getIntegerValue(this, kBasePeriod), "Empty kBasePeriod") | |
39 | 39 | ||
40 | 40 | let startHeight = valueOrErrorMessage(getIntegerValue(this, kStartHeight), "Empty kStartHeight") | |
41 | 41 | ||
42 | 42 | let periodLength = valueOrErrorMessage(getIntegerValue(this, kPeriodLength), "Empty kPeriodLength") | |
43 | 43 | ||
44 | 44 | let durationFullVotePower = valueOrErrorMessage(getIntegerValue(this, kPeriodLength), "Empty kPeriodLength") | |
45 | 45 | ||
46 | 46 | let minVotePower = valueOrErrorMessage(getIntegerValue(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((((caller + "_") + poolAddress) + kUserPoolVoteSWOP))) | |
78 | 78 | then DeleteEntry((((caller + "_") + poolAddress) + kUserPoolVoteSWOP)) | |
79 | 79 | else DeleteEntry("") | |
80 | 80 | let deleteKeyUserTotalVoteSWOP = if (isDefined((caller + kUserTotalVoteSWOP))) | |
81 | 81 | then DeleteEntry((caller + kUserTotalVoteSWOP)) | |
82 | 82 | else DeleteEntry("") | |
83 | 83 | let deleteKeyPoolVoteSWOP = if (isDefined((poolAddress + kPoolVoteSWOP))) | |
84 | 84 | then DeleteEntry((poolAddress + kPoolVoteSWOP)) | |
85 | 85 | else DeleteEntry("") | |
86 | 86 | let deleteKeyTotalVoteSWOP = if (isDefined(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 = getIntegerValue(govAddr, (toString(i.caller) + "_SWOP_amount")) | |
96 | - | let $t039704527 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
97 | - | then { | |
98 | - | let data = split(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "_") | |
99 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
100 | - | } | |
96 | + | if (true) | |
97 | + | then throw(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))) | |
101 | 98 | else { | |
102 | - | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
103 | - | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
104 | - | } | |
105 | - | let userPoolVoteSWOP = $t039704527._1 | |
106 | - | let userPoolActiveVoteSWOP = $t039704527._2 | |
107 | - | let userPoolVotePeriod = $t039704527._3 | |
108 | - | let userPoolFreezeSWOP = $t039704527._4 | |
109 | - | let $t045334984 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
110 | - | then { | |
111 | - | let data = split(getStringValue(this, (toString(i.caller) + kUserTotalStruc)), "_") | |
112 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
113 | - | } | |
114 | - | else { | |
115 | - | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
116 | - | $Tuple3(uPoolTotalSWOP, 0, 0) | |
117 | - | } | |
118 | - | let userTotalVoteSWOP = $t045334984._1 | |
119 | - | let userUnvoted = $t045334984._2 | |
120 | - | let userUnvotedPeriod = $t045334984._3 | |
121 | - | let $t049905418 = if (isDefined(kPoolStruc)) | |
122 | - | then { | |
123 | - | let data = split(getStringValue(this, kPoolStruc), "_") | |
124 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
125 | - | } | |
126 | - | else { | |
127 | - | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
128 | - | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
129 | - | } | |
130 | - | let poolVoteSWOP = $t049905418._1 | |
131 | - | let poolActiveSWOP = $t049905418._2 | |
132 | - | let poolFreezeSWOP = $t049905418._3 | |
133 | - | let poolPeriod = $t049905418._4 | |
134 | - | let $t054245848 = if (isDefined(kTotalStruc)) | |
135 | - | then { | |
136 | - | let data = split(getStringValue(this, kTotalStruc), "_") | |
137 | - | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
138 | - | } | |
139 | - | else { | |
140 | - | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
141 | - | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
142 | - | } | |
143 | - | let totalVoteSWOP = $t054245848._1 | |
144 | - | let totalActiveSWOP = $t054245848._2 | |
145 | - | let totalFreezeSWOP = $t054245848._3 | |
146 | - | let totalPeriod = $t054245848._4 | |
147 | - | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
148 | - | let userTotalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
149 | - | if (!(isCallerInGovernance(i.caller))) | |
150 | - | then throw("This address has 0 SWOP in Governance dApp") | |
151 | - | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
152 | - | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
153 | - | else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
99 | + | let $t040784635 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
154 | 100 | then { | |
155 | - | let coef = votingCoef() | |
156 | - | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
157 | - | then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
158 | - | else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
159 | - | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
160 | - | then userPoolFreezeSWOP | |
161 | - | else userPoolVoteSWOP | |
162 | - | let userUnvotedNew = if ((userUnvoted == currPeriod)) | |
163 | - | then userUnvoted | |
164 | - | else max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
165 | - | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
166 | - | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
167 | - | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
168 | - | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
169 | - | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
170 | - | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
171 | - | then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
172 | - | else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
173 | - | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
174 | - | then poolFreezeSWOP | |
175 | - | else poolVoteSWOP | |
176 | - | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
177 | - | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
178 | - | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
179 | - | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
180 | - | then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
181 | - | else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
182 | - | let totalFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
183 | - | then totalFreezeSWOP | |
184 | - | else totalVoteSWOP | |
185 | - | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
186 | - | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
187 | - | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
101 | + | let data = split(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "_") | |
102 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
188 | 103 | } | |
189 | 104 | else { | |
190 | - | let removePoolVote = -(poolVoteDiffSWOP) | |
191 | - | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
192 | - | then min([userPoolFreezeSWOP, userPoolVoteSWOPnew]) | |
193 | - | else userPoolVoteSWOPnew | |
194 | - | let userPoolActiveVoteSWOPnew = if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
195 | - | then 0 | |
196 | - | else (userPoolFreezeSWOPnew + (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))) | |
197 | - | let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod)) | |
198 | - | then (userPoolVoteSWOP - userPoolFreezeSWOP) | |
199 | - | else 0))]) | |
200 | - | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
201 | - | then userUnvoted | |
202 | - | else (0 + newUnvoted) | |
203 | - | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
204 | - | then currPeriod | |
205 | - | else userUnvotedPeriod | |
206 | - | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
207 | - | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
208 | - | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
209 | - | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
210 | - | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
211 | - | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
212 | - | then min([poolFreezeSWOP, poolVoteSWOPnew]) | |
213 | - | else poolVoteSWOPnew | |
214 | - | let poolActiveSWOPnew = if (((poolVoteSWOP - poolFreezeSWOP) == 0)) | |
215 | - | then 0 | |
216 | - | else (poolFreezeSWOPnew + (((poolActiveSWOP - poolFreezeSWOP) * (poolVoteSWOPnew - poolFreezeSWOPnew)) / (poolVoteSWOP - poolFreezeSWOP))) | |
217 | - | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
218 | - | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
219 | - | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
220 | - | let totalFreezeSWOPnew = if ((totalPeriod == currPeriod)) | |
221 | - | then min([totalFreezeSWOP, totalVoteSWOPnew]) | |
222 | - | else totalVoteSWOPnew | |
223 | - | let totalActiveSWOPnew = if (((totalVoteSWOP - totalFreezeSWOP) == 0)) | |
224 | - | then 0 | |
225 | - | else (totalFreezeSWOPnew + (((totalActiveSWOP - totalFreezeSWOP) * (totalVoteSWOPnew - totalFreezeSWOPnew)) / (totalVoteSWOP - totalFreezeSWOP))) | |
226 | - | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
227 | - | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
228 | - | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
105 | + | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
106 | + | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
229 | 107 | } | |
108 | + | let userPoolVoteSWOP = $t040784635._1 | |
109 | + | let userPoolActiveVoteSWOP = $t040784635._2 | |
110 | + | let userPoolVotePeriod = $t040784635._3 | |
111 | + | let userPoolFreezeSWOP = $t040784635._4 | |
112 | + | let $t046415092 = if (isDefined((toString(i.caller) + kUserPoolStruc))) | |
113 | + | then { | |
114 | + | let data = split(getStringValue(this, (toString(i.caller) + kUserTotalStruc)), "_") | |
115 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
116 | + | } | |
117 | + | else { | |
118 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
119 | + | $Tuple3(uPoolTotalSWOP, 0, 0) | |
120 | + | } | |
121 | + | let userTotalVoteSWOP = $t046415092._1 | |
122 | + | let userUnvoted = $t046415092._2 | |
123 | + | let userUnvotedPeriod = $t046415092._3 | |
124 | + | let $t050985526 = if (isDefined(kPoolStruc)) | |
125 | + | then { | |
126 | + | let data = split(getStringValue(this, kPoolStruc), "_") | |
127 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
128 | + | } | |
129 | + | else { | |
130 | + | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
131 | + | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
132 | + | } | |
133 | + | let poolVoteSWOP = $t050985526._1 | |
134 | + | let poolActiveSWOP = $t050985526._2 | |
135 | + | let poolFreezeSWOP = $t050985526._3 | |
136 | + | let poolPeriod = $t050985526._4 | |
137 | + | let $t055325956 = if (isDefined(kTotalStruc)) | |
138 | + | then { | |
139 | + | let data = split(getStringValue(this, kTotalStruc), "_") | |
140 | + | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
141 | + | } | |
142 | + | else { | |
143 | + | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
144 | + | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
145 | + | } | |
146 | + | let totalVoteSWOP = $t055325956._1 | |
147 | + | let totalActiveSWOP = $t055325956._2 | |
148 | + | let totalFreezeSWOP = $t055325956._3 | |
149 | + | let totalPeriod = $t055325956._4 | |
150 | + | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
151 | + | let userTotalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
152 | + | if (!(isCallerInGovernance(i.caller))) | |
153 | + | then throw("This address has 0 SWOP in Governance dApp") | |
154 | + | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
155 | + | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
156 | + | else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
157 | + | then { | |
158 | + | let coef = votingCoef() | |
159 | + | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
160 | + | then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
161 | + | else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
162 | + | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
163 | + | then userPoolFreezeSWOP | |
164 | + | else userPoolVoteSWOP | |
165 | + | let userUnvotedNew = if ((userUnvoted == currPeriod)) | |
166 | + | then userUnvoted | |
167 | + | else max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
168 | + | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
169 | + | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
170 | + | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
171 | + | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
172 | + | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
173 | + | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
174 | + | then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
175 | + | else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
176 | + | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
177 | + | then poolFreezeSWOP | |
178 | + | else poolVoteSWOP | |
179 | + | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
180 | + | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
181 | + | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
182 | + | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
183 | + | then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
184 | + | else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8)) | |
185 | + | let totalFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
186 | + | then totalFreezeSWOP | |
187 | + | else totalVoteSWOP | |
188 | + | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
189 | + | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
190 | + | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
191 | + | } | |
192 | + | else { | |
193 | + | let removePoolVote = -(poolVoteDiffSWOP) | |
194 | + | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
195 | + | then min([userPoolFreezeSWOP, userPoolVoteSWOPnew]) | |
196 | + | else userPoolVoteSWOPnew | |
197 | + | let userPoolActiveVoteSWOPnew = if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
198 | + | then 0 | |
199 | + | else (userPoolFreezeSWOPnew + (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))) | |
200 | + | let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod)) | |
201 | + | then (userPoolVoteSWOP - userPoolFreezeSWOP) | |
202 | + | else 0))]) | |
203 | + | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
204 | + | then userUnvoted | |
205 | + | else (0 + newUnvoted) | |
206 | + | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
207 | + | then currPeriod | |
208 | + | else userUnvotedPeriod | |
209 | + | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
210 | + | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
211 | + | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod)) | |
212 | + | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
213 | + | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
214 | + | let poolFreezeSWOPnew = if ((poolPeriod == currPeriod)) | |
215 | + | then min([poolFreezeSWOP, poolVoteSWOPnew]) | |
216 | + | else poolVoteSWOPnew | |
217 | + | let poolActiveSWOPnew = if (((poolVoteSWOP - poolFreezeSWOP) == 0)) | |
218 | + | then 0 | |
219 | + | else (poolFreezeSWOPnew + (((poolActiveSWOP - poolFreezeSWOP) * (poolVoteSWOPnew - poolFreezeSWOPnew)) / (poolVoteSWOP - poolFreezeSWOP))) | |
220 | + | let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew)) | |
221 | + | let poolEntry = [StringEntry((poolAddress + kUserPoolStruc), poolStrucNew)] | |
222 | + | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
223 | + | let totalFreezeSWOPnew = if ((totalPeriod == currPeriod)) | |
224 | + | then min([totalFreezeSWOP, totalVoteSWOPnew]) | |
225 | + | else totalVoteSWOPnew | |
226 | + | let totalActiveSWOPnew = if (((totalVoteSWOP - totalFreezeSWOP) == 0)) | |
227 | + | then 0 | |
228 | + | else (totalFreezeSWOPnew + (((totalActiveSWOP - totalFreezeSWOP) * (totalVoteSWOPnew - totalFreezeSWOPnew)) / (totalVoteSWOP - totalFreezeSWOP))) | |
229 | + | let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(totalPeriod)) + "_") + toString(totalFreezeSWOPnew)) | |
230 | + | let totalEntry = [StringEntry((poolAddress + kUserPoolStruc), totalStrucNew)] | |
231 | + | ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) | |
232 | + | } | |
233 | + | } | |
230 | 234 | } | |
231 | 235 | ||
232 | 236 |
github/deemru/w8io/169f3d6 70.58 ms ◑