Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2585_assets_page
Browse files Browse the repository at this point in the history
kattylucy authored Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 3bc3c70 + 5b5d511 commit eb95230
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions centrifuge-app/src/pages/Dashboard/AssetsPage.tsx
Original file line number Diff line number Diff line change
@@ -5,5 +5,6 @@ export default function AssetsPage({ pools }: { pools: Pool[] }) {
// Use a single hook that handles multiple pool IDs
const allLoans = useLoans(pools.map((pool) => pool.id))
console.log(allLoans)
export default function AssetsPage() {
return <></>
}
5 changes: 3 additions & 2 deletions centrifuge-js/src/CentrifugeBase.ts
Original file line number Diff line number Diff line change
@@ -40,7 +40,8 @@ type ProxyType = string
const EVM_DISPATCH_PRECOMPILE = '0x0000000000000000000000000000000000000401'
const WEIGHT_PER_GAS = 25_000
const GAS_LIMIT_POV_SIZE_RATIO = 4
const EVM_DISPATCH_OVERHEAD_GAS = 1_000_000
const EVM_DISPATCH_OVERHEAD_GAS = 100_000
const MAX_GAS_LIMIT = 7_920_027

export type Config = {
network: 'altair' | 'centrifuge'
@@ -537,7 +538,7 @@ export class CentrifugeBase {
// type: 2,
to: EVM_DISPATCH_PRECOMPILE,
data: submittable.method.toHex(),
gasLimit: gas,
gasLimit: Math.min(options?.evmGasLimit ?? gas, MAX_GAS_LIMIT),
// gas: 0 // TODO: How to estimate gas here?,
// NOTE: value is unused, the Dispatch requires no additional payment beyond tx fees
}
1 change: 1 addition & 0 deletions centrifuge-js/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ export type TransactionOptions = {
proxies?: Config['proxies']
multisig?: { signers: string[]; threshold: number }
transferToActingAccount?: BN
evmGasLimit?: number
}

export type Account = HexString | string | Uint8Array

0 comments on commit eb95230

Please sign in to comment.