Skip to content

Commit

Permalink
feat(simnet): add DAI (#1915)
Browse files Browse the repository at this point in the history
* feat(simnet): add DAI

* fixup! feat(simnet): add DAI

* fixup! feat(simnet): add DAI

* fixup! feat(simnet): add DAI

* fixup! feat(simnet): add DAI
  • Loading branch information
Karl Ranna authored Sep 23, 2020
1 parent 26f89e6 commit 35e85b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
5 changes: 5 additions & 0 deletions lib/Xud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ class Xud extends EventEmitter {
channelAmount: 100000000000,
minChannelAmount: 100000000,
},
{
currency: 'DAI',
channelAmount: 150000000000,
minChannelAmount: 100000000,
},
],
// we check the channel and on-chain balance every 10 seconds
// and refund from faucet if below the walletAmount
Expand Down
8 changes: 8 additions & 0 deletions lib/db/seeds/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,21 @@ const currencies = [
decimalPlaces: 6,
tokenAddress: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
},
{
id: 'DAI',
swapClient: SwapClientType.Connext,
decimalPlaces: 18,
tokenAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
},
] as db.CurrencyAttributes[];

const pairs = [
{ baseCurrency: 'ETH', quoteCurrency: 'BTC' },
{ baseCurrency: 'LTC', quoteCurrency: 'BTC' },
{ baseCurrency: 'LTC', quoteCurrency: 'USDT' },
{ baseCurrency: 'BTC', quoteCurrency: 'USDT' },
{ baseCurrency: 'BTC', quoteCurrency: 'DAI' },
{ baseCurrency: 'USDT', quoteCurrency: 'DAI' },
] as db.PairAttributes[];

export {
Expand Down
18 changes: 6 additions & 12 deletions lib/db/seeds/simnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,18 @@ const currencies = [
decimalPlaces: 6,
tokenAddress: '0x292Ba2F10dbFB8925A209d3AdF09C2D2b1f491d4',
},
/*
{
id: 'XUC',
swapClient: SwapClientType.Connext,
decimalPlaces: 18,
tokenAddress: '0x468ee988fD0228A79f6CcC33fEc04249cdfD809E',
},
{
id: 'DAI',
swapClient: SwapClientType.Connext,
decimalPlaces: 18,
tokenAddress: '0x302171031c4fB3cca3395DDb489AC7c0E5Bf5D96',
tokenAddress: '0x5CF98f1782117a20D8613Bf42701026c86061857',
},
/*
{
id: 'USDT',
id: 'XUC',
swapClient: SwapClientType.Connext,
decimalPlaces: 18,
tokenAddress: '0xc3d29467bfe09d061764F2D841FeD98fBF23c088',
tokenAddress: '0x468ee988fD0228A79f6CcC33fEc04249cdfD809E',
},
*/
] as db.CurrencyAttributes[];
Expand All @@ -60,14 +54,14 @@ const pairs = [
{ baseCurrency: 'LTC', quoteCurrency: 'BTC' },
{ baseCurrency: 'LTC', quoteCurrency: 'USDT' },
{ baseCurrency: 'BTC', quoteCurrency: 'USDT' },
// { baseCurrency: 'BTC', quoteCurrency: 'DAI' },
{ baseCurrency: 'BTC', quoteCurrency: 'DAI' },
{ baseCurrency: 'USDT', quoteCurrency: 'DAI' },
// { baseCurrency: 'XUC', quoteCurrency: 'BTC' },
// { baseCurrency: 'ETH', quoteCurrency: 'USDT' },
// { baseCurrency: 'ETH', quoteCurrency: 'DAI' },
// { baseCurrency: 'LTC', quoteCurrency: 'DAI' },
// { baseCurrency: 'XUC', quoteCurrency: 'USDT' },
// { baseCurrency: 'XUC', quoteCurrency: 'DAI' },
// { baseCurrency: 'DAI', quoteCurrency: 'USDT' },
] as db.PairAttributes[];

export {
Expand Down

0 comments on commit 35e85b3

Please sign in to comment.