Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Staking Curve #113

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
11 changes: 3 additions & 8 deletions src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,11 @@ mod Governance {

let staking = IStakingDispatcher { contract_address: governance_address };
staking.set_floating_token_address(floating_token_address);
let ONE_MONTH: u64 = 2629743; // 30.44 days
let THREE_MONTHS = ONE_MONTH * 3;
let SIX_MONTHS = ONE_MONTH * 6;
let ONE_YEAR: u64 = 31536000; // 365 days
staking.set_curve_point(ONE_MONTH, 100);
staking.set_curve_point(THREE_MONTHS, 120);
staking.set_curve_point(SIX_MONTHS, 160);
staking.set_curve_point(ONE_YEAR, 250);
staking.set_voting_token_address(voting_token_address);
// No need to set curve points for linear decay model
}


#[abi(embed_v0)]
impl Governance of super::IGovernance<ContractState> {
fn get_governance_token_address(self: @ContractState) -> ContractAddress {
Expand Down
Loading