Skip to content

Commit

Permalink
in progress #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Sep 13, 2023
1 parent 0aa18d0 commit c0f4eb3
Show file tree
Hide file tree
Showing 5 changed files with 857 additions and 764 deletions.
4 changes: 2 additions & 2 deletions src/marinade-state/marinade-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import {
ValidatorRecordAnchorType,
StateRecordAnchorType,
MarinadeFinanceProgram,
MarinadeFinanceProgramWithConfig,
MarinadeFinanceProgramTypeWithConfig,
} from '../programs/marinade-finance-program'
import { assert } from 'console'

export async function fetchMarinadeState({
program,
config,
}: MarinadeFinanceProgramWithConfig): Promise<Readonly<MarinadeState>> {
}: MarinadeFinanceProgramTypeWithConfig): Promise<Readonly<MarinadeState>> {
const stateResponse = (await program.account.state.fetch(
config.marinadeStateAddress
)) as unknown as MarinadeStateResponse
Expand Down
Loading

0 comments on commit c0f4eb3

Please sign in to comment.