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