smartexposure

package
v0.0.0-...-5fc2af4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmartExposure

type SmartExposure struct {
	Pools    map[string]types.Pool
	Tranches map[string]types.Tranche
}

func New

func New() *SmartExposure

func (*SmartExposure) AddNewTrancheToState

func (se *SmartExposure) AddNewTrancheToState(tranche types.Tranche)

func (*SmartExposure) LoadPools

func (se *SmartExposure) LoadPools(ctx context.Context, db *pgxpool.Pool) error

func (*SmartExposure) LoadTranches

func (se *SmartExposure) LoadTranches(ctx context.Context, db *pgxpool.Pool) error

func (*SmartExposure) PoolByAddress

func (se *SmartExposure) PoolByAddress(address string) *types.Pool

func (*SmartExposure) TrancheByETokenAddress

func (se *SmartExposure) TrancheByETokenAddress(address string) *types.Tranche

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL