Skip to content

Commit

Permalink
fomrat
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 18, 2024
1 parent 21e1289 commit 3ca8028
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions frontend/pages/api/v1/all_locked_accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const provider = new AnchorProvider(
new NodeWallet(new Keypair()),
{}
)
const stakingProgram = new Program<Staking>(
idl as Staking,
provider
)
const stakingProgram = new Program<Staking>(idl as Staking, provider)
const tokenProgram = splTokenProgram({
programId: TOKEN_PROGRAM_ID,
provider: provider as any,
Expand Down
5 changes: 1 addition & 4 deletions frontend/pages/api/v1/cmc/supply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ const GLOBAL_VESTING_SCHEDULE: IdlTypes<Staking>['vestingSchedule'] = {
},
}

const stakingProgram = new Program<Staking>(
idl as Staking,
provider
)
const stakingProgram = new Program<Staking>(idl as Staking, provider)
const tokenProgram = splTokenProgram({
programId: TOKEN_PROGRAM_ID,
provider: provider as any,
Expand Down
5 changes: 1 addition & 4 deletions frontend/pages/api/v1/locked_accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ const provider = new AnchorProvider(
new NodeWallet(new Keypair()),
{}
)
const stakingProgram = new Program<Staking>(
idl as Staking,
provider
)
const stakingProgram = new Program<Staking>(idl as Staking, provider)
const tokenProgram = splTokenProgram({
programId: TOKEN_PROGRAM_ID,
provider: provider as any,
Expand Down

0 comments on commit 3ca8028

Please sign in to comment.