Skip to content

Commit

Permalink
Renaming variable in trade functions in read write interface
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Oct 17, 2024
1 parent ca80290 commit 422d1e0
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/agent0/ethpy/hyperdrive/interface/read_write_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def set_variable_rate(self, sender: LocalAccount, new_rate: FixedPoint) -> None:

async def async_open_long(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
slippage_tolerance: FixedPoint | None = None,
gas_limit: int | None = None,
Expand All @@ -165,8 +165,8 @@ async def async_open_long(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
slippage_tolerance: FixedPoint, optional
Expand Down Expand Up @@ -194,7 +194,7 @@ async def async_open_long(
"""
return await _async_open_long(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
slippage_tolerance=slippage_tolerance,
gas_limit=gas_limit,
Expand All @@ -208,7 +208,7 @@ async def async_open_long(
# pylint: disable=too-many-arguments
async def async_close_long(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
maturity_time: int,
slippage_tolerance: FixedPoint | None = None,
Expand All @@ -222,8 +222,8 @@ async def async_close_long(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The amount of bonds you wish to close.
maturity_time: int
Expand Down Expand Up @@ -253,7 +253,7 @@ async def async_close_long(
"""
return await _async_close_long(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
maturity_time=maturity_time,
slippage_tolerance=slippage_tolerance,
Expand All @@ -266,7 +266,7 @@ async def async_close_long(

async def async_open_short(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
slippage_tolerance: FixedPoint | None = None,
gas_limit: int | None = None,
Expand All @@ -279,8 +279,8 @@ async def async_open_short(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
slippage_tolerance: FixedPoint, optional
Expand Down Expand Up @@ -308,7 +308,7 @@ async def async_open_short(
"""
return await _async_open_short(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
slippage_tolerance=slippage_tolerance,
gas_limit=gas_limit,
Expand All @@ -322,7 +322,7 @@ async def async_open_short(
# pylint: disable=too-many-arguments
async def async_close_short(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
maturity_time: int,
slippage_tolerance: FixedPoint | None = None,
Expand All @@ -336,8 +336,8 @@ async def async_close_short(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
maturity_time: int
Expand Down Expand Up @@ -367,7 +367,7 @@ async def async_close_short(
"""
return await _async_close_short(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
maturity_time=maturity_time,
slippage_tolerance=slippage_tolerance,
Expand All @@ -382,7 +382,7 @@ async def async_close_short(
# pylint: disable=too-many-arguments
async def async_add_liquidity(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
min_apr: FixedPoint,
max_apr: FixedPoint,
Expand All @@ -397,8 +397,8 @@ async def async_add_liquidity(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
min_apr: FixedPoint
Expand Down Expand Up @@ -430,7 +430,7 @@ async def async_add_liquidity(
"""
return await _async_add_liquidity(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
min_apr=min_apr,
max_apr=max_apr,
Expand All @@ -444,7 +444,7 @@ async def async_add_liquidity(

async def async_remove_liquidity(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
gas_limit: int | None = None,
txn_options_base_fee_multiple: float | None = None,
Expand All @@ -456,8 +456,8 @@ async def async_remove_liquidity(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
gas_limit: int | None, optional
Expand All @@ -481,7 +481,7 @@ async def async_remove_liquidity(
"""
return await _async_remove_liquidity(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
gas_limit=gas_limit,
txn_options_base_fee_multiple=txn_options_base_fee_multiple,
Expand All @@ -492,7 +492,7 @@ async def async_remove_liquidity(

async def async_redeem_withdraw_shares(
self,
agent: LocalAccount,
sender: LocalAccount,
trade_amount: FixedPoint,
gas_limit: int | None = None,
txn_options_base_fee_multiple: float | None = None,
Expand All @@ -512,8 +512,8 @@ async def async_redeem_withdraw_shares(
Arguments
---------
agent: LocalAccount
The account for the agent that is executing and signing the trade transaction.
sender: LocalAccount
The account that is executing and signing the trade transaction.
trade_amount: FixedPoint
The size of the position, in base.
gas_limit: int | None, optional
Expand All @@ -537,7 +537,7 @@ async def async_redeem_withdraw_shares(
"""
return await _async_redeem_withdraw_shares(
interface=self,
sender=agent,
sender=sender,
trade_amount=trade_amount,
gas_limit=gas_limit,
txn_options_base_fee_multiple=txn_options_base_fee_multiple,
Expand Down

0 comments on commit 422d1e0

Please sign in to comment.