Skip to content

Commit

Permalink
fix deposit.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsW3 authored Jul 3, 2024
1 parent accefb2 commit d4c481a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/bundler-api/actions/deposit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Depositing is the action for taking funds from the callers wallet into a particular protocol.

1. For many cases you can directly use the [route endpoint](./route.md) to enter into a position than directly using the deposit action. The route endpoint will determine best price and gas router for either depositing directly into the protocol, or buying the position token on a secondary market.
1. For many cases you can directly use the [route endpoint](./route.md) to enter into a position than directly using the deposit action. The route endpoint will determine the best price and gas router for either depositing directly into the protocol, or buying the position token on a secondary market.
2. If you are depositing into a protocol you must have the underlying token required for the deposit action. For example if you are attempting to deposit into a Yearn vault that requires WETH and you define DAI as the tokenIn then the transaction will fail. This is a perfect use case for using the [route](./route.md) endpoint.

NOTE: Direct deposit actions doesn't have slippage protection. If you are interacting with a protocol that needs slippage protection use the [route endpoint](./route.md)
Expand Down

0 comments on commit d4c481a

Please sign in to comment.