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:AAIFAAAAAAAAAAwIAhIECgIYERIAEgAAAAApAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrVXNlclBvb2xWb3RlU1dPUAIAAAAFX3ZvdGUAAAAADmtVc2VyUG9vbFN0cnVjAgAAABBfdXNlcl9wb29sX3N0cnVjAAAAABJrVXNlclRvdGFsVm90ZVNXT1ACAAAAFV91c2VyX3RvdGFsX1NXT1Bfdm90ZQAAAAAPa1VzZXJUb3RhbFN0cnVjAgAAABFfdXNlcl90b3RhbF9zdHJ1YwAAAAANa1Bvb2xWb3RlU1dPUAIAAAAKX3ZvdGVfU1dPUAAAAAAKa1Bvb2xTdHJ1YwIAAAALX3Bvb2xfc3RydWMAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAC2tUb3RhbFN0cnVjAgAAAAt0b3Rh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ABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACQezajQ==", "height": 1919024, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EumLVKas9QG71rPCzGfrhWTXfRq5rwtUAzxcbnNfwNps Next: none Diff:
OldNewDifferences
4343
4444 let scale8 = 100000000
4545
46-let active = valueOrElse(getBooleanValue(this, keyActive), false)
46+let active = valueOrElse(getBoolean(this, keyActive), true)
4747
4848 let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod")
4949
130130 then throw("This pool has no _current_pool_fraction_reward in Governance dApp")
131131 else {
132132 let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
133- let $t042244855 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
133+ let $t042184849 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
134134 then {
135135 let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_")
136136 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
139139 let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0)
140140 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
141141 }
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))))
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))))
147147 then {
148148 let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
149149 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
152152 let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0)
153153 $Tuple3(uPoolTotalSWOP, 0, 0)
154154 }
155- let userTotalVoteSWOP = $t048615367._1
156- let userUnvoted = $t048615367._2
157- let userUnvotedPeriod = $t048615367._3
158- let $t053725838 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
155+ let userTotalVoteSWOP = $t048555361._1
156+ let userUnvoted = $t048555361._2
157+ let userUnvotedPeriod = $t048555361._3
158+ let $t053665832 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
159159 then {
160160 let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_")
161161 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
164164 let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0)
165165 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
166166 }
167- let poolVoteSWOP = $t053725838._1
168- let poolActiveSWOP = $t053725838._2
169- let poolPeriod = $t053725838._3
170- let $t058446278 = if (isDefined(getString(this, kTotalStruc)))
167+ let poolVoteSWOP = $t053665832._1
168+ let poolActiveSWOP = $t053665832._2
169+ let poolPeriod = $t053665832._3
170+ let $t058386272 = if (isDefined(getString(this, kTotalStruc)))
171171 then {
172172 let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_")
173173 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
176176 let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0)
177177 $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0)
178178 }
179- let totalVoteSWOP = $t058446278._1
180- let totalActiveSWOP = $t058446278._2
181- let totalPeriod = $t058446278._3
179+ let totalVoteSWOP = $t058386272._1
180+ let totalActiveSWOP = $t058386272._2
181+ let totalPeriod = $t058386272._3
182182 let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP)
183183 let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP)
184184 if (!(isCallerInGovernance(i.caller)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyActive = "active"
55
66 let keyCause = "shutdown_cause"
77
88 let kUserPoolVoteSWOP = "_vote"
99
1010 let kUserPoolStruc = "_user_pool_struc"
1111
1212 let kUserTotalVoteSWOP = "_user_total_SWOP_vote"
1313
1414 let kUserTotalStruc = "_user_total_struc"
1515
1616 let kPoolVoteSWOP = "_vote_SWOP"
1717
1818 let kPoolStruc = "_pool_struc"
1919
2020 let kTotalVoteSWOP = "total_vote_SWOP"
2121
2222 let kTotalStruc = "total_struc"
2323
2424 let keyAdminPubKey1 = "admin_pub_1"
2525
2626 let keyAdminPubKey2 = "admin_pub_2"
2727
2828 let keyAdminPubKey3 = "admin_pub_3"
2929
3030 let kHarvestPoolActiveVoteStruc = "_harvest_pool_activeVote_struc"
3131
3232 let kHarvestUserPoolActiveVoteStruc = "_harvest_user_pool_activeVote_struc"
3333
3434 let kStartHeight = "start_height"
3535
3636 let kBasePeriod = "base_period"
3737
3838 let kPeriodLength = "period_length"
3939
4040 let kDurationFullVotePower = "duration_full_vote_power"
4141
4242 let kMinVotePower = "min_vote_power"
4343
4444 let scale8 = 100000000
4545
46-let active = valueOrElse(getBooleanValue(this, keyActive), false)
46+let active = valueOrElse(getBoolean(this, keyActive), true)
4747
4848 let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod")
4949
5050 let startHeight = valueOrErrorMessage(getInteger(this, kStartHeight), "Empty kStartHeight")
5151
5252 let periodLength = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength")
5353
5454 let durationFullVotePower = valueOrErrorMessage(getInteger(this, kDurationFullVotePower), "Empty kDurationFullVotePower")
5555
5656 let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower")
5757
5858 let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
5959
6060 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
6161
6262 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
6363 case string: String =>
6464 fromBase58String(string)
6565 case nothing =>
6666 throw("Admin public key is empty")
6767 }
6868
6969
7070 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
7171
7272 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
7373
7474 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
7575
7676 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
7777
7878 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
7979
8080 func isActive () = if (active)
8181 then unit
8282 else throw("DApp is inactive at this moment")
8383
8484
8585 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
8686
8787
8888 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0))
8989 then true
9090 else false
9191
9292
9393 func isPoolInGovernance (poolAddress) = isDefined(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward")))
9494
9595
9696 func votingCoef () = {
9797 let votingDuration = (height - (startHeight + (currPeriod * periodLength)))
9898 if ((durationFullVotePower > votingDuration))
9999 then scale8
100100 else {
101101 let x1 = durationFullVotePower
102102 let y1 = scale8
103103 let x2 = periodLength
104104 let y2 = minVotePower
105105 let k = (((y2 - y1) * scale8) / (x2 - x1))
106106 let b = ((y1 * scale8) - (k * x1))
107107 (((votingDuration * k) / scale8) + (b / scale8))
108108 }
109109 }
110110
111111
112112 func calcDeleteEntry (caller,poolAddress,userPoolVoteSWOPnew) = {
113113 func deleteIfExists (list,key) = if (isDefined(getInteger(this, key)))
114114 then (list :+ DeleteEntry(key))
115115 else list
116116
117117 deleteIfExists(deleteIfExists(deleteIfExists(deleteIfExists(nil, (((caller + "_") + poolAddress) + kUserPoolVoteSWOP)), (caller + kUserTotalVoteSWOP)), (poolAddress + kPoolVoteSWOP)), kTotalVoteSWOP)
118118 }
119119
120120
121121 @Callable(i)
122122 func votePoolWeight (poolAddressesL,poolsVoteSWOPNewL) = valueOrElse(isActive(), if (if ((size(poolAddressesL) > 1))
123123 then true
124124 else (size(poolsVoteSWOPNewL) > 1))
125125 then throw("poolAddressesL.size > 1 or poolsVoteSWOPNewL.size > 1")
126126 else {
127127 let poolAddress = poolAddressesL[0]
128128 let userPoolVoteSWOPnew = poolsVoteSWOPNewL[0]
129129 if (!(isPoolInGovernance(poolAddress)))
130130 then throw("This pool has no _current_pool_fraction_reward in Governance dApp")
131131 else {
132132 let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
133- let $t042244855 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
133+ let $t042184849 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
134134 then {
135135 let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_")
136136 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
137137 }
138138 else {
139139 let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0)
140140 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
141141 }
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))))
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))))
147147 then {
148148 let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
149149 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
150150 }
151151 else {
152152 let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0)
153153 $Tuple3(uPoolTotalSWOP, 0, 0)
154154 }
155- let userTotalVoteSWOP = $t048615367._1
156- let userUnvoted = $t048615367._2
157- let userUnvotedPeriod = $t048615367._3
158- let $t053725838 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
155+ let userTotalVoteSWOP = $t048555361._1
156+ let userUnvoted = $t048555361._2
157+ let userUnvotedPeriod = $t048555361._3
158+ let $t053665832 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
159159 then {
160160 let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_")
161161 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
162162 }
163163 else {
164164 let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0)
165165 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
166166 }
167- let poolVoteSWOP = $t053725838._1
168- let poolActiveSWOP = $t053725838._2
169- let poolPeriod = $t053725838._3
170- let $t058446278 = if (isDefined(getString(this, kTotalStruc)))
167+ let poolVoteSWOP = $t053665832._1
168+ let poolActiveSWOP = $t053665832._2
169+ let poolPeriod = $t053665832._3
170+ let $t058386272 = if (isDefined(getString(this, kTotalStruc)))
171171 then {
172172 let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_")
173173 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
174174 }
175175 else {
176176 let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0)
177177 $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0)
178178 }
179- let totalVoteSWOP = $t058446278._1
180- let totalActiveSWOP = $t058446278._2
181- let totalPeriod = $t058446278._3
179+ let totalVoteSWOP = $t058386272._1
180+ let totalActiveSWOP = $t058386272._2
181+ let totalPeriod = $t058386272._3
182182 let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP)
183183 let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP)
184184 if (!(isCallerInGovernance(i.caller)))
185185 then throw("This address has 0 SWOP in Governance dApp")
186186 else if ((userTotalVoteSWOPnew > userSWOPinGovernance))
187187 then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew)))
188188 else if ((0 > userTotalVoteSWOPnew))
189189 then throw("New userTotalVoteSWOPnew < 0")
190190 else if ((0 > userPoolVoteSWOPnew))
191191 then throw("New userPoolVoteSWOPnew < 0")
192192 else {
193193 let amountOfVoting = split(valueOrElse(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), ""), "_")
194194 let amountPoolStract = split(valueOrElse(getString(this, (poolAddress + kPoolStruc)), ""), "_")
195195 let harvestPoolActiveVoteStrucEntry = if (if ((valueOrElse(getString(this, (poolAddress + kPoolStruc)), "") != ""))
196196 then (currPeriod != valueOrElse(parseInt(amountPoolStract[2]), 0))
197197 else false)
198198 then {
199199 let harvestPoolActiveVoteStruc = ((amountPoolStract[1] + "_") + amountPoolStract[2])
200200 [StringEntry((poolAddress + kHarvestPoolActiveVoteStruc), harvestPoolActiveVoteStruc)]
201201 }
202202 else nil
203203 let harvestUserPoolActiveVoteStrucEntry = if (if ((valueOrElse(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "") != ""))
204204 then (currPeriod != valueOrElse(parseInt(amountOfVoting[2]), 0))
205205 else false)
206206 then {
207207 let harvestUserPoolActiveVoteStruc = ((amountOfVoting[1] + "_") + amountOfVoting[2])
208208 [StringEntry((((toString(i.caller) + "_") + poolAddress) + kHarvestUserPoolActiveVoteStruc), harvestUserPoolActiveVoteStruc)]
209209 }
210210 else nil
211211 if ((userPoolVoteSWOPnew >= userPoolVoteSWOP))
212212 then {
213213 let coef = votingCoef()
214214 let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod))
215215 then (userPoolActiveVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
216216 else (userPoolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
217217 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
218218 then userPoolFreezeSWOP
219219 else userPoolVoteSWOP
220220 let userUnvotedNew = if ((userUnvotedPeriod == currPeriod))
221221 then max([0, (userUnvoted - poolVoteDiffSWOP)])
222222 else 0
223223 let userUnvotedPeriodNew = currPeriod
224224 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
225225 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
226226 let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
227227 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
228228 let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP)
229229 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
230230 then (poolActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
231231 else (poolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
232232 let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod))
233233 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
234234 let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP)
235235 let totalActiveSWOPnew = if ((totalPeriod == currPeriod))
236236 then (totalActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
237237 else (totalVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
238238 let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod))
239239 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
240240 ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry)
241241 }
242242 else {
243243 let removePoolVote = -(poolVoteDiffSWOP)
244244 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
245245 then userPoolFreezeSWOP
246246 else userPoolVoteSWOP
247247 let userPoolFreezeSWOP2 = min([userPoolFreezeSWOP, userPoolVoteSWOP])
248248 let userPoolFreezeSWOPnew2 = min([userPoolFreezeSWOPnew, userPoolVoteSWOPnew])
249249 let userPoolActiveVoteSWOPnew = (userPoolFreezeSWOPnew2 + (if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0))
250250 then 0
251251 else fraction((userPoolActiveVoteSWOP - userPoolFreezeSWOP), (userPoolVoteSWOPnew - userPoolFreezeSWOPnew2), (userPoolVoteSWOP - userPoolFreezeSWOP))))
252252 let userPoolActiveVoteDiff = (userPoolActiveVoteSWOPnew - (if ((userPoolVotePeriod == currPeriod))
253253 then userPoolActiveVoteSWOP
254254 else userPoolVoteSWOP))
255255 let newUnvoted = max([0, (removePoolVote - (if ((userPoolVotePeriod == currPeriod))
256256 then (userPoolVoteSWOP - userPoolFreezeSWOP2)
257257 else 0))])
258258 let userUnvotedNew = (newUnvoted + (if ((userUnvotedPeriod == currPeriod))
259259 then userUnvoted
260260 else 0))
261261 let userUnvotedPeriodNew = if ((newUnvoted > 0))
262262 then currPeriod
263263 else userUnvotedPeriod
264264 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
265265 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
266266 let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
267267 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
268268 let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote)
269269 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
270270 then (poolActiveSWOP + userPoolActiveVoteDiff)
271271 else (poolVoteSWOP + userPoolActiveVoteDiff)
272272 let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod))
273273 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
274274 let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote)
275275 let totalActiveSWOPnew = if ((totalPeriod == currPeriod))
276276 then (totalActiveSWOP + userPoolActiveVoteDiff)
277277 else (totalVoteSWOP + userPoolActiveVoteDiff)
278278 let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod))
279279 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
280280 let allNewValues = [currPeriod, userPoolFreezeSWOPnew, userPoolActiveVoteSWOPnew, userPoolFreezeSWOPnew, userUnvotedNew, userUnvotedPeriodNew, poolVoteSWOPnew, poolActiveSWOPnew, totalVoteSWOPnew, totalActiveSWOPnew]
281281 if ((0 > min(allNewValues)))
282282 then throw("One or more values are negative")
283283 else ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry)
284284 }
285285 }
286286 }
287287 })
288288
289289
290290
291291 @Callable(i)
292292 func shutdown () = if (!(active))
293293 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
294294 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
295295 then throw("Only admin can call this function")
296296 else suspend("Paused by admin")
297297
298298
299299
300300 @Callable(i)
301301 func activate () = if (active)
302302 then throw("DApp is already active")
303303 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
304304 then throw("Only admin can call this function")
305305 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
306306
307307
308308 @Verifier(tx)
309309 func verify () = {
310310 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
311311 then 1
312312 else 0
313313 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
314314 then 1
315315 else 0
316316 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
317317 then 1
318318 else 0
319319 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
320320 }
321321

github/deemru/w8io/026f985 
58.28 ms