bob-collective / bob

BOB is a hybrid L2 that combines the security of Bitcoin with the versatility of Ethereum.
https://app.gobob.xyz/
83 stars 41 forks source link

refactor: strategies #328

Closed gregdhill closed 2 months ago

gregdhill commented 2 months ago

Process to integrate e.g. Pell Network without an output token:

const strategies = await gatewaySDK.getStrategies();
const contract = strategies.filter(strategy => strategy.integration.type === "staking")[0];

const params: GatewayQuoteParams = {
  toToken: contract.address, // NOTE: this is actually the strategy contract not the output token
  ...
};

const quote = await gatewaySDK.getQuote(params);
changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: 749b34d284c30d3fa640b4352f93a9d4881f7c95

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bob ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 5:19pm