Note native ERC20 behavior in VestingWallet (#5299)

Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
pull/5310/head^2
Ernesto García 3 months ago committed by GitHub
parent dac63c4612
commit ffca412299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      contracts/finance/VestingWallet.sol

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

Loading…
Cancel
Save