-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/wallet-hook
- Loading branch information
Showing
95 changed files
with
3,572 additions
and
127 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
53 changes: 0 additions & 53 deletions
53
apps/main/src/loan/components/PageLlamaMarkets/LendTableTitle.tsx
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,5 +82,8 @@ | |
}, | ||
{ | ||
"campaign": "Hourglass.json" | ||
}, | ||
{ | ||
"campaign": "Fx.json" | ||
} | ||
] |
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,69 @@ | ||
{ | ||
"campaignName": "", | ||
"platform": "F(x) Protocol", | ||
"description": "External token rewards for providing liquidity.", | ||
"platformImageId": "fx.png", | ||
"dashboardLink": "https://fx.aladdin.club/", | ||
"pools": [ | ||
{ | ||
"id": "null", | ||
"action": "lp", | ||
"description": "Deposit your Curve LP tokens on f(x) Protocol and earn FXN rewards or on Convex and earn CRV and FXN rewards. For more information please visit f(x) Protocol", | ||
"campaignStart": "0", | ||
"campaignEnd": "1770000000", | ||
"address": "0x5018be882dcce5e3f2f3b0913ae2096b9b3fb61f", | ||
"network": "ethereum", | ||
"multiplier": "FXN", | ||
"tags": ["tokens"], | ||
"lock": "false" | ||
}, | ||
{ | ||
"id": "null", | ||
"action": "lp", | ||
"description": "Deposit your Curve LP tokens on f(x) Protocol and earn FXN rewards or on Convex and earn CRV and FXN rewards. For more information please visit f(x) Protocol", | ||
"campaignStart": "0", | ||
"campaignEnd": "1770000000", | ||
"address": "0x74345504eaea3d9408fc69ae7eb2d14095643c5b", | ||
"network": "ethereum", | ||
"multiplier": "FXN", | ||
"tags": ["tokens"], | ||
"lock": "false" | ||
}, | ||
{ | ||
"id": "null", | ||
"action": "lp", | ||
"description": "Deposit your Curve LP tokens on f(x) Protocol and earn FXN rewards or on Convex and earn CRV and FXN rewards. For more information please visit f(x) Protocol", | ||
"campaignStart": "0", | ||
"campaignEnd": "1770000000", | ||
"address": "0x189b4e49b5caf33565095097b4b960f14032c7d0", | ||
"network": "ethereum", | ||
"multiplier": "FXN", | ||
"tags": ["tokens"], | ||
"lock": "false" | ||
}, | ||
{ | ||
"id": "null", | ||
"action": "lp", | ||
"description": "Deposit your Curve LP tokens on f(x) Protocol and earn FXN rewards or on Convex and earn CRV and FXN rewards. For more information please visit f(x) Protocol", | ||
"campaignStart": "0", | ||
"campaignEnd": "1770000000", | ||
"address": "0xc15f285679a1ef2d25f53d4cbd0265e1d02f2a92", | ||
"network": "ethereum", | ||
"multiplier": "FXN", | ||
"tags": ["tokens"], | ||
"lock": "false" | ||
}, | ||
{ | ||
"id": "null", | ||
"action": "lp", | ||
"description": "Deposit your Curve LP tokens on f(x) Protocol and earn FXN rewards or on Convex and earn CRV and FXN rewards. For more information please visit f(x) Protocol", | ||
"campaignStart": "0", | ||
"campaignEnd": "1770000000", | ||
"address": "0x8ffc7b89412efd0d17edea2018f6634ea4c2fcb2", | ||
"network": "ethereum", | ||
"multiplier": "FXN", | ||
"tags": ["tokens"], | ||
"lock": "false" | ||
} | ||
] | ||
} |
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
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,21 @@ | ||
{ | ||
"name": "@curvefi/prices-api", | ||
"version": "1.0.0", | ||
"type": "module", | ||
"main": "src/index.ts", | ||
"types": "src/index.ts", | ||
"license": "MIT", | ||
"private": true, | ||
"scripts": { | ||
"lint": "eslint \"**/*.ts*\"", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "*" | ||
}, | ||
"devDependencies": { | ||
"eslint": "*", | ||
"eslint-config-custom": "*", | ||
"typescript": "*" | ||
} | ||
} |
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,32 @@ | ||
import { getHost, type Options, type Chain } from '..' | ||
import { fetchJson as fetch } from '../fetch' | ||
import type * as Responses from './responses' | ||
import * as Parsers from './parsers' | ||
|
||
export async function getSupportedChains(options?: Options) { | ||
const host = getHost(options) | ||
const resp = await fetch<Responses.GetSupportedChainsResponse>(`${host}/v1/chains/`) | ||
|
||
return Parsers.parseSupportedChains(resp) | ||
} | ||
|
||
export async function getChainInfo(chain: Chain, options?: Options) { | ||
const host = getHost(options) | ||
const resp = await fetch<Responses.GetChainInfoResponse>(`${host}/v1/chains/${chain}?page=1&per_page=1`) | ||
|
||
return Parsers.parseChainInfo(resp) | ||
} | ||
|
||
export async function getTxs(options?: Options) { | ||
const host = getHost(options) | ||
const resp = await fetch<Responses.GetTransactionsResponse>(`${host}/v1/chains/activity/transactions`) | ||
|
||
return Parsers.parseTxs(resp) | ||
} | ||
|
||
export async function getUsers(options?: Options) { | ||
const host = getHost(options) | ||
const resp = await fetch<Responses.GetUsersResponse>(`${host}/v1/chains/activity/users`) | ||
|
||
return Parsers.parseUsers(resp) | ||
} |
Oops, something went wrong.