Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix POST ONLY tooltip #168

Merged
merged 2 commits into from
Oct 26, 2023
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
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.";
EvgeniiaVak marked this conversation as resolved.
Show resolved Hide resolved

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