mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-09 21:18:01 -05:00
This commit enables users to stake multiple times into the same vault with a lock increase. If their total lock increase goes beyond the maximum lock period, staking will revert. In this case users will have to create a new vault. Closes #152 Co-authored-by: Andrea Franz <andrea@gravityblast.com>
9 lines
229 B
Python
9 lines
229 B
Python
using RewardsStreamerMP as streamer;
|
|
|
|
function getVaultStakedBalance(address vault) returns uint256 {
|
|
uint256 stakedBalance;
|
|
stakedBalance, _, _, _, _, _, _, _, _ = streamer.vaultData(vault);
|
|
return stakedBalance;
|
|
}
|
|
|