PSM contract from ilk

Hey guys!

The tin and tout paramteres for the USDC PSM are available from the contract at https://etherscan.io/address/0x89B78CfA322F6C5dE0aBcEecab66Aee45393cC5A.

Is there any way on-chain to deduce this contract adr from the PSM-USDC-A ilk?

Cheers!

2 Likes

I am working on an exchange registry that should help.
However, it won’t work that way.

Token -> exchanges -> ilk+tin+tout+price+reserve dai and token.

2 Likes

Unfortunately there is not. What is the use-case you need this lookup for?

Auto-adding new collaterals, including PSM

Oh actually just remembered we did add it in the chainlog: https://etherscan.io/address/0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F#readContract

You can query for “MCD_PSM_USDC_A” in getAddress().

1 Like

There is the ilk registry where all ilks are.
I am not sure if that help tho.
It is accessible via chainlog too.

Great! Will this format be consistent with the ilks for future PSMs?

Yes, I’m aware. Already using this :slight_smile:

1 Like

Yes we will be using the same format for the other stablecoins.

Perfect! Thank you so much

3 Likes