diff --git a/eagleproject/core/blockchain/harvest/snapshots.py b/eagleproject/core/blockchain/harvest/snapshots.py index 013685f..4ecf716 100644 --- a/eagleproject/core/blockchain/harvest/snapshots.py +++ b/eagleproject/core/blockchain/harvest/snapshots.py @@ -53,8 +53,6 @@ origin_token_non_rebasing_supply, priceUnitMint, priceUnitRedeem, - priceUSDMint, - priceUSDRedeem, rebasing_credits_per_token, strategyCheckBalance, story_staking_total_supply, @@ -267,7 +265,7 @@ def build_asset_block(symbol, block_number, project = OriginTokens.OUSD): if ora_tok_usd_min < 0: try: ora_tok_usd_min = ( - priceUSDMint(OUSD_VAULT, CONTRACT_FOR_SYMBOL[symbol], block_number) + priceUnitMint(OUSD_VAULT, CONTRACT_FOR_SYMBOL[symbol], block_number) if symbol in OUSD_BACKING_ASSETS else 0 ) @@ -277,7 +275,7 @@ def build_asset_block(symbol, block_number, project = OriginTokens.OUSD): if ora_tok_usd_max < 0: try: ora_tok_usd_max = ( - priceUSDRedeem(OUSD_VAULT, CONTRACT_FOR_SYMBOL[symbol], block_number) + priceUnitRedeem(OUSD_VAULT, CONTRACT_FOR_SYMBOL[symbol], block_number) if symbol in OUSD_BACKING_ASSETS else 0 ) diff --git a/eagleproject/notify/triggers/vault_oracle.py b/eagleproject/notify/triggers/vault_oracle.py index e1e47da..b1e2ef5 100644 --- a/eagleproject/notify/triggers/vault_oracle.py +++ b/eagleproject/notify/triggers/vault_oracle.py @@ -25,11 +25,6 @@ def get_oracle_prices(symbol, vault=OUSD_VAULT): """ Get min/max price for a token """ address = CONTRACT_FOR_SYMBOL[symbol] - - if vault == OUSD_VAULT: - # Rel: https://github.com/OriginProtocol/origin-dollar/issues/1368 - return (priceUSDRedeem(vault, address), priceUSDMint(vault, address)) - return (priceUnitRedeem(vault, address), priceUnitMint(vault, address))