Skip to content

sodexx7/BlockMagic_Swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original README

Panda Finance

Quick Start

  1. bun install
  2. anvil, start local chain environment
  3. Test
    • forge test --match-path test/CryptoSwap.t.sol --fork-url http://localhost:8545 -vv
    • forge test --match-test test_settle --fork-url http://localhost:8545 -vv
    • forge test --match-test test_SettleCase --fork-url http://localhost:8545 -vv
    • forge test --match-contract CryptoSwapTestFork (should config API_KEY_ALCHEMY in env )
  4. Deploy
    • forge script script/DeployMockContracts.sol --rpc-url sepolia --broadcast --verify -vvvv

Doing

  1. DealEngine

    1. the rules
    2. check profit different scenarios
    3. add different notional. like 100,1000,
    4. supply 5*notional
  2. More, check https://github.com/sodexx7/BlockMagic_Swap/blob/equitySwapDraft/test/EquitySwap.t.sol#L184

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published