Skip to content

Commit

Permalink
fix(contracts): Fix struct field names (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m authored Mar 20, 2024
1 parent a4e2838 commit cbf3c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions per_multicall/src/Structs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ struct Vault {
uint256 amountDebt;
uint256 minHealthRatio; // 10**18 is 100%
uint256 minPermissionLessHealthRatio;
bytes32 tokenIDCollateral;
bytes32 tokenIDDebt;
bytes32 tokenIdCollateral;
bytes32 tokenIdDebt;
}

struct TokenAmount {
Expand Down
4 changes: 2 additions & 2 deletions per_sdk/protocols/token_vault_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ async def get_accounts(self) -> list[ProtocolAccount]:
account: ProtocolAccount = {
"account_number": account_number,
"token_address_collateral": vault_dict["tokenCollateral"],
"token_id_collateral": vault_dict["tokenIDCollateral"].hex(),
"token_id_collateral": vault_dict["tokenIdCollateral"].hex(),
"token_address_debt": vault_dict["tokenDebt"],
"token_id_debt": vault_dict["tokenIDDebt"].hex(),
"token_id_debt": vault_dict["tokenIdDebt"].hex(),
"amount_collateral": vault_dict["amountCollateral"],
"amount_debt": vault_dict["amountDebt"],
"min_health_ratio": vault_dict["minHealthRatio"],
Expand Down

0 comments on commit cbf3c4a

Please sign in to comment.