mirror of https://github.com/logos-co/staking.git
chore(StakeVault): add important comment about STAKED_TOKEN being immutable
This commit is contained in:
parent
c08fe417ba
commit
2f1c8feb1c
|
@ -19,8 +19,11 @@ contract StakeVault is Ownable {
|
||||||
error StakeVault__StakingFailed();
|
error StakeVault__StakingFailed();
|
||||||
error StakeVault__UnstakingFailed();
|
error StakeVault__UnstakingFailed();
|
||||||
|
|
||||||
StakeManager private stakeManager;
|
//STAKED_TOKEN must be kept as an immutable, otherwise, StakeManager would accept StakeVaults with any token
|
||||||
|
//if is needed that STAKED_TOKEN to be a variable, StakeManager should be changed to check codehash and
|
||||||
|
//StakeVault(msg.sender).stakedToken()
|
||||||
ERC20 public immutable STAKED_TOKEN;
|
ERC20 public immutable STAKED_TOKEN;
|
||||||
|
StakeManager private stakeManager;
|
||||||
uint256 public amountStaked = 0;
|
uint256 public amountStaked = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue