tx · C6QzrANgGxd58EurCxgPRPsJv2M9KeC5XMrYGpL7gjEP

3N2ttTzsgqMt7SLLGt2XeTAg6pvp1Z8bYUP:  -0.01400000 Waves

2021.10.31 12:45 [1770322] smart account 3N2ttTzsgqMt7SLLGt2XeTAg6pvp1Z8bYUP > SELF 0.00000000 Waves

{ "type": 13, "id": "C6QzrANgGxd58EurCxgPRPsJv2M9KeC5XMrYGpL7gjEP", "fee": 1400000, "feeAssetId": null, "timestamp": 1635673571596, "version": 1, "sender": "3N2ttTzsgqMt7SLLGt2XeTAg6pvp1Z8bYUP", "senderPublicKey": "6d6kTEktTc9fA43J2j2n9kjzhX3G19W36tkc9Afe4eLn", "proofs": [ "2oBHuwW9ho4npVZT9KBzV33LvnZZxUZjgDvFZiAiVjyx2yw2FgXfSuCiymykAc9Mwiy132jBqbgPSbTWxXaVVXRZ" ], "script": "base64:AAIFAAAAAAAAABIIAhIAEgASAwoBARIDCgEBEgAAAAAWAAAAAAZvcmFjbGUJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSpHA/3It5Iym1Df/6r/XdrKhz2wqVE56sAAAAAB2JhbGFuY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAZvcmFjbGUCAAAAD2JhbGFuY2VfYWRkcmVzcwIAAAAYRW1wdHkga2V5IG9yYWNsZV9hZGRyZXNzAAAAABFTV09QZ292ZXJuYW5jZUFkcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABm9yYWNsZQIAAAAPc3dvcF9nb3Zlcm5hbmNlAgAAABlFbXB0eSBrZXkgc3dvcF9nb3Zlcm5hbmNlAAAAAARTV09QCQACWQAAAAEJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAZvcmFjbGUC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AAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABmFkbWluMQIAAAAFdHhTdHIHAAAAAAAAAAABAAAAAAAAAAAABAAAAAxhZG1pbjJTaWduZWQDCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABmFkbWluMgIAAAAFdHhTdHIHAAAAAAAAAAABAAAAAAAAAAAABAAAAAxhZG1pbjNTaWduZWQDCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABmFkbWluMwIAAAAFdHhTdHIHAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAxhZG1pbjFTaWduZWQFAAAADGFkbWluMlNpZ25lZAUAAAAMYWRtaW4zU2lnbmVkAAAAAAAAAAACuX+jHQ==", "chainId": 84, "height": 1770322, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = Address(base58'3N5LFb9VKspdbYuEQ6XFzmmYuVSrou1CgcA')
5+
6+let b = addressFromStringValue(valueOrErrorMessage(getString(a, "balance_address"), "Empty key oracle_address"))
7+
8+let c = addressFromStringValue(valueOrErrorMessage(getString(a, "swop_governance"), "Empty key swop_governance"))
9+
10+let d = fromBase58String(valueOrErrorMessage(getString(a, "SWOP"), "Empty key SWOP"))
11+
12+let e = split(valueOrElse(getString(a, "consumers"), "Empty key consumer"), ",")
13+
14+let f = addressFromStringValue(valueOrElse(getString(a, "admin_1"), "Empty key admin_1"))
15+
16+let g = addressFromStringValue(valueOrElse(getString(a, "admin_2"), "Empty key admin_2"))
17+
18+let h = addressFromStringValue(valueOrElse(getString(a, "admin_3"), "Empty key admin_3"))
19+
20+let i = valueOrErrorMessage(getBoolean(a, "is_protocol_active"), "Empty key is_protocol_active")
21+
22+let j = "owner"
23+
24+let k = "is_dapp_active"
25+
26+let l = addressFromString(valueOrErrorMessage(getString(this, j), "Empty keyOwner"))
27+
28+let m = valueOrErrorMessage(getString(this, j), "Empty keyOwner")
29+
30+let n = valueOrErrorMessage(getBoolean(this, k), "Empty key is_dapp_active")
31+
32+let o = "last_interest"
33+
34+let p = "_SWOP_amount"
35+
36+let q = "_last_interest"
37+
38+let r = 100000000
39+
40+func s () = {
41+ let t = valueOrElse(getInteger(c, o), 0)
42+ t
43+ }
44+
45+
46+func u (v) = valueOrElse(getInteger(c, (toString(v) + p)), 0)
47+
48+
49+func w (v,t) = {
50+ let x = u(v)
51+ let y = getInteger(c, (toString(v) + q))
52+ let z = {
53+ let A = y
54+ if ($isInstanceOf(A, "Int"))
55+ then {
56+ let y = A
57+ y
58+ }
59+ else t
60+ }
61+ $Tuple2(z, x)
62+ }
63+
64+
65+func B (C) = {
66+ let t = s()
67+ let D = w(C, t)
68+ let y = D._1
69+ let E = D._2
70+ let F = fraction(E, (t - y), r)
71+ let G = t
72+ $Tuple2(G, F)
73+ }
74+
75+
76+@Callable(H)
77+func init () = if (!(i))
78+ then throw("Protol stopped by admin")
79+ else if (isDefined(getString(this, j)))
80+ then throw("Automate already initialized")
81+ else if ((size(H.payments) == 0))
82+ then [StringEntry(j, toString(H.caller)), BooleanEntry(k, true)]
83+ else if ((size(H.payments) == 1))
84+ then {
85+ let I = $Tuple2(H.payments[0].amount, H.payments[0].assetId)
86+ let J = I._1
87+ let K = I._2
88+ if ((K != d))
89+ then throw("Only SWOP payment available in init()")
90+ else {
91+ let L = invoke(c, "lockSWOP", nil, [AttachedPayment(d, J)])
92+ if ((L == L))
93+ then [StringEntry(j, toString(H.caller)), BooleanEntry(k, true)]
94+ else throw("Strict value is not equal to itself.")
95+ }
96+ }
97+ else throw("Incorrect paynemt. You should attach SWOP or empty payment")
98+
99+
100+
101+@Callable(H)
102+func governanceLockSWOP () = if (!(if (i)
103+ then n
104+ else false))
105+ then throw("Protol stopped by admin")
106+ else {
107+ let M = $Tuple2(H.payments[0].amount, H.payments[0].assetId)
108+ let J = M._1
109+ let K = M._2
110+ if ((K != d))
111+ then throw("Only SWOP payment available in governanceLockSWOP()")
112+ else {
113+ let L = invoke(c, "lockSWOP", nil, [AttachedPayment(d, J)])
114+ if ((L == L))
115+ then nil
116+ else throw("Strict value is not equal to itself.")
117+ }
118+ }
119+
120+
121+
122+@Callable(H)
123+func governanceClaimAndStake (N) = if (!(if (i)
124+ then n
125+ else false))
126+ then throw("Protol stopped by admin")
127+ else if (if ((H.caller != l))
128+ then !(containsElement(e, toBase58String(H.caller.bytes)))
129+ else false)
130+ then throw("Only owner or admin can call this function")
131+ else {
132+ let F = B(this)._2
133+ if ((N > F))
134+ then throw("Amount to claim is less than minSWOPreward")
135+ else {
136+ let O = if ((H.caller == l))
137+ then false
138+ else true
139+ let L = invoke(c, "claimAndStakeSWOP", nil, nil)
140+ if ((L == L))
141+ then {
142+ let P = invoke(b, "extractFee", [m, O], nil)
143+ if ((P == P))
144+ then nil
145+ else throw("Strict value is not equal to itself.")
146+ }
147+ else throw("Strict value is not equal to itself.")
148+ }
149+ }
150+
151+
152+
153+@Callable(H)
154+func governanceWithdraw (Q) = if (!(if (i)
155+ then n
156+ else false))
157+ then throw("Protol stopped by admin")
158+ else if ((H.caller != l))
159+ then throw("Only owner can call this function")
160+ else {
161+ let L = invoke(c, "withdrawSWOP", [Q], nil)
162+ if ((L == L))
163+ then [ScriptTransfer(H.caller, Q, d)]
164+ else throw("Strict value is not equal to itself.")
165+ }
166+
167+
168+
169+@Callable(H)
170+func shutdownDapp () = if (!(if (i)
171+ then n
172+ else false))
173+ then throw("Protol stopped by admin")
174+ else if (if (!(containsElement([f, g, h], H.caller)))
175+ then !(containsElement(e, toBase58String(H.caller.bytes)))
176+ else false)
177+ then throw("Only admin can call this function")
178+ else [BooleanEntry("is_dapp_active", false)]
179+
180+
181+@Verifier(R)
182+func S () = {
183+ let T = if (valueOrElse(getBoolean(f, "txStr"), false))
184+ then 1
185+ else 0
186+ let U = if (valueOrElse(getBoolean(g, "txStr"), false))
187+ then 1
188+ else 0
189+ let V = if (valueOrElse(getBoolean(h, "txStr"), false))
190+ then 1
191+ else 0
192+ (((T + U) + V) >= 2)
193+ }
194+

github/deemru/w8io/169f3d6 
16.77 ms