Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/Staking/components/InputBalance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ const InputBalance = ({
{showLoading && loading && <Loader width={22} height={22} />}&nbsp;
{isInsufficient ? 'Insufficient' : type === STAKE_TAB.Stake ? 'Stake' : 'Unstake'}
</Button>
{type === STAKE_TAB.UnStake && (
{/* {type === STAKE_TAB.UnStake && (
<Button type="primary" onClick={() => onSubmit(UN_STAKE_ENUM.RAPID)} disabled={disabled}>
{showLoading && loading && <Loader width={22} height={22} />}&nbsp;
{isInsufficient ? 'Insufficient' : 'Quick Unstake'}
</Button>
)}
)} */}
</div>
</div>
);
Expand Down
10 changes: 6 additions & 4 deletions src/pages/Staking/components/UnStakeTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const UnStakeTab = () => {
const result = await cw20StakingClient.unbond({
amount: toAmount(amount).toString(),
stakingToken: ORAIX_TOKEN_INFO.contractAddress,
unbondPeriod: unstakeType === UN_STAKE_ENUM.NORMAL ? undefined : TIMER.SECOND_OF_DAY
unbondPeriod: undefined
// unbondPeriod: unstakeType === UN_STAKE_ENUM.NORMAL ? undefined : TIMER.SECOND_OF_DAY
});

if (result) {
Expand Down Expand Up @@ -145,7 +146,8 @@ const UnStakeTab = () => {
<div className={styles.unstakeTab}>
<InputBalance
onSubmit={(unstakeType) => {
setOpen(true);
// setOpen(true);
handleUnstake();
setUnstakeType(unstakeType);
}}
balance={stakedAmount}
Expand All @@ -157,12 +159,12 @@ const UnStakeTab = () => {
showLoading={false}
/>

<div className={styles.note}>
{/* <div className={styles.note}>
To withdraw your stake, you will need to activate a{' '}
<span className={styles.noteHighlight}>30-day unbonding period no fee</span> or{' '}
<span className={styles.noteHighlight}>only 24-hour unbonding period with a 10% fee</span>. You may withdraw at
any time, but your tokens will become available again only after this duration
</div>
</div> */}

<div className={styles.result}>
{listUnstake?.length <= 0 ? null : (
Expand Down
Loading