tx · DeU4TtcPHhEx5bKJDsYjK1kejDSctFPRodsR17XqEj88

3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN:  -0.01400000 Waves

2021.04.16 17:01 [1485088] smart account 3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN > SELF 0.00000000 Waves

{ "type": 13, "id": "DeU4TtcPHhEx5bKJDsYjK1kejDSctFPRodsR17XqEj88", "fee": 1400000, "feeAssetId": null, "timestamp": 1618581726857, "version": 2, "chainId": 84, "sender": "3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN", "senderPublicKey": "9NDcimsSfq5LxxqoVoq2nbMd1zPqZhFvr6mVUiXWwtM1", "proofs": [ "4w5BnboQTkVqJ8AY5ssbLvMyJNjqQPu9APbj31F6fNE5FA2vhxXgrwDQEJcFc6vt3sY1SrJCiVXHJTmLigie57Za" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIYEQAAABwAAAAADGFkbWluUHViS2V5MQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MgEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MwEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAAOa1VzZXJQb29sU3RydWMCAAAAEF91c2VyX3Bvb2xfc3RydWMAAAAAEmtVc2VyVG90YWxWb3RlU1dPUAIAAAAVX3VzZXJfdG90YWxfU1dPUF92b3RlAAAAAA9rVXNlclRvdGFsU3RydWMCAAAAEV91c2VyX3RvdGFsX3N0cnVjAAAAAA1rUG9vbFZvdGVTV09QAgAAAApfdm90ZV9TV09QAAAAAAprUG9vbFN0cnVjAgAAAAtfcG9vbF9zdHJ1YwAAAAAOa1RvdGFsVm90ZVNXT1ACAAAAD3RvdGFsX3ZvdGV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HVibGljS2V5+lLHfA==", "height": 1485088, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A8TAYu4L3JVBLY86YDqGiqmd4vbP5nUpmdK4AH9JnvAz Next: FHUKCP2qTzk6x82UhS3hymNS32Z6Vn5SaHCYiKmAzFgZ Diff:
OldNewDifferences
177177 else max([0, (userUnvoted - poolVoteDiffSWOP)])
178178 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
179179 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
180- let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod))
180+ let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedNew))
181181 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
182182 let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP)
183183 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
219219 else userUnvotedPeriod
220220 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
221221 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
222- let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod))
222+ let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
223223 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
224224 let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote)
225225 let poolFreezeSWOPnew = if ((poolPeriod == currPeriod))
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 kStartHeight = "start_height"
2727
2828 let kBasePeriod = "base_period"
2929
3030 let kPeriodLength = "period_length"
3131
3232 let kDurationFullVotePower = "duration_full_vote_power"
3333
3434 let kMinVotePower = "min_vote_power"
3535
3636 let scale8 = 100000000
3737
3838 let basePeriod = valueOrErrorMessage(getInteger(this, kBasePeriod), "Empty kBasePeriod")
3939
4040 let startHeight = valueOrErrorMessage(getInteger(this, kStartHeight), "Empty kStartHeight")
4141
4242 let periodLength = valueOrErrorMessage(getInteger(this, kPeriodLength), "Empty kPeriodLength")
4343
4444 let durationFullVotePower = valueOrErrorMessage(getInteger(this, kDurationFullVotePower), "Empty kDurationFullVotePower")
4545
4646 let minVotePower = valueOrErrorMessage(getInteger(this, kMinVotePower), "Empty kMinVotePower")
4747
4848 let govAddr = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
4949
5050 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
5151
5252 func isCallerInGovernance (user) = if ((valueOrElse(getInteger(govAddr, (toString(user) + "_SWOP_amount")), 0) > 0))
5353 then true
5454 else false
5555
5656
5757 func isPoolInGovernance (poolAddress) = isDefined(getInteger(govAddr, (poolAddress + "_current_pool_fraction_reward")))
5858
5959
6060 func votingCoef () = {
6161 let votingDuration = (height - (startHeight + (currPeriod * periodLength)))
6262 if ((durationFullVotePower > votingDuration))
6363 then scale8
6464 else {
6565 let x1 = durationFullVotePower
6666 let y1 = scale8
6767 let x2 = periodLength
6868 let y2 = minVotePower
6969 let k = (((y2 - y1) * scale8) / (x2 - x1))
7070 let b = ((y1 * scale8) - (k * x1))
7171 (((votingDuration * k) / scale8) + (b / scale8))
7272 }
7373 }
7474
7575
7676 func calcDeleteEntry (caller,poolAddress,userPoolVoteSWOPnew) = {
7777 let deleteKeyUserPoolVoteSWOP = if (isDefined(getInteger(this, (((caller + "_") + poolAddress) + kUserPoolVoteSWOP))))
7878 then DeleteEntry((((caller + "_") + poolAddress) + kUserPoolVoteSWOP))
7979 else DeleteEntry(".")
8080 let deleteKeyUserTotalVoteSWOP = if (isDefined(getInteger(this, (caller + kUserTotalVoteSWOP))))
8181 then DeleteEntry((caller + kUserTotalVoteSWOP))
8282 else DeleteEntry(".")
8383 let deleteKeyPoolVoteSWOP = if (isDefined(getInteger(this, (poolAddress + kPoolVoteSWOP))))
8484 then DeleteEntry((poolAddress + kPoolVoteSWOP))
8585 else DeleteEntry(".")
8686 let deleteKeyTotalVoteSWOP = if (isDefined(getInteger(this, kTotalVoteSWOP)))
8787 then DeleteEntry(kTotalVoteSWOP)
8888 else DeleteEntry(".")
8989 [deleteKeyUserPoolVoteSWOP, deleteKeyUserTotalVoteSWOP, deleteKeyPoolVoteSWOP, deleteKeyTotalVoteSWOP]
9090 }
9191
9292
9393 @Callable(i)
9494 func votePoolWeight (poolAddressesL,poolsVoteSWOPNewL) = if (if ((size(poolAddressesL) > 1))
9595 then true
9696 else (size(poolsVoteSWOPNewL) > 1))
9797 then throw("poolAddressesL.size > 1 or poolsVoteSWOPNewL.size > 1")
9898 else {
9999 let poolAddress = poolAddressesL[0]
100100 let userPoolVoteSWOPnew = poolsVoteSWOPNewL[0]
101101 if (!(isPoolInGovernance(poolAddress)))
102102 then throw("This pool has no _current_pool_fraction_reward in Governance dApp")
103103 else {
104104 let userSWOPinGovernance = valueOrErrorMessage(getInteger(govAddr, (toString(i.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
105105 let $t039524585 = if (isDefined(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc))))
106106 then {
107107 let data = split(valueOrErrorMessage(getString(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc)), "Empty kUserPoolStruc"), "_")
108108 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
109109 }
110110 else {
111111 let uPoolVoteSWOP = valueOrElse(getInteger(this, (((toString(i.caller) + "_") + poolAddress) + kUserPoolVoteSWOP)), 0)
112112 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
113113 }
114114 let userPoolVoteSWOP = $t039524585._1
115115 let userPoolActiveVoteSWOP = $t039524585._2
116116 let userPoolVotePeriod = $t039524585._3
117117 let userPoolFreezeSWOP = $t039524585._4
118118 let $t045955103 = if (isDefined(getString(this, (toString(i.caller) + kUserTotalStruc))))
119119 then {
120120 let data = split(valueOrErrorMessage(getString(this, (toString(i.caller) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
121121 $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
122122 }
123123 else {
124124 let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(i.caller) + kUserTotalVoteSWOP)), 0)
125125 $Tuple3(uPoolTotalSWOP, 0, 0)
126126 }
127127 let userTotalVoteSWOP = $t045955103._1
128128 let userUnvoted = $t045955103._2
129129 let userUnvotedPeriod = $t045955103._3
130130 let $t051085615 = if (isDefined(getString(this, (poolAddress + kPoolStruc))))
131131 then {
132132 let data = split(valueOrErrorMessage(getString(this, (poolAddress + kPoolStruc)), "Empty kPoolStruc"), "_")
133133 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
134134 }
135135 else {
136136 let uPoolVoteSWOP = valueOrElse(getInteger(this, (poolAddress + kPoolVoteSWOP)), 0)
137137 $Tuple4(uPoolVoteSWOP, uPoolVoteSWOP, 0, 0)
138138 }
139139 let poolVoteSWOP = $t051085615._1
140140 let poolActiveSWOP = $t051085615._2
141141 let poolPeriod = $t051085615._3
142142 let poolFreezeSWOP = $t051085615._4
143143 let $t056216097 = if (isDefined(getString(this, kTotalStruc)))
144144 then {
145145 let data = split(valueOrErrorMessage(getString(this, kTotalStruc), "Empty kTotalStruc"), "_")
146146 $Tuple4(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]), parseIntValue(data[3]))
147147 }
148148 else {
149149 let uTotalVoteSWOP = valueOrElse(getInteger(this, kTotalVoteSWOP), 0)
150150 $Tuple4(uTotalVoteSWOP, uTotalVoteSWOP, 0, 0)
151151 }
152152 let totalVoteSWOP = $t056216097._1
153153 let totalActiveSWOP = $t056216097._2
154154 let totalPeriod = $t056216097._3
155155 let totalFreezeSWOP = $t056216097._4
156156 let poolVoteDiffSWOP = (userPoolVoteSWOPnew - userPoolVoteSWOP)
157157 let userTotalVoteSWOPnew = (userTotalVoteSWOP + poolVoteDiffSWOP)
158158 if (!(isCallerInGovernance(i.caller)))
159159 then throw("This address has 0 SWOP in Governance dApp")
160160 else if ((userTotalVoteSWOPnew > userSWOPinGovernance))
161161 then throw(((((toString(this) + " has ") + toString(userSWOPinGovernance)) + " SWOP in governance. New SWOP in voting ") + toString(userTotalVoteSWOPnew)))
162162 else if ((0 > userTotalVoteSWOPnew))
163163 then throw("New userTotalVoteSWOPnew < 0")
164164 else if ((0 > userPoolVoteSWOPnew))
165165 then throw("New userPoolVoteSWOPnew < 0")
166166 else if ((userPoolVoteSWOPnew >= userPoolVoteSWOP))
167167 then {
168168 let coef = votingCoef()
169169 let userPoolActiveVoteSWOPnew = if ((userPoolVotePeriod == currPeriod))
170170 then (userPoolActiveVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8))
171171 else (userPoolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8))
172172 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
173173 then userPoolFreezeSWOP
174174 else userPoolVoteSWOP
175175 let userUnvotedNew = if ((userUnvoted == currPeriod))
176176 then userUnvoted
177177 else max([0, (userUnvoted - poolVoteDiffSWOP)])
178178 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
179179 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
180- let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod))
180+ let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedNew))
181181 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
182182 let poolVoteSWOPnew = (poolVoteSWOP + poolVoteDiffSWOP)
183183 let poolActiveSWOPnew = if ((poolPeriod == currPeriod))
184184 then (poolActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8))
185185 else (poolVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8))
186186 let poolFreezeSWOPnew = if ((poolPeriod == currPeriod))
187187 then poolFreezeSWOP
188188 else poolVoteSWOP
189189 let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew))
190190 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
191191 let totalVoteSWOPnew = (totalVoteSWOP + poolVoteDiffSWOP)
192192 let totalActiveSWOPnew = if ((totalPeriod == currPeriod))
193193 then (totalActiveSWOP + ((poolVoteDiffSWOP * coef) / scale8))
194194 else (totalVoteSWOP + ((poolVoteDiffSWOP * coef) / scale8))
195195 let totalFreezeSWOPnew = if ((poolPeriod == currPeriod))
196196 then totalFreezeSWOP
197197 else totalVoteSWOP
198198 let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(totalFreezeSWOPnew))
199199 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
200200 ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew))
201201 }
202202 else {
203203 let removePoolVote = -(poolVoteDiffSWOP)
204204 let userPoolFreezeSWOPnew = if ((userPoolVotePeriod == currPeriod))
205205 then min([userPoolFreezeSWOP, userPoolVoteSWOPnew])
206206 else userPoolVoteSWOPnew
207207 let userPoolActiveVoteSWOPnew = (userPoolFreezeSWOPnew + (if (((userPoolVoteSWOP - userPoolFreezeSWOP) == 0))
208208 then 0
209209 else (((userPoolActiveVoteSWOP - userPoolFreezeSWOP) * (userPoolVoteSWOPnew - userPoolFreezeSWOPnew)) / (userPoolVoteSWOP - userPoolFreezeSWOP))))
210210 let userPoolActiveVoteDiff = (userPoolActiveVoteSWOPnew - userPoolActiveVoteSWOP)
211211 let newUnvoted = max([0, (removePoolVote - (if ((userUnvotedPeriod == currPeriod))
212212 then (userPoolVoteSWOP - userPoolFreezeSWOP)
213213 else 0))])
214214 let userUnvotedNew = if ((userUnvotedPeriod == currPeriod))
215215 then userUnvoted
216216 else (0 + newUnvoted)
217217 let userUnvotedPeriodNew = if ((newUnvoted > 0))
218218 then currPeriod
219219 else userUnvotedPeriod
220220 let userPoolStrucNew = ((((((toString(userPoolVoteSWOPnew) + "_") + toString(userPoolActiveVoteSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(userPoolFreezeSWOPnew))
221221 let userPoolEntry = [StringEntry((((toString(i.caller) + "_") + poolAddress) + kUserPoolStruc), userPoolStrucNew)]
222- let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(currPeriod))
222+ let userTotalStrucNew = ((((toString(userTotalVoteSWOPnew) + "_") + toString(userUnvotedNew)) + "_") + toString(userUnvotedPeriodNew))
223223 let userTotalEntry = [StringEntry((toString(i.caller) + kUserTotalStruc), userTotalStrucNew)]
224224 let poolVoteSWOPnew = (poolVoteSWOP - removePoolVote)
225225 let poolFreezeSWOPnew = if ((poolPeriod == currPeriod))
226226 then min([poolFreezeSWOP, poolVoteSWOPnew])
227227 else poolVoteSWOPnew
228228 let poolActiveSWOPnew = (poolActiveSWOP + userPoolActiveVoteDiff)
229229 let poolStrucNew = ((((((toString(poolVoteSWOPnew) + "_") + toString(poolActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(poolFreezeSWOPnew))
230230 let poolEntry = [StringEntry((poolAddress + kPoolStruc), poolStrucNew)]
231231 let totalVoteSWOPnew = (totalVoteSWOP - removePoolVote)
232232 let totalFreezeSWOPnew = if ((totalPeriod == currPeriod))
233233 then min([totalFreezeSWOP, totalVoteSWOPnew])
234234 else totalVoteSWOPnew
235235 let totalActiveSWOPnew = (totalActiveSWOP + userPoolActiveVoteDiff)
236236 let totalStrucNew = ((((((toString(totalVoteSWOPnew) + "_") + toString(totalActiveSWOPnew)) + "_") + toString(currPeriod)) + "_") + toString(totalFreezeSWOPnew))
237237 let totalEntry = [StringEntry(kTotalStruc, totalStrucNew)]
238238 let allNewValues = [currPeriod, userPoolFreezeSWOPnew, userPoolActiveVoteSWOPnew, userPoolFreezeSWOPnew, userUnvotedNew, userUnvotedPeriodNew, poolVoteSWOPnew, poolFreezeSWOPnew, poolActiveSWOPnew, totalVoteSWOPnew, totalFreezeSWOPnew, totalActiveSWOPnew]
239239 if ((0 > min(allNewValues)))
240240 then throw("One or more values are negative")
241241 else ((((userPoolEntry ++ userTotalEntry) ++ poolEntry) ++ totalEntry) ++ calcDeleteEntry(toString(i.caller), poolAddress, userPoolVoteSWOPnew))
242242 }
243243 }
244244 }
245245
246246
247247 @Verifier(tx)
248248 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
249249

github/deemru/w8io/026f985 
75.95 ms