Skip to content

Commit

Permalink
Merge branch 'quickfix' of https://github.com/bancorprotocol/research
Browse files Browse the repository at this point in the history
…into quickfix
  • Loading branch information
mikewcasale committed Sep 19, 2022
2 parents fbfc436 + c8a4e5c commit ebafe6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bancor_research/bancor_simulator/v3/spec/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def deposit(
)
self.next_transaction(state)


def trade(
self,
tkn_amt: str,
Expand Down Expand Up @@ -252,7 +251,6 @@ def trade(
)
self.next_transaction(state)


def begin_cooldown_by_rtkn(
self,
tkn_amt: str,
Expand Down Expand Up @@ -327,7 +325,6 @@ def withdraw(
)
self.next_transaction(state)


def enable_trading(
self,
tkn_name: str,
Expand Down Expand Up @@ -356,7 +353,6 @@ def enable_trading(
)
self.next_transaction(state)


def describe(self, decimals: int = -1):
"""
Describes the state ledger in a format similar to BIP15 documentation.
Expand Down Expand Up @@ -435,7 +431,7 @@ def whitelist_token(self, tkn_name: str, timestamp: int = 0):
"""
state = self.get_state(copy_type="initial", timestamp=timestamp)
tkn_name = tkn_name.lower()
state.price_feeds[tkn_name]=state.price_feeds['bnt'].values
state.price_feeds[tkn_name] = state.price_feeds["bnt"].values

state.create_whitelisted_tkn(tkn_name)
handle_whitelisting_tokens(state)
Expand Down

0 comments on commit ebafe6b

Please sign in to comment.