Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove AMM interface in OneWayLendingFactory.vy #53

Open
wants to merge 1 commit into
base: lending
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions contracts/lending/OneWayLendingFactory.vy
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ interface Vault:
interface Controller:
def monetary_policy() -> address: view

interface AMM:
def get_dy(i: uint256, j: uint256, in_amount: uint256) -> uint256: view
def get_dx(i: uint256, j: uint256, out_amount: uint256) -> uint256: view
def get_dydx(i: uint256, j: uint256, out_amount: uint256) -> (uint256, uint256): view
def exchange(i: uint256, j: uint256, in_amount: uint256, min_amount: uint256, _for: address) -> uint256[2]: nonpayable
def exchange_dy(i: uint256, j: uint256, out_amount: uint256, max_amount: uint256, _for: address) -> uint256[2]: nonpayable

interface Pool:
def price_oracle(i: uint256 = 0) -> uint256: view # Universal method!
Expand Down