tx · 99CtQ6X6XosLah7m8DARiZzHHsPCDradiWsHJG4J6dWk

3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa:  -0.01100000 Waves

2023.02.02 11:25 [2431758] smart account 3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa > SELF 0.00000000 Waves

{ "type": 13, "id": "99CtQ6X6XosLah7m8DARiZzHHsPCDradiWsHJG4J6dWk", "fee": 1100000, "feeAssetId": null, "timestamp": 1675326391634, "version": 2, "chainId": 84, "sender": "3NBZkTq4XgvS9cWHQPutnUm3C1ZS4tDMqJa", "senderPublicKey": "HJ4MXkC5hCwrUSxdnzS5VVpQGe5zYXcUVukdiKcGNVnV", "proofs": [ "2JK8AVPH8fyoYcyeCeyQq1BLQU9mD3vNpTzFsuE49KCwav2A3R9cLKnRsAztbQbGKB6hhCHdf78LHXcBnnz4t1gn", "5358sJ8h1mhZPSz7n8BnwT4nHbh9YkJMepo9ZTroj3iNNkXyqq4WbbAFBhzeKC6Eqcdoznr8YN76JLB28PJApjGm" ], "script": "base64:BgIMCAISBAoCCAESABIALgAHa0FjdGl2ZQIGYWN0aXZlAA1rZXlBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1VzZXJQb29sVm90ZQIQX3VzZXJfdm90ZV9nU1dPUAAOa1VzZXJUb3RhbFZvdGUCFl91c2VyX3RvdGFsX3ZvdGVfZ1NXT1AACWtQb29sVm90ZQIQX3Bvb2xfdm90ZV9nU1dPUAAKa1RvdGFsVm90ZQIQdG90YWxfdm90ZV9nU1dPUAAQa0hhcnZlc3RQb29sVm90ZQIYX2hhcnZlc3RfcG9vbF92b3RlX2dTV09QABRrSGFydmVzdFVzZXJQb29sVm90ZQIdX2hhcnZlc3RfdXNlcl9wb29sX3ZvdGVfZ1NXT1AADGtTdGFydEhlaWdodAIMc3Rh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aPmFcvCLE7PfFwP24kJn Next: CRoGizM4phFffDZiKbZvhjPmBfA9FYMvCumn3EmN24WP Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "active"
55
66 let b = "active_all_contracts"
77
88 let c = "deprecated_"
99
1010 let d = "shutdown_cause"
1111
1212 let e = "_user_vote_gSWOP"
1313
1414 let f = "_user_total_vote_gSWOP"
1515
1616 let g = "_pool_vote_gSWOP"
1717
1818 let h = "total_vote_gSWOP"
1919
2020 let i = "_harvest_pool_vote_gSWOP"
2121
2222 let j = "_harvest_user_pool_vote_gSWOP"
2323
2424 let k = "start_height"
2525
2626 let l = "base_period"
2727
2828 let m = "period_length"
2929
3030 let n = "admin_pub_1"
3131
3232 let o = "admin_pub_2"
3333
3434 let p = "admin_pub_3"
3535
3636 let q = "farming_address"
3737
3838 let r = "governance_address"
3939
4040 let s = "first_harvest_height"
4141
4242 let t = "_pool_struc"
4343
4444 let u = "_user_pool_struc"
4545
4646 let v = "_user_total_struc"
4747
4848 let w = "total_struc"
4949
5050 let x = "_harvest_pool_activeVote_struc"
5151
5252 let y = "_harvest_user_pool_activeVote_struc"
5353
5454 let z = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
5555
5656 let A = valueOrElse(getBoolean(this, a), true)
5757
5858 let B = valueOrElse(getBoolean(z, b), true)
5959
6060 let C = valueOrErrorMessage(getInteger(this, l), "Empty kBasePeriod")
6161
6262 let D = valueOrErrorMessage(getInteger(this, k), "Empty kStartHeight")
6363
6464 let E = valueOrErrorMessage(getInteger(this, m), "Empty kPeriodLength")
6565
6666 func F (G) = {
6767 let H = getString(z, G)
6868 if ($isInstanceOf(H, "String"))
6969 then {
7070 let I = H
7171 fromBase58String(I)
7272 }
7373 else {
7474 let J = H
7575 throw((G + "is empty"))
7676 }
7777 }
7878
7979
8080 let K = F(n)
8181
8282 let L = F(o)
8383
8484 let M = F(p)
8585
8686 let N = Address(F(r))
8787
8888 let O = Address(F(q))
8989
9090 let P = (C + ((height - D) / E))
9191
9292 func Q () = if (if (A)
9393 then B
9494 else false)
9595 then unit
9696 else throw("DApp is inactive at this moment")
9797
9898
9999 func R (S) = if (containsElement([K, L, M], S.callerPublicKey))
100100 then unit
101101 else throw("Only admin can call this function")
102102
103103
104104 func T (U) = (valueOrElse(getInteger(N, (toString(U) + "_SWOP_amount")), 0) > 0)
105105
106106
107107 func V (W) = isDefined(getInteger(N, (W + "_current_pool_fraction_reward")))
108108
109109
110110 func X (W) = valueOrElse(getBoolean(z, (c + W)), false)
111111
112112
113113 func Y (W) = (valueOrElse(getInteger(Address(fromBase58String(W)), s), 0) - E)
114114
115115
116116 func Z (aa) = [BooleanEntry(a, false), StringEntry(d, aa)]
117117
118118
119119 func ab (ac,W) = {
120120 func ad (ae,G) = if (isDefined(getString(this, G)))
121121 then (ae :+ DeleteEntry(G))
122122 else ae
123123
124124 ad(ad(ad(ad(ad(ad(nil, (((ac + "_") + W) + u)), (ac + v)), (W + t)), w), (W + x)), (((ac + "_") + W) + y))
125125 }
126126
127127
128128 @Callable(S)
129129 func votePoolWeight (W,af) = valueOrElse(Q(), if (!(V(W)))
130130 then throw("This pool is not in Governance dApp")
131131 else {
132132 let ag = valueOrErrorMessage(getInteger(N, (toString(S.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
133133 let ah = valueOrElse(getInteger(N, (toString(S.caller) + "_GSwop_amount")), ag)
134134 let ai = if (isDefined(getString(this, (((toString(S.caller) + "_") + W) + u))))
135135 then parseIntValue(split(value(getString(this, (((toString(S.caller) + "_") + W) + u))), "_")[0])
136136 else valueOrElse(getInteger(this, (((toString(S.caller) + "_") + W) + e)), 0)
137137 let aj = if (isDefined(getString(this, (toString(S.caller) + v))))
138138 then parseIntValue(split(value(getString(this, (toString(S.caller) + v))), "_")[0])
139139 else valueOrElse(getInteger(this, (toString(S.caller) + f)), 0)
140140 let ak = if (isDefined(getString(this, (W + t))))
141141 then parseIntValue(split(value(getString(this, (W + t))), "_")[0])
142142 else valueOrElse(getInteger(this, (W + g)), 0)
143143 let al = if (isDefined(getString(this, w)))
144144 then parseIntValue(split(value(getString(this, w)), "_")[0])
145145 else valueOrElse(getInteger(this, h), 0)
146146 let am = (af - ai)
147147 let an = (aj + am)
148148 if (if (X(W))
149149 then (am > 0)
150150 else false)
151151 then throw("You can't vote for deprecated pool")
152152 else if ((an > ah))
153153 then throw(((((toString(S.caller) + " has ") + toString(ah)) + " GSWOP in governance. New GSWOP in voting ") + toString(an)))
154154 else if ((0 > an))
155155 then throw("New userTotalVoteSWOPnew < 0")
156156 else if ((0 > af))
157157 then throw("New userPoolVoteSWOPnew < 0")
158158 else {
159159 let ao = -(am)
160160 let ap = if ((af >= ai))
161161 then (ak + am)
162162 else (ak - ao)
163163 let aq = if ((af >= ai))
164164 then (al + am)
165165 else (al - ao)
166166 if (if ((0 > ap))
167167 then true
168168 else (0 > aq))
169169 then throw("One or more values are negative")
170170 else {
171171 let ar = if ((Y(W) > height))
172172 then [IntegerEntry((W + i), ap), IntegerEntry((((toString(S.caller) + "_") + W) + j), af)]
173173 else nil
174174 let as = invoke(O, "updateUserBoostInterest", [W, toString(S.caller)], nil)
175175 if ((as == as))
176176 then (([IntegerEntry((((toString(S.caller) + "_") + W) + e), af), IntegerEntry((toString(S.caller) + f), an), IntegerEntry((W + g), ap), IntegerEntry(h, aq)] ++ ab(toString(S.caller), W)) ++ ar)
177177 else throw("Strict value is not equal to itself.")
178178 }
179179 }
180180 })
181181
182182
183183
184184 @Callable(S)
185185 func shutdown () = valueOrElse(R(S), if (!(A))
186186 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, d), "the cause wasn't specified")))
187187 else Z("Paused by admin"))
188188
189189
190190
191191 @Callable(S)
192192 func activate () = valueOrElse(R(S), if (A)
193193 then throw("DApp is already active")
194194 else [BooleanEntry(a, true), DeleteEntry(d)])
195195
196196
197197 @Verifier(at)
198198 func au () = {
199199 let av = if (sigVerify(at.bodyBytes, at.proofs[0], K))
200200 then 1
201201 else 0
202202 let aw = if (sigVerify(at.bodyBytes, at.proofs[1], L))
203203 then 1
204204 else 0
205205 let ax = if (sigVerify(at.bodyBytes, at.proofs[2], M))
206206 then 1
207207 else 0
208208 (((av + aw) + ax) >= 2)
209209 }
210210

github/deemru/w8io/026f985 
37.12 ms