Skip to content

burrbear-dev/boyco-flow

Repository files navigation

BurrBear Boyco integration

Integration with the zap deposit contract

// Amount to deposit (1000 USDC)
uint256 usdcAmtDeposit = 1000 * 1e6;
address burrZap = 0xd39e7aa57CB0703cE74Bc96dA005dFceE2Ac4F56;

// First approve the exact deposit amount
IERC20(USDC).approve(burrZap, usdcAmtDeposit);

// Execute deposit
IBoycoBurrZap(burrZap).deposit(
    usdcAmtDeposit,    // Amount of USDC to deposit
    msg.sender,        // Address to receive LP tokens
    minBptOut         // Minimum BPT tokens to receive (with slippage)
);

NB: minBptOut should be passed by an offchain source that calls the queryDeposit function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published