Skip to content

Latest commit

 

History

History

yield-farming

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
title has_children parent nav_order
yield-farming
true
Packages
2

Getting Started with Taste Tests

$ bun add @sundaeswap/yield-farming lucid-cardano

Next, configure the instance in your app:

import { SundaeSDK } from "@sundaeswap/core";
import { YieldFarmingLucid } from "@sundaeswap/yield-farming";

const sdk: SundaeSDK = new SundaeSDK({
  ...args,
});

const walletInstance = sdk.builder().wallet;

if (!walletInstance) {
  throw new Error();
}

const YF = new YieldFarmingLucid(walletInstance);
const txHash = await YF.lock({ ...args }).then(({ submit }) => submit());

For more instructions see Overview.