@sundaeswap/yield-farming
v1.0.19
Published
The official SundaeSwap Yield Farming SDK for clients.
Downloads
1,036
Readme
title: "yield-farming" has_children: true parent: "Packages" nav_order: 2
Getting Started with Taste Tests
$ yarn 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.