Skip to content

Commit

Permalink
Disable canUnstake
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Dec 28, 2023
1 parent ed8bc49 commit f7a7ab2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/staking-v3/hooks/useDappStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ export function useDappStaking() {
: true;

const unstake = async (dapp: CombinedDappInfo, amount: number): Promise<void> => {
const [result, error] = await canUnStake(dapp.chain.address, amount);
if (!result) {
popError(error);
return;
}
// TODO ckeck implementation canStake, canUnstake
// const [result, error] = await canUnStake(dapp.chain.address, amount);
// if (!result) {
// popError(error);
// return;
// }

const stakingService = container.get<() => IDappStakingService>(
Symbols.DappStakingServiceFactoryV3
Expand Down

0 comments on commit f7a7ab2

Please sign in to comment.