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