Skip to content
Open
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 packages/onchainkit/src/swap/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export type SwapButtonProps = {
};

export type SwapConfig = {
maxSlippage: number; // Maximum acceptable slippage for a swap. (default: 10) This is as a percent, not basis points;
maxSlippage: number; // Maximum acceptable slippage for a swap. (default: 3) This is as a percent, not basis points;
};

export type SwapContextType = {
Expand Down Expand Up @@ -293,7 +293,7 @@ export type SwapParams = {
export type SwapProviderProps = {
children: React.ReactNode;
config?: {
maxSlippage: number; // Maximum acceptable slippage for a swap. (default: 10) This is as a percent, not basis points
maxSlippage: number; // Maximum acceptable slippage for a swap. (default: 3) This is as a percent, not basis points
};
experimental: {
useAggregator: boolean; // Whether to use a DEX aggregator. (default: false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function TransactionProvider({
return {
paymasterService: { url: paymaster },
// this needs to be below so devs can override default paymaster
// with their personal paymaster in production playgroundd
// with their personal paymaster in production playground
...transactionCapabilities,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function customRender({
if (status === 'error') {
return (
<button disabled={isDisabled} onClick={onSubmit} className={className}>
Oops there is an error
Oops, there is an error
</button>
);
}
Expand Down