Skip to content

Commit

Permalink
claim fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthSoparla committed Dec 17, 2024
1 parent b7571a1 commit 8a85ab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/Home/TokenDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const TokenDetails = (props) => {
<p>{rewards > 0 ? rewards.toFixed(4) : 0}</p>
</div>
<div className="buttons_div">
{/* <ClaimButton disable={rewards <= 0}/> */}
<ClaimButton disable={rewards <= 0}/>
{/* /!* <span/> *!/ */}
{/* /!* <Compound disable={tokens <= 0}/> *!/ */}
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ export const claimTransaction = (Tx, txs, type, cb) => {
Tx.map((newTx) => {
(async () => {
const bondMsgValue = new ClaimRewardsMsgValue({
source: newTx.source,
validator: newTx.validator,
});
const encoded = await tx.buildClaimRewards(wrapperTxValue, bondMsgValue);
Expand All @@ -633,7 +634,7 @@ export const claimTransaction = (Tx, txs, type, cb) => {
});
} else {
const bondMsgValue = new ClaimRewardsMsgValue({
// source: Tx.source,
source: Tx.source,
validator: Tx.validator,
});
const encoded = await tx.buildClaimRewards(wrapperTxValue, bondMsgValue);
Expand Down

0 comments on commit 8a85ab9

Please sign in to comment.