View Source: contracts/feeds/IPriceFeeds.sol
- queryRate(address sourceToken, address destToken)
- queryPrecision(address sourceToken, address destToken)
- queryReturn(address sourceToken, address destToken, uint256 sourceAmount)
- checkPriceDisagreement(address sourceToken, address destToken, uint256 sourceAmount, uint256 destAmount, uint256 maxSlippage)
- amountInEth(address Token, uint256 amount)
- getMaxDrawdown(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount, uint256 maintenanceMargin)
- getCurrentMarginAndCollateralSize(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount)
- getCurrentMargin(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount)
- shouldLiquidate(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount, uint256 maintenanceMargin)
- getFastGasPrice(address payToken)
function queryRate(address sourceToken, address destToken) external view
returns(rate uint256, precision uint256)
Arguments
Name | Type | Description |
---|---|---|
sourceToken | address | |
destToken | address |
Source Code
function queryRate(address sourceToken, address destToken)
external
view
returns (uint256 rate, uint256 precision);
function queryPrecision(address sourceToken, address destToken) external view
returns(precision uint256)
Arguments
Name | Type | Description |
---|---|---|
sourceToken | address | |
destToken | address |
Source Code
function queryPrecision(address sourceToken, address destToken)
external
view
returns (uint256 precision);
function queryReturn(address sourceToken, address destToken, uint256 sourceAmount) external view
returns(destAmount uint256)
Arguments
Name | Type | Description |
---|---|---|
sourceToken | address | |
destToken | address | |
sourceAmount | uint256 |
Source Code
function queryReturn(
address sourceToken,
address destToken,
uint256 sourceAmount
) external view returns (uint256 destAmount);
function checkPriceDisagreement(address sourceToken, address destToken, uint256 sourceAmount, uint256 destAmount, uint256 maxSlippage) external view
returns(sourceToDestSwapRate uint256)
Arguments
Name | Type | Description |
---|---|---|
sourceToken | address | |
destToken | address | |
sourceAmount | uint256 | |
destAmount | uint256 | |
maxSlippage | uint256 |
Source Code
function checkPriceDisagreement(
address sourceToken,
address destToken,
uint256 sourceAmount,
uint256 destAmount,
uint256 maxSlippage
) external view returns (uint256 sourceToDestSwapRate);
function amountInEth(address Token, uint256 amount) external view
returns(ethAmount uint256)
Arguments
Name | Type | Description |
---|---|---|
Token | address | |
amount | uint256 |
Source Code
function amountInEth(address Token, uint256 amount) external view returns (uint256 ethAmount);
function getMaxDrawdown(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount, uint256 maintenanceMargin) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
loanToken | address | |
collateralToken | address | |
loanAmount | uint256 | |
collateralAmount | uint256 | |
maintenanceMargin | uint256 |
Source Code
function getMaxDrawdown(
address loanToken,
address collateralToken,
uint256 loanAmount,
uint256 collateralAmount,
uint256 maintenanceMargin
) external view returns (uint256);
function getCurrentMarginAndCollateralSize(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount) external view
returns(currentMargin uint256, collateralInEthAmount uint256)
Arguments
Name | Type | Description |
---|---|---|
loanToken | address | |
collateralToken | address | |
loanAmount | uint256 | |
collateralAmount | uint256 |
Source Code
function getCurrentMarginAndCollateralSize(
address loanToken,
address collateralToken,
uint256 loanAmount,
uint256 collateralAmount
) external view returns (uint256 currentMargin, uint256 collateralInEthAmount);
function getCurrentMargin(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount) external view
returns(currentMargin uint256, collateralToLoanRate uint256)
Arguments
Name | Type | Description |
---|---|---|
loanToken | address | |
collateralToken | address | |
loanAmount | uint256 | |
collateralAmount | uint256 |
Source Code
function getCurrentMargin(
address loanToken,
address collateralToken,
uint256 loanAmount,
uint256 collateralAmount
) external view returns (uint256 currentMargin, uint256 collateralToLoanRate);
function shouldLiquidate(address loanToken, address collateralToken, uint256 loanAmount, uint256 collateralAmount, uint256 maintenanceMargin) external view
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
loanToken | address | |
collateralToken | address | |
loanAmount | uint256 | |
collateralAmount | uint256 | |
maintenanceMargin | uint256 |
Source Code
function shouldLiquidate(
address loanToken,
address collateralToken,
uint256 loanAmount,
uint256 collateralAmount,
uint256 maintenanceMargin
) external view returns (bool);
function getFastGasPrice(address payToken) external view
returns(uint256)
Arguments
Name | Type | Description |
---|---|---|
payToken | address |
Source Code
function getFastGasPrice(address payToken) external view returns (uint256);
- Address
- Administered
- AdminRole
- AdvancedToken
- AdvancedTokenStorage
- Affiliates
- AffiliatesEvents
- ApprovalReceiver
- BProPriceFeed
- CheckpointsShared
- Constants
- Context
- DevelopmentFund
- DummyContract
- EnumerableAddressSet
- EnumerableBytes32Set
- EnumerableBytes4Set
- ERC20
- ERC20Detailed
- ErrorDecoder
- Escrow
- EscrowReward
- FeedsLike
- FeesEvents
- FeeSharingCollector
- FeeSharingCollectorProxy
- FeeSharingCollectorStorage
- FeesHelper
- FourYearVesting
- FourYearVestingFactory
- FourYearVestingLogic
- FourYearVestingStorage
- GenericTokenSender
- GovernorAlpha
- GovernorVault
- IApproveAndCall
- IChai
- IContractRegistry
- IConverterAMM
- IERC1820Registry
- IERC20_
- IERC20
- IERC777
- IERC777Recipient
- IERC777Sender
- IFeeSharingCollector
- IFourYearVesting
- IFourYearVestingFactory
- IFunctionsList
- ILiquidityMining
- ILiquidityPoolV1Converter
- ILoanPool
- ILoanToken
- ILoanTokenLogicBeacon
- ILoanTokenLogicModules
- ILoanTokenLogicProxy
- ILoanTokenModules
- ILoanTokenWRBTC
- ILockedSOV
- IMoCState
- IModulesProxyRegistry
- Initializable
- InterestUser
- IPot
- IPriceFeeds
- IPriceFeedsExt
- IProtocol
- IRSKOracle
- ISovryn
- ISovrynSwapNetwork
- IStaking
- ISwapsImpl
- ITeamVesting
- ITimelock
- IV1PoolOracle
- IVesting
- IVestingFactory
- IVestingRegistry
- IWrbtc
- IWrbtcERC20
- LenderInterestStruct
- LiquidationHelper
- LiquidityMining
- LiquidityMiningConfigToken
- LiquidityMiningProxy
- LiquidityMiningStorage
- LoanClosingsEvents
- LoanClosingsLiquidation
- LoanClosingsRollover
- LoanClosingsShared
- LoanClosingsWith
- LoanClosingsWithoutInvariantCheck
- LoanInterestStruct
- LoanMaintenance
- LoanMaintenanceEvents
- LoanOpenings
- LoanOpeningsEvents
- LoanParamsStruct
- LoanSettings
- LoanSettingsEvents
- LoanStruct
- LoanToken
- LoanTokenBase
- LoanTokenLogicBeacon
- LoanTokenLogicLM
- LoanTokenLogicProxy
- LoanTokenLogicStandard
- LoanTokenLogicStorage
- LoanTokenLogicWrbtc
- LoanTokenSettingsLowerAdmin
- LockedSOV
- MarginTradeStructHelpers
- Medianizer
- ModuleCommonFunctionalities
- ModulesCommonEvents
- ModulesProxy
- ModulesProxyRegistry
- MultiSigKeyHolders
- MultiSigWallet
- Mutex
- Objects
- OrderStruct
- OrigingVestingCreator
- OriginInvestorsClaim
- Ownable
- Pausable
- PausableOz
- PreviousLoanToken
- PreviousLoanTokenSettingsLowerAdmin
- PriceFeedRSKOracle
- PriceFeeds
- PriceFeedsLocal
- PriceFeedsMoC
- PriceFeedV1PoolOracle
- ProtocolAffiliatesInterface
- ProtocolLike
- ProtocolSettings
- ProtocolSettingsEvents
- ProtocolSettingsLike
- ProtocolSwapExternalInterface
- ProtocolTokenUser
- Proxy
- ProxyOwnable
- ReentrancyGuard
- RewardHelper
- RSKAddrValidator
- SafeERC20
- SafeMath
- SafeMath96
- setGet
- SharedReentrancyGuard
- SignedSafeMath
- SOV
- sovrynProtocol
- StakingAdminModule
- StakingGovernanceModule
- StakingInterface
- StakingProxy
- StakingRewards
- StakingRewardsProxy
- StakingRewardsStorage
- StakingShared
- StakingStakeModule
- StakingStorageModule
- StakingStorageShared
- StakingVestingModule
- StakingWithdrawModule
- State
- SwapsEvents
- SwapsExternal
- SwapsImplLocal
- SwapsImplSovrynSwap
- SwapsUser
- TeamVesting
- Timelock
- TimelockHarness
- TimelockInterface
- TokenSender
- UpgradableProxy
- USDTPriceFeed
- Utils
- VaultController
- Vesting
- VestingCreator
- VestingFactory
- VestingLogic
- VestingRegistry
- VestingRegistry2
- VestingRegistry3
- VestingRegistryLogic
- VestingRegistryProxy
- VestingRegistryStorage
- VestingStorage
- WeightedStakingModule
- WRBTC