# Deploying to ape.tax 1. Find appropriate vault: https://ape.tax/ 2. Create a script to flatten the Strategy code using brownie: ```python from brownie import Strategy def main(): with open('Strategy.sol', 'w') as f: Strategy.get_verification_info() f.write(Strategy._flattener.flattened_source) ``` 3. Run the script using browine: ```bash brownie run scripts/script_name.py ``` 4. Copy the code generated with the script to a new contract on remix: remix.ethereum.org/ 5. Enable compiler optimization ![remix-optimization](https://i.imgur.com/W6FVgFB.png) 6. Compile the flattened contract 7. Deploy the contract on the wanted network 8. Set additional values if needed 9. Verify the contract on Etherscan: https://etherscan.io/verifyContract