Skip to content

Commit

Permalink
Bug: [UI] Fix Unripe Stems (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean authored Oct 18, 2024
2 parents b24f057 + 176657e commit 16929b6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions projects/sdk/src/lib/silo/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,9 @@ export function makeDepositObject(
data: RawDepositData
): Deposit {
// On-chain
let stem;
const stem = ethers.BigNumber.from(data.stem);
const amount = token.fromBlockchain(data.amount.toString());
const bdv = Silo.sdk.tokens.BEAN.fromBlockchain(data.bdv.toString()); // Hack
// Hack - Remove additional digits added to stem of redeposited unripe tokens in migrateStem
if (token.isUnripe && !ethers.BigNumber.from(data.stem).isNegative()) {
stem = ethers.BigNumber.from(data.stem).div(1000000);
} else {
stem = ethers.BigNumber.from(data.stem);
}
const isGerminating = stem.gte(data.germinatingStem);

// Stalk
Expand Down

0 comments on commit 16929b6

Please sign in to comment.