tx · EumLVKas9QG71rPCzGfrhWTXfRq5rwtUAzxcbnNfwNps 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ: -0.01400000 Waves 2022.02.11 13:10 [1918814] smart account 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ > SELF 0.00000000 Waves
{ "type": 13, "id": "EumLVKas9QG71rPCzGfrhWTXfRq5rwtUAzxcbnNfwNps", "fee": 1400000, "feeAssetId": null, "timestamp": 1644574267072, "version": 2, "chainId": 84, "sender": "3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ", "senderPublicKey": "Dkwrk2dDeUwNM8gVg17qj6fCpJ2e7Qb2myPi1FE9Y6is", "proofs": [ "2GDk9Ckn8mDevPEuvPHAscYxLAqz8c4ZrzeJ4AknQiFCor9cWVJ1aPGd29xuUqsFzGfbVNoNzGm24BUriBbnjGyY", "3d3PQH39Pv2L1XQobubbYgHRj5ywM1NmAsaAsfs85mic22fvRXpTAZ5hcfQj4L4w4V635VHPrAzrmJygdmS7skYc" ], "script": "base64:AAIFAAAAAAAAAAwIAhIECgIYERIAEgAAAAApAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrVXNlclBvb2xWb3RlU1dPUAIAAAAFX3ZvdGUAAAAADmtVc2VyUG9vbFN0cnVjAgAAABBfdXNlcl9wb29sX3N0cnVjAAAAABJrVXNlclRvdGFsVm90ZVNXT1ACAAAAFV91c2VyX3RvdGFsX1NXT1Bfdm90ZQAAAAAPa1VzZXJUb3RhbFN0cnVjAgAAABFfdXNlcl90b3RhbF9zdHJ1YwAAAAANa1Bvb2xWb3RlU1dPUAIAAAAKX3ZvdGVfU1dPUAAAAAAKa1Bvb2xTdHJ1YwIAAAALX3Bvb2xfc3RydWMAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAC2tUb3RhbFN0cnVjAgAAAAt0b3RhbF9zdHJ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5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAj4ggv8=", "height": 1918814, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3uDkLGQFyX2mExcgwPrvsqDDkFfLtxBZstcrRAGGepvC Next: Eu1ChVC12GdX16k15FyhJrsGaqkEyWnFWjeofAFPhAFx Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | ||
44 | 44 | let scale8 = 100000000 | |
45 | 45 | ||
46 | - | let active = getBooleanValue(this, keyActive) | |
46 | + | let active = valueOrElse(getBooleanValue(this, keyActive), false) | |
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 $t042244855 = 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 = $t042244855._1 | |
143 | + | let userPoolActiveVoteSWOP = $t042244855._2 | |
144 | + | let userPoolVotePeriod = $t042244855._3 | |
145 | + | let userPoolFreezeSWOP = $t042244855._4 | |
146 | + | let $t048615367 = 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 = $t048615367._1 | |
156 | + | let userUnvoted = $t048615367._2 | |
157 | + | let userUnvotedPeriod = $t048615367._3 | |
158 | + | let $t053725838 = 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 = $t053725838._1 | |
168 | + | let poolActiveSWOP = $t053725838._2 | |
169 | + | let poolPeriod = $t053725838._3 | |
170 | + | let $t058446278 = 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 = $t058446278._1 | |
180 | + | let totalActiveSWOP = $t058446278._2 | |
181 | + | let totalPeriod = $t058446278._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 = getBooleanValue(this, keyActive) | |
46 | + | let active = valueOrElse(getBooleanValue(this, keyActive), false) | |
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 $t042244855 = 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 = $t042244855._1 | |
143 | + | let userPoolActiveVoteSWOP = $t042244855._2 | |
144 | + | let userPoolVotePeriod = $t042244855._3 | |
145 | + | let userPoolFreezeSWOP = $t042244855._4 | |
146 | + | let $t048615367 = 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 = $t048615367._1 | |
156 | + | let userUnvoted = $t048615367._2 | |
157 | + | let userUnvotedPeriod = $t048615367._3 | |
158 | + | let $t053725838 = 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 = $t053725838._1 | |
168 | + | let poolActiveSWOP = $t053725838._2 | |
169 | + | let poolPeriod = $t053725838._3 | |
170 | + | let $t058446278 = 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 = $t058446278._1 | |
180 | + | let totalActiveSWOP = $t058446278._2 | |
181 | + | let totalPeriod = $t058446278._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 55.96 ms ◑