Skip to content

Commit

Permalink
fix(carbon-defi) use type instead of interface
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Jan 31, 2024
1 parent 13958c7 commit 8af03c6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ETH_ADDR_ALIAS, ZERO_ADDRESS } from '~app-toolkit/constants/address';
import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator';
import { drillBalance } from '~app-toolkit/helpers/drill-balance.helper';
import { ContractPositionBalance, RawContractPositionBalance } from '~position/position-balance.interface';
import { ContractPosition, MetaType } from '~position/position.interface';
import { MetaType } from '~position/position.interface';
import {
DefaultContractPositionDefinition,
UnderlyingTokenDefinition,
Expand Down Expand Up @@ -35,9 +35,9 @@ interface Strategy {
orders: readonly [Order, Order];
}

interface StrategyDefinition extends DefaultContractPositionDefinition {
type StrategyDefinition = DefaultContractPositionDefinition & {
strategy: Strategy;
}
};

type StrategyProps = {
strategy: Strategy;
Expand Down Expand Up @@ -138,7 +138,7 @@ export class EthereumCarbonDefiStrategyContractPositionFetcher extends CustomCon
const { owner, orders } = position.dataProps.strategy;
if (owner.toLowerCase() !== address.toLowerCase()) continue;
balances.push({
key: this.appToolkit.getPositionKey(position as ContractPosition<any>),
key: this.appToolkit.getPositionKey(position),
tokens: [
{
key: this.appToolkit.getPositionKey(position.tokens[0]),
Expand Down

0 comments on commit 8af03c6

Please sign in to comment.