Skip to content

Commit bc69c80

Browse files
authored
allow unstake oraix (#1202)
1 parent fd23c46 commit bc69c80

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/pages/Staking/components/InputBalance/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ const InputBalance = ({
132132
{showLoading && loading && <Loader width={22} height={22} />}&nbsp;
133133
{isInsufficient ? 'Insufficient' : type === STAKE_TAB.Stake ? 'Stake' : 'Unstake'}
134134
</Button>
135-
{type === STAKE_TAB.UnStake && (
135+
{/* {type === STAKE_TAB.UnStake && (
136136
<Button type="primary" onClick={() => onSubmit(UN_STAKE_ENUM.RAPID)} disabled={disabled}>
137137
{showLoading && loading && <Loader width={22} height={22} />}&nbsp;
138138
{isInsufficient ? 'Insufficient' : 'Quick Unstake'}
139139
</Button>
140-
)}
140+
)} */}
141141
</div>
142142
</div>
143143
);

src/pages/Staking/components/UnStakeTab/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const UnStakeTab = () => {
6363
const result = await cw20StakingClient.unbond({
6464
amount: toAmount(amount).toString(),
6565
stakingToken: ORAIX_TOKEN_INFO.contractAddress,
66-
unbondPeriod: unstakeType === UN_STAKE_ENUM.NORMAL ? undefined : TIMER.SECOND_OF_DAY
66+
unbondPeriod: undefined
67+
// unbondPeriod: unstakeType === UN_STAKE_ENUM.NORMAL ? undefined : TIMER.SECOND_OF_DAY
6768
});
6869

6970
if (result) {
@@ -145,7 +146,8 @@ const UnStakeTab = () => {
145146
<div className={styles.unstakeTab}>
146147
<InputBalance
147148
onSubmit={(unstakeType) => {
148-
setOpen(true);
149+
// setOpen(true);
150+
handleUnstake();
149151
setUnstakeType(unstakeType);
150152
}}
151153
balance={stakedAmount}
@@ -157,12 +159,12 @@ const UnStakeTab = () => {
157159
showLoading={false}
158160
/>
159161

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

167169
<div className={styles.result}>
168170
{listUnstake?.length <= 0 ? null : (

0 commit comments

Comments
 (0)