Skip to content

Commit 8a85ab9

Browse files
committedDec 17, 2024·
claim fixes.
1 parent b7571a1 commit 8a85ab9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎src/containers/Home/TokenDetails/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const TokenDetails = (props) => {
9090
<p>{rewards > 0 ? rewards.toFixed(4) : 0}</p>
9191
</div>
9292
<div className="buttons_div">
93-
{/* <ClaimButton disable={rewards <= 0}/> */}
93+
<ClaimButton disable={rewards <= 0}/>
9494
{/* /!* <span/> *!/ */}
9595
{/* /!* <Compound disable={tokens <= 0}/> *!/ */}
9696
</div>

‎src/helper.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ export const claimTransaction = (Tx, txs, type, cb) => {
625625
Tx.map((newTx) => {
626626
(async () => {
627627
const bondMsgValue = new ClaimRewardsMsgValue({
628+
source: newTx.source,
628629
validator: newTx.validator,
629630
});
630631
const encoded = await tx.buildClaimRewards(wrapperTxValue, bondMsgValue);
@@ -633,7 +634,7 @@ export const claimTransaction = (Tx, txs, type, cb) => {
633634
});
634635
} else {
635636
const bondMsgValue = new ClaimRewardsMsgValue({
636-
// source: Tx.source,
637+
source: Tx.source,
637638
validator: Tx.validator,
638639
});
639640
const encoded = await tx.buildClaimRewards(wrapperTxValue, bondMsgValue);

0 commit comments

Comments
 (0)
Please sign in to comment.