tx · DfzCmYxhQwbE8Zv7XvaL5ooU4YszUcfFdeiM5XuqJbrK

3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs:  -0.04000000 Waves

2022.08.23 15:02 [2197104] smart account 3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
28.15 ms