Skip to content

maxpia4/aleo-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staking_maxpia_0713.aleo

The subject is to mint tokens and stake to pools and individuals and withdraw the minted tokens.

The input values ​​are as follows.

[mint_to_staking_pool]

pool_address: address = aleo1mgfq6g40l6zkhsm063n3uhr43qk5e0zsua5aszeq5080dsvlcvxsn0rrau;
stake_amount: u32 = 10000u32;

[mint_to_me]

stake_amount: u32 = 1000u32;

[stake]

staking_pool_account: address = aleo1mgfq6g40l6zkhsm063n3uhr43qk5e0zsua5aszeq5080dsvlcvxsn0rrau;
pool_token_amount_before: u32 = 10000u32;
user_token_amount_before: address = 1000u32;
stake_amount: u32 = 100u32;
last_update_block: u32 = 1111u32;
block_height: u32 = 2222u32;
last_rewards:u32 = 0u32;

[withdraw]

staking_pool_account: address = aleo1mgfq6g40l6zkhsm063n3uhr43qk5e0zsua5aszeq5080dsvlcvxsn0rrau;
pool_token_amount_before: u32 = 10100u32;
user_token_amount_before: u32 = 900u32;
withdraw_amount: u32 = 50u32;
last_update_block: u32 = 2222u32;
block_height: u32 = 3333u32;
last_rewards:u32 = 11110u32;

Build Guide

To compile this Aleo program, run:

snarkvm build

To mint staking pool, run:

snarkvm run mint_to_staking_pool

To mint to me, run:

snarkvm run mint_to_me

To stake, run:

snarkvm run stake

To withdraw, run:

snarkvm run withdraw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published