Skip to content

Commit

Permalink
adding DAI
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Nov 14, 2023
1 parent 1bb3535 commit 7cb2b70
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/starkwhale-alert/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Token {
pub rate_api_id: &'static str,
}

pub const TOKENS: &[Token] = &[ETH, USDC, USDT];
pub const TOKENS: &[Token] = &[ETH, USDC, USDT, DAI];
pub const ADDRESS_LIST: &[AddressToName] = &[
LAYER_SWAP,
ZKLEND_MARKET,
Expand Down Expand Up @@ -57,6 +57,16 @@ const USDT: Token = Token {
rate_api_id: "tether",
};

const DAI: Token = Token {
address: "0x00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3",
decimals: 18,
symbol: "DAI",
selector: "Transfer",
threshold: 100_000,
logo: "D",
rate_api_id: "multi-collateral-dai",
};

pub const LAYER_SWAP: AddressToName = AddressToName {
address: "19252b1deef483477c4d30cfcc3e5ed9c82fafea44669c182a45a01b4fdb97a",
name: "Layerswap",
Expand Down

0 comments on commit 7cb2b70

Please sign in to comment.