Rubic Bridge
Rubic Brdige Service is located in the src/features/bridges/rubic.ts
file
getTrade
method
Interface
This method is responsible for calculating and retrieving the best cross-chain trade option based on the provided parameters. Returns the best trade option or an error if no valid trades are found.
executeTrade
method
The Interface is imported from the rubic-sdk
package
The method interacts with the SDK to manage the trade swap, allowance, approval, transaction submission, and confirmation. Returns transaction receipt.
manageBridges
function is located in src/libs/network/manageBridges.ts
file
Handles the calls comming from the sdks
for the get_trade
, execute_trade
and execute_mock_trade
cases.
Last updated