Skip to content

Commit f289646

Browse files
authored
feat(web-app): add KTB RWA token on testnet
Merge pull request #193 from Neko-Protocol/feat/testnet-190-ktb-token-support
2 parents ae8ca04 + 04cf724 commit f289646

File tree

13 files changed

+78
-16
lines changed

13 files changed

+78
-16
lines changed

apps/web-app/src/components/GetTestTokensModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ export function GetTestTokensModal({
113113
{missingTokens.length > 1 ? "s" : ""}
114114
</p>
115115
<p className="text-amber-200/70 text-xs mt-0.5">
116-
Mint USTRY, TESOURO, CETES, USDY & PYUSD to use Borrow, Lend
117-
and Pools.
116+
Mint USTRY, TESOURO, CETES, USDY, PYUSD & KTB to use Borrow,
117+
Lend and Pools.
118118
</p>
119119
</div>
120120
</div>

apps/web-app/src/features/admin/components/CollateralFactorForm.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ import type { AssetType } from "@neko/lending";
1717
const SCALAR_7 = 10_000_000;
1818

1919
/** Pool 1 collateral is RWA (USTRY, etc.), Pool 2 collateral is USDC/XLM */
20-
const POOL1_COLLATERAL_CODES = ["USTRY", "TESOURO", "CETES", "USDY", "PYUSD"];
20+
const POOL1_COLLATERAL_CODES = [
21+
"USTRY",
22+
"TESOURO",
23+
"CETES",
24+
"USDY",
25+
"PYUSD",
26+
"KTB",
27+
];
2128

2229
const ALL_COLLATERAL = [
2330
...POOL1_COLLATERAL_CODES.map((code) => ({

apps/web-app/src/features/admin/constants.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ export const POOL1_CONTRACT_ID = networks.testnet.pool1ContractId;
44
export const POOL2_CONTRACT_ID = networks.testnet.pool2ContractId;
55

66
export const POOL1_ASSETS = ["USDC", "XLM"];
7-
export const POOL2_ASSETS = ["USTRY", "TESOURO", "CETES", "USDY", "PYUSD"];
7+
export const POOL2_ASSETS = [
8+
"USTRY",
9+
"TESOURO",
10+
"CETES",
11+
"USDY",
12+
"PYUSD",
13+
"KTB",
14+
];
815

916
/** Pool 2 collateral (USDC, XLM) - used for set_collateral_factor */
1017
export const POOL2_COLLATERAL_ASSETS = ["USDC", "XLM"];

apps/web-app/src/features/borrowing/hooks/useBorrowPools.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ import { RWA_TOKENS } from "@/lib/constants/wallet";
1313
import type { BorrowPool } from "../types/borrowing";
1414

1515
/** Debt assets borrowable from Pool 2 (collateral = USDC/XLM) */
16-
const POOL2_DEBT_ASSETS = ["USTRY", "TESOURO", "CETES", "USDY", "PYUSD"];
16+
const POOL2_DEBT_ASSETS = [
17+
"USTRY",
18+
"TESOURO",
19+
"CETES",
20+
"USDY",
21+
"PYUSD",
22+
"KTB",
23+
];
1724
/** Collateral assets accepted by Pool 2 */
1825
const POOL2_COLLATERAL_ASSETS = ["USDC", "XLM"];
1926

apps/web-app/src/features/lending/components/ui/BackstopPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const POOLS = [
1717
{
1818
label: "RWA Pool",
1919
contractId: networks.testnet.pool2ContractId,
20-
assets: "USTRY · CETES · USDY · PYUSD",
20+
assets: "USTRY · CETES · USDY · PYUSD · KTB",
2121
},
2222
];
2323

apps/web-app/src/features/lending/hooks/useLendingPools.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ export interface LendingPool {
2323

2424
/** Deposit assets for each pool */
2525
const POOL1_ASSETS = ["USDC", "XLM"];
26-
const POOL2_ASSETS = ["USTRY", "TESOURO", "CETES", "USDY", "PYUSD"];
26+
const POOL2_ASSETS = [
27+
"USTRY",
28+
"TESOURO",
29+
"CETES",
30+
"USDY",
31+
"PYUSD",
32+
"KTB",
33+
];
2734

2835
async function fetchLendingPools(
2936
client: RwaLendingClient,

apps/web-app/src/features/stocks/utils/stockInfo.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,11 @@ export const STOCK_INFO: Record<string, StockInfo> = {
6060
"PYUSD on Stellar: Lobstr, Bitcoin.com, Chipper Cash, Decaf, Arculus, Meru, CiNKO, COCA. Also via PayPal and Venmo.",
6161
},
6262
},
63+
KTB: {
64+
logo: "/assets/ktb.png",
65+
name: "KTB Token",
66+
description: "Real-world asset token available on Neko testnet",
67+
summary:
68+
"KTB is an RWA (real-world asset) token deployed on Stellar testnet for Neko Protocol liquidity and borrowing flows.",
69+
},
6370
};

apps/web-app/src/features/wallet/components/GetTestTokensBanner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export function GetTestTokensBanner({ className }: { className?: string }) {
2828
Get your RWA test tokens
2929
</p>
3030
<p className="text-xs text-white/80 sm:text-sm">
31-
Mint USTRY, TESOURO, CETES, USDY and PYUSD to use Borrow, Lend and
32-
Pools
31+
Mint USTRY, TESOURO, CETES, USDY, PYUSD and KTB to use Borrow,
32+
Lend and Pools
3333
</p>
3434
</div>
3535
</div>

apps/web-app/src/features/wallet/components/GetTestTokensModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export function GetTestTokensModal({
116116
{missingTokens.length > 1 ? "s" : ""}
117117
</p>
118118
<p className="text-amber-200/70 text-xs mt-0.5">
119-
Mint USTRY, TESOURO, CETES, USDY & PYUSD to use Borrow, Lend
120-
and Pools.
119+
Mint USTRY, TESOURO, CETES, USDY, PYUSD & KTB to use Borrow,
120+
Lend and Pools.
121121
</p>
122122
</div>
123123
</div>

apps/web-app/src/features/wallet/components/MintTestTokensButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const MintTestTokensButton: React.FC = () => {
8989
}
9090
>
9191
<div style={{ width: "16em" }}>
92-
Mint USTRY, TESOURO, CETES, USDY & PYUSD to your wallet
92+
Mint USTRY, TESOURO, CETES, USDY, PYUSD & KTB to your wallet
9393
</div>
9494
</Tooltip>
9595
</div>

0 commit comments

Comments
 (0)