Skip to content

Commit

Permalink
feat: add dATOM support
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart committed Dec 6, 2024
1 parent dd37ace commit f88d5d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/dATOM.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/leap-elements/LiquidityModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const agoricChainId = 'agoric-3';

const chainIdForCollateralPetname = (petname?: string) => {
switch (petname) {
case 'dATOM':
return 'neutron-1';
case 'stATOM':
return 'stride-1';
case 'stOSMO':
Expand All @@ -42,6 +44,8 @@ const chainIdForCollateralPetname = (petname?: string) => {

const assetForCollateralPetname = (petname?: string) => {
switch (petname) {
case 'dATOM':
return ['symbol', 'dATOM'] as AssetSelector;
case 'stATOM':
return ['symbol', 'stATOM'] as AssetSelector;
case 'stOSMO':
Expand Down
2 changes: 2 additions & 0 deletions src/utils/displayFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const getLogoForBrandPetname = (brandPetname: string) => {
return './sttia.svg';
case 'stkATOM':
return './stkatom.svg';
case 'dATOM':
return './dATOM.svg';
}
};

Expand Down

0 comments on commit f88d5d9

Please sign in to comment.