Skip to content

Add cEUR on Celo and Celo Alfajores testnet #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 13 additions & 1 deletion src/data/chains/42220/chain.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TChain } from "../../../types";
import { celoIcon, cusdIcon, usdGloIcon, gooddollarIcon } from "../../icons";
import { celoIcon, cusdIcon, ceurIcon, usdGloIcon, gooddollarIcon } from "../../icons";

export const celoMainnet: TChain = {
id: 42220,
Expand Down Expand Up @@ -56,6 +56,18 @@ export const celoMainnet: TChain = {
},
redstoneTokenId: "CUSD",
},
{
code: "CEUR",
icon: ceurIcon,
address: "0xD8763CBa276a3738E6DE85b4b3bF5FDed6D6cA73",
decimals: 18,
canVote: true,
priceSource: {
chainId: 42220,
address: "0xD8763CBa276a3738E6DE85b4b3bF5FDed6D6cA73",
},
redstoneTokenId: "CEUR",
},
{
code: "USDGLO",
icon: usdGloIcon,
Expand Down
14 changes: 13 additions & 1 deletion src/data/chains/44787/chain.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TChain } from "../../../types";
import { celoIcon } from "../../icons";
import { celoIcon, ceurIcon } from "../../icons";

export const celoTestnet: TChain = {
id: 44787,
Expand Down Expand Up @@ -41,6 +41,18 @@ export const celoTestnet: TChain = {
},
redstoneTokenId: "CELO",
},
{
code: "CEUR",
icon: ceurIcon,
address: "0x10c892A6EC43a53E45D0B916B4b7D383B1b78C0F",
decimals: 18,
canVote: true,
priceSource: {
chainId: 42220,
address: "0x10c892A6EC43a53E45D0B916B4b7D383B1b78C0F",
},
redstoneTokenId: "CEUR",
},
],
subscriptions: [
{
Expand Down
3 changes: 3 additions & 0 deletions src/data/icons/ceur.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="#45CD85" cx="500" cy="500" r="500"/>
<path d="M445 780c98 0 181-63 212-150h-61c-27 56-85 94-151 94-93 0-169-76-169-169 0-66 38-124 94-151v-61c-87 31-150 114-150 212 0 124 101 225 225 225zm188-215c33 0 64-9 90-25v-52c-25 19-55 31-89 31-48 0-86-23-104-61h133l12-40H518c-1-6-1-11-1-17s0-12 1-18h168l12-40H529c18-39 55-62 105-62 27 0 53 7 77 20l14-45c-27-14-59-21-91-21-75 0-134 43-156 107h-44l-12 38h48c-1 7-1 14-1 21s0 13 1 20h-36l-12 38h57c21 64 79 106 154 106z" fill="#FFF"/></svg>
`;
2 changes: 2 additions & 0 deletions src/data/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import seiIcon from "./sei";
import arbitrumIcon from "./arbitrum";
import celoIcon from "./celo";
import cusdIcon from "./cusd";
import ceurIcon from "./ceur";
import avalancheIcon from "./avalanche";
import scrollIcon from "./scroll";
import baseIcon from "./base";
Expand Down Expand Up @@ -46,6 +47,7 @@ export {
arbitrumIcon,
celoIcon,
cusdIcon,
ceurIcon,
avalancheIcon,
scrollIcon,
baseIcon,
Expand Down