Skip to content

Commit

Permalink
update testnet oracle and add xalgo pool to testnet (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
gidonkatten authored Dec 13, 2024
1 parent a34e582 commit b094b00
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-pears-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@folks-finance/algorand-sdk": patch
---

update testnet oracle and add xalgo pool to testnet
16 changes: 14 additions & 2 deletions src/lend/constants/testnet-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const TestnetPoolManagerAppId = 147157634;

const TestnetDepositsAppId = 147157692;

type TestnetPoolKey = "ALGO" | "gALGO" | "USDC" | "USDt" | "goBTC" | "goETH";
type TestnetPoolKey = "ALGO" | "gALGO" | "xALGO" | "USDC" | "USDt" | "goBTC" | "goETH";
const TestnetPools: Record<TestnetPoolKey, Pool> = {
ALGO: {
appId: 147169673,
Expand Down Expand Up @@ -34,6 +34,18 @@ const TestnetPools: Record<TestnetPoolKey, Pool> = {
168153622: BigInt(1),
},
},
xALGO: {
appId: 168152517,
assetId: 730430700,
fAssetId: 730786397,
frAssetId: 730786398,
assetDecimals: 6,
poolManagerIndex: 6,
loans: {
147173131: BigInt(6),
168153622: BigInt(2),
},
},
USDC: {
appId: 147170678,
assetId: 67395862,
Expand Down Expand Up @@ -99,7 +111,7 @@ const TestnetLoans: Partial<Record<LoanType, number>> = {
const TestnetReserveAddress: ReserveAddress = "KLF3MEIIHMTA7YHNPLBDVHLN2MVC27X5M7ULTDZLMEX5XO5XCUP7HGBHMQ";

const TestnetOracle: Oracle = {
oracle0AppId: 124087437,
oracle0AppId: 159512493,
oracleAdapterAppId: 147153711,
decimals: 14,
};
Expand Down

0 comments on commit b094b00

Please sign in to comment.