Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
feat(studio): Change strategy for calcluating balances for Kwenta and…
Browse files Browse the repository at this point in the history
… Polynomial (#3131)
  • Loading branch information
immasandwich authored Dec 11, 2023
1 parent 954d23c commit d8c5546
Show file tree
Hide file tree
Showing 17 changed files with 4,074 additions and 59 deletions.
783 changes: 783 additions & 0 deletions src/apps/kwenta/contracts/abis/kwenta-perp.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/apps/kwenta/contracts/viem.contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Network } from '~types/network.interface';
import {
KwentaAccountResolver__factory,
KwentaEscrow__factory,
KwentaPerp__factory,
KwentaStaking__factory,
KwentaStakingV2__factory,
} from './viem';
Expand All @@ -22,6 +23,9 @@ export class KwentaViemContractFactory {
kwentaEscrow({ address, network }: ContractOpts) {
return KwentaEscrow__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
kwentaPerp({ address, network }: ContractOpts) {
return KwentaPerp__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
kwentaStaking({ address, network }: ContractOpts) {
return KwentaStaking__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
Expand Down
Loading

0 comments on commit d8c5546

Please sign in to comment.