tx · 3TWdGwSqjt2dG4Vv4pQxaqZ9QpBjaHpfkHwj8sDGVFnj

3Mx9259DXd7MFiAw294TvP3QkBPbUjkB3sP:  -0.01700000 Waves

2022.09.16 11:40 [2231432] smart account 3Mx9259DXd7MFiAw294TvP3QkBPbUjkB3sP > SELF 0.00000000 Waves

{ "type": 13, "id": "3TWdGwSqjt2dG4Vv4pQxaqZ9QpBjaHpfkHwj8sDGVFnj", "fee": 1700000, "feeAssetId": null, "timestamp": 1663317639667, "version": 2, "chainId": 84, "sender": "3Mx9259DXd7MFiAw294TvP3QkBPbUjkB3sP", "senderPublicKey": "8FvcW5FVcnWjYSA4vjLsRR8hhEQMbCQykv8mCYVa8MRy", "proofs": [ "65VvRPFCCMvdJGw4ePirruMcVZFsS7jHa37NoUX837aty8cLcqoh1GQRb5gYpbbLgskit9qUMe8zZh78YajDHTzw" ], "script": "base64:BgITCAISABIECgIIARIDCgEIEgASACEAB2tBY3RpdmUCBmFjdGl2ZQAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAWa0xhc3RQb29sVG9rZW5JbnRlcmVzdAITX3Bvb2xfbGFzdF9pbnRlcmVzdAARa1VzZXJMYXN0SW50ZXJlc3QCE191c2VyX2xhc3RfaW50ZXJlc3QAE2tVc2VyQ2xhaW1BdmFpbGFibGUCGF91c2VyX2F2YWlsYWJsZV90b19jbGFpbQAWa1VzZXJTaGFyZVRva2Vuc0xvY2tlZAIUX3NoYXJlX3Rva2Vuc19sb2NrZWQAEmtTaGFyZVRva2Vuc0xvY2tlZAIaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAC2tPcmFjbGVQb29sAgVwb29sXwANa1Bvb2xBc3NldElkcwIJYXNzZXRfaWRzAA1rQWRtaW5QdWJLZXkxAgthZG1pbl9wdWJfMQANa0FkbWluUHViS2V5MgILYWRtaW5fcHViXzIADWtBZG1pblB1YktleTMCC2FkbWluX3B1Yl8zAAxrRmFybWluZ0FkZHICD2Zhcm1pbmdfYWRkc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WRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACk2zkRg==", "height": 2231432, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: DSCWkEX2ijsCiJMQaxLZ9UdqTttV7r1Wo8kYMAotc2fA 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 = "shutdown_cause"
7+
8+let c = "_pool_last_interest"
9+
10+let d = "_user_last_interest"
11+
12+let e = "_user_available_to_claim"
13+
14+let f = "_share_tokens_locked"
15+
16+let g = "_total_share_tokens_locked"
17+
18+let h = "pool_"
19+
20+let i = "asset_ids"
21+
22+let j = "admin_pub_1"
23+
24+let k = "admin_pub_2"
25+
26+let l = "admin_pub_3"
27+
28+let m = "farming_address"
29+
30+let n = 100000000
31+
32+let o = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
33+
34+func p (q) = {
35+ let r = getString(o, q)
36+ if ($isInstanceOf(r, "String"))
37+ then {
38+ let s = r
39+ fromBase58String(s)
40+ }
41+ else {
42+ let t = r
43+ throw((q + "is empty"))
44+ }
45+ }
46+
47+
48+let u = p(j)
49+
50+let v = p(k)
51+
52+let w = p(l)
53+
54+let x = Address(p(m))
55+
56+let y = valueOrElse(getBoolean(this, a), true)
57+
58+func z () = if (y)
59+ then unit
60+ else throw("DApp is inactive at this moment")
61+
62+
63+func A (B) = if (isDefined(getString(o, (h + toString(B)))))
64+ then unit
65+ else throw("Only pool can call this function")
66+
67+
68+func C (B) = if ((B == x))
69+ then unit
70+ else throw("Only farming can call this function")
71+
72+
73+func D (E) = [BooleanEntry(a, false), StringEntry(b, E)]
74+
75+
76+func F (G,H) = valueOrElse(getInteger(x, (((G + "_") + H) + f)), 0)
77+
78+
79+func I (G) = valueOrElse(getInteger(x, (G + g)), 0)
80+
81+
82+func J (K,G,L) = valueOrElse(getInteger(this, (((((K + "_") + G) + "_") + L) + d)), 0)
83+
84+
85+func M (G,L) = valueOrElse(getInteger(this, (((G + "_") + L) + c)), 0)
86+
87+
88+func N (K,G,L) = valueOrElse(getInteger(this, (((((K + "_") + G) + "_") + L) + e)), 0)
89+
90+
91+func O (L) = {
92+ let r = L
93+ if ($isInstanceOf(r, "ByteVector"))
94+ then {
95+ let P = r
96+ toBase58String(P)
97+ }
98+ else if ($isInstanceOf(r, "Unit"))
99+ then {
100+ let Q = r
101+ "WAVES"
102+ }
103+ else throw("Match error")
104+ }
105+
106+
107+func R (G,L,K) = {
108+ let S = M(G, L)
109+ let T = J(K, G, L)
110+ let U = F(G, K)
111+ let V = N(K, G, L)
112+ let W = fraction(U, (S - T), n)
113+ $Tuple2((V + W), S)
114+ }
115+
116+
117+func X (G,K) = {
118+ let Y = Address(fromBase58String(G))
119+ let Z = split(valueOrErrorMessage(getString(Y, i), "Can't find pool assets"), ",")
120+ func aa (ab,L) = {
121+ let ac = R(G, L, K)
122+ let ad = ac._1
123+ let S = ac._2
124+ (ab :+ [ad])
125+ }
126+
127+ let ae = {
128+ let af = Z
129+ let ag = size(af)
130+ let ah = nil
131+ func ai (aj,ak) = if ((ak >= ag))
132+ then aj
133+ else aa(aj, af[ak])
134+
135+ func al (aj,ak) = if ((ak >= ag))
136+ then aj
137+ else throw("List size exceeds 15")
138+
139+ al(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ah, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
140+ }
141+ $Tuple2(Z, ae)
142+ }
143+
144+
145+@Callable(am)
146+func airDrop () = valueOrElse(z(), valueOrElse(A(am.caller), {
147+ let an = $Tuple2(am.payments[0].amount, am.payments[0].assetId)
148+ let ao = an._1
149+ let ap = an._2
150+ let G = toString(am.caller)
151+ let aq = I(G)
152+ let S = M(G, O(ap))
153+ let ar = (S + (if (if ((aq > 0))
154+ then (ao > 0)
155+ else false)
156+ then fraction(ao, n, aq)
157+ else 0))
158+[IntegerEntry((((G + "_") + O(ap)) + c), ar)]
159+ }))
160+
161+
162+
163+@Callable(am)
164+func updateUserInterest (G,as) = valueOrElse(z(), valueOrElse(C(am.caller), {
165+ let Y = Address(fromBase58String(G))
166+ let K = toString(am.originCaller)
167+ let Z = split(valueOrErrorMessage(getString(Y, i), "Can't find pool assets"), ",")
168+ func at (ab,L) = {
169+ let au = R(G, L, K)
170+ let ad = au._1
171+ let S = au._2
172+ (ab ++ [IntegerEntry((((((K + "_") + G) + "_") + L) + e), ad), IntegerEntry((((((K + "_") + G) + "_") + L) + d), S)])
173+ }
174+
175+ let af = Z
176+ let ag = size(af)
177+ let ah = nil
178+ func ai (aj,ak) = if ((ak >= ag))
179+ then aj
180+ else at(aj, af[ak])
181+
182+ func al (aj,ak) = if ((ak >= ag))
183+ then aj
184+ else throw("List size exceeds 15")
185+
186+ al(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ah, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
187+ }))
188+
189+
190+
191+@Callable(am)
192+func claim (G) = valueOrElse(z(), {
193+ let Y = Address(fromBase58String(G))
194+ let K = toString(am.caller)
195+ let Z = split(valueOrErrorMessage(getString(Y, i), "Can't find pool assets"), ",")
196+ func av (ab,L) = {
197+ let aw = ab
198+ let ax = aw._1
199+ let ay = aw._2
200+ let az = R(G, L, K)
201+ let ad = az._1
202+ let S = az._2
203+ $Tuple2((ax ++ [ScriptTransfer(am.caller, ad, fromBase58String(L)), IntegerEntry((((((K + "_") + G) + "_") + L) + e), 0), IntegerEntry((((((K + "_") + G) + "_") + L) + d), S)]), ad)
204+ }
205+
206+ let aA = {
207+ let af = Z
208+ let ag = size(af)
209+ let ah = $Tuple2(nil, 0)
210+ func ai (aj,ak) = if ((ak >= ag))
211+ then aj
212+ else av(aj, af[ak])
213+
214+ func al (aj,ak) = if ((ak >= ag))
215+ then aj
216+ else throw("List size exceeds 15")
217+
218+ al(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ah, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
219+ }
220+ let aB = aA._1
221+ let aC = aA._2
222+ if ((aC == 0))
223+ then throw("You have no tokens for claim")
224+ else aB
225+ })
226+
227+
228+
229+@Callable(am)
230+func shutdown () = if (!(y))
231+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, b), "the cause wasn't specified")))
232+ else if (!(containsElement([u, v, w], am.callerPublicKey)))
233+ then throw("Only admin can call this function")
234+ else D("Paused by admin")
235+
236+
237+
238+@Callable(am)
239+func activate () = if (y)
240+ then throw("DApp is already active")
241+ else if (!(containsElement([u, v, w], am.callerPublicKey)))
242+ then throw("Only admin can call this function")
243+ else [BooleanEntry(a, true), DeleteEntry(b)]
244+
245+
246+@Verifier(aD)
247+func aE () = {
248+ let aF = if (sigVerify(aD.bodyBytes, aD.proofs[0], u))
249+ then 1
250+ else 0
251+ let aG = if (sigVerify(aD.bodyBytes, aD.proofs[1], v))
252+ then 1
253+ else 0
254+ let aH = if (sigVerify(aD.bodyBytes, aD.proofs[2], w))
255+ then 1
256+ else 0
257+ (((aF + aG) + aH) >= 2)
258+ }
259+

github/deemru/w8io/169f3d6 
20.97 ms