Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,20 @@ number_underscore = "preserve"
[profile.default.rpc_endpoints]
mainnet = "${MAINNET_RPC_URL}"
scroll = "${SCROLL_RPC_URL}"
xdc = "${XDC_RPC_URL}"
tenderly = "${TENDERLY_FORK_URL}"

[lint]
exclude_lints = [
"asm-keccak256",
"unused-import",
"mixed-case-variable",
"screaming-snake-case-const",
"mixed-case-function",
"unaliased-plain-import",
"screaming-snake-case-immutable",
"pascal-case-struct",
"erc20-unchecked-transfer",
"divide-before-multiply",
"unchecked-call"
]
103 changes: 81 additions & 22 deletions scripts/config_xdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,61 @@ module.exports = {
},
"initialDebtCeiling": toWad('100000000'),
},
"Flashlender_usdce": {
"constructorArguments": {
"protocolFee_": toWad('0')
},
"initialDebtCeiling": toWad('100000000'),
},
"Flashlender_usdc": {
"constructorArguments": {
"protocolFee_": toWad('0')
},
"initialDebtCeiling": toWad('100000000'),
},
"WXDC": "0x951857744785E80e2De051c32EE7b25f9c458C42", // XDC native token wrapped
"USDC": "0xcc0587aebda397146cc828b445db130a94486e74", // USDC on XDC
"USDCe": "0xcc0587aebda397146cc828b445db130a94486e74", // USDC on XDC
"USDC": "0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1", // USDC on XDC
"WETH": "0xa7348290de5cf01772479c48D50dec791c3fC212", // WETH on XDC
"PenpieHelper": "0x0000000000000000000000000000000000000000", // PenpieHelper not available on XDC
"AddressProviderV3": "0xE67f77af54EdA6B92f2dBaB272b8C0817ae0bCa3",
"PoolV3_LpXDC": "0xED166436559Fd3d7f44cb00CACDA96EB999D789e", // To be filled after deployment
"PoolV3_LpUSDC": "", // To be filled after deployment
"PoolV3_LpXDC": "0xED166436559Fd3d7f44cb00CACDA96EB999D789e",
"PoolV3_lpUSDCe": "0x235e49CC709F9e262814795c00eabe73709ef8E2",
"PoolV3_lpUSDC": "", // To be filled after USDC pool deployment
"FlashlenderLPXDC": "", // To be filled after deployment
"FlashlenderLPUSDC": "", // To be filled after deployment
"VaultRegistry": "", // To be filled after deployment
"ProxyRegistry": "", // To be filled after deployment
"PoolQuotaKeeperV3": "", // To be filled after deployment
"GaugeV3": "", // To be filled after deployment
"PoolQuotaKeeperV3": "0x796e374f741AfA9205B61328363404DA047CB5bC", // PoolQuotaKeeperV3_LpXDC
"GaugeV3": "0x535F701F85F75a39D93b50E3dD04a7cf137F1EA6", // GaugeV3_LpXDC
"Actions": {
"SwapAction": {
"constructorArguments": {
"balancerVault": "", // To be filled with XDC Balancer Vault
"uniV3Router": "", // To be filled with XDC Uniswap V3 Router
"pendleRouter": "", // To be filled with XDC Pendle Router
"kyberRouter": "", // To be filled with XDC Kyber Router
"tranchessRouter": "", // To be filled with XDC Tranchess Router
"spectraRouter": "" // To be filled with XDC Spectra Router
"balancerVault": "0x0000000000000000000000000000000000000000", // Balancer not available on XDC
"uniV3Router": "0x0000000000000000000000000000000000000000", // Uniswap V3 not available on XDC
"pendleRouter": "0x0000000000000000000000000000000000000000", // Pendle not available on XDC
"kyberRouter": "0x0000000000000000000000000000000000000000", // Kyber not available on XDC
"tranchessRouter": "0x0000000000000000000000000000000000000000", // Tranchess not available on XDC
"spectraRouter": "0x0000000000000000000000000000000000000000" // Spectra not available on XDC
}
},
"PoolAction": {
"constructorArguments": {
"balancerVault": "", // To be filled with XDC Balancer Vault
"pendleRouter": "", // To be filled with XDC Pendle Router
"tranchessRouter": "", // To be filled with XDC Tranchess Router
"spectraRouter": "" // To be filled with XDC Spectra Router
"balancerVault": "0x0000000000000000000000000000000000000000", // Balancer not available on XDC
"pendleRouter": "0x0000000000000000000000000000000000000000", // Pendle not available on XDC
"tranchessRouter": "0x0000000000000000000000000000000000000000", // Tranchess not available on XDC
"spectraRouter": "0x0000000000000000000000000000000000000000" // Spectra not available on XDC
}
},
},
"Gearbox": {
"initialGlobalDebtCeiling": "115792089237316195423570985008687907853269984665640564039457584007913129639935", // max uint256
},
"Treasury": {
"Treasury_usdc": {
"constructorArguments": {
"payees":[
"0xA719A90a173E8F00618596ffb594F5FfA79d915D",
"stakingLpXDC"
"stakingLpUSDC" // Reference to staking contract - will be resolved during deployment
],
"shares":[
200,
Expand All @@ -60,11 +75,11 @@ module.exports = {
},
"Pools": {
"Pool LpUSDC": {
"name": "Loop Liquidity Pool - USDC.e",
"symbol": "lpUSDCe",
"wrappedToken": "0x0000000000000000000000000000000000000000", //
"treasury": "", // To be filled with actual treasury address
"underlier": "0xcc0587aebda397146cc828b445db130a94486e74", // USDC.E
"name": "Loop Liquidity Pool - USDC",
"symbol": "lpUSDC",
"wrappedToken": "0x0000000000000000000000000000000000000000", // No wrapped token for USDC
"treasury": "Treasury_usdc", // Reference to treasury config key
"underlier": "0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1", // USDC on XDC
"interestRateModel": {
"U_1": 8000, // U_1 - Higher utilization target for stablecoin
"U_2": 9500, // U_2 - Higher optimal utilization for stablecoin
Expand All @@ -78,6 +93,50 @@ module.exports = {
"Vendors": {
},
"Vaults": {
// "Vaults_scrvUSD": {
// name: "Vaults_scrvUSD",
// description: "This vault allows for borrowing and lending of scrvUSD assets",
// type: "CDPVault",
// collateralType: "ERC20",
// oracle: {
// type: "Oracle_scrvUSD",
// deploymentArguments: {
// "curvePool": "0x24894F0c4f80837d61CA21730A75Fa216FED7200",
// "scrvUSDRateXDC": "0x09F8D940EAD55853c51045bcbfE67341B686C071", // The LP token market
// "scrvUSD": "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1",
// "k": 0
// },
// },
// token: "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1",
// poolAddress: "0x235e49CC709F9e262814795c00eabe73709ef8E2", // USDC.e pool address
// tokenSymbol: "LOOP-scrvUSD",
// tokenScale: toWad("1.0"),
// protocolIcon: null,
// deploymentArguments: {
// constants: {
// protocolFee: toWad("0.01"),
// },
// configs: {
// debtFloor: toWad("1"),
// liquidationRatio: toWad("1.1"),
// liquidationPenalty: toWad("0.99"),
// liquidationDiscount: toWad("0.98"),
// roleAdmin: "deployer",
// vaultAdmin: "deployer",
// pauseAdmin: "deployer",
// },
// debtCeiling: toWad("100000000"),
// },
// quotas: {
// minRate: 100,
// maxRate: 10000,
// },
// "RewardManager": {
// "artifactName": "src/pendle-rewards/RewardManager.sol:RewardManager",
// "constructorArguments": [
// ]
// }
// },
},

"Tokenomics":{
Expand Down
Loading