Documentation
¶
Index ¶
- Variables
- func ComputeMaxDTECap(agentValue *big.Int, principal *big.Int) *big.Int
- func ComputeMaxDTICap(epochRate *big.Int, edr *big.Int, agentExistingPrincipal *big.Int, ...) *big.Int
- func ComputeMaxLTVCap(liquidationValue *big.Int, principal *big.Int, recoveryRate *big.Int) *big.Int
- func Init(ctx context.Context, sdk *types.PoolsSDK, agentPolice common.Address, ...) error
- func InitFEVMConnection(agentPolice common.Address, minerRegistry common.Address, ...) *fevmConnection
- func LazyInit(ctx context.Context, sdk *types.PoolsSDK, router common.Address, ...) error
- func MaxBorrowFromAgentData(agentData *vc.AgentData, rate *big.Int, liquidationValue *big.Int, ...) *big.Int
- func New(ctx context.Context, chainID *big.Int, extern types.Extern) (types.PoolsSDK, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var LookbackEpochs abi.ChainEpoch = 3
Functions ¶
func ComputeMaxDTICap ¶
func ComputeMaxLTVCap ¶
func ComputeMaxLTVCap(liquidationValue *big.Int, principal *big.Int, recoveryRate *big.Int) *big.Int
ComputeMaxLTVCap returns the max borrowable amount from the agent's liquidation value maxBorrow = (-1*((LTV*(LV - P*RR)/(LTV * RR) - 1)) - P you can also use equity instead of liquidation value to compute this: maxBorrow = (-1*((LTV*(E*RR)/(LTV * RR) - 1)) - P recovery rate % is expressed as wad math whole number - 1e18 is 100%, 9e17 is 90%, etc
func Init ¶
func Init( ctx context.Context, sdk *types.PoolsSDK, agentPolice common.Address, minerRegistry common.Address, router common.Address, poolRegistry common.Address, agentFactory common.Address, iFIL common.Address, wFIL common.Address, infinityPool common.Address, simpleRamp common.Address, adoAddr string, adoNamespace string, dialAddr string, token string, ) error
func InitFEVMConnection ¶
func InitFEVMConnection( agentPolice common.Address, minerRegistry common.Address, router common.Address, poolRegistry common.Address, agentFactory common.Address, iFIL common.Address, wFIL common.Address, infinityPool common.Address, simpleRamp common.Address, adoAddr string, adoNamespace string, dialAddr string, token string, chainID *big.Int, ) *fevmConnection
func MaxBorrowFromAgentData ¶
Types ¶
This section is empty.
Source Files
¶
- addr_queries.go
- agent_actions.go
- agent_queries.go
- agfactory_queries.go
- chain_queries.go
- extern.go
- ifil_actions.go
- ifil_queries.go
- infpool_actions.go
- infpool_queries.go
- init.go
- minerregistry_queries.go
- police_queries.go
- poolreg_queries.go
- ramp_actions.go
- router_queries.go
- state_queries.go
- types.go
- wfil_queries.go
Click to show internal directories.
Click to hide internal directories.