Skip to main content

EqualStakePower

Git Source

EqualStakePower

Implementation of a 1:1 stake to voting power conversion

Simply returns the stake amount as the voting power amount without any modifications

Methods

stakeToPower

function stakeToPower(address vault, uint256 stake) public pure override returns (uint256 power)

Converts stake amount to voting power using a 1:1 ratio

Parameters

NameTypeDescription
vaultaddressThe vault address (unused in this implementation)
stakeuint256The stake amount

Returns

NameTypeDescription
poweruint256power The calculated voting power (equal to stake)