Skip to content

Commit

Permalink
Merge pull request #64 from marinade-finance/fix/naming-consistency
Browse files Browse the repository at this point in the history
fix: naming consistency
  • Loading branch information
AlexStefan authored Feb 1, 2024
2 parents 5186d89 + 1555737 commit f327b88
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v5.0.9

### Fix:

- Naming consistency

## v5.0.8

### Fix:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marinade.finance/marinade-ts-sdk",
"version": "5.0.8",
"version": "5.0.9",
"description": "Marinade SDK for Typescript",
"main": "dist/src/index.js",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/marinade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class Marinade {
delegateTransaction.instructions.push(depositInstruction)

const directedStakeInstruction = await this.createDirectedStakeVoteIx(
options.directToValidatorVoteAddress
options.directedTarget
)
if (directedStakeInstruction) {
delegateTransaction.add(directedStakeInstruction)
Expand Down Expand Up @@ -672,7 +672,7 @@ export class Marinade {
transaction.add(depositStakeAccountInstruction)

const directedStakeInstruction = await this.createDirectedStakeVoteIx(
options.directToValidatorVoteAddress
options.directedTarget
)
if (directedStakeInstruction) {
transaction.add(directedStakeInstruction)
Expand Down Expand Up @@ -831,7 +831,7 @@ export class Marinade {

const { transaction: depositTx, associatedMSolTokenAccountAddress } =
await this.deposit(lamportsToWithdraw, {
directedTarget: options.directToValidatorVoteAddress,
directedTarget: options.directedTarget,
})

transaction.instructions.push(...depositTx.instructions)
Expand Down
4 changes: 2 additions & 2 deletions src/marinade.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export interface DepositOptions {

export interface DepositStakeAccountOptions {
/**
* The vote address of the validator to direct your stake to.
* The vote address of the validator or Marinade Algorithmic Delegation strategy to direct your stake to.
*/
directToValidatorVoteAddress?: web3.PublicKey
directedTarget?: web3.PublicKey
}

export interface ValidatorStats {
Expand Down

0 comments on commit f327b88

Please sign in to comment.