# AVAX-AMM Section2 Test result
npx hardhat test
(node:33080) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compiled 1 Solidity file successfully
AMM
provide
✔ Token should be moved (6220ms)
Deploy with liquidity
✔ Should set the right number of amm details (200ms)
getEquivalentToken
✔ Should get the right number of equivalent token (55ms)
getWithdrawEstimate
✔ Should get the right number of estimated amount (41ms)
withdraw
✔ Token should be moved (108ms)
✔ Should set the right number of amm details (94ms)
getSwapEstimateOut
✔ Should get the right number of token
getSwapEstimateIn
✔ Should get the right number of token (55ms)
✔ Should revert if the amount of out token exceed the total (66ms)
swap
✔ Should set the right number of amm details (77ms)
✔ Token should be moved (125ms)
Lock
✔ Should fail if the unlockTime is not in the future (38ms)
Withdrawals
Validations
✔ Should revert with the right error if called too soon
✔ Should revert with the right error if called from another account (46ms)
✔ Shouldn't fail if the unlockTime has arrived and the owner calls it (42ms)
Events
✔ Should emit an event on withdrawals (41ms)
Transfers
✔ Should transfer the funds to the owner (60ms)
20 passing (8s)