mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-07 14:13:28 +00:00
vault: cleanup
This commit is contained in:
parent
8f5e0f14f8
commit
f4cfcd3767
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user