Chef

Test ID

Test Scenario

Function

Details

Transaction Hash

TC_1

Initialize the contract by adding the details

initialize

This will get initialized by getting astra pool id, dev's address, amount to initialize per block, start block, and ending block

TC_2

Initialize the contract even after the contract initialization

initialize

This will get reverted because the contract we are trying to initialize is already initialized

TC_3

Adding the pool to distribute the reward tokens

add

This will get added by adding the allocation points, the token address to give users as reward and a bool to update everything with this call

TC_4

Adding the pool which is already added

add

This will get reverted because the pool we are trying to add is already created

TC_5

Adding the vault so that the user can deposit money in the specified vault

addVoult

This will get added by adding the vault month number

TC_6

Adding the vault when the caller is not the owner

addVoult

This will not get added because the caller is not the owner

TC_7

Setting DAA Contract address by someone who is not an owner

setDaaAddress

This will get reverted because caller is not an owner.

TC_8

Setting DAA Contract address with valid owner

setDaaAddress

This will set the address as a DAA address.

TC_9

Setting DAO Contract address by an invalid owner

setDaoAddress

This will get reverted because caller is not an owner.

TC_10

Setting DAO Contract address by a valid owner

setDaoAddress

This will set the address as a DAO address.

TC_11

Setting LM pool contract address by an invalid owner

setLmPoolAddress

This will get reverted because caller is not an owner.

TC_12

Setting LM pool contract address by a valid owner

setLmPoolAddress

This will set the address as LM pool address

TC_13

Setting timelock contract address by an invalid owner

setTimeLockAddress

This will get reverted because caller is not an owner.

TC_14

Setting timelock contract address by a valid owner

setTimeLockAddress

This will set the address as time lock address

TC_15

Depositing the amount if the specified vault is not available

deposit

This will get an error because chosen vault is wrong.

TC_16

Depositing the amount with insufficient balance

deposit

This will get an error for insufficient balance

TC_17

Depositing the amount if entered pool id doesn't exist

deposit

This will not get added because the pool id doesn't exist

TC_18

Depositing amont

deposit

This will deposit the amount in pool

TC_19

Distributing Reward (Individual, Flat, TVL)

distributeReward

This will get reverted because caller in not an owner

TC_20

Distributing Individual Reward

distributeReward

This will distribute the reward to a individual pool

TC_21

Distributing Flat Reward

distributeReward

This will distribute the reward to the all pool

TC_22

Distributing TVL adjusted reward

distributeReward

This will distribute the reward to the all pool

TC_23

Claiming Reward by staking ASTRADAO reward in ASTRADAO pool

withdrawASTRReward

This will stake the ASTRADAO reward into astra pool.

TC_24

Claiming Reward by withdrawing the ASTRADAO to user account

withdrawASTRReward

This will withdraw the Astra reward and send the amount to user account

TC_25

Claiming Reward with invalid pool id

withdrawASTRReward

This will withdraw the Astra reward and send the amount to user account

TC_26

Update block reward by user with invalid pool id

updateBlockReward

This function will update the total reward as per block reward

TC_27

Update block reward by user with valid pool id

updateBlockReward

This function will update the total reward as per block reward

TC_28

Initiate withdrawal when the eligible amount is zero

withdraw

This function start the cooldown period

TC_29

Initiate withdrawal without staking the ASTRADAO rewards

withdraw

This function start the cooldown period

TC_30

Withdrawal with cooldown period without staking the ASTRADAO rewards

withdraw

This function withdraws the amount after cooldown period

TC_31

Withdrawal after cooldown period without staking the ASTRADAO rewards

withdraw

This function withdraws the amount after cooldown period

TC_32

Staking score after 5 days

stakingScore

This function will fetch the staking score

TC_33

Staking score after 60 days

stakingScore

This function will fetch the staking score

TC_34

Reward multiplier with 200,000 ASTRADAO with 6 month of vault.

getRewardMultiplier

This function will fetch reward multiplier

TC_35

After setting the DAA

daaAddress

This will fetch daa address

TC_36

After setting the DAO

daoAddress

This will fetch dao address

TC_37

After setting the lm pool address

lmpooladdr

This will fetch lm pool address

TC_38

After setting the timelock address

timelock

This will fetch timelock address

TC_39

Block reward after 119 blocks.

ViewRewardInfo

This will fetch the reward information

Last updated