tx · 4RteJ1R3wd1cUJTBk1pexuP5M9VdBrbGbdyhtkZ7sJMt

3Mz9jq7QKyxwEfkoJbuPG72vm6cWUN8Ef2q:  -0.01400000 Waves

2021.10.31 12:25 [1770301] smart account 3Mz9jq7QKyxwEfkoJbuPG72vm6cWUN8Ef2q > SELF 0.00000000 Waves

{ "type": 13, "id": "4RteJ1R3wd1cUJTBk1pexuP5M9VdBrbGbdyhtkZ7sJMt", "fee": 1400000, "feeAssetId": null, "timestamp": 1635672335815, "version": 1, "sender": "3Mz9jq7QKyxwEfkoJbuPG72vm6cWUN8Ef2q", "senderPublicKey": "A7yB5rcVmujLTie7vdn4EwnL8hEVFHQcr9JY2XZMyDjM", "proofs": [ "MdNnRvE73vnjdYz46WjchAMBqjwH1x87AZN5twBh9atFVSc9HRFUhx3MD5CCew2tGMbMp3kDZJHX8soe1KEgdkB" ], "script": "base64:AAIFAAAAAAAAABIIAhIAEgASAwoBARIDCgEBEgAAAAAWAAAAAAZvcmFjbGUJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSpHA/3It5Iym1Df/6r/XdrKhz2wqVE56sAAAAAB2JhbGFuY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAZvcmFjbGUCAAAAD2JhbGFuY2VfYWRkcmVzcwIAAAAYRW1wdHkga2V5IG9yYWNsZV9hZGRyZXNzAAAAABFTV09QZ292ZXJuYW5jZUFkcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABm9yYWNsZQIAAAAPc3dvcF9nb3Zlcm5hbmNlAgAAABlFbXB0eSBrZXkgc3dvcF9nb3Zlcm5hbmNlAAAAAARTV09QCQACWQAAAAEJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAZvcmFj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AAAAAQAAAAMYWRtaW4yU2lnbmVkAwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAZhZG1pbjICAAAABXR4U3RyBwAAAAAAAAAAAQAAAAAAAAAAAAQAAAAMYWRtaW4zU2lnbmVkAwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAZhZG1pbjMCAAAABXR4U3RyBwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAMYWRtaW4xU2lnbmVkBQAAAAxhZG1pbjJTaWduZWQFAAAADGFkbWluM1NpZ25lZAAAAAAAAAAAAkmsFkw=", "chainId": 84, "height": 1770301, "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 (!(if (i)
78+ then n
79+ else false))
80+ then throw("Protol stopped by admin")
81+ else if (isDefined(getString(this, j)))
82+ then throw("Automate already initialized")
83+ else if ((size(H.payments) == 0))
84+ then [StringEntry(j, toString(H.caller))]
85+ else if ((size(H.payments) == 1))
86+ then {
87+ let I = $Tuple2(H.payments[0].amount, H.payments[0].assetId)
88+ let J = I._1
89+ let K = I._2
90+ if ((K != d))
91+ then throw("Only SWOP payment available in init()")
92+ else {
93+ let L = invoke(c, "lockSWOP", nil, [AttachedPayment(d, J)])
94+ if ((L == L))
95+ then [StringEntry(j, toString(H.caller))]
96+ else throw("Strict value is not equal to itself.")
97+ }
98+ }
99+ else throw("Incorrect paynemt. You should attach SWOP or empty payment")
100+
101+
102+
103+@Callable(H)
104+func governanceLockSWOP () = if (!(if (i)
105+ then n
106+ else false))
107+ then throw("Protol stopped by admin")
108+ else {
109+ let M = $Tuple2(H.payments[0].amount, H.payments[0].assetId)
110+ let J = M._1
111+ let K = M._2
112+ if ((K != d))
113+ then throw("Only SWOP payment available in governanceLockSWOP()")
114+ else {
115+ let L = invoke(c, "lockSWOP", nil, [AttachedPayment(d, J)])
116+ if ((L == L))
117+ then nil
118+ else throw("Strict value is not equal to itself.")
119+ }
120+ }
121+
122+
123+
124+@Callable(H)
125+func governanceClaimAndStake (N) = if (!(if (i)
126+ then n
127+ else false))
128+ then throw("Protol stopped by admin")
129+ else if (if ((H.caller != l))
130+ then !(containsElement(e, toBase58String(H.caller.bytes)))
131+ else false)
132+ then throw("Only owner or admin can call this function")
133+ else {
134+ let F = B(this)._2
135+ if ((N > F))
136+ then throw("Amount to claim is less than minSWOPreward")
137+ else {
138+ let O = if ((H.caller == l))
139+ then false
140+ else true
141+ let L = invoke(c, "claimAndStakeSWOP", nil, nil)
142+ if ((L == L))
143+ then {
144+ let P = invoke(b, "extractFee", [m, O], nil)
145+ if ((P == P))
146+ then nil
147+ else throw("Strict value is not equal to itself.")
148+ }
149+ else throw("Strict value is not equal to itself.")
150+ }
151+ }
152+
153+
154+
155+@Callable(H)
156+func governanceWithdraw (Q) = if (!(if (i)
157+ then n
158+ else false))
159+ then throw("Protol stopped by admin")
160+ else if ((H.caller != l))
161+ then throw("Only owner can call this function")
162+ else {
163+ let L = invoke(c, "withdrawSWOP", [Q], nil)
164+ if ((L == L))
165+ then [ScriptTransfer(H.caller, Q, d)]
166+ else throw("Strict value is not equal to itself.")
167+ }
168+
169+
170+
171+@Callable(H)
172+func shutdownDapp () = if (!(if (i)
173+ then n
174+ else false))
175+ then throw("Protol stopped by admin")
176+ else if (if (!(containsElement([f, g, h], H.caller)))
177+ then !(containsElement(e, toBase58String(H.caller.bytes)))
178+ else false)
179+ then throw("Only admin can call this function")
180+ else [BooleanEntry("is_dapp_active", false)]
181+
182+
183+@Verifier(R)
184+func S () = {
185+ let T = if (valueOrElse(getBoolean(f, "txStr"), false))
186+ then 1
187+ else 0
188+ let U = if (valueOrElse(getBoolean(g, "txStr"), false))
189+ then 1
190+ else 0
191+ let V = if (valueOrElse(getBoolean(h, "txStr"), false))
192+ then 1
193+ else 0
194+ (((T + U) + V) >= 2)
195+ }
196+

github/deemru/w8io/169f3d6 
18.46 ms