forked from Zapper-fi/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(curve): Eliminate Curve static pool definitions (Zapper-fi#954)
- Loading branch information
1 parent
0a99285
commit e5866a4
Showing
142 changed files
with
8,522 additions
and
24,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 0 additions & 95 deletions
95
src/apps/curve/arbitrum/curve.farm.contract-position-fetcher.ts
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
src/apps/curve/arbitrum/curve.gauge.contract-position-fetcher.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Inject } from '@nestjs/common'; | ||
|
||
import { Register } from '~app-toolkit/decorators'; | ||
import { PositionFetcher } from '~position/position-fetcher.interface'; | ||
import { ContractPosition } from '~position/position.interface'; | ||
import { Network } from '~types/network.interface'; | ||
|
||
import { CURVE_DEFINITION } from '../curve.definition'; | ||
import { CurveGaugeDefaultContractPositionHelper } from '../helpers/curve.gauge.default.contract-position-helper'; | ||
|
||
const appId = CURVE_DEFINITION.id; | ||
const groupId = CURVE_DEFINITION.groups.gauge.id; | ||
const network = Network.ARBITRUM_MAINNET; | ||
|
||
@Register.ContractPositionFetcher({ appId, groupId, network }) | ||
export class ArbitrumCurveGaugeContractPositionFetcher implements PositionFetcher<ContractPosition> { | ||
constructor( | ||
@Inject(CurveGaugeDefaultContractPositionHelper) | ||
private readonly curveGaugeDefaultContractPositionHelper: CurveGaugeDefaultContractPositionHelper, | ||
) {} | ||
|
||
async getPositions() { | ||
return this.curveGaugeDefaultContractPositionHelper.getPositions({ | ||
network, | ||
crvTokenAddress: '0x11cdb42b0eb46d95f990bedd4695a6e3fa034978', | ||
}); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.