tx · Eu1ChVC12GdX16k15FyhJrsGaqkEyWnFWjeofAFPhAFx 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ: -0.01400000 Waves 2022.02.11 16:45 [1919024] smart account 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ > SELF 0.00000000 Waves
{ "type": 13, "id": "Eu1ChVC12GdX16k15FyhJrsGaqkEyWnFWjeofAFPhAFx", "fee": 1400000, "feeAssetId": null, "timestamp": 1644587090933, "version": 2, "chainId": 84, "sender": "3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ", "senderPublicKey": "Dkwrk2dDeUwNM8gVg17qj6fCpJ2e7Qb2myPi1FE9Y6is", "proofs": [ "5wazSYYs8B2YBNBHsa2FTPBP5yjQJMLmuE1kfEospPsJS3NXCyVboMsAZAxRHF1AdpdjNjZDwgdWB1Ew8PFg1DCj", "3yFsqkiNJFNR5GfZf6tJ3txFTyiv9yx5Pey2SPYCoZdYWALshaBudkjcLMPM4XvMu3CgEMUvXaQjS4jdL2rZFE3j" ], "script": "base64:AAIFAAAAAAAAAAwIAhIECgIYERIAEgAAAAApAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrVXNlclBvb2xWb3RlU1dPUAIAAAAFX3ZvdGUAAAAADmtVc2VyUG9vbFN0cnVjAgAAABBfdXNlcl9wb29sX3N0cnVjAAAAABJrVXNlclRvdGFsVm90ZVNXT1ACAAAAFV91c2VyX3RvdGFsX1NXT1Bfdm90ZQAAAAAPa1VzZXJUb3RhbFN0cnVjAgAAABFfdXNlcl90b3RhbF9zdHJ1YwAAAAANa1Bvb2xWb3RlU1dPUAIAAAAKX3ZvdGVfU1dPUAAAAAAKa1Bvb2xTdHJ1YwIAAAALX3Bvb2xfc3RydWMAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAC2tUb3RhbFN0cnVjAgAAAAt0b3Rhb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JhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACQezajQ==", "height": 1919024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EumLVKas9QG71rPCzGfrhWTXfRq5rwtUAzxcbnNfwNps Next: none Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | ||
44 | 44 | let scale8 = 100000000 | |
45 | 45 | ||
46 | - | let active = valueOrElse( | |
46 | + | let active = valueOrElse(getBoolean(this, keyActive), true) | |
47 | 47 | ||
48 | 48 | let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod") | |
49 | 49 | ||
130 | 130 | then throw("This pool has no _current_pool_fraction_reward in Governance dApp") | |
131 | 131 | else { | |
132 | 132 | let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
133 | - | let $ | |
133 | + | let $t042184849 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)))) | |
134 | 134 | then { | |
135 | 135 | let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_") | |
136 | 136 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
139 | 139 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
140 | 140 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
141 | 141 | } | |
142 | - | let userPoolVoteSWOP = $ | |
143 | - | let userPoolActiveVoteSWOP = $ | |
144 | - | let userPoolVotePeriod = $ | |
145 | - | let userPoolFreezeSWOP = $ | |
146 | - | let $ | |
142 | + | let userPoolVoteSWOP = $t042184849._1 | |
143 | + | let userPoolActiveVoteSWOP = $t042184849._2 | |
144 | + | let userPoolVotePeriod = $t042184849._3 | |
145 | + | let userPoolFreezeSWOP = $t042184849._4 | |
146 | + | let $t048555361 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc)))) | |
147 | 147 | then { | |
148 | 148 | let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
149 | 149 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
152 | 152 | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
153 | 153 | $Tuple3(uPoolTotalSWOP, 0, 0) | |
154 | 154 | } | |
155 | - | let userTotalVoteSWOP = $ | |
156 | - | let userUnvoted = $ | |
157 | - | let userUnvotedPeriod = $ | |
158 | - | let $ | |
155 | + | let userTotalVoteSWOP = $t048555361._1 | |
156 | + | let userUnvoted = $t048555361._2 | |
157 | + | let userUnvotedPeriod = $t048555361._3 | |
158 | + | let $t053665832 = if (isDefined(getString(this, (poolAddress + kPoolStruc)))) | |
159 | 159 | then { | |
160 | 160 | let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_") | |
161 | 161 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
164 | 164 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
165 | 165 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
166 | 166 | } | |
167 | - | let poolVoteSWOP = $ | |
168 | - | let poolActiveSWOP = $ | |
169 | - | let poolPeriod = $ | |
170 | - | let $ | |
167 | + | let poolVoteSWOP = $t053665832._1 | |
168 | + | let poolActiveSWOP = $t053665832._2 | |
169 | + | let poolPeriod = $t053665832._3 | |
170 | + | let $t058386272 = if (isDefined(getString(this, kTotalStruc))) | |
171 | 171 | then { | |
172 | 172 | let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_") | |
173 | 173 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
176 | 176 | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
177 | 177 | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
178 | 178 | } | |
179 | - | let totalVoteSWOP = $ | |
180 | - | let totalActiveSWOP = $ | |
181 | - | let totalPeriod = $ | |
179 | + | let totalVoteSWOP = $t058386272._1 | |
180 | + | let totalActiveSWOP = $t058386272._2 | |
181 | + | let totalPeriod = $t058386272._3 | |
182 | 182 | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
183 | 183 | let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP) | |
184 | 184 | if (!(isCallerInGovernance(i.caller))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyActive = "active" | |
5 | 5 | ||
6 | 6 | let keyCause = "shutdown_cause" | |
7 | 7 | ||
8 | 8 | let kUserPoolVoteSWOP = "_vote" | |
9 | 9 | ||
10 | 10 | let kUserPoolStruc = "_user_pool_struc" | |
11 | 11 | ||
12 | 12 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
13 | 13 | ||
14 | 14 | let kUserTotalStruc = "_user_total_struc" | |
15 | 15 | ||
16 | 16 | let kPoolVoteSWOP = "_vote_SWOP" | |
17 | 17 | ||
18 | 18 | let kPoolStruc = "_pool_struc" | |
19 | 19 | ||
20 | 20 | let kTotalVoteSWOP = "total_vote_SWOP" | |
21 | 21 | ||
22 | 22 | let kTotalStruc = "total_struc" | |
23 | 23 | ||
24 | 24 | let keyAdminPubKey1 = "admin_pub_1" | |
25 | 25 | ||
26 | 26 | let keyAdminPubKey2 = "admin_pub_2" | |
27 | 27 | ||
28 | 28 | let keyAdminPubKey3 = "admin_pub_3" | |
29 | 29 | ||
30 | 30 | let kHarvestPoolActiveVoteStruc = "_harvest_pool_activeVote_struc" | |
31 | 31 | ||
32 | 32 | let kHarvestUserPoolActiveVoteStruc = "_harvest_user_pool_activeVote_struc" | |
33 | 33 | ||
34 | 34 | let kStartHeight = "start_height" | |
35 | 35 | ||
36 | 36 | let kBasePeriod = "base_period" | |
37 | 37 | ||
38 | 38 | let kPeriodLength = "period_length" | |
39 | 39 | ||
40 | 40 | let kDurationFullVotePower = "duration_full_vote_power" | |
41 | 41 | ||
42 | 42 | let kMinVotePower = "min_vote_power" | |
43 | 43 | ||
44 | 44 | let scale8 = 100000000 | |
45 | 45 | ||
46 | - | let active = valueOrElse( | |
46 | + | let active = valueOrElse(getBoolean(this, keyActive), true) | |
47 | 47 | ||
48 | 48 | let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod") | |
49 | 49 | ||
50 | 50 | let startHeight = valueOrErrorMessage(getInteger(this, kStartHeight), "Empty kStartHeight") | |
51 | 51 | ||
52 | 52 | let periodLength = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength") | |
53 | 53 | ||
54 | 54 | let durationFullVotePower = valueOrErrorMessage(getInteger(this, kDurationFullVotePower), "Empty kDurationFullVotePower") | |
55 | 55 | ||
56 | 56 | let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower") | |
57 | 57 | ||
58 | 58 | let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
59 | 59 | ||
60 | 60 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
61 | 61 | ||
62 | 62 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
63 | 63 | case string: String => | |
64 | 64 | fromBase58String(string) | |
65 | 65 | case nothing => | |
66 | 66 | throw("Admin public key is empty") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
71 | 71 | ||
72 | 72 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
73 | 73 | ||
74 | 74 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
75 | 75 | ||
76 | 76 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
77 | 77 | ||
78 | 78 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
79 | 79 | ||
80 | 80 | func isActive () = if (active) | |
81 | 81 | then unit | |
82 | 82 | else throw("DApp is inactive at this moment") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0)) | |
89 | 89 | then true | |
90 | 90 | else false | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func isPoolInGovernance (poolAddress) = isDefined(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward"))) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func votingCoef () = { | |
97 | 97 | let votingDuration = (height - (startHeight + (currPeriod * periodLength))) | |
98 | 98 | if ((durationFullVotePower > votingDuration)) | |
99 | 99 | then scale8 | |
100 | 100 | else { | |
101 | 101 | let x1 = durationFullVotePower | |
102 | 102 | let y1 = scale8 | |
103 | 103 | let x2 = periodLength | |
104 | 104 | let y2 = minVotePower | |
105 | 105 | let k = (((y2 - y1) * scale8) / (x2 - x1)) | |
106 | 106 | let b = ((y1 * scale8) - (k * x1)) | |
107 | 107 | (((votingDuration * k) / scale8) + (b / scale8)) | |
108 | 108 | } | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func calcDeleteEntry (caller,poolAddress,userPoolVoteSWOPnew) = { | |
113 | 113 | func deleteIfExists (list,key) = if (isDefined(getInteger(this, key))) | |
114 | 114 | then (list :+ DeleteEntry(key)) | |
115 | 115 | else list | |
116 | 116 | ||
117 | 117 | deleteIfExists(deleteIfExists(deleteIfExists(deleteIfExists(nil, (((caller + "_") + poolAddress) + kUserPoolVoteSWOP)), (caller + kUserTotalVoteSWOP)), (poolAddress + kPoolVoteSWOP)), kTotalVoteSWOP) | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(i) | |
122 | 122 | func votePoolWeight (poolAddressesL,poolsVoteSWOPNewL) = valueOrElse(isActive(), if (if ((size(poolAddressesL) > 1)) | |
123 | 123 | then true | |
124 | 124 | else (size(poolsVoteSWOPNewL) > 1)) | |
125 | 125 | then throw("poolAddressesL.size > 1 or poolsVoteSWOPNewL.size > 1") | |
126 | 126 | else { | |
127 | 127 | let poolAddress = poolAddressesL[0] | |
128 | 128 | let userPoolVoteSWOPnew = poolsVoteSWOPNewL[0] | |
129 | 129 | if (!(isPoolInGovernance(poolAddress))) | |
130 | 130 | then throw("This pool has no _current_pool_fraction_reward in Governance dApp") | |
131 | 131 | else { | |
132 | 132 | let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address") | |
133 | - | let $ | |
133 | + | let $t042184849 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)))) | |
134 | 134 | then { | |
135 | 135 | let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_") | |
136 | 136 | $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3])) | |
137 | 137 | } | |
138 | 138 | else { | |
139 | 139 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0) | |
140 | 140 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
141 | 141 | } | |
142 | - | let userPoolVoteSWOP = $ | |
143 | - | let userPoolActiveVoteSWOP = $ | |
144 | - | let userPoolVotePeriod = $ | |
145 | - | let userPoolFreezeSWOP = $ | |
146 | - | let $ | |
142 | + | let userPoolVoteSWOP = $t042184849._1 | |
143 | + | let userPoolActiveVoteSWOP = $t042184849._2 | |
144 | + | let userPoolVotePeriod = $t042184849._3 | |
145 | + | let userPoolFreezeSWOP = $t042184849._4 | |
146 | + | let $t048555361 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc)))) | |
147 | 147 | then { | |
148 | 148 | let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
149 | 149 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
150 | 150 | } | |
151 | 151 | else { | |
152 | 152 | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0) | |
153 | 153 | $Tuple3(uPoolTotalSWOP, 0, 0) | |
154 | 154 | } | |
155 | - | let userTotalVoteSWOP = $ | |
156 | - | let userUnvoted = $ | |
157 | - | let userUnvotedPeriod = $ | |
158 | - | let $ | |
155 | + | let userTotalVoteSWOP = $t048555361._1 | |
156 | + | let userUnvoted = $t048555361._2 | |
157 | + | let userUnvotedPeriod = $t048555361._3 | |
158 | + | let $t053665832 = if (isDefined(getString(this, (poolAddress + kPoolStruc)))) | |
159 | 159 | then { | |
160 | 160 | let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_") | |
161 | 161 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
162 | 162 | } | |
163 | 163 | else { | |
164 | 164 | let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0) | |
165 | 165 | $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0) | |
166 | 166 | } | |
167 | - | let poolVoteSWOP = $ | |
168 | - | let poolActiveSWOP = $ | |
169 | - | let poolPeriod = $ | |
170 | - | let $ | |
167 | + | let poolVoteSWOP = $t053665832._1 | |
168 | + | let poolActiveSWOP = $t053665832._2 | |
169 | + | let poolPeriod = $t053665832._3 | |
170 | + | let $t058386272 = if (isDefined(getString(this, kTotalStruc))) | |
171 | 171 | then { | |
172 | 172 | let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_") | |
173 | 173 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
174 | 174 | } | |
175 | 175 | else { | |
176 | 176 | let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0) | |
177 | 177 | $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0) | |
178 | 178 | } | |
179 | - | let totalVoteSWOP = $ | |
180 | - | let totalActiveSWOP = $ | |
181 | - | let totalPeriod = $ | |
179 | + | let totalVoteSWOP = $t058386272._1 | |
180 | + | let totalActiveSWOP = $t058386272._2 | |
181 | + | let totalPeriod = $t058386272._3 | |
182 | 182 | let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP) | |
183 | 183 | let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP) | |
184 | 184 | if (!(isCallerInGovernance(i.caller))) | |
185 | 185 | then throw("This address has 0 SWOP in Governance dApp") | |
186 | 186 | else if ((userTotalVoteSWOPnew > userSWOPinGovernance)) | |
187 | 187 | then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew))) | |
188 | 188 | else if ((0 > userTotalVoteSWOPnew)) | |
189 | 189 | then throw("New userTotalVoteSWOPnew < 0") | |
190 | 190 | else if ((0 > userPoolVoteSWOPnew)) | |
191 | 191 | then throw("New userPoolVoteSWOPnew < 0") | |
192 | 192 | else { | |
193 | 193 | let amountOfVoting = split(valueOrElse(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), ""), "_") | |
194 | 194 | let amountPoolStract = split(valueOrElse(getString(this, (poolAddress + kPoolStruc)), ""), "_") | |
195 | 195 | let harvestPoolActiveVoteStrucEntry = if (if ((valueOrElse(getString(this, (poolAddress + kPoolStruc)), "") != "")) | |
196 | 196 | then (currPeriod != valueOrElse(parseInt(amountPoolStract[2]), 0)) | |
197 | 197 | else false) | |
198 | 198 | then { | |
199 | 199 | let harvestPoolActiveVoteStruc = ((amountPoolStract[1] + "_") + amountPoolStract[2]) | |
200 | 200 | [StringEntry((poolAddress + kHarvestPoolActiveVoteStruc), harvestPoolActiveVoteStruc)] | |
201 | 201 | } | |
202 | 202 | else nil | |
203 | 203 | let harvestUserPoolActiveVoteStrucEntry = if (if ((valueOrElse(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "") != "")) | |
204 | 204 | then (currPeriod != valueOrElse(parseInt(amountOfVoting[2]), 0)) | |
205 | 205 | else false) | |
206 | 206 | then { | |
207 | 207 | let harvestUserPoolActiveVoteStruc = ((amountOfVoting[1] + "_") + amountOfVoting[2]) | |
208 | 208 | [StringEntry((((toString(i.caller) + "_") + poolAddress) + kHarvestUserPoolActiveVoteStruc), harvestUserPoolActiveVoteStruc)] | |
209 | 209 | } | |
210 | 210 | else nil | |
211 | 211 | if ((userPoolVoteSWOPnew >= userPoolVoteSWOP)) | |
212 | 212 | then { | |
213 | 213 | let coef = votingCoef() | |
214 | 214 | let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
215 | 215 | then (userPoolActiveVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
216 | 216 | else (userPoolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
217 | 217 | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
218 | 218 | then userPoolFreezeSWOP | |
219 | 219 | else userPoolVoteSWOP | |
220 | 220 | let userUnvotedNew = if ((userUnvotedPeriod == currPeriod)) | |
221 | 221 | then max([0, (userUnvoted - poolVoteDiffSWOP)]) | |
222 | 222 | else 0 | |
223 | 223 | let userUnvotedPeriodNew = currPeriod | |
224 | 224 | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
225 | 225 | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
226 | 226 | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew)) | |
227 | 227 | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
228 | 228 | let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP) | |
229 | 229 | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
230 | 230 | then (poolActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
231 | 231 | else (poolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
232 | 232 | let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) | |
233 | 233 | let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)] | |
234 | 234 | let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP) | |
235 | 235 | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
236 | 236 | then (totalActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
237 | 237 | else (totalVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8)) | |
238 | 238 | let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod)) | |
239 | 239 | let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)] | |
240 | 240 | ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry) | |
241 | 241 | } | |
242 | 242 | else { | |
243 | 243 | let removePoolVote = -(poolVoteDiffSWOP) | |
244 | 244 | let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod)) | |
245 | 245 | then userPoolFreezeSWOP | |
246 | 246 | else userPoolVoteSWOP | |
247 | 247 | let userPoolFreezeSWOP2 = min([userPoolFreezeSWOP, userPoolVoteSWOP]) | |
248 | 248 | let userPoolFreezeSWOPnew2 = min([userPoolFreezeSWOPnew, userPoolVoteSWOPnew]) | |
249 | 249 | let userPoolActiveVoteSWOPnew = (userPoolFreezeSWOPnew2 + (if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0)) | |
250 | 250 | then 0 | |
251 | 251 | else fraction((userPoolActiveVoteSWOP - userPoolFreezeSWOP), (userPoolVoteSWOPnew - userPoolFreezeSWOPnew2), (userPoolVoteSWOP - userPoolFreezeSWOP)))) | |
252 | 252 | let userPoolActiveVoteDiff = (userPoolActiveVoteSWOPnew - (if ((userPoolVotePeriod == currPeriod)) | |
253 | 253 | then userPoolActiveVoteSWOP | |
254 | 254 | else userPoolVoteSWOP)) | |
255 | 255 | let newUnvoted = max([0, (removePoolVote - (if ((userPoolVotePeriod == currPeriod)) | |
256 | 256 | then (userPoolVoteSWOP - userPoolFreezeSWOP2) | |
257 | 257 | else 0))]) | |
258 | 258 | let userUnvotedNew = (newUnvoted + (if ((userUnvotedPeriod == currPeriod)) | |
259 | 259 | then userUnvoted | |
260 | 260 | else 0)) | |
261 | 261 | let userUnvotedPeriodNew = if ((newUnvoted > 0)) | |
262 | 262 | then currPeriod | |
263 | 263 | else userUnvotedPeriod | |
264 | 264 | let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew)) | |
265 | 265 | let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)] | |
266 | 266 | let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew)) | |
267 | 267 | let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)] | |
268 | 268 | let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote) | |
269 | 269 | let poolActiveSWOPnew = if ((poolPeriod == currPeriod)) | |
270 | 270 | then (poolActiveSWOP + userPoolActiveVoteDiff) | |
271 | 271 | else (poolVoteSWOP + userPoolActiveVoteDiff) | |
272 | 272 | let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) | |
273 | 273 | let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)] | |
274 | 274 | let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote) | |
275 | 275 | let totalActiveSWOPnew = if ((totalPeriod == currPeriod)) | |
276 | 276 | then (totalActiveSWOP + userPoolActiveVoteDiff) | |
277 | 277 | else (totalVoteSWOP + userPoolActiveVoteDiff) | |
278 | 278 | let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod)) | |
279 | 279 | let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)] | |
280 | 280 | let allNewValues = [currPeriod, userPoolFreezeSWOPnew, userPoolActiveVoteSWOPnew, userPoolFreezeSWOPnew, userUnvotedNew, userUnvotedPeriodNew, poolVoteSWOPnew, poolActiveSWOPnew, totalVoteSWOPnew, totalActiveSWOPnew] | |
281 | 281 | if ((0 > min(allNewValues))) | |
282 | 282 | then throw("One or more values are negative") | |
283 | 283 | else ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry) | |
284 | 284 | } | |
285 | 285 | } | |
286 | 286 | } | |
287 | 287 | }) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | ||
291 | 291 | @Callable(i) | |
292 | 292 | func shutdown () = if (!(active)) | |
293 | 293 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
294 | 294 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
295 | 295 | then throw("Only admin can call this function") | |
296 | 296 | else suspend("Paused by admin") | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(i) | |
301 | 301 | func activate () = if (active) | |
302 | 302 | then throw("DApp is already active") | |
303 | 303 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
304 | 304 | then throw("Only admin can call this function") | |
305 | 305 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Verifier(tx) | |
309 | 309 | func verify () = { | |
310 | 310 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
311 | 311 | then 1 | |
312 | 312 | else 0 | |
313 | 313 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
314 | 314 | then 1 | |
315 | 315 | else 0 | |
316 | 316 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
317 | 317 | then 1 | |
318 | 318 | else 0 | |
319 | 319 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
320 | 320 | } | |
321 | 321 |
github/deemru/w8io/026f985 58.28 ms ◑