Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
updates vault interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tracheopteryx committed Sep 28, 2020
1 parent ca0b594 commit 386cec6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion developers/vault-interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ It uses the withdraw() function and performs a set of cascading/sequential withd
If strategy implements liquidity pools or lending platforms, then withdrawal from these platforms should be performed until the Vault’s unwrapped token is delivered back to the vault.


### skim() >> check if still being used
### skim()
```
function skim() external;
```
Used when the strategy implements a lending platform, such as Aave. This function returns the remaining amount that can be borrowed from the lending platform.

{% hint style="info" %} skim() is not used by any current strategies. {% endhint %}

### balanceOf()

```
Expand Down Expand Up @@ -154,6 +156,8 @@ function want(address) external view returns (address);

Returns the strategies or vaults unwrapped token.

{% hint style="info" %} The current deployed controller doesn't use this anymore. You need to load the strategy, then call strategy.want(). {% endhint %}

### rewards()
```
function rewards() external view returns (address);
Expand Down

0 comments on commit 386cec6

Please sign in to comment.