Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquidops",
"version": "1.2.19",
"version": "1.2.20",
"author": "Lorimer Jenkins <lorimer@liquidops.io>, Marton Lederer <marton@liquidops.io>",
"repository": {
"type": "git",
Expand Down
36 changes: 36 additions & 0 deletions src/ao/utils/tokenAddressData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,40 @@ export const tokenData: Record<string, TokenData> = {
borrowingDisabled: false,
borrowingDisabledReason: "",
},
VAR: {
name: "Vento Arweave",
icon: "XQKXtuxDGDn13z0JBqYvbkNXPu3Y3aE1WaK2XftQ3cA",
ticker: "VAR",
address: "y-p7CPhs6JMUStAuE4KeTnMXN7qYBvEi2hiBFk8ZhjM",
oTicker: "oVAR",
oAddress: "TYaFOOJUwUjSCTi_CFNZXYAEt4SYTx-HNjrV-cCmwNQ",
controllerAddress,
cleanTicker: "vAR",
denomination: BigInt(12),
collateralEnabled: false,
baseDenomination: BigInt(12),
deprecated: false,
oIcon: "kjybk2--iRY9vxo2eQtVu52vbT8iWJzwBslhGPtTMeM",
borrowingDisabled: false,
borrowingDisabledReason: "",
},
VUSDC: {
name: "Vento USD Circle",
icon: "DbT_EMed2vx4MR7N03YJYLSNeNBvuSgIzjybw8TOqMg",
ticker: "VUSDC",
address: "cxkFiGP89fEKOvbvl9SLs1lEaw0L-DWJiqQOuDPeDG8",
oTicker: "oVUSDC",
oAddress: "aKt8ZDDT43-3vwgqSEKx6aWd_3GA1paePP9EAOf3zcc",
controllerAddress,
cleanTicker: "vUSDC",
denomination: BigInt(6),
collateralEnabled: false,
baseDenomination: BigInt(6),
deprecated: false,
oIcon: "7EEISJIzxC-3RPhgvRc-lAZnP7st1b79_ER4Sc5P_MU",
borrowingDisabled: false,
borrowingDisabledReason: "",
},
};

export function convertTicker(ticker: string): string {
Expand All @@ -135,6 +169,8 @@ export function convertTicker(ticker: string): string {
if (ticker === "WUSDT") return "USDT";
if (ticker === "WETH") return "ETH";
if (ticker === "USDA") return "USDC";
if (ticker === "VAR") return "AR";
if (ticker === "VUSDC") return "USDC";
return ticker;
}

Expand Down
5 changes: 4 additions & 1 deletion tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ if (!process.env.JWK) {

const JWK: any = JSON.parse(process.env.JWK);
const signer = createDataItemSigner(JWK);
const client = new LiquidOps(signer);
const client = new LiquidOps(signer, {
CU_URL: "https://cu.liquidops.io/",
});

const walletAddress = await ownerToAddress(JWK.n);

//--------------------------------------------------------------------------------------------------------------- borrow
Expand Down
Loading