Skip to content

Commit

Permalink
Merge pull request #188 from lc-labs/development
Browse files Browse the repository at this point in the history
feat: return wrapping of flux for usdc+
  • Loading branch information
lcamargof authored Oct 3, 2023
2 parents dd217e2 + 7e9e92a commit a43443e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/views/issuance/components/wrapping/atoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const protocolLabels: StringMap = {
AAVE: 'Aave V2 Tokens',
MORPHO: 'Morpho (Aave) Tokens',
COMP: 'Compound V2 Tokens',
// FLUX: 'FLUX Tokens',
FLUX: 'FLUX Tokens',
COMPv3: 'Compound V3 Tokens',
CONVEX: 'Curve Convex LP Tokens',
CURVE: 'Curve LP Tokens',
Expand Down Expand Up @@ -43,6 +43,26 @@ export const collateralsPerRTokenAtom = atom<CollateralPlugin[]>((get) => {
return rTokenPlugins
}

// TODO: USDC+ on mainnet, remove when old flux plugins are swapped from the basket
if (rToken.address === '0xFc0B1EEf20e4c68B3DCF36c4537Cfa7Ce46CA70b') {
rTokenPlugins.push({
address: '0x1FFA5955D64Ee32cB1BF7104167b81bb085b0c8d',
erc20: '0x6D05CB2CB647B58189FA16f81784C05B4bcd4fe9',
chainlinkFeed: '0x',
delayUntilDefault: '86400',
maxTradeVolume: '1000000',
oracleTimeout: 3660,
targetName: 'USD',
version: '3.0.0',
symbol: 'fUSDC-VAULT',
decimals: 18,
protocol: 'FLUX',
underlyingAddress: '0x465a5a630482f3abD6d3b84B39B29b07214d19e5',
underlyingToken: 'fUSDC',
rewardTokens: [],
})
}

return rToken.collaterals.reduce((acc, collateral) => {
// check if rToken is on the plugin list
if (plugins[collateral.symbol]) {
Expand Down

0 comments on commit a43443e

Please sign in to comment.