Skip to content

Commit

Permalink
Hide restake (#10)
Browse files Browse the repository at this point in the history
* hide restake vault logic

* 1.8.6
  • Loading branch information
dfkadyr authored Jul 18, 2024
1 parent f9754f1 commit f4b3869
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.8.5",
"version": "1.8.6",
"main": "dist/index.js",
"name": "@stakewise/v3-deposit-data-parser",
"description": "v3-deposit-data-parser",
Expand Down
13 changes: 7 additions & 6 deletions src/parser/getDepositData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ export type DepositDataInput = {
const getDepositData = async (values: DepositDataInput): Promise<DepositData> => {
const { pubkey, vaultAddress, withdrawalAddress, network } = values

const isRestakeVault = await requests.checkIsRestakeVault(vaultAddress, network)

const withdrawalCredentialAddress = isRestakeVault
? await getEigenPodAddress({ vaultAddress, withdrawalAddress, network })
: vaultAddress
// TODO: use withdrawalCredentialAddress instead of vaultAddress after restake logic is implemented
// const isRestakeVault = await requests.checkIsRestakeVault(vaultAddress, network)
//
// const withdrawalCredentialAddress = isRestakeVault
// ? await getEigenPodAddress({ vaultAddress, withdrawalAddress, network })
// : vaultAddress

try {
const withdrawalCredentials = getWithdrawalCredentials(withdrawalCredentialAddress)
const withdrawalCredentials = getWithdrawalCredentials(vaultAddress)

const depositData = {
amount: getAmount(network),
Expand Down

0 comments on commit f4b3869

Please sign in to comment.