Skip to main content

setDepositDataManager

Description:

Adding deposit data manager to vaults version 2 or higher

Arguments:

NameTypeRequiredDescription
managerAddressstringYesNew deposit-data manager
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault

Example:

const params = {
managerAddress: '0x...',
vaultAddress: '0x...',
userAddress: '0x...',
}

// Send transaction
const hash = await sdk.vault.setDepositDataManager(params)
// When you sign transactions on the backend (for custodians)
const { data, to } = await sdk.vault.setDepositDataManager.encode(params)
// Get an approximate gas per transaction
const gas = await sdk.vault.setDepositDataManager.estimateGas(params)