Skip to content

Commit

Permalink
Pipeline convert (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean authored Sep 26, 2024
2 parents 7019a63 + 2992ce9 commit 5eacbca
Show file tree
Hide file tree
Showing 13 changed files with 1,212 additions and 714 deletions.
3 changes: 1 addition & 2 deletions projects/sdk/src/classes/Token/Token.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { TokenValue, Token as CoreToken } from "@beanstalk/sdk-core";
import { BigNumber, ContractTransaction } from "ethers";

const STALK_DECIMALS = 10;
const STALK_DECIMALS = 16;
const SEED_DECIMALS = 6;


declare module "@beanstalk/sdk-core" {
interface Token {
isUnripe: boolean;
Expand Down
3 changes: 0 additions & 3 deletions projects/sdk/src/lib/silo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ import {
} from "./silo/types";
import { Transfer } from "./silo/Transfer";
import { Convert, ConvertDetails } from "./silo/Convert";
import { PipelineConvert } from "./silo/PipelineConvert";

export class Silo {
static sdk: BeanstalkSDK;
private depositBuilder: DepositBuilder;
siloWithdraw: Withdraw;
siloTransfer: Transfer;
siloConvert: Convert;
pipelineConvert: PipelineConvert;

// 1 Seed grows 1 / 10_000 Stalk per Season.
// 1/10_000 = 1E-4
Expand All @@ -39,7 +37,6 @@ export class Silo {
this.siloWithdraw = new Withdraw(sdk);
this.siloTransfer = new Transfer(sdk);
this.siloConvert = new Convert(sdk);
this.pipelineConvert = new PipelineConvert(sdk);
}

public calculateGrownStalk = utils.calculateGrownStalkStems;
Expand Down
Loading

0 comments on commit 5eacbca

Please sign in to comment.