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

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

PreviousTransaction detailsNextIndices

Last updated 11 months ago

Was this helpful?

https://kovan.etherscan.io/tx/0x6804d1b73aafc60f9a5b127caf00f883176944b0834ce0dd69f9449099d1d864
https://kovan.etherscan.io/tx/0x3c77d5e6674d5711398824cf598ea246aa9622acc0e538492758e2e69bab2dfd
https://kovan.etherscan.io/tx/0x39506c84099d7127b2c65325cd2ce427f51de2b30b1f02a706f901722d757540
https://kovan.etherscan.io/tx/0x3067e9cc321e419724cf17d57ce9c9e33f9691f8f9ee69174cfa78cf52ea7cad
https://kovan.etherscan.io/tx/0x20e783ca3fe02fda2d358fe365a36826b7fd348f00454c79ff9e28fc7baf1edd
https://kovan.etherscan.io/tx/0xeef4efd7a50d6cec5065aa3b60e1aa2a0127e9bbb6d72797e9d6e871ccd049d8
https://kovan.etherscan.io/tx/0x2c922c65a87ed17424a48935a3b6713f9533b584cf526cff31f42611ec5d2120
https://kovan.etherscan.io/tx/0x85f60c108a69868f722db8d51144b7b47c3d3fc4e1c9f00af392b95540f81045
https://kovan.etherscan.io/tx/0x22803155f4862c7a59e882ac4e4da0841b8f51660cd1eb2dad42a85ac63ec0b0
https://kovan.etherscan.io/tx/0x325311430d23ca2c39698e33571e6814755dc7da09bac3b9e55b1fd3c0602548
https://kovan.etherscan.io/tx/0x61f958612fcaa8f94a4919d4278d447ace8a6ef6901705cb13a3f25f5fdfb309
https://kovan.etherscan.io/tx/0x28a1f19250c0ea55cffa3a9dbba2174e3a9b1333705c2d82790e2ed7b9dbc12f
https://kovan.etherscan.io/tx/0x31b47de6dbdc3268060acba1c3bc8f1e2c85d3642b1b4398039fe947605aa85d
https://kovan.etherscan.io/tx/0xb77d35a82155397c47e89c764e04c2637bcb1c40f2eb9fbc244403eb349c2a52
https://kovan.etherscan.io/tx/0x32bdf96f69807258fc4c0254a424c7ed343338e1ed0ed6196cc6110add167fc0
https://kovan.etherscan.io/tx/0x039f7d08115392c254d2dd04934ddb6446f258689b6d21019d6a198ccb4b1650
https://kovan.etherscan.io/tx/0x20062c0a0519a84f077c8b39f48779a0e47e0fb7c7e119aa9f436f6f7f5d96b2
https://kovan.etherscan.io/tx/0x0621b95aafdfb2ad8db2e339a9bf4d9435fb1d7d6ebc608dae1f17b6f12ab8cb
https://kovan.etherscan.io/tx/0x71869b0d893f8ef2bbdac0a0bbff47eb60850bf43ad553d00a7c7e6c16873687
https://kovan.etherscan.io/tx/0x9e9329032c3d0c246390a8d194a1bfdb16e3ec7e551eb8414f742636228847f7
https://kovan.etherscan.io/tx/0x57005c45f36777380b3b3223d0ad1aca42f7d744b797ed8648e3dcca3edee0e3
https://kovan.etherscan.io/tx/0x75f3131d12c1f8955c1ae9ef3d41017b846dfea41582129b89160f83d3fe0a0a
https://kovan.etherscan.io/tx/0x3cb7a6539ec11ffe044e9ab666537cd49f38b2655294a60e99e993df018cf606
https://kovan.etherscan.io/tx/0x6f349e9d0b26724fac5844388b7d0dec40e86d771d973adcae95ecbb69f5efb5
https://kovan.etherscan.io/tx/0x07e6c02216bbe1781613fb00f0d223b7c7d17bafe089d8e910a9802ed76c6cec
https://kovan.etherscan.io/tx/0x100c5b861fbdd6445183e42afbf143da4399b80486ef12b89399438738945c81
https://kovan.etherscan.io/tx/0x1a97cbbf3d9baa0178c6047d373668b6b6935515b3875768baa76e8e3c8bd093
https://kovan.etherscan.io/tx/0xa92886fdb37ee6cbfd7d798496022d9b99c38989de3eebfcfabce2a10882e059
https://kovan.etherscan.io/tx/0xf313a59f6448dd5d905217ee54ced80ef246f2ebc5f78a85cbed5975c19ecfec
https://kovan.etherscan.io/tx/0xec076877da9d6efe9023f35f27b70e2a9cf95e7c010cb6dce25296ba8d27184b
https://kovan.etherscan.io/tx/0x495a496a2e9659f676ef427b6efa4f91bdc052715a0e89e50d89842ca0983798