Skip to content

Commit

Permalink
chore: some changes from Dani
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Nov 8, 2024
1 parent 7d991fe commit 02876c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/hooks/use-icy-psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { submit1CYWithdrawDepositPSBT } from 'dlc-btc-lib/attestor-request-funct
import { getAttestorGroupPublicKey } from 'dlc-btc-lib/ethereum-functions';
import { RawVault, Transaction } from 'dlc-btc-lib/models';
import { BigNumber } from 'ethers';
import { bytesToHex } from 'viem';

import { useLeather } from './use-leather';

Expand Down Expand Up @@ -94,12 +95,12 @@ export function useOneClickYieldPSBT(): UseOneClickYieldPSBTReturnType {
}

await submit1CYWithdrawDepositPSBT([appConfiguration.coordinatorURL], {
vaultUUID: mockVault.uuid,
withdrawDepositPSBT: fundingTransaction.hex,
vaultUUID: '',
withdrawDepositPSBT: bytesToHex(fundingTransaction.toPSBT()).slice(2),
attestorChainID: ethereumAttestorChainID,
userBitcoinTaprootPublicKey: dlcHandler.getTaprootDerivedPublicKey(),
valueLocked: mockVault.valueLocked.toString(),
integrationAddress: '0x259F05AC8216f0A522AAE4EdE5A9F54FDd9FC41b',
integrationAddress: paddedHexString,
});

setBitcoinDepositAmount(depositAmount);
Expand Down Expand Up @@ -138,7 +139,7 @@ export function useOneClickYieldPSBT(): UseOneClickYieldPSBTReturnType {
attestorChainID: ethereumAttestorChainID,
userBitcoinTaprootPublicKey: dlcHandler.getTaprootDerivedPublicKey(),
valueLocked: mockVault.valueLocked.toString(),
integrationAddress: '0x259F05AC8216f0A522AAE4EdE5A9F54FDd9FC41b',
integrationAddress: paddedHexString,
});

resetBitcoinWalletContext();
Expand Down

0 comments on commit 02876c4

Please sign in to comment.