ConfigHelper
ConfigHelper
A convenience library for getting easy access to other contracts and constants within the protocol, through the use of the GoldfinchConfig contract
getSeniorPool
function getSeniorPool(contract GoldfinchConfig config) internal view returns (contract ISeniorPool)
getSeniorPoolStrategy
function getSeniorPoolStrategy(contract GoldfinchConfig config) internal view returns (contract ISeniorPoolStrategy)
getUSDC
function getUSDC(contract GoldfinchConfig config) internal view returns (contract IERC20withDec)
getFidu
function getFidu(contract GoldfinchConfig config) internal view returns (contract IFidu)
getFiduUSDCCurveLP
function getFiduUSDCCurveLP(contract GoldfinchConfig config) internal view returns (contract ICurveLP)
getCUSDCContract
function getCUSDCContract(contract GoldfinchConfig config) internal view returns (contract ICUSDCContract)
getPoolTokens
function getPoolTokens(contract GoldfinchConfig config) internal view returns (contract IPoolTokens)
getBackerRewards
function getBackerRewards(contract GoldfinchConfig config) internal view returns (contract IBackerRewards)
getGoldfinchFactory
function getGoldfinchFactory(contract GoldfinchConfig config) internal view returns (contract IGoldfinchFactory)
getGFI
function getGFI(contract GoldfinchConfig config) internal view returns (contract IERC20withDec)
getGo
function getGo(contract GoldfinchConfig config) internal view returns (contract IGo)
getStakingRewards
function getStakingRewards(contract GoldfinchConfig config) internal view returns (contract IStakingRewards)
getTranchedPoolImplementationRepository
function getTranchedPoolImplementationRepository(contract GoldfinchConfig config) internal view returns (contract ImplementationRepository)
getCallableLoanImplementationRepository
function getCallableLoanImplementationRepository(contract GoldfinchConfig config) internal view returns (contract ImplementationRepository)
getWithdrawalRequestToken
function getWithdrawalRequestToken(contract GoldfinchConfig config) internal view returns (contract IWithdrawalRequestToken)
oneInchAddress
function oneInchAddress(contract GoldfinchConfig config) internal view returns (address)
creditLineImplementationAddress
function creditLineImplementationAddress(contract GoldfinchConfig config) internal view returns (address)
trustedForwarderAddress
function trustedForwarderAddress(contract GoldfinchConfig config) internal view returns (address)
deprecated because we no longer use GSN
configAddress
function configAddress(contract GoldfinchConfig config) internal view returns (address)
poolTokensAddress
function poolTokensAddress(contract GoldfinchConfig config) internal view returns (address)
backerRewardsAddress
function backerRewardsAddress(contract GoldfinchConfig config) internal view returns (address)
seniorPoolAddress
function seniorPoolAddress(contract GoldfinchConfig config) internal view returns (address)
seniorPoolStrategyAddress
function seniorPoolStrategyAddress(contract GoldfinchConfig config) internal view returns (address)
goldfinchFactoryAddress
function goldfinchFactoryAddress(contract GoldfinchConfig config) internal view returns (address)
gfiAddress
function gfiAddress(contract GoldfinchConfig config) internal view returns (address)
fiduAddress
function fiduAddress(contract GoldfinchConfig config) internal view returns (address)
fiduUSDCCurveLPAddress
function fiduUSDCCurveLPAddress(contract GoldfinchConfig config) internal view returns (address)
cusdcContractAddress
function cusdcContractAddress(contract GoldfinchConfig config) internal view returns (address)
usdcAddress
function usdcAddress(contract GoldfinchConfig config) internal view returns (address)
tranchedPoolAddress
function tranchedPoolAddress(contract GoldfinchConfig config) internal view returns (address)
reserveAddress
function reserveAddress(contract GoldfinchConfig config) internal view returns (address)
protocolAdminAddress
function protocolAdminAddress(contract GoldfinchConfig config) internal view returns (address)
borrowerImplementationAddress
function borrowerImplementationAddress(contract GoldfinchConfig config) internal view returns (address)
goAddress
function goAddress(contract GoldfinchConfig config) internal view returns (address)
stakingRewardsAddress
function stakingRewardsAddress(contract GoldfinchConfig config) internal view returns (address)
getReserveDenominator
function getReserveDenominator(contract GoldfinchConfig config) internal view returns (uint256)
getWithdrawFeeDenominator
function getWithdrawFeeDenominator(contract GoldfinchConfig config) internal view returns (uint256)
getLatenessGracePeriodInDays
function getLatenessGracePeriodInDays(contract GoldfinchConfig config) internal view returns (uint256)
getLatenessMaxDays
function getLatenessMaxDays(contract GoldfinchConfig config) internal view returns (uint256)
getDrawdownPeriodInSeconds
function getDrawdownPeriodInSeconds(contract GoldfinchConfig config) internal view returns (uint256)
getTransferRestrictionPeriodInDays
function getTransferRestrictionPeriodInDays(contract GoldfinchConfig config) internal view returns (uint256)
getLeverageRatio
function getLeverageRatio(contract GoldfinchConfig config) internal view returns (uint256)
getSeniorPoolWithdrawalCancelationFeeInBps
function getSeniorPoolWithdrawalCancelationFeeInBps(contract GoldfinchConfig config) internal view returns (uint256)