Skip to content

feat: syrupUSDG on Eth mainnet Adapter - #161

Merged
Kogaroshi merged 3 commits into
mainfrom
feat/syrupusdg-eth
Aug 3, 2026
Merged

feat: syrupUSDG on Eth mainnet Adapter#161
Kogaroshi merged 3 commits into
mainfrom
feat/syrupusdg-eth

Conversation

@Kogaroshi

@Kogaroshi Kogaroshi commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Comment thread scripts/DeployEthereum.s.sol Outdated
abi.encode(
IPriceCapAdapter.CapAdapterParams({
aclManager: AaveV3Ethereum.ACL_MANAGER,
baseAggregatorAddress: ChainlinkEthereum.USDG__USD,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this follows LLR recommendation, but it seems that we are diverging from v3 and v4 practices, where we use capped USDG/USD feeds. thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLR also recommended to use CL USDC feed for the syrupUSDC onboarding on V3, so I think they mean this to be the practice for those assets.
But we could also discuss it with them and make both use the Capped USDG & USDC.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syrup tokens above (USDC and USDT) use capped oracles for base aggr

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @notice Price capped adapter to calculate price of (SyrupUSDG / USD) pair by using
* @notice Capped adapter for (USDG / USD) and (SyrupUSDG / USDG) ratio.
*/
contract SyrupUSDGPriceCapAdapter is PriceCapAdapterBase {

@avniculae avniculae Jul 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like that we create a new adapter for each individual token, since all syrup pools use same interface, but I know this is the pattern in this repo so fine for me at the moment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, and this is what called the verification issue on Etherscan. I think in the future we can merge all 3 under MaplePriceCapAdapter or SyrupPriceCapAdapter

@Kogaroshi
Kogaroshi merged commit ff9f24a into main Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants