Skip to content

Commit

Permalink
dodo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xcellsior committed Jul 15, 2021
1 parent 41f25a3 commit 5c515af
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions v2/projects/dodo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ module.exports = {
// DODO V2
{ // DODO Stable Pooling Factory
tokens: async () => {
const tokens = (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data;
return tokens.map(item => item.address);
return (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data.map(item => item.address) || [];
},
holders: [
'0x3058ef90929cb8180174d74c507176cca6835d73',
Expand All @@ -59,8 +58,7 @@ module.exports = {

{// DODO Vending Machine Factory
tokens: async () => {
const tokens = (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data;
return tokens.map(item => item.address);
return (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data.map(item => item.address) || [];
},
holders: {
pullFromLogs: true,
Expand All @@ -76,8 +74,7 @@ module.exports = {

{ // DODO Private Pool Factory
tokens: async () => {
const tokens = (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data;
return tokens.map(item => item.address);
return (await axios.get('https://i-op.dodoex.io/erc-20-s?chains.name=mainnet')).data.map(item => item.address) || [];
},

holders: {
Expand Down

0 comments on commit 5c515af

Please sign in to comment.