Skip to content

Commit

Permalink
add more deposit routes
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Jan 15, 2024
1 parent 6c9a13b commit 1ea34b0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions projects/sdk/src/lib/silo/depositGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,29 @@ export const getDepositGraph = (sdk: BeanstalkSDK): Graph => {
});
}


/**
* [ USDC, DAI ] => BEAN
*/
{
const well = sdk.pools.BEAN_ETH_WELL;
graph.setEdge("USDC", "BEAN", {
build: (account: string, from: FarmFromMode, to: FarmToMode) =>
sdk.farm.presets.uniV3WellSwap(well, account, sdk.tokens.USDC, sdk.tokens.WETH, sdk.tokens.BEAN, 500, from, to),
from: "USDC",
to: "BEAN",
label: "uniV3WellSwap"
});

graph.setEdge("DAI", "BEAN", {
build: (account: string, from: FarmFromMode, to: FarmToMode) =>
sdk.farm.presets.uniV3WellSwap(well, account, sdk.tokens.DAI, sdk.tokens.WETH, sdk.tokens.BEAN, 500, from, to),
from: "DAI",
to: "BEAN",
label: "uniV3WellSwap"
});
}

/**
* Well Swap: WETH => BEAN
*/
Expand Down

0 comments on commit 1ea34b0

Please sign in to comment.