Astra DAO
  • 👋Introduction
  • Astra DAO
    • Indices
      • iTokens
      • Tokenomics
      • Staking
      • Fees
    • Launchpad Overview
      • Whitelisting (KYC)
      • Vesting
      • Cross-Chain Staking
    • Roadmap
  • Governance
    • Astra DAO
    • Proposals and Voting
  • Tutorials
    • Indices
      • Creating an Index
      • Entering an Astra DAO Index
      • Staking iTokens
      • Leaving an Astra DAO Index
      • Staking ASTRADAO
        • Claiming Rewards - iTokens Staking and Liquidity Mining
        • Shut-Down an Index
    • Launchpad
      • How to Create a Token Sale
      • How to Invest in a Token Sale
      • How to Complete PureFi KYC
  • Oracle
    • Chainlink
  • Developers
    • Contracts
      • Mainnet
        • Arbitrum
      • Testnet
        • Polygon Mumbai
        • BSC Testnet
    • Transaction details
      • Chef
      • Indices
      • LM Pool
      • Governance
    • Smart Contract Functionality
      • Vesting
      • Payment
      • Indices
      • Governance
      • Chef
      • LM Pool
      • AstraDAO Whitelist
      • LaunchpadConfiguration
      • Launchpad
      • LaunchpadFactory
      • LaunchpadVesting
      • CrossChainSaleManager
  • Security
    • Time Lock
    • Ownership
    • Pausing
    • Security Audits
    • Bug Bounty Program
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. Transaction details

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

TC_21

Claiming Reward by staking ASTRADAO reward in ASTRADAO pool

withdrawASTRReward

this will stake the ASTRADAO reward into astra pool.

TC_22

Claiming Reward by withdrawing the ASTRADAO to user account

withdrawASTRReward

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

TC_23

Claiming Reward with invalid pool id

withdrawASTRReward

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

TC_24

Claiming Reward when lm pool contract does not have the sufficient ASTRADAO

withdrawASTRReward

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

TC_25

Claiming Reward when lm pool contract address is set on chef contract

withdrawASTRReward

This will claim the Astra reward by staking it to Astra pool

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 with invalid pool id

withdraw

This function start the cooldown period

TC_29

Initiate withdrawal when the eligible amount is zero

withdraw

This function start the cooldown period

TC_30

Initiate withdrawal without staking the ASTRA rewards

withdraw

This function start the cooldown period

TC_31

Withdrawal with cooldown period without staking the ASTRA rewards

withdraw

This function withdraws the amount after cooldown period

TC_32

Withdrawal after cooldown period without staking the ASTRA rewards

withdraw

This function withdraws the amount after cooldown period

TC_33

Pool Information after adding pool for lp token

poolInfo

This function fetches the information of pool

TC_34

After setting the Chef address

chefaddr

This will fetch chef address

TC_35

After setting the timelock address

timelock

This will fetch timelock address

TC_36

Amount after staking lp token in pool

userInfo

It will fetch the user info saved on the contract

TC_37

Total reward before reward distribution

userInfo

It will fetch the user info saved on the contract

Before individual reward distribution

TC_38

After Flat distribution

userInfo

It will fetch the user info saved on the contract

TC_39

After TVL adjusted distribution

userInfo

It will fetch the user info saved on the contract

TC_40

After claiming reward by staking it on astra pool

userInfo

It will fetch the user info saved on the contract

Before

TC_41

After updating the block reward

userInfo

It will fetch the user info saved on the contract

Before

TC_42

After withdrawing the staked amount and astra rewards

userInfo

It will fetch the user info saved on the contract

Before

PreviousIndicesNextGovernance

Last updated 1 year ago

Was this helpful?

https://kovan.etherscan.io/tx/0xafa527af31871393b7ed7fb35a245105f3f615c7c73b4dbd635b57da602f9e1a
https://kovan.etherscan.io/tx/0xe6f655ce942a172912db30a89f64dfa32bea95ee623e605831ffd976b012dada
https://kovan.etherscan.io/tx/0xd255ded3059eaacf0b7867e1b51a975d4be000b93f28a10cf8c6993bb6327aa3
https://kovan.etherscan.io/tx/0xf673f1222b2a4bd505af436872ae808c864c33776068acea46c40f3bbff9082f
https://kovan.etherscan.io/tx/0xd5200178e4b9277e3345013995262e6f2b42e042c04709ebf6d154e8ba2f6c53
https://kovan.etherscan.io/tx/0xda4c11c92c79852094bee8eff2b6634a8406c93475e6cf30e9faa3bc58a5a6c8
https://kovan.etherscan.io/tx/0x19f8c52025c26f214ff21b0ae630652256a10ff3ddb2685d08be2a1658c9bf6b
https://kovan.etherscan.io/tx/0x11368d4afabe70d1f5afb59c924f0cd839fb0ca5bd72394cfa9f365b29542146
https://kovan.etherscan.io/tx/0x955d03b37bbe1dee15de8d0a419a3771e7e547cbd363d128b7e5d3473547011c
https://kovan.etherscan.io/tx/0x5739f98417bf489211986e144c907c6e66bb877e6f7863160e7756431a44102b
https://kovan.etherscan.io/tx/0x6c5ac343d5590aa4dd22ea08da1c1a4722c708489b1b445456b35ebb3f9250db
https://kovan.etherscan.io/tx/0x8681e9343a113b8d3dc77b125fe63ac793a4b6a07de41f3258cebbf0f1ba0df6
https://kovan.etherscan.io/tx/0x91a6f24d9ad91a26f3b1d9c46ee981a5d30e92dbc9ade1bfdec674d80171472d
https://kovan.etherscan.io/tx/0x1f487843ef9cdb95d7aacb018531eece9e98a1e009247ee361efb153bb5955b3
https://kovan.etherscan.io/tx/0x5a5b865fbf2f645e830469f0c77c5d3813a21279f6091acccdac981c826512af
https://kovan.etherscan.io/tx/0x1070457f1b52cb5919b5c9a9739228102f8892815442831cf5c920405b3ace1a
https://kovan.etherscan.io/tx/0x0050f85b66b124fb7d7c843dafe1d01b13f9bbf5d5e1b2860e001447bb75ada0
https://kovan.etherscan.io/tx/0x6bd333953a55c7683034a4e4b2c3c9afc5e756a0e0f252d28d1e71519b390740
https://kovan.etherscan.io/tx/0xb3a77e43c5c6333ca8a23c1eae8aa7f3018f5f79ff25ea4b8b7002a7bf363ec4
https://kovan.etherscan.io/tx/0x1b266d4374baa1c9ce0d1938cb29cc674bf66578ab764c5801d418bf19af07c6
https://kovan.etherscan.io/tx/0x4c41e2a26bfe838a22d51a9cc4d9c74e932989d4b0f6df6c2a839debd3c7646e
https://kovan.etherscan.io/tx/0x9e8487652767667211c3de5202ca5c35bdca148f30c12adbf00b3e288dd86b4d
https://kovan.etherscan.io/tx/0x6d7de6bdca5a870d473634e24e988d58da52f51ec0e8f2ab4932c0a16d452b8d
https://kovan.etherscan.io/tx/0xbcf7a33a69ededbaf0e5b0b13ad6edef76099d4f64f486e339e44a48e9cd586f
https://kovan.etherscan.io/tx/0xbba4dfb3a4ad8d0295566e32e06420282966ada4bf12dc33fd783bfc1efccdbc
https://kovan.etherscan.io/tx/0x23162a3619a40004c7fc6c7a3d96515cd229f4f35d0161c2949694a229b8849f
https://kovan.etherscan.io/tx/0xc2219ee7af963601da6f5b19b7ccf02e817a9bb8b08384d856cf95836681b4c8
https://kovan.etherscan.io/tx/0x887e05bc07617e4273d1553562c8ee364cd5b0edb0f1fa67b4f2f98d5c2ae2e1
https://kovan.etherscan.io/tx/0x547c9d37e15293d7709530b2fceef6d15cfb8c9afe1e74acc627d03f01af6b74
https://kovan.etherscan.io/tx/0x2b008b1859b01a80a5808d8f45adcdcd7a682716babe5a56804015bdcf23c717
https://kovan.etherscan.io/tx/0xee7b765c6e0661fc0c77a235756ad00bf84e3bffed43d9a4e303de6fddfee59f
https://kovan.etherscan.io/tx/0xc12160bb831240241922be3a499f9edcd3651168019f990de00c033e8e2222e9