Skip to content

Commit

Permalink
remove type position from hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
milonite committed Feb 21, 2024
1 parent 83b1421 commit 2c99d2e
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions pages/react-hooks/api-reference/types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,51 +16,6 @@ type Token = {
}
```
### Position
Describes a set of information about a pool or a basetoken that can be executed/entered via a shortcut.
```ts
type Position = PoolPosition | BasePosition
```
#### PoolPosition
Describes positions that are pools with underlying tokens.
```ts
type PoolPosition = {
apy?: number;
apyBase?: number;
apyReward?: number;
chainId: number;
id: string;
name: string;
poolAddress: string;
primaryAddress: string;
subtitle: string;
rewardPoolTokens: string[];
token?: Token;
tokenAddress: string;
tvl: number;
underlyingPoolTokens: string[];
project: string;
};
```

#### BasePosition
Describes base tokens that can be swapped to.

```ts
type BasePosition = {
chainId: number;
name: string;
symbol: string;
address: string;
decimals: number;
logoURI: string;
}
```
#### Route
Describes a route that was found via the `useExecutePosition` hook.
Expand Down

0 comments on commit 2c99d2e

Please sign in to comment.