tx · C7Qcd2jajdsyHvfmKhVpXXwkqfPdHzpqFZ5WjwtpPQNT 3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp: -0.01400000 Waves 2021.03.13 15:24 [1435907] smart account 3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp > SELF 0.00000000 Waves
{ "type": 13, "id": "C7Qcd2jajdsyHvfmKhVpXXwkqfPdHzpqFZ5WjwtpPQNT", "fee": 1400000, "feeAssetId": null, "timestamp": 1615638286182, "version": 1, "sender": "3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp", "senderPublicKey": "2Ek8QRiW2SC3s4ZC79pXUmvJbmqU6agaNsjN2wmnzmSs", "proofs": [ "5Sg7xMV658851S6uvaRiV5FU2wu92aPaEGQhfU19644oHQgQ7FdbWX5opbcC7JbhYZDBvYUQxsFPVUq5gS2sNQ3J" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIYEQAAAAcAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAASa1VzZXJUb3RhbFZvdGVTV09QAgAAABVfdXNlcl90b3RhbF9TV09QX3ZvdGUAAAAADWtQb29sVm90ZVNXT1ACAAAACl92b3RlX1NXT1AAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAB2dvdkFkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRAR/HWw3DxHB4C9lwcyuInima35raJGzsBAAAAFGlzQ2FsbGVySW5Hb3Zlcm5hbmNlAAAAAQAAAAR1c2VyAwMJAABmAAAAAgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdnb3ZBZGRyCQABLAAAAAIJAAQlAAAAAQUAAAAEdXNlcgIAAAAMX1NXT1BfYW1vdW50AAAAAAAAAAAAAAAAAAAAAAAABgkAAGYAAAACCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkABCUAAAABBQAA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AQIAAAASTGlzdCBzaXplIGV4Y2VlZCA4AwkAAGYAAAACBQAAABR1c2VyU1dPUGluR292ZXJuYW5jZQUAAAAUdXNlclRvdGFsVm90ZVNXT1BOZXcJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEFAAAABHRoaXMCAAAABSBoYXMgCQABpAAAAAEFAAAAFHVzZXJTV09QaW5Hb3Zlcm5hbmNlAgAAACdTV09QIGluIGdvdmVybmFuY2UuIE5ldyBTV09QIGluIHZvdGluZyAJAAGkAAAAAQUAAAAUdXNlclRvdGFsVm90ZVNXT1BOZXcJAAROAAAAAgkABE4AAAACBQAAAA11c2VyRGF0YUVudHJ5BQAAAA1wb29sRGF0YUVudHJ5CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABJrVXNlclRvdGFsVm90ZVNXT1AFAAAAFHVzZXJUb3RhbFZvdGVTV09QTmV3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA5rVG90YWxWb3RlU1dPUAUAAAAQdG90YWxWb3RlU1dPUG5ldwUAAAADbmlsAAAAAM+Wi3s=", "chainId": 84, "height": 1435907, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qAbTxRzTnmrEQ4vBf8Bct2RYNVVx9YYDc5wuYyfR2Bu Next: CGEX7wrP9sPkHo3ZUuBk1iTH3nGe4sWB3s5DSWfkJiHn Diff:
Old | New | Differences | |
---|---|---|---|
108 | 108 | } | |
109 | 109 | } | |
110 | 110 | } | |
111 | - | let userTotalVoteSWOPNew = (userTotalVoteSWOP + userVoteDiffSWOP) | |
112 | - | let totalVoteSWOPnew = (totalVoteSWOP + userVoteDiffSWOP) | |
113 | 111 | if (true) | |
114 | - | then throw( | |
112 | + | then throw(toString(userVoteDiffSWOP)) | |
115 | 113 | else { | |
116 | - | let userDataEntry = { | |
117 | - | let $list31713212 = poolAddresses | |
118 | - | let $size31713212 = size($list31713212) | |
119 | - | let $acc031713212 = nil | |
120 | - | if (($size31713212 == 0)) | |
121 | - | then $acc031713212 | |
122 | - | else { | |
123 | - | let $acc131713212 = userVoteEntry($acc031713212, $list31713212[0]) | |
124 | - | if (($size31713212 == 1)) | |
125 | - | then $acc131713212 | |
114 | + | let userTotalVoteSWOPNew = (userTotalVoteSWOP + userVoteDiffSWOP) | |
115 | + | let totalVoteSWOPnew = (totalVoteSWOP + userVoteDiffSWOP) | |
116 | + | if (true) | |
117 | + | then throw(((((toString(totalVoteSWOPnew) + " ") + toString(totalVoteSWOP)) + " ") + toString(userVoteDiffSWOP))) | |
118 | + | else { | |
119 | + | let userDataEntry = { | |
120 | + | let $list32293270 = poolAddresses | |
121 | + | let $size32293270 = size($list32293270) | |
122 | + | let $acc032293270 = nil | |
123 | + | if (($size32293270 == 0)) | |
124 | + | then $acc032293270 | |
126 | 125 | else { | |
127 | - | let $ | |
128 | - | if (($ | |
129 | - | then $ | |
126 | + | let $acc132293270 = userVoteEntry($acc032293270, $list32293270[0]) | |
127 | + | if (($size32293270 == 1)) | |
128 | + | then $acc132293270 | |
130 | 129 | else { | |
131 | - | let $ | |
132 | - | if (($ | |
133 | - | then $ | |
130 | + | let $acc232293270 = userVoteEntry($acc132293270, $list32293270[1]) | |
131 | + | if (($size32293270 == 2)) | |
132 | + | then $acc232293270 | |
134 | 133 | else { | |
135 | - | let $ | |
136 | - | if (($ | |
137 | - | then $ | |
134 | + | let $acc332293270 = userVoteEntry($acc232293270, $list32293270[2]) | |
135 | + | if (($size32293270 == 3)) | |
136 | + | then $acc332293270 | |
138 | 137 | else { | |
139 | - | let $ | |
140 | - | if (($ | |
141 | - | then $ | |
138 | + | let $acc432293270 = userVoteEntry($acc332293270, $list32293270[3]) | |
139 | + | if (($size32293270 == 4)) | |
140 | + | then $acc432293270 | |
142 | 141 | else { | |
143 | - | let $ | |
144 | - | if (($ | |
145 | - | then $ | |
142 | + | let $acc532293270 = userVoteEntry($acc432293270, $list32293270[4]) | |
143 | + | if (($size32293270 == 5)) | |
144 | + | then $acc532293270 | |
146 | 145 | else { | |
147 | - | let $ | |
148 | - | if (($ | |
149 | - | then $ | |
146 | + | let $acc632293270 = userVoteEntry($acc532293270, $list32293270[5]) | |
147 | + | if (($size32293270 == 6)) | |
148 | + | then $acc632293270 | |
150 | 149 | else { | |
151 | - | let $ | |
152 | - | if (($ | |
153 | - | then $ | |
150 | + | let $acc732293270 = userVoteEntry($acc632293270, $list32293270[6]) | |
151 | + | if (($size32293270 == 7)) | |
152 | + | then $acc732293270 | |
154 | 153 | else { | |
155 | - | let $acc931713212 = userVoteEntry($acc831713212, $list31713212[8]) | |
156 | - | throw("List size exceed 8") | |
154 | + | let $acc832293270 = userVoteEntry($acc732293270, $list32293270[7]) | |
155 | + | if (($size32293270 == 8)) | |
156 | + | then $acc832293270 | |
157 | + | else { | |
158 | + | let $acc932293270 = userVoteEntry($acc832293270, $list32293270[8]) | |
159 | + | throw("List size exceed 8") | |
160 | + | } | |
157 | 161 | } | |
158 | 162 | } | |
159 | 163 | } | |
163 | 167 | } | |
164 | 168 | } | |
165 | 169 | } | |
166 | - | } | |
167 | - | let poolDataEntry = { | |
168 | - | let $list32373278 = poolAddresses | |
169 | - | let $size32373278 = size($list32373278) | |
170 | - | let $acc032373278 = nil | |
171 | - | if (($size32373278 == 0)) | |
172 | - | then $acc032373278 | |
173 | - | else { | |
174 | - | let $acc132373278 = poolVoteEntry($acc032373278, $list32373278[0]) | |
175 | - | if (($size32373278 == 1)) | |
176 | - | then $acc132373278 | |
170 | + | let poolDataEntry = { | |
171 | + | let $list32953336 = poolAddresses | |
172 | + | let $size32953336 = size($list32953336) | |
173 | + | let $acc032953336 = nil | |
174 | + | if (($size32953336 == 0)) | |
175 | + | then $acc032953336 | |
177 | 176 | else { | |
178 | - | let $ | |
179 | - | if (($ | |
180 | - | then $ | |
177 | + | let $acc132953336 = poolVoteEntry($acc032953336, $list32953336[0]) | |
178 | + | if (($size32953336 == 1)) | |
179 | + | then $acc132953336 | |
181 | 180 | else { | |
182 | - | let $ | |
183 | - | if (($ | |
184 | - | then $ | |
181 | + | let $acc232953336 = poolVoteEntry($acc132953336, $list32953336[1]) | |
182 | + | if (($size32953336 == 2)) | |
183 | + | then $acc232953336 | |
185 | 184 | else { | |
186 | - | let $ | |
187 | - | if (($ | |
188 | - | then $ | |
185 | + | let $acc332953336 = poolVoteEntry($acc232953336, $list32953336[2]) | |
186 | + | if (($size32953336 == 3)) | |
187 | + | then $acc332953336 | |
189 | 188 | else { | |
190 | - | let $ | |
191 | - | if (($ | |
192 | - | then $ | |
189 | + | let $acc432953336 = poolVoteEntry($acc332953336, $list32953336[3]) | |
190 | + | if (($size32953336 == 4)) | |
191 | + | then $acc432953336 | |
193 | 192 | else { | |
194 | - | let $ | |
195 | - | if (($ | |
196 | - | then $ | |
193 | + | let $acc532953336 = poolVoteEntry($acc432953336, $list32953336[4]) | |
194 | + | if (($size32953336 == 5)) | |
195 | + | then $acc532953336 | |
197 | 196 | else { | |
198 | - | let $ | |
199 | - | if (($ | |
200 | - | then $ | |
197 | + | let $acc632953336 = poolVoteEntry($acc532953336, $list32953336[5]) | |
198 | + | if (($size32953336 == 6)) | |
199 | + | then $acc632953336 | |
201 | 200 | else { | |
202 | - | let $ | |
203 | - | if (($ | |
204 | - | then $ | |
201 | + | let $acc732953336 = poolVoteEntry($acc632953336, $list32953336[6]) | |
202 | + | if (($size32953336 == 7)) | |
203 | + | then $acc732953336 | |
205 | 204 | else { | |
206 | - | let $acc932373278 = poolVoteEntry($acc832373278, $list32373278[8]) | |
207 | - | throw("List size exceed 8") | |
205 | + | let $acc832953336 = poolVoteEntry($acc732953336, $list32953336[7]) | |
206 | + | if (($size32953336 == 8)) | |
207 | + | then $acc832953336 | |
208 | + | else { | |
209 | + | let $acc932953336 = poolVoteEntry($acc832953336, $list32953336[8]) | |
210 | + | throw("List size exceed 8") | |
211 | + | } | |
208 | 212 | } | |
209 | 213 | } | |
210 | 214 | } | |
214 | 218 | } | |
215 | 219 | } | |
216 | 220 | } | |
217 | - | | |
218 | - | | |
219 | - | | |
220 | - | | |
221 | + | if ((userSWOPinGovernance > userTotalVoteSWOPNew)) | |
222 | + | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + "SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPNew))) | |
223 | + | else ((userDataEntry ++ poolDataEntry) ++ [IntegerEntry((toString(i.caller) + kUserTotalVoteSWOP), userTotalVoteSWOPNew), IntegerEntry(kTotalVoteSWOP, totalVoteSWOPnew)]) | |
224 | + | } | |
221 | 225 | } | |
222 | 226 | } | |
223 | 227 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let kUserPoolVoteSWOP = "_vote" | |
5 | 5 | ||
6 | 6 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
7 | 7 | ||
8 | 8 | let kPoolVoteSWOP = "_vote_SWOP" | |
9 | 9 | ||
10 | 10 | let kTotalVoteSWOP = "total_vote_SWOP" | |
11 | 11 | ||
12 | 12 | let govAddr = Address(base58'3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE') | |
13 | 13 | ||
14 | 14 | func isCallerInGovernance (user) = if (if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0)) | |
15 | 15 | then true | |
16 | 16 | else (valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) > 0)) | |
17 | 17 | then true | |
18 | 18 | else false | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func isPoolInGovernance (poolAddress) = if ((valueOrElse(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward")), 0) > 0)) | |
22 | 22 | then true | |
23 | 23 | else false | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func votePoolWeight (poolAddresses,poolsVoteSWOPNew) = { | |
28 | 28 | func calcVoteDiffSWOP (accumulated,poolAddress) = if (!(isPoolInGovernance(poolAddress))) | |
29 | 29 | then throw("This pool has no _current_pool_fraction_reward in Governance dApp") | |
30 | 30 | else { | |
31 | 31 | let poolIndex = value(indexOf(poolAddresses, poolAddress)) | |
32 | 32 | let userPoolVoteSWOPNew = poolsVoteSWOPNew[poolIndex] | |
33 | 33 | let userPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + kUserPoolVoteSWOP) + "_") + poolAddress)), 0) | |
34 | 34 | let poolVoteDiffSWOP = (userPoolVoteSWOPNew - userPoolVoteSWOP) | |
35 | 35 | (accumulated + poolVoteDiffSWOP) | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | func userVoteEntry (accumulated,poolAddress) = { | |
39 | 39 | let poolIndex = value(indexOf(poolAddresses, poolAddress)) | |
40 | 40 | let userPoolVoteSWOPNew = poolsVoteSWOPNew[poolIndex] | |
41 | 41 | IntegerEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP), userPoolVoteSWOPNew) :: accumulated | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | func poolVoteEntry (accumulated,poolAddress) = { | |
45 | 45 | let poolIndex = value(indexOf(poolAddresses, poolAddress)) | |
46 | 46 | let userPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
47 | 47 | let userPoolVoteSWOPNew = poolsVoteSWOPNew[poolIndex] | |
48 | 48 | let poolVoteDiffSWOP = (userPoolVoteSWOPNew - userPoolVoteSWOP) | |
49 | 49 | let poolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
50 | 50 | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
51 | 51 | IntegerEntry((poolAddress + kPoolVoteSWOP), poolVoteSWOPnew) :: accumulated | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | if (!(isCallerInGovernance(i.caller))) | |
55 | 55 | then throw("This address has 0 SWOP in Governance dApp") | |
56 | 56 | else { | |
57 | 57 | let totalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
58 | 58 | let userTotalVoteSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
59 | 59 | let userSWOPinGovernance = getIntegerValue(govAddr, (toString(i.caller) + "_SWOP_amount")) | |
60 | 60 | let userVoteDiffSWOP = { | |
61 | 61 | let $list28482891 = poolAddresses | |
62 | 62 | let $size28482891 = size($list28482891) | |
63 | 63 | let $acc028482891 = 0 | |
64 | 64 | if (($size28482891 == 0)) | |
65 | 65 | then $acc028482891 | |
66 | 66 | else { | |
67 | 67 | let $acc128482891 = calcVoteDiffSWOP($acc028482891, $list28482891[0]) | |
68 | 68 | if (($size28482891 == 1)) | |
69 | 69 | then $acc128482891 | |
70 | 70 | else { | |
71 | 71 | let $acc228482891 = calcVoteDiffSWOP($acc128482891, $list28482891[1]) | |
72 | 72 | if (($size28482891 == 2)) | |
73 | 73 | then $acc228482891 | |
74 | 74 | else { | |
75 | 75 | let $acc328482891 = calcVoteDiffSWOP($acc228482891, $list28482891[2]) | |
76 | 76 | if (($size28482891 == 3)) | |
77 | 77 | then $acc328482891 | |
78 | 78 | else { | |
79 | 79 | let $acc428482891 = calcVoteDiffSWOP($acc328482891, $list28482891[3]) | |
80 | 80 | if (($size28482891 == 4)) | |
81 | 81 | then $acc428482891 | |
82 | 82 | else { | |
83 | 83 | let $acc528482891 = calcVoteDiffSWOP($acc428482891, $list28482891[4]) | |
84 | 84 | if (($size28482891 == 5)) | |
85 | 85 | then $acc528482891 | |
86 | 86 | else { | |
87 | 87 | let $acc628482891 = calcVoteDiffSWOP($acc528482891, $list28482891[5]) | |
88 | 88 | if (($size28482891 == 6)) | |
89 | 89 | then $acc628482891 | |
90 | 90 | else { | |
91 | 91 | let $acc728482891 = calcVoteDiffSWOP($acc628482891, $list28482891[6]) | |
92 | 92 | if (($size28482891 == 7)) | |
93 | 93 | then $acc728482891 | |
94 | 94 | else { | |
95 | 95 | let $acc828482891 = calcVoteDiffSWOP($acc728482891, $list28482891[7]) | |
96 | 96 | if (($size28482891 == 8)) | |
97 | 97 | then $acc828482891 | |
98 | 98 | else { | |
99 | 99 | let $acc928482891 = calcVoteDiffSWOP($acc828482891, $list28482891[8]) | |
100 | 100 | throw("List size exceed 8") | |
101 | 101 | } | |
102 | 102 | } | |
103 | 103 | } | |
104 | 104 | } | |
105 | 105 | } | |
106 | 106 | } | |
107 | 107 | } | |
108 | 108 | } | |
109 | 109 | } | |
110 | 110 | } | |
111 | - | let userTotalVoteSWOPNew = (userTotalVoteSWOP + userVoteDiffSWOP) | |
112 | - | let totalVoteSWOPnew = (totalVoteSWOP + userVoteDiffSWOP) | |
113 | 111 | if (true) | |
114 | - | then throw( | |
112 | + | then throw(toString(userVoteDiffSWOP)) | |
115 | 113 | else { | |
116 | - | let userDataEntry = { | |
117 | - | let $list31713212 = poolAddresses | |
118 | - | let $size31713212 = size($list31713212) | |
119 | - | let $acc031713212 = nil | |
120 | - | if (($size31713212 == 0)) | |
121 | - | then $acc031713212 | |
122 | - | else { | |
123 | - | let $acc131713212 = userVoteEntry($acc031713212, $list31713212[0]) | |
124 | - | if (($size31713212 == 1)) | |
125 | - | then $acc131713212 | |
114 | + | let userTotalVoteSWOPNew = (userTotalVoteSWOP + userVoteDiffSWOP) | |
115 | + | let totalVoteSWOPnew = (totalVoteSWOP + userVoteDiffSWOP) | |
116 | + | if (true) | |
117 | + | then throw(((((toString(totalVoteSWOPnew) + " ") + toString(totalVoteSWOP)) + " ") + toString(userVoteDiffSWOP))) | |
118 | + | else { | |
119 | + | let userDataEntry = { | |
120 | + | let $list32293270 = poolAddresses | |
121 | + | let $size32293270 = size($list32293270) | |
122 | + | let $acc032293270 = nil | |
123 | + | if (($size32293270 == 0)) | |
124 | + | then $acc032293270 | |
126 | 125 | else { | |
127 | - | let $ | |
128 | - | if (($ | |
129 | - | then $ | |
126 | + | let $acc132293270 = userVoteEntry($acc032293270, $list32293270[0]) | |
127 | + | if (($size32293270 == 1)) | |
128 | + | then $acc132293270 | |
130 | 129 | else { | |
131 | - | let $ | |
132 | - | if (($ | |
133 | - | then $ | |
130 | + | let $acc232293270 = userVoteEntry($acc132293270, $list32293270[1]) | |
131 | + | if (($size32293270 == 2)) | |
132 | + | then $acc232293270 | |
134 | 133 | else { | |
135 | - | let $ | |
136 | - | if (($ | |
137 | - | then $ | |
134 | + | let $acc332293270 = userVoteEntry($acc232293270, $list32293270[2]) | |
135 | + | if (($size32293270 == 3)) | |
136 | + | then $acc332293270 | |
138 | 137 | else { | |
139 | - | let $ | |
140 | - | if (($ | |
141 | - | then $ | |
138 | + | let $acc432293270 = userVoteEntry($acc332293270, $list32293270[3]) | |
139 | + | if (($size32293270 == 4)) | |
140 | + | then $acc432293270 | |
142 | 141 | else { | |
143 | - | let $ | |
144 | - | if (($ | |
145 | - | then $ | |
142 | + | let $acc532293270 = userVoteEntry($acc432293270, $list32293270[4]) | |
143 | + | if (($size32293270 == 5)) | |
144 | + | then $acc532293270 | |
146 | 145 | else { | |
147 | - | let $ | |
148 | - | if (($ | |
149 | - | then $ | |
146 | + | let $acc632293270 = userVoteEntry($acc532293270, $list32293270[5]) | |
147 | + | if (($size32293270 == 6)) | |
148 | + | then $acc632293270 | |
150 | 149 | else { | |
151 | - | let $ | |
152 | - | if (($ | |
153 | - | then $ | |
150 | + | let $acc732293270 = userVoteEntry($acc632293270, $list32293270[6]) | |
151 | + | if (($size32293270 == 7)) | |
152 | + | then $acc732293270 | |
154 | 153 | else { | |
155 | - | let $acc931713212 = userVoteEntry($acc831713212, $list31713212[8]) | |
156 | - | throw("List size exceed 8") | |
154 | + | let $acc832293270 = userVoteEntry($acc732293270, $list32293270[7]) | |
155 | + | if (($size32293270 == 8)) | |
156 | + | then $acc832293270 | |
157 | + | else { | |
158 | + | let $acc932293270 = userVoteEntry($acc832293270, $list32293270[8]) | |
159 | + | throw("List size exceed 8") | |
160 | + | } | |
157 | 161 | } | |
158 | 162 | } | |
159 | 163 | } | |
160 | 164 | } | |
161 | 165 | } | |
162 | 166 | } | |
163 | 167 | } | |
164 | 168 | } | |
165 | 169 | } | |
166 | - | } | |
167 | - | let poolDataEntry = { | |
168 | - | let $list32373278 = poolAddresses | |
169 | - | let $size32373278 = size($list32373278) | |
170 | - | let $acc032373278 = nil | |
171 | - | if (($size32373278 == 0)) | |
172 | - | then $acc032373278 | |
173 | - | else { | |
174 | - | let $acc132373278 = poolVoteEntry($acc032373278, $list32373278[0]) | |
175 | - | if (($size32373278 == 1)) | |
176 | - | then $acc132373278 | |
170 | + | let poolDataEntry = { | |
171 | + | let $list32953336 = poolAddresses | |
172 | + | let $size32953336 = size($list32953336) | |
173 | + | let $acc032953336 = nil | |
174 | + | if (($size32953336 == 0)) | |
175 | + | then $acc032953336 | |
177 | 176 | else { | |
178 | - | let $ | |
179 | - | if (($ | |
180 | - | then $ | |
177 | + | let $acc132953336 = poolVoteEntry($acc032953336, $list32953336[0]) | |
178 | + | if (($size32953336 == 1)) | |
179 | + | then $acc132953336 | |
181 | 180 | else { | |
182 | - | let $ | |
183 | - | if (($ | |
184 | - | then $ | |
181 | + | let $acc232953336 = poolVoteEntry($acc132953336, $list32953336[1]) | |
182 | + | if (($size32953336 == 2)) | |
183 | + | then $acc232953336 | |
185 | 184 | else { | |
186 | - | let $ | |
187 | - | if (($ | |
188 | - | then $ | |
185 | + | let $acc332953336 = poolVoteEntry($acc232953336, $list32953336[2]) | |
186 | + | if (($size32953336 == 3)) | |
187 | + | then $acc332953336 | |
189 | 188 | else { | |
190 | - | let $ | |
191 | - | if (($ | |
192 | - | then $ | |
189 | + | let $acc432953336 = poolVoteEntry($acc332953336, $list32953336[3]) | |
190 | + | if (($size32953336 == 4)) | |
191 | + | then $acc432953336 | |
193 | 192 | else { | |
194 | - | let $ | |
195 | - | if (($ | |
196 | - | then $ | |
193 | + | let $acc532953336 = poolVoteEntry($acc432953336, $list32953336[4]) | |
194 | + | if (($size32953336 == 5)) | |
195 | + | then $acc532953336 | |
197 | 196 | else { | |
198 | - | let $ | |
199 | - | if (($ | |
200 | - | then $ | |
197 | + | let $acc632953336 = poolVoteEntry($acc532953336, $list32953336[5]) | |
198 | + | if (($size32953336 == 6)) | |
199 | + | then $acc632953336 | |
201 | 200 | else { | |
202 | - | let $ | |
203 | - | if (($ | |
204 | - | then $ | |
201 | + | let $acc732953336 = poolVoteEntry($acc632953336, $list32953336[6]) | |
202 | + | if (($size32953336 == 7)) | |
203 | + | then $acc732953336 | |
205 | 204 | else { | |
206 | - | let $acc932373278 = poolVoteEntry($acc832373278, $list32373278[8]) | |
207 | - | throw("List size exceed 8") | |
205 | + | let $acc832953336 = poolVoteEntry($acc732953336, $list32953336[7]) | |
206 | + | if (($size32953336 == 8)) | |
207 | + | then $acc832953336 | |
208 | + | else { | |
209 | + | let $acc932953336 = poolVoteEntry($acc832953336, $list32953336[8]) | |
210 | + | throw("List size exceed 8") | |
211 | + | } | |
208 | 212 | } | |
209 | 213 | } | |
210 | 214 | } | |
211 | 215 | } | |
212 | 216 | } | |
213 | 217 | } | |
214 | 218 | } | |
215 | 219 | } | |
216 | 220 | } | |
217 | - | | |
218 | - | | |
219 | - | | |
220 | - | | |
221 | + | if ((userSWOPinGovernance > userTotalVoteSWOPNew)) | |
222 | + | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + "SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPNew))) | |
223 | + | else ((userDataEntry ++ poolDataEntry) ++ [IntegerEntry((toString(i.caller) + kUserTotalVoteSWOP), userTotalVoteSWOPNew), IntegerEntry(kTotalVoteSWOP, totalVoteSWOPnew)]) | |
224 | + | } | |
221 | 225 | } | |
222 | 226 | } | |
223 | 227 | } | |
224 | 228 | ||
225 | 229 |
github/deemru/w8io/169f3d6 105.02 ms ◑