Skip to content

Commit 5337a3b

Browse files
add new peg types and mento coins
1 parent 3552055 commit 5337a3b

File tree

6 files changed

+102
-2
lines changed

6 files changed

+102
-2
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { ChainContracts } from "../peggedAsset.type";
2+
3+
const chainContracts: ChainContracts = {
4+
celo: {
5+
issued: ["0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313"],
6+
},
7+
};
8+
9+
import { addChainExports } from "../helper/getSupply";
10+
const adapter = addChainExports(chainContracts, undefined, { pegType: "peggedGHS" });
11+
export default adapter;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { ChainContracts } from "../peggedAsset.type";
2+
3+
const chainContracts: ChainContracts = {
4+
celo: {
5+
issued: ["0xb55a79F398E759E43C95b979163f30eC87Ee131D"],
6+
},
7+
};
8+
9+
import { addChainExports } from "../helper/getSupply";
10+
const adapter = addChainExports(chainContracts, undefined, { pegType: "peggedCHF" });
11+
export default adapter;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { ChainContracts } from "../peggedAsset.type";
2+
3+
const chainContracts: ChainContracts = {
4+
celo: {
5+
issued: ["0x73F93dcc49cB8A239e2032663e9475dd5ef29A08"],
6+
},
7+
};
8+
9+
import { addChainExports } from "../helper/getSupply";
10+
const adapter = addChainExports(chainContracts, undefined, { pegType: "peggedXOF" });
11+
export default adapter;

src/adapters/peggedAssets/peggedAsset.type.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export type PeggedAssetType =
2626
| "peggedAUD"
2727
| "peggedKES"
2828
| "peggedZAR"
29-
| "peggedNGN";
29+
| "peggedNGN"
30+
| "peggedXOF"
31+
| "peggedGHS";
3032

3133
type StringNumber = string;
3234
type PeggedBalances = {

src/peggedData/peggedData.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7568,4 +7568,67 @@ export default [
75687568
module: "mento-nigerian-naira",
75697569
doublecounted: true,
75707570
},
7571+
{
7572+
id: "370",
7573+
name: "Mento Swiss Franc",
7574+
address: "celo:0xb55a79F398E759E43C95b979163f30eC87Ee131D",
7575+
symbol: "CHFm",
7576+
url: "https://app.mento.org/",
7577+
description:
7578+
"CHFm is a CHF-pegged synthetic stablecoin on Celo, part of the Mento Protocol. It is minted via Liquity v2-style CDPs: users deposit USDm as collateral and borrow CHFm against it.",
7579+
mintRedeemDescription:
7580+
"CHFm is minted by depositing collateral into a Mento CDP (trove) and borrowing CHFm against it. Repaying the borrowed CHFm closes or reduces the trove and releases the USDm collateral.",
7581+
onCoinGecko: "true",
7582+
gecko_id: "celo-swiss-franc",
7583+
cmcId: null,
7584+
pegType: "peggedCHF",
7585+
pegMechanism: "crypto-backed",
7586+
priceSource: "defillama",
7587+
auditLinks: ["https://docs.mento.org/mento-v3/dive-deeper/security/audit-reports"],
7588+
twitter: "https://twitter.com/MentoLabs",
7589+
module: "mento-swiss-franc",
7590+
doublecounted: true,
7591+
},
7592+
{
7593+
id: "371",
7594+
name: "Mento West African CFA Franc",
7595+
address: "celo:0x73F93dcc49cB8A239e2032663e9475dd5ef29A08",
7596+
symbol: "XOFm",
7597+
url: "https://app.mento.org/",
7598+
description:
7599+
"XOFm is a XOF-pegged synthetic stablecoin on Celo, part of the Mento Protocol. It is minted via Liquity v2-style CDPs: users deposit USDm as collateral and borrow XOFm against it.",
7600+
mintRedeemDescription:
7601+
"XOFm is minted by depositing collateral into a Mento CDP (trove) and borrowing XOFm against it. Repaying the borrowed XOFm closes or reduces the trove and releases the USDm collateral.",
7602+
onCoinGecko: "true",
7603+
gecko_id: "celo-west-african-cfa-franc",
7604+
cmcId: null,
7605+
pegType: "peggedXOF",
7606+
pegMechanism: "crypto-backed",
7607+
priceSource: "defillama",
7608+
auditLinks: ["https://docs.mento.org/mento-v3/dive-deeper/security/audit-reports"],
7609+
twitter: "https://twitter.com/MentoLabs",
7610+
module: "mento-west-african-cfa-franc",
7611+
doublecounted: true,
7612+
},
7613+
{
7614+
id: "372",
7615+
name: "Mento Ghanaian Cedi",
7616+
address: "celo:0xfAeA5F3404bbA20D3cc2f8C4B0A888F55a3c7313",
7617+
symbol: "GHSm",
7618+
url: "https://app.mento.org/",
7619+
description:
7620+
"GHSm is a GHS-pegged synthetic stablecoin on Celo, part of the Mento Protocol. It is minted via Liquity v2-style CDPs: users deposit USDm as collateral and borrow GHSm against it.",
7621+
mintRedeemDescription:
7622+
"GHSm is minted by depositing collateral into a Mento CDP (trove) and borrowing GHSm against it. Repaying the borrowed GHSm closes or reduces the trove and releases the USDm collateral.",
7623+
onCoinGecko: "true",
7624+
gecko_id: "celo-ghanaian-cedi",
7625+
cmcId: null,
7626+
pegType: "peggedGHS",
7627+
pegMechanism: "crypto-backed",
7628+
priceSource: "defillama",
7629+
auditLinks: ["https://docs.mento.org/mento-v3/dive-deeper/security/audit-reports"],
7630+
twitter: "https://twitter.com/MentoLabs",
7631+
module: "mento-ghanaian-cedi",
7632+
doublecounted: true,
7633+
},
75717634
] as PeggedAsset[];

src/peggedData/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ type PegType =
1919
| "peggedAUD" //Australian currency
2020
| "peggedKES" //Kenyan shilling
2121
| "peggedZAR" //South African rand
22-
| "peggedNGN"; //Nigerian naira
22+
| "peggedNGN" //Nigerian naira
23+
| "peggedXOF" //West African CFA franc
24+
| "peggedGHS"; //Ghanaian cedi
2325

2426
type PegMechanism = "algorithmic" | "fiat-backed" | "crypto-backed";
2527

0 commit comments

Comments
 (0)