Skip to content

Commit ffca412

Browse files
ernestognwarr00
andauthored
Note native ERC20 behavior in VestingWallet (#5299)
Co-authored-by: Arr00 <[email protected]>
1 parent dac63c4 commit ffca412

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: contracts/finance/VestingWallet.sol

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import {Ownable} from "../access/Ownable.sol";
2626
*
2727
* NOTE: When using this contract with any token whose balance is adjusted automatically (i.e. a rebase token), make
2828
* sure to account the supply/balance adjustment in the vesting schedule to ensure the vested amount is as intended.
29+
*
30+
* NOTE: Chains with support for native ERC20s may allow the vesting wallet to withdraw the underlying asset as both an
31+
* ERC20 and as native currency. For example, if chain C supports token A and the wallet gets deposited 100 A, then
32+
* at 50% of the vesting period, the beneficiary can withdraw 50 A as ERC20 and 25 A as native currency (totaling 75 A).
33+
* Consider disabling one of the withdrawal methods.
2934
*/
3035
contract VestingWallet is Context, Ownable {
3136
event EtherReleased(uint256 amount);

0 commit comments

Comments
 (0)