Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atvanguard committed Sep 27, 2023
1 parent a7388d5 commit 8f3dbc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
30 changes: 2 additions & 28 deletions plugin/evm/orderbook/memory_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"`
Expand Down
1 change: 0 additions & 1 deletion precompile/contracts/bibliophile/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 8f3dbc7

Please sign in to comment.