tx · 6cG22wDnKnbmqs93Goyk5VojGCQDLeLxwLnqXKwt3x2i

3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ:  -0.01400000 Waves

2021.05.31 12:46 [1549691] smart account 3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ > SELF 0.00000000 Waves

{ "type": 13, "id": "6cG22wDnKnbmqs93Goyk5VojGCQDLeLxwLnqXKwt3x2i", "fee": 1400000, "feeAssetId": null, "timestamp": 1622454402931, "version": 2, "chainId": 84, "sender": "3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ", "senderPublicKey": "Dkwrk2dDeUwNM8gVg17qj6fCpJ2e7Qb2myPi1FE9Y6is", "proofs": [ "2dqLqySGJ1JG9omSEwsaRRjQ5R2tkqRTb9HmCNGQyYzgwv8mF4uWanTaMf4MY78DtYq8iMLk7EDXoJK71NRL8LHz" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIYEQAAAB4AAAAADGFkbWluUHViS2V5MQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MgEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MwEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdG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kFAAAACXBvb2xFbnRyeQUAAAAKdG90YWxFbnRyeQkBAAAAD2NhbGNEZWxldGVFbnRyeQAAAAMJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAtwb29sQWRkcmVzcwUAAAATdXNlclBvb2xWb3RlU1dPUG5ldwUAAAAfaGFydmVzdFBvb2xBY3RpdmVWb3RlU3RydWNFbnRyeQUAAAAjaGFydmVzdFVzZXJQb29sQWN0aXZlVm90ZVN0cnVjRW50cnkAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTtydQs=", "height": 1549691, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: aPGUoGt2xqPCqPWhZE9TUub6kVuZsLdRbMRymHozJtu Next: 13E9BawDkWAXdGT6f97qxae8jqNjpEK4zdNQZCnimPKh Diff:
OldNewDifferences
4949
5050 let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower")
5151
52-let govAddr = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
52+let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
5353
5454 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
5555
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
55
66 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
77
88 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
1010 let kUserPoolVoteSWOP = "_vote"
1111
1212 let kUserPoolStruc = "_user_pool_struc"
1313
1414 let kUserTotalVoteSWOP = "_user_total_SWOP_vote"
1515
1616 let kUserTotalStruc = "_user_total_struc"
1717
1818 let kPoolVoteSWOP = "_vote_SWOP"
1919
2020 let kPoolStruc = "_pool_struc"
2121
2222 let kTotalVoteSWOP = "total_vote_SWOP"
2323
2424 let kTotalStruc = "total_struc"
2525
2626 let kHarvestPoolActiveVoteStruc = "_harvest_pool_activeVote_struc"
2727
2828 let kHarvestUserPoolActiveVoteStruc = "_harvest_user_pool_activeVote_struc"
2929
3030 let kStartHeight = "start_height"
3131
3232 let kBasePeriod = "base_period"
3333
3434 let kPeriodLength = "period_length"
3535
3636 let kDurationFullVotePower = "duration_full_vote_power"
3737
3838 let kMinVotePower = "min_vote_power"
3939
4040 let scale8 = 100000000
4141
4242 let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod")
4343
4444 let startHeight = valueOrErrorMessage(getInteger(this, kStartHeight), "Empty kStartHeight")
4545
4646 let periodLength = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength")
4747
4848 let durationFullVotePower = valueOrErrorMessage(getInteger(this, kDurationFullVotePower), "Empty kDurationFullVotePower")
4949
5050 let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower")
5151
52-let govAddr = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
52+let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
5353
5454 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
5555
5656 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0))
5757 then true
5858 else false
5959
6060
6161 func isPoolInGovernance (poolAddress) = isDefined(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward")))
6262
6363
6464 func votingCoef () = {
6565 let votingDuration = (height - (startHeight + (currPeriod * periodLength)))
6666 if ((durationFullVotePower > votingDuration))
6767 then scale8
6868 else {
6969 let x1 = durationFullVotePower
7070 let y1 = scale8
7171 let x2 = periodLength
7272 let y2 = minVotePower
7373 let k = (((y2 - y1) * scale8) / (x2 - x1))
7474 let b = ((y1 * scale8) - (k * x1))
7575 (((votingDuration * k) / scale8) + (b / scale8))
7676 }
7777 }
7878
7979
8080 func calcDeleteEntry (caller,poolAddress,userPoolVoteSWOPnew) = {
8181 func deleteIfExists (list,key) = if (isDefined(getInteger(this, key)))
8282 then (list :+ DeleteEntry(key))
8383 else list
8484
8585 deleteIfExists(deleteIfExists(deleteIfExists(deleteIfExists(nil, (((caller + "_") + poolAddress) + kUserPoolVoteSWOP)), (caller + kUserTotalVoteSWOP)), (poolAddress + kPoolVoteSWOP)), kTotalVoteSWOP)
8686 }
8787
8888
8989 @Callable(i)
9090 func votePoolWeight (poolAddressesL,poolsVoteSWOPNewL) = if (if ((size(poolAddressesL) > 1))
9191 then true
9292 else (size(poolsVoteSWOPNewL) > 1))
9393 then throw("poolAddressesL.size > 1 or poolsVoteSWOPNewL.size > 1")
9494 else {
9595 let poolAddress = poolAddressesL[0]
9696 let userPoolVoteSWOPnew = poolsVoteSWOPNewL[0]
9797 if (!(isPoolInGovernance(poolAddress)))
9898 then throw("This pool has no _current_pool_fraction_reward in Governance dApp")
9999 else {
100100 let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
101101 let $t035364169 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
102102 then {
103103 let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_")
104104 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
105105 }
106106 else {
107107 let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0)
108108 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
109109 }
110110 let userPoolVoteSWOP = $t035364169._1
111111 let userPoolActiveVoteSWOP = $t035364169._2
112112 let userPoolVotePeriod = $t035364169._3
113113 let userPoolFreezeSWOP = $t035364169._4
114114 let $t041754683 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc))))
115115 then {
116116 let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
117117 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
118118 }
119119 else {
120120 let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0)
121121 $Tuple3(uPoolTotalSWOP, 0, 0)
122122 }
123123 let userTotalVoteSWOP = $t041754683._1
124124 let userUnvoted = $t041754683._2
125125 let userUnvotedPeriod = $t041754683._3
126126 let $t046885156 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
127127 then {
128128 let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_")
129129 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
130130 }
131131 else {
132132 let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0)
133133 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
134134 }
135135 let poolVoteSWOP = $t046885156._1
136136 let poolActiveSWOP = $t046885156._2
137137 let poolPeriod = $t046885156._3
138138 let $t051625598 = if (isDefined(getString(this, kTotalStruc)))
139139 then {
140140 let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_")
141141 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
142142 }
143143 else {
144144 let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0)
145145 $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0)
146146 }
147147 let totalVoteSWOP = $t051625598._1
148148 let totalActiveSWOP = $t051625598._2
149149 let totalPeriod = $t051625598._3
150150 let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP)
151151 let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP)
152152 if (!(isCallerInGovernance(i.caller)))
153153 then throw("This address has 0 SWOP in Governance dApp")
154154 else if ((userTotalVoteSWOPnew > userSWOPinGovernance))
155155 then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew)))
156156 else if ((0 > userTotalVoteSWOPnew))
157157 then throw("New userTotalVoteSWOPnew < 0")
158158 else if ((0 > userPoolVoteSWOPnew))
159159 then throw("New userPoolVoteSWOPnew < 0")
160160 else {
161161 let amountOfVoting = split(getStringValue(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "_")
162162 let amountPoolStract = split(getStringValue(this, (poolAddress + kPoolStruc)), "_")
163163 let harvestPoolActiveVoteStrucEntry = if ((currPeriod != parseInt(amountPoolStract[2])))
164164 then {
165165 let harvestPoolActiveVoteStruc = ((amountPoolStract[1] + "_") + amountPoolStract[2])
166166 [StringEntry((poolAddress + kHarvestPoolActiveVoteStruc), harvestPoolActiveVoteStruc)]
167167 }
168168 else nil
169169 let harvestUserPoolActiveVoteStrucEntry = if ((currPeriod != parseInt(amountOfVoting[2])))
170170 then {
171171 let harvestUserPoolActiveVoteStruc = ((amountOfVoting[1] + "_") + amountOfVoting[2])
172172 [StringEntry((((toString(i.caller) + "_") + poolAddress) + kHarvestUserPoolActiveVoteStruc), harvestUserPoolActiveVoteStruc)]
173173 }
174174 else nil
175175 if ((userPoolVoteSWOPnew >= userPoolVoteSWOP))
176176 then {
177177 let coef = votingCoef()
178178 let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod))
179179 then (userPoolActiveVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
180180 else (userPoolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
181181 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
182182 then userPoolFreezeSWOP
183183 else userPoolVoteSWOP
184184 let userUnvotedNew = if ((userUnvotedPeriod == currPeriod))
185185 then max([0, (userUnvoted - poolVoteDiffSWOP)])
186186 else 0
187187 let userUnvotedPeriodNew = currPeriod
188188 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
189189 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
190190 let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
191191 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
192192 let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP)
193193 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
194194 then (poolActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
195195 else (poolVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
196196 let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod))
197197 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
198198 let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP)
199199 let totalActiveSWOPnew = if ((totalPeriod == currPeriod))
200200 then (totalActiveSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
201201 else (totalVoteSWOP + fraction(poolVoteDiffSWOP, coef, scale8))
202202 let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod))
203203 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
204204 ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry)
205205 }
206206 else {
207207 let removePoolVote = -(poolVoteDiffSWOP)
208208 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
209209 then userPoolFreezeSWOP
210210 else userPoolVoteSWOP
211211 let userPoolFreezeSWOP2 = min([userPoolFreezeSWOP, userPoolVoteSWOP])
212212 let userPoolFreezeSWOPnew2 = min([userPoolFreezeSWOPnew, userPoolVoteSWOPnew])
213213 let userPoolActiveVoteSWOPnew = (userPoolFreezeSWOPnew2 + (if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0))
214214 then 0
215215 else fraction((userPoolActiveVoteSWOP - userPoolFreezeSWOP), (userPoolVoteSWOPnew - userPoolFreezeSWOPnew2), (userPoolVoteSWOP - userPoolFreezeSWOP))))
216216 let userPoolActiveVoteDiff = (userPoolActiveVoteSWOPnew - (if ((userPoolVotePeriod == currPeriod))
217217 then userPoolActiveVoteSWOP
218218 else userPoolVoteSWOP))
219219 let newUnvoted = max([0, (removePoolVote - (if ((userPoolVotePeriod == currPeriod))
220220 then (userPoolVoteSWOP - userPoolFreezeSWOP2)
221221 else 0))])
222222 let userUnvotedNew = (newUnvoted + (if ((userUnvotedPeriod == currPeriod))
223223 then userUnvoted
224224 else 0))
225225 let userUnvotedPeriodNew = if ((newUnvoted > 0))
226226 then currPeriod
227227 else userUnvotedPeriod
228228 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
229229 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
230230 let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
231231 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
232232 let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote)
233233 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
234234 then (poolActiveSWOP + userPoolActiveVoteDiff)
235235 else (poolVoteSWOP + userPoolActiveVoteDiff)
236236 let poolStrucNew = ((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod))
237237 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
238238 let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote)
239239 let totalActiveSWOPnew = if ((totalPeriod == currPeriod))
240240 then (totalActiveSWOP + userPoolActiveVoteDiff)
241241 else (totalVoteSWOP + userPoolActiveVoteDiff)
242242 let totalStrucNew = ((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod))
243243 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
244244 let allNewValues = [currPeriod, userPoolFreezeSWOPnew, userPoolActiveVoteSWOPnew, userPoolFreezeSWOPnew, userUnvotedNew, userUnvotedPeriodNew, poolVoteSWOPnew, poolActiveSWOPnew, totalVoteSWOPnew, totalActiveSWOPnew]
245245 if ((0 > min(allNewValues)))
246246 then throw("One or more values are negative")
247247 else ((((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew)) ++ harvestPoolActiveVoteStrucEntry) ++ harvestUserPoolActiveVoteStrucEntry)
248248 }
249249 }
250250 }
251251 }
252252
253253
254254 @Verifier(tx)
255255 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
256256

github/deemru/w8io/026f985 
40.14 ms