tx · BeJcibcm9SaWD7FXVjmZJL3mmR8SztTm9HWEnFUUG365

3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs:  -0.04000000 Waves

2022.07.29 18:31 [2161301] smart account 3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs > SELF 0.00000000 Waves

{ "type": 13, "id": "BeJcibcm9SaWD7FXVjmZJL3mmR8SztTm9HWEnFUUG365", "fee": 4000000, "feeAssetId": null, "timestamp": 1659108731238, "version": 1, "sender": "3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs", "senderPublicKey": "BLEvt3fBtK9gbCuj3VA7nHviqe3TPkRrF9KL6ZaHGgr4", "proofs": [ "5z2vCi89j9ByKcEtn17guhRH2WQ5snztcHNkSNwPJJjEe3d7EGZJccApPjqgdYfR4TmRiZ71dTgA1KzY1LvbKaA6" ], "script": "base64:BgIRCAISAwoBARIDCgEIEgMKAQgxAAtyZXZpc2lvbk51bQIAAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAZNVUxUMTIAgKCUpY0dAAZNVUxUMTgJALYCAQCAgJC7utat8A0AA1NFUAICX18AB1dBVkVTSUQJANkEAQIFV0FWRVMBFWtleUduc2J0RnJvbVN1cmZDb2VmZgACHSVzJXNfX2NmZ19fZ25zYnRGcm9tU3VyZkNvZWZmAQ9nZXRTdHJpbmdPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG5vdCBkZWZpbmVkBQNuaWwCAAEMZ2V0SW50T3JGYWlsAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCa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SZXdhcmRTdHIFA25pbABTTAy9", "chainId": 84, "height": 2161301, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DPhiLbYzKNeiv3DDENQfZFqCUtSoEU18jicQdLbUJhPM Next: J9Wba82ZnfD3PBNwFCnftYKubtEV7bfoSrXNc3LQqop4 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ""
55
66 let b = 271828182
77
88 let c = 1000000
99
1010 let d = toBigInt(1000000)
1111
1212 let e = 100000000
1313
1414 let f = toBigInt(100000000)
1515
1616 let g = 1000000000000
1717
1818 let h = toBigInt(1000000000000000000)
1919
2020 let i = "__"
2121
2222 let j = fromBase58String("WAVES")
2323
2424 func k () = "%s%s__cfg__gnsbtFromSurfCoeff"
2525
2626
2727 func l (m,n) = valueOrErrorMessage(getString(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], ""))
2828
2929
3030 func o (m,n) = valueOrErrorMessage(getInteger(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], ""))
3131
3232
3333 func p (m,n) = valueOrErrorMessage(getBoolean(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], ""))
3434
3535
3636 func q (r,s) = fraction(r, e, s)
3737
3838
3939 func t (r,s) = fraction(r, s, e)
4040
4141
4242 func u (v) = {
4343 let w = v
4444 if ($isInstanceOf(w, "List[Any]"))
4545 then {
4646 let x = w
4747 x
4848 }
4949 else throw("fail to cast into List[Any]")
5050 }
5151
5252
5353 func y (v) = {
5454 let w = v
5555 if ($isInstanceOf(w, "Int"))
5656 then {
5757 let z = w
5858 z
5959 }
6060 else throw("fail to cast into Int")
6161 }
6262
6363
6464 func A (v) = {
6565 let w = v
6666 if ($isInstanceOf(w, "String"))
6767 then {
6868 let B = w
6969 B
7070 }
7171 else throw("fail to cast into String")
7272 }
7373
7474
7575 func C (v) = {
7676 let w = v
7777 if ($isInstanceOf(w, "(Int, Int)"))
7878 then {
7979 let D = w
8080 D
8181 }
8282 else throw("fail to cast into Tuple2 ints")
8383 }
8484
8585
8686 func E (v) = {
8787 let w = v
8888 if ($isInstanceOf(w, "(Int, Int, Int, Int, Int)"))
8989 then {
9090 let F = w
9191 F
9292 }
9393 else throw("fail to cast into Int")
9494 }
9595
9696
9797 func G (H) = if ((0 > H))
9898 then -1
9999 else {
100100 let w = blockInfoByHeight(H)
101101 if ($isInstanceOf(w, "BlockInfo"))
102102 then {
103103 let I = w
104104 I.timestamp
105105 }
106106 else -1
107107 }
108108
109109
110110 func J (K,L) = fraction(toBigInt(K), h, toBigInt(L))
111111
112112
113113 func M (v,N) = toInt(fraction(v, toBigInt(N), h))
114114
115115
116116 let O = 1
117117
118118 let P = 2
119119
120120 let Q = 3
121121
122122 let R = 4
123123
124124 let S = 5
125125
126126 let T = 6
127127
128128 let U = 7
129129
130130 let V = 8
131131
132132 let W = 9
133133
134134 let X = 10
135135
136136 let Y = 11
137137
138138 func Z () = "%s%s__config__controlAddress"
139139
140140
141141 func aa () = "%s__controlConfig"
142142
143143
144144 func ab (ac) = split(l(ac, aa()), i)
145145
146146
147147 func ad (ae,af) = valueOrErrorMessage(addressFromString(ae[af]), ("Control cfg doesn't contain address at index " + toString(af)))
148148
149149
150150 let ag = addressFromStringValue(valueOrElse(getString(this, Z()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
151151
152152 let ae = ab(ag)
153153
154154 let ah = ad(ae, R)
155155
156156 let ai = ad(ae, O)
157157
158158 let aj = ad(ae, P)
159159
160160 let ak = ad(ae, S)
161161
162162 let al = ad(ae, Q)
163163
164164 let am = ad(ae, V)
165165
166166 let an = ad(ae, X)
167167
168168 let ao = valueOrElse(getInteger(this, k()), 60)
169169
170170 @Callable(ap)
171171 func gnsbtFromSurfSYSREADONLY (aq) = $Tuple2(nil, (aq / ao))
172172
173173
174174
175175 @Callable(ap)
176176 func gnsbtInfoSYSREADONLY (ar) = {
177177 let as = u(invoke(am, "nsbtStakingSYSREADONLY", [ar], nil))
178178 let at = y(as[0])
179179 let au = y(as[1])
180180 let av = at
181181 let aw = au
182182 let ax = u(invoke(an, "surfStakingSYSREADONLY", [ar], nil))
183183 let ay = y(ax[0])
184184 let az = y(ax[1])
185185 let aA = y(ax[2])
186186 let aB = y(ax[3])
187187 let aC = (av + aA)
188188 let aD = (aw + aB)
189189 $Tuple2(nil, [aC, aD, [at, au, av, aw], [ay, az, aA, aB]])
190190 }
191191
192192
193193
194194 @Callable(ap)
195195 func gnsbtRewardsSYSREADONLY (ar) = {
196196 let aE = A(invoke(am, "unclaimedRewardsREADONLY", [ar], nil))
197197 let aF = A(invoke(an, "unclaimedRewardsREADONLY", [ar], nil))
198198 $Tuple2(nil, [aE, aF])
199199 }
200200
201201

github/deemru/w8io/026f985 
23.30 ms