diff --git a/plugin/evm/orderbook/memory_database.go b/plugin/evm/orderbook/memory_database.go index 6999f66f84..b467625796 100644 --- a/plugin/evm/orderbook/memory_database.go +++ b/plugin/evm/orderbook/memory_database.go @@ -51,11 +51,9 @@ const ( RETRY_AFTER_BLOCKS = 10 ) -type Market = hu.Market // int64 +type Market = hu.Market -// type Market int64 - -type Collateral int +type Collateral = int const ( HUSD Collateral = iota @@ -183,30 +181,6 @@ func (order Order) ToOrderMin() OrderMin { type Position = hu.Position -// { -// OpenNotional *big.Int `json:"open_notional"` -// Size *big.Int `json:"size"` -// UnrealisedFunding *big.Int `json:"unrealised_funding"` -// LastPremiumFraction *big.Int `json:"last_premium_fraction"` -// LiquidationThreshold *big.Int `json:"liquidation_threshold"` -// } - -// func (p *Position) MarshalJSON() ([]byte, error) { -// return json.Marshal(&struct { -// OpenNotional string `json:"open_notional"` -// Size string `json:"size"` -// UnrealisedFunding string `json:"unrealised_funding"` -// LastPremiumFraction string `json:"last_premium_fraction"` -// LiquidationThreshold string `json:"liquidation_threshold"` -// }{ -// OpenNotional: p.OpenNotional.String(), -// Size: p.Size.String(), -// UnrealisedFunding: p.UnrealisedFunding.String(), -// LastPremiumFraction: p.LastPremiumFraction.String(), -// LiquidationThreshold: p.LiquidationThreshold.String(), -// }) -// } - type Margin struct { Reserved *big.Int `json:"reserved"` Deposited map[Collateral]*big.Int `json:"deposited"` diff --git a/precompile/contracts/bibliophile/client.go b/precompile/contracts/bibliophile/client.go index 64acad0baf..0815ae9774 100644 --- a/precompile/contracts/bibliophile/client.go +++ b/precompile/contracts/bibliophile/client.go @@ -3,7 +3,6 @@ package bibliophile import ( "math/big" - // hu "github.com/ava-labs/subnet-evm/plugin/evm/orderbook/hubbleutils" "github.com/ava-labs/subnet-evm/precompile/contract" "github.com/ethereum/go-ethereum/common" )