tx · CA1uSVLZxkZMJAKeWjY6XY2cL5rsqMnfnkr9tDUUKV3c

3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs:  -0.04000000 Waves

2022.10.14 12:28 [2271841] smart account 3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs > SELF 0.00000000 Waves

{ "type": 13, "id": "CA1uSVLZxkZMJAKeWjY6XY2cL5rsqMnfnkr9tDUUKV3c", "fee": 4000000, "feeAssetId": null, "timestamp": 1665739728944, "version": 1, "sender": "3Mt7wmkWeioUsmfaBu6PsNq9j9SUs7f9qrs", "senderPublicKey": "BLEvt3fBtK9gbCuj3VA7nHviqe3TPkRrF9KL6ZaHGgr4", "proofs": [ "Q68jPn8H41LooyBE9Q1JActM5fLqLU6fCGJ6mWFkpjepKtUzLSkCkZKgkCQCQ59brtbaxPJ7xHXdCh1XXdaZ1R4" ], "script": "base64:BgIQCAISBQoDCAEBEgASAwoBCC8AC3JldmlzaW9uTnVtAig2N2E3OTAzOGFlODA4YzM4YjJmMzBjMzhkN2NlZTFmODNmMTkxMmMwAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAZNVUxUMTIAgKCUpY0dAAZNVUxUMTgJALYCAQCAgJC7utat8A0AA1NFUAICX18AB1dBVkVTSUQJANkEAQIFV0FWRVMBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRJbnRPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2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E9OTFkBFXVzZXJBZGRyZXNzU3RyT3JFbXB0eQQNbnNidFJld2FyZFN0cgkBCGFzU3RyaW5nAQkA/AcEBRNuc2J0U3Rha2luZ0NvbnRyYWN0Ahh1bmNsYWltZWRSZXdhcmRzUkVBRE9OTFkJAMwIAgUVdXNlckFkZHJlc3NTdHJPckVtcHR5BQNuaWwFA25pbAQNc3VyZlJld2FyZFN0cgkBCGFzU3RyaW5nAQkA/AcEBRNzdXJmU3Rha2luZ0NvbnRyYWN0Ahh1bmNsYWltZWRSZXdhcmRzUkVBRE9OTFkJAMwIAgUVdXNlckFkZHJlc3NTdHJPckVtcHR5BQNuaWwFA25pbAkAlAoCBQNuaWwJAMwIAgUNbnNidFJld2FyZFN0cgkAzAgCBQ1zdXJmUmV3YXJkU3RyBQNuaWwA++bgVQ==", "chainId": 84, "height": 2271841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CQkRyYDeEdPYP8qRyeikygj2NnNfcgF2Qgz7BsWnfysW Next: 2BKzVwtEUzd874fV7Pc8uVLysxhwJShZuTwzMvN1axeo Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186"
4+let a = "67a79038ae808c38b2f30c38d7cee1f83f1912c0"
55
66 let b = 271828182
77
187187 func claimRewards () = {
188188 let aF = x(invoke(al, "claimRewardsByOriginCaller", nil, nil))
189189 let aG = x(invoke(am, "claimRewardsByOriginCaller", nil, nil))
190- if (if ((aF == 0))
191- then (aG == 0)
192- else false)
190+ if (((aF + aG) == 0))
193191 then throw("Nothing to claim")
194192 else nil
195193 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186"
4+let a = "67a79038ae808c38b2f30c38d7cee1f83f1912c0"
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 = x(invoke(al, "claimRewardsByOriginCaller", nil, nil))
189189 let aG = x(invoke(am, "claimRewardsByOriginCaller", nil, nil))
190- if (if ((aF == 0))
191- then (aG == 0)
192- else false)
190+ if (((aF + aG) == 0))
193191 then throw("Nothing to claim")
194192 else nil
195193 }
196194
197195
198196
199197 @Callable(an)
200198 func gnsbtRewardsSYSREADONLY (ao) = {
201199 let aH = z(invoke(al, "unclaimedRewardsREADONLY", [ao], nil))
202200 let aI = z(invoke(am, "unclaimedRewardsREADONLY", [ao], nil))
203201 $Tuple2(nil, [aH, aI])
204202 }
205203
206204

github/deemru/w8io/169f3d6 
51.62 ms