Skip to content

Commit

Permalink
πŸ˜΅β€πŸ’« fix pool address
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsaki committed Oct 15, 2024
1 parent e733757 commit 17fbc5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/defigraph/Edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
from defigraph.Pool import Pool

class Edge:
def __init__(self, u: Vertex, v: Vertex, weight: float=None):
def __init__(self, u: Vertex, v: Vertex, pool_address: str, weight: float=None):
self.u = u
self.v = v
self.weight = weight
address = ""
self.pool = Pool(address=address,token0=u, token1=v)
self.pool = Pool(address=pool_address,token0=u, token1=v)

def __repr__(self):
if not self.weight:
Expand Down

0 comments on commit 17fbc5b

Please sign in to comment.