Skip to content

Commit

Permalink
Merge pull request #168 from DeXter-on-Radix/fix-post-only-tooltip
Browse files Browse the repository at this point in the history
Fix POST ONLY tooltip
  • Loading branch information
EvgeniiaVak authored Oct 26, 2023
2 parents ca41203 + 0ccbeed commit 86030e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/components/order_input/LimitOrderInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { AiOutlineInfoCircle } from "react-icons/ai";
import { BottomRightErrorLabel } from "components/BottomRightErrorLabel";

const POST_ONLY_TOOLTIP =
"If your price is very close to the current market price, your limit order might fill immediately, " +
"making you pay taker fees. This option prevents your order from being executed immediately, " +
"guarantees that your order will make it to the order book and you will earn the liquidity provider fees.";
"Select 'POST ONLY' to ensure your order is added to the order book without matching existing orders. " +
"If your order can be partially or completely executed immediately, it will not be created. " +
"This option removes trading fees completely and ensures you receive the maker rebate.";

function NonTargetToken() {
const { token2, validationToken2, side } = useAppSelector(
Expand Down Expand Up @@ -246,7 +246,7 @@ export function LimitOrderInput() {
POST ONLY
</span>
<div
className="my-auto ml-2 tooltip z-10"
className="my-auto ml-2 tooltip before:bg-base-300 z-10"
data-tip={POST_ONLY_TOOLTIP}
>
<AiOutlineInfoCircle className="text-secondary-content text-sm" />
Expand Down
2 changes: 1 addition & 1 deletion src/app/redux/orderInputSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const initialState: OrderInputState = {
token2: initialTokenInput,
validationToken2: initialValidationResult,
tab: OrderTab.MARKET,
postOnly: true,
postOnly: false,
side: adex.OrderSide.BUY,
price: 0,
slippage: 0.01,
Expand Down

0 comments on commit 86030e3

Please sign in to comment.