Comment on page
LM Pool
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 pool when caller is not owner | add | This will add the pool on contract if the condition is favorable | |
TC_6 | 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_7 | Adding the vault when the caller is not the owner | addVoult | This will not get added because the caller is not the owner | |
TC_8 | Setting chef contract address by an invalid owner | setChefAddress
| This will get reverted because caller is not an owner. | |
TC_9 | Setting chef contract address by a valid owner | setChefAddress
| This will set the address as a Chef address. | |
TC_10 | Setting timelock contract address by an invalid owner | setTimeLockAddress | This will get reverted because caller is not an owner. | |
TC_11 | Setting timelock contract address by a valid owner | setTimeLockAddress | This will set the address as time lock address | |
TC_12 | Depositing the amount if the specified vault is not available | deposit | This will get an error because chosen vault is wrong. | |
TC_13 | Depositing the amount with insufficient balance | deposit | This will get an error for Insufficient balance | |
TC_14 | Depositing the amount if entered pool id doesn't exist | deposit | This will not get added because the pool id doesn't exist | |
TC_15 | Depositing amont | deposit | This will deposit the amount in pool | |
TC_16 | Distributing Reward (Individual, Flat, TVL) | distributeReward | This will get reverted because caller in not an owner | |
TC_17 | Distributing Reward (Individual, Flat, TVL) with invalid pool id | distributeReward | This will get reverted because pool id is invalid | |
TC_18 | Distributing Individual Reward | distributeReward | This will distribute the reward to a individual pool | |
TC_19 | Distributing Flat Reward | distributeReward | This will distribute the reward to the all pool | |
TC_20 | Distributing TVL adjusted reward | distributeReward | This will distribute the reward to the all pool |