Skip to content

Commit

Permalink
feat: receiveNativeToken on by default in wrapped native token markets
Browse files Browse the repository at this point in the history
  • Loading branch information
gleiser-oliveira committed Mar 15, 2024
1 parent 55e40e0 commit 69cb2d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const BorrowForm: React.FC<BorrowFormProps> = ({ asset, pool, onCloseModal }) =>
const [formValues, setFormValues] = useState<FormValues>({
amountTokens: '',
fromToken: asset.vToken.underlyingToken,
receiveNativeToken: false,
receiveNativeToken: !!asset.vToken.underlyingToken.tokenWrapped,
});

const { mutateAsync: borrow, isLoading: isBorrowLoading } = useBorrow({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const WithdrawForm: React.FC<WithdrawFormProps> = ({ asset, pool, onCloseModal }
const [formValues, setFormValues] = useState<FormValues>({
amountTokens: '',
fromToken: asset.vToken.underlyingToken,
receiveNativeToken: false,
receiveNativeToken: !!asset.vToken.underlyingToken.tokenWrapped,
});

const { data: getVTokenBalanceData } = useGetVTokenBalanceOf(
Expand Down

0 comments on commit 69cb2d8

Please sign in to comment.