vault: cleanup

This commit is contained in:
Mark Spanbroek 2025-02-04 16:42:40 +01:00
parent 8f5e0f14f8
commit f4cfcd3767

View File

@ -12,8 +12,8 @@ contract Vault is VaultBase {
Recipient recipient Recipient recipient
) public view returns (uint128) { ) public view returns (uint128) {
Controller controller = Controller.wrap(msg.sender); Controller controller = Controller.wrap(msg.sender);
Account memory b = _getAccount(controller, fund, recipient); Account memory account = _getAccount(controller, fund, recipient);
return b.available + b.designated; return account.available + account.designated;
} }
function getDesignatedBalance( function getDesignatedBalance(
@ -21,8 +21,8 @@ contract Vault is VaultBase {
Recipient recipient Recipient recipient
) public view returns (uint128) { ) public view returns (uint128) {
Controller controller = Controller.wrap(msg.sender); Controller controller = Controller.wrap(msg.sender);
Account memory b = _getAccount(controller, fund, recipient); Account memory account = _getAccount(controller, fund, recipient);
return b.designated; return account.designated;
} }
function getLock(Fund fund) public view returns (Lock memory) { function getLock(Fund fund) public view returns (Lock memory) {