@rabbitholegg/questdk-plugin-thruster
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.35 • Public • Published

Thruster Finance Plugin

Overview

Thruster Finance is a yield-first DEX on Blast.

Documentation: https://docs.thruster.finance/

Swap Plugin

Thruster Finance is a fork of Uniswap, utilizing both V2 and V3 swap methods.

Swap using V2 routes will use the ThrusterRouter contract. The relevant swap functions on this contract are:

  • swapETHForExactTokens
  • swapExactETHForTokens
  • swapExactTokensForETH
  • swapExactTokensForTokens
  • swapTokensForExactETH
  • swapTokensForExactTokens

(The SupportingFeeOnTransferTokens methods can be skipped as they have the same inputs as the non-fee-on-transfer methods)

Swaps using V3 routes will use a multicall on the SwapRouter contract. The relevant swap functions are:

  • exactInput
  • exactInputSingle
  • exactOutput
  • exactOutputSingle
Limitations
  • Like all Uniswap forks/clones, there are some precision issues on certain swap inputs/outputs. AmountOut is not very reliable for some methods (Exact_X_For_X), as it uses amountOutMin, which can be much lower than expected. In extreme cases, it can even be zero if slippage is set high enough. This will cause issues when using the (==) operator or the (>=) operator.
Sample Transactions

Readme

Keywords

none

Package Sidebar

Install

npm i @rabbitholegg/questdk-plugin-thruster

Weekly Downloads

8

Version

1.0.0-alpha.35

License

ISC

Unpacked Size

357 kB

Total Files

40

Last publish

Collaborators

  • quazia
  • jamierabbithole
  • rhjim