tx · EkqQSkPjyG6hpfZJC8JhbxcSjTWURFdkL2qTiB5oGirz

3MqkNfXVeJunXinMimi7HA9F8ANmJETbUxx:  -0.00600000 Waves

2022.12.20 11:05 [2368350] smart account 3MqkNfXVeJunXinMimi7HA9F8ANmJETbUxx > SELF 0.00000000 Waves

{ "type": 13, "id": "EkqQSkPjyG6hpfZJC8JhbxcSjTWURFdkL2qTiB5oGirz", "fee": 600000, "feeAssetId": null, "timestamp": 1671523560921, "version": 2, "chainId": 84, "sender": "3MqkNfXVeJunXinMimi7HA9F8ANmJETbUxx", "senderPublicKey": "8zsP8gYRj6csNvi7rW3BDs4BWXB1Xz8ZQ5DrL9ruSjkY", "proofs": [ "4MpqWbsNdvkd4X8ceDr6pRQzFJvNNbtxUanZWMxYshevHqkMaxhgfSR5UW8xrqY4Vi9PFdJCQGjmAP5k8q7ts1nW" ], "script": "base64:BgIMCAISBAoCCAESABIALAAHa0FjdGl2ZQIGYWN0aXZlAA1rZXlBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1VzZXJQb29sVm90ZQIQX3VzZXJfdm90ZV9nU1dPUAAOa1VzZXJUb3RhbFZvdGUCFl91c2VyX3RvdGFsX3ZvdGVfZ1NXT1AACWtQb29sVm90ZQIQX3Bvb2xfdm90ZV9nU1dPUAAKa1RvdGFsVm90ZQIQdG90YWxfdm90ZV9nU1dPUAAQa0hhcnZlc3RQb29sVm90ZQIYX2hhcnZlc3RfcG9vbF92b3RlX2dTV09QABRrSGFydmVzdFVzZXJQb29sVm90ZQIdX2hhcnZlc3RfdXNlcl9wb29sX3ZvdGVfZ1NXT1AADGtTdGFydEhlaWdodAIMc3RhcnRfaGVpZ2h0AAtrQmFzZVBlcmlvZAILYmFzZV9wZXJpb2QADWtQZXJpb2RMZW5ndGgCDXBlcmlvZF9sZW5ndGgADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW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pbkNhbGwBBQFpAwUGYWN0aXZlCQACAQIWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQkAzAgCCQEMQm9vbGVhbkVudHJ5AgUHa0FjdGl2ZQYJAMwIAgkBC0RlbGV0ZUVudHJ5AQUGa0NhdXNlBQNuaWwAVkiTrw==", "height": 2368350, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "active"
5+
6+let b = "active_all_contracts"
7+
8+let c = "shutdown_cause"
9+
10+let d = "_user_vote_gSWOP"
11+
12+let e = "_user_total_vote_gSWOP"
13+
14+let f = "_pool_vote_gSWOP"
15+
16+let g = "total_vote_gSWOP"
17+
18+let h = "_harvest_pool_vote_gSWOP"
19+
20+let i = "_harvest_user_pool_vote_gSWOP"
21+
22+let j = "start_height"
23+
24+let k = "base_period"
25+
26+let l = "period_length"
27+
28+let m = "admin_pub_1"
29+
30+let n = "admin_pub_2"
31+
32+let o = "admin_pub_3"
33+
34+let p = "farming_address"
35+
36+let q = "governance_address"
37+
38+let r = "first_harvest_height"
39+
40+let s = "_pool_struc"
41+
42+let t = "_user_pool_struc"
43+
44+let u = "_user_total_struc"
45+
46+let v = "total_struc"
47+
48+let w = "_harvest_pool_activeVote_struc"
49+
50+let x = "_harvest_user_pool_activeVote_struc"
51+
52+let y = Address(base58'3PEbqViERCoKnmcSULh6n2aiMvUdSQdCsom')
53+
54+let z = valueOrElse(getBoolean(this, a), true)
55+
56+let A = valueOrElse(getBoolean(y, b), true)
57+
58+let B = valueOrErrorMessage(getInteger(this, k), "Empty kBasePeriod")
59+
60+let C = valueOrErrorMessage(getInteger(this, j), "Empty kStartHeight")
61+
62+let D = valueOrErrorMessage(getInteger(this, l), "Empty kPeriodLength")
63+
64+func E (F) = {
65+ let G = getString(y, F)
66+ if ($isInstanceOf(G, "String"))
67+ then {
68+ let H = G
69+ fromBase58String(H)
70+ }
71+ else {
72+ let I = G
73+ throw((F + "is empty"))
74+ }
75+ }
76+
77+
78+let J = E(m)
79+
80+let K = E(n)
81+
82+let L = E(o)
83+
84+let M = Address(E(q))
85+
86+let N = Address(E(p))
87+
88+let O = (B + ((height - C) / D))
89+
90+func P () = if (if (z)
91+ then A
92+ else false)
93+ then unit
94+ else throw("DApp is inactive at this moment")
95+
96+
97+func Q (R) = if (containsElement([J, K, L], R.callerPublicKey))
98+ then unit
99+ else throw("Only admin can call this function")
100+
101+
102+func S (T) = (valueOrElse(getInteger(M, (toString(T) + "_SWOP_amount")), 0) > 0)
103+
104+
105+func U (V) = isDefined(getInteger(M, (V + "_current_pool_fraction_reward")))
106+
107+
108+func W (V) = (valueOrElse(getInteger(Address(fromBase58String(V)), r), 0) - D)
109+
110+
111+func X (Y) = [BooleanEntry(a, false), StringEntry(c, Y)]
112+
113+
114+func Z (aa,V) = {
115+ func ab (ac,F) = if (isDefined(getString(this, F)))
116+ then (ac :+ DeleteEntry(F))
117+ else ac
118+
119+ ab(ab(ab(ab(ab(ab(nil, (((aa + "_") + V) + t)), (aa + u)), (V + s)), v), (V + w)), (((aa + "_") + V) + x))
120+ }
121+
122+
123+@Callable(R)
124+func votePoolWeight (V,ad) = valueOrElse(P(), if (!(U(V)))
125+ then throw("This pool is not in Governance dApp")
126+ else {
127+ let ae = valueOrErrorMessage(getInteger(M, (toString(R.caller) + "_SWOP_amount")), "Empty _SWOP_amount at gov. address")
128+ let af = valueOrElse(getInteger(M, (toString(R.caller) + "_GSwop_amount")), ae)
129+ let ag = if (isDefined(getString(this, (((toString(R.caller) + "_") + V) + t))))
130+ then parseIntValue(split(value(getString(this, (((toString(R.caller) + "_") + V) + t))), "_")[0])
131+ else valueOrElse(getInteger(this, (((toString(R.caller) + "_") + V) + d)), 0)
132+ let ah = if (isDefined(getString(this, (toString(R.caller) + u))))
133+ then parseIntValue(split(value(getString(this, (toString(R.caller) + u))), "_")[0])
134+ else valueOrElse(getInteger(this, (toString(R.caller) + e)), 0)
135+ let ai = if (isDefined(getString(this, (V + s))))
136+ then parseIntValue(split(value(getString(this, (V + s))), "_")[0])
137+ else valueOrElse(getInteger(this, (V + f)), 0)
138+ let aj = if (isDefined(getString(this, v)))
139+ then parseIntValue(split(value(getString(this, v)), "_")[0])
140+ else valueOrElse(getInteger(this, g), 0)
141+ let ak = (ad - ag)
142+ let al = (ah + ak)
143+ if ((al > af))
144+ then throw(((((toString(R.caller) + " has ") + toString(af)) + " GSWOP in governance. New GSWOP in voting ") + toString(al)))
145+ else if ((0 > al))
146+ then throw("New userTotalVoteSWOPnew < 0")
147+ else if ((0 > ad))
148+ then throw("New userPoolVoteSWOPnew < 0")
149+ else {
150+ let am = -(ak)
151+ let an = if ((ad >= ag))
152+ then (ai + ak)
153+ else (ai - am)
154+ let ao = if ((ad >= ag))
155+ then (aj + ak)
156+ else (aj - am)
157+ if (if ((0 > an))
158+ then true
159+ else (0 > ao))
160+ then throw("One or more values are negative")
161+ else {
162+ let ap = if ((W(V) > height))
163+ then [IntegerEntry((V + h), an), IntegerEntry((((toString(R.caller) + "_") + V) + i), ad)]
164+ else nil
165+ let aq = invoke(N, "updateUserBoostInterest", [V, toString(R.caller)], nil)
166+ if ((aq == aq))
167+ then (([IntegerEntry((((toString(R.caller) + "_") + V) + d), ad), IntegerEntry((toString(R.caller) + e), al), IntegerEntry((V + f), an), IntegerEntry(g, ao)] ++ Z(toString(R.caller), V)) ++ ap)
168+ else throw("Strict value is not equal to itself.")
169+ }
170+ }
171+ })
172+
173+
174+
175+@Callable(R)
176+func shutdown () = valueOrElse(Q(R), if (!(z))
177+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified")))
178+ else X("Paused by admin"))
179+
180+
181+
182+@Callable(R)
183+func activate () = valueOrElse(Q(R), if (z)
184+ then throw("DApp is already active")
185+ else [BooleanEntry(a, true), DeleteEntry(c)])
186+
187+

github/deemru/w8io/169f3d6 
19.23 ms