@rarimo/swap
Version:
Internal tools that other Rarimo packages use to swap tokens.
31 lines (30 loc) • 1.3 kB
JavaScript
export { }; /**
* @description Submits a transaction to the swap contract to swap, wrap,
* unwrap, bridge tokens
* @returns Transaction Response
*/ /**
* Proxy function of {@link Bridger.getSupportedChains}
*/ /**
* Proxy function of {@link Bridger.getChainById}
*/ /**
* Proxy function of {@link Bridger.getDestinationTx}
*/ /**
* Proxy function of {@link Bridger.isApproveRequired}
*/ /**
* Proxy function of {@link Bridger.approve}
*/ /**
* Proxy function of {@link Bridger.approveIfNeeded}
*/ // Could be another contract, if empty it will be caller by default
// Transaction bundle {@link https://docs.rarimo.com/docs/overview/bundling},
// Does handling of allowance be required, like checking allowance, and if it
// less than input amount - approve tx will?
// Determines does deposit token be wrapped by the Rarimo bridge
// (should it be burned during the deposit), required if bridging is required,
// Input token
// Output token after swap or wrap\unwrap
// Amount of input token
// Amount of output token, required if swap is required
// DEX swap a token path, required if swap is required
// Target amount of output token grabbed from the multiple input tokens
// Target output token
//# sourceMappingURL=swapper.js.map