Skip to content

Commit

Permalink
Merge pull request #175 from osmosis-labs/sunny/add-osmosis-stables
Browse files Browse the repository at this point in the history
Osmosis register the new stables
  • Loading branch information
realdealshaman authored Nov 10, 2023
2 parents c196174 + 4c1caaa commit 391ea1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/adapters/peggedAssets/e-money-eur/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ async function emoneyMinted(decimals: number) {
"https://rest.cosmos.directory/emoney/cosmos/bank/v1beta1/supply/eeur"
)
);
const uskInfo = res?.data?.amount;
const supply = uskInfo?.amount / 10 ** decimals;
const eeurInfo = res?.data?.amount;
const supply = eeurInfo?.amount / 10 ** decimals;
sumSingleBalance(balances, "peggedEUR", supply, "issued", false);
return balances;
};
Expand Down
8 changes: 7 additions & 1 deletion src/adapters/peggedAssets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ import uaht from './uaht'
import usdm from './usdm'
import nars from './nars'
import phase from './phase-dollar'
import inter from './inter'
import eeur from './eeur'
import cdt from './cdt'

export default {
tether,
Expand Down Expand Up @@ -267,5 +270,8 @@ export default {
uaht,
"mountain-protocol-usdm": usdm,
"num-ars": nars,
"phase-dollar": phase
"phase-dollar": phase,
"inter-stable-token": inter,
"e-money-euro": eeur,
"membrane-cdt": cdt,
};
4 changes: 2 additions & 2 deletions src/adapters/peggedAssets/inter-stable-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async function agoricMinted(decimals: number) {
"https://rest.cosmos.directory/agoric/cosmos/bank/v1beta1/supply/uist"
)
);
const uskInfo = res?.data?.amount;
const supply = uskInfo?.amount / 10 ** decimals;
const istInfo = res?.data?.amount;
const supply = istInfo?.amount / 10 ** decimals;
sumSingleBalance(balances, "peggedUSD", supply, "issued", false);
return balances;
};
Expand Down

0 comments on commit 391ea1d

Please sign in to comment.