Skip to content

Commit

Permalink
Merge pull request #304 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
fix staking approval issue
  • Loading branch information
mstfash authored Mar 5, 2022
2 parents 4b89444 + 1d47a1f commit 5434188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/Earn/Staking/Stake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const Stake = () => {

const [depositApprovalState, approveDeposit] = useTokenApproval(
parsedAmounts.stakingAmount,
geb?.contracts.stakingFirstResort.address,
geb?.contracts.stakingToken.address
geb?.contracts.stakingToken.address,
geb?.contracts.stakingFirstResort.address
)

const stakingValue = parsedAmounts.stakingAmount
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export function useAddStaking(): {
if (!library || !stakingAmount || !account || !geb) {
return
}

try {
const stakingAmountBN = ethers.utils.parseEther(stakingAmount)

Expand Down

0 comments on commit 5434188

Please sign in to comment.