@huma-finance/widgets 0.0.62-beta.716 → 0.0.62-beta.718

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.62-beta.716+b6b93b1",
3
+ "version": "0.0.62-beta.718+109f130",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -203,5 +203,5 @@
203
203
  "optionalDependencies": {
204
204
  "encoding": "^0.1.13"
205
205
  },
206
- "gitHead": "b6b93b19e475d9a4c0757fc6ba234e0015dbdb02"
206
+ "gitHead": "109f130a1429b7d091f76547fc72e20a8dfa2f09"
207
207
  }
@@ -46,7 +46,6 @@ export function Transfer({
46
46
  const isDev = checkIsDev()
47
47
  const dispatch = useAppDispatch()
48
48
  const { publicKey } = useWallet()
49
- const sentinel = getSentinelAddress(poolInfo.chainId)
50
49
  const { supplyAmount } = useAppSelector(selectWidgetState)
51
50
  const { decimals } = poolInfo.underlyingMint
52
51
  const supplyBigNumber = SolanaTokenUtils.parseUnits(
@@ -173,7 +172,7 @@ export function Transfer({
173
172
  ? poolInfo.seniorTrancheMint
174
173
  : poolInfo.juniorTrancheMint,
175
174
  ),
176
- new PublicKey(sentinel), // delegate
175
+ new PublicKey(poolInfo.poolAuthority), // delegate
177
176
  publicKey, // owner of the wallet
178
177
  BigInt(sharesAmount.muln(1.1).toString()), // amount
179
178
  poolInfo.trancheDecimals,
@@ -199,7 +198,6 @@ export function Transfer({
199
198
  seniorLenderApprovedAccountPDA,
200
199
  seniorLenderStateAccount,
201
200
  seniorTrancheMintSupply,
202
- sentinel,
203
201
  supplyBigNumber,
204
202
  transaction,
205
203
  ])