feat: bridges, PMM, flash workflow, token-aggregation, and deployment docs
- CCIP/trustless bridge contracts, GRU tokens, DEX/PMM tests, reserve vault. - Token-aggregation service routes, planner, chain config, relay env templates. - Config snapshots and multi-chain deployment markdown updates. - gitignore services/btc-intake/dist/ (tsc output); do not track dist. Run forge build && forge test before deploy (large solc graph). Made-with: Cursor
This commit is contained in:
@@ -10,10 +10,10 @@ import {DODOPMMIntegration} from "../../contracts/dex/DODOPMMIntegration.sol";
|
||||
* @dev Requires caller to have POOL_MANAGER_ROLE. Run with --broadcast.
|
||||
*/
|
||||
contract CreateCUSDCUSDCPool is Script {
|
||||
uint256 constant LP_FEE_BPS = 3;
|
||||
uint256 constant INITIAL_PRICE_1E18 = 1e18;
|
||||
uint256 constant K_50PCT = 0.5e18;
|
||||
bool constant USE_TWAP = true;
|
||||
uint256 constant DEFAULT_LP_FEE_BPS = 10;
|
||||
uint256 constant DEFAULT_INITIAL_PRICE_1E18 = 1e18;
|
||||
uint256 constant DEFAULT_K_0PCT = 0;
|
||||
bool constant DEFAULT_USE_TWAP = false;
|
||||
|
||||
function run() external {
|
||||
uint256 pk = vm.envUint("PRIVATE_KEY");
|
||||
@@ -30,12 +30,16 @@ contract CreateCUSDCUSDCPool is Script {
|
||||
}
|
||||
|
||||
DODOPMMIntegration integration = DODOPMMIntegration(integrationAddr);
|
||||
uint256 lpFeeBps = vm.envOr("DODO_LP_FEE_BPS", DEFAULT_LP_FEE_BPS);
|
||||
uint256 initialPrice = vm.envOr("DODO_INITIAL_PRICE_1E18", DEFAULT_INITIAL_PRICE_1E18);
|
||||
uint256 k = vm.envOr("DODO_K_FACTOR_1E18", DEFAULT_K_0PCT);
|
||||
bool useTwap = vm.envOr("DODO_ENABLE_TWAP", DEFAULT_USE_TWAP);
|
||||
vm.startBroadcast(pk);
|
||||
address pool = integration.createCUSDCUSDCPool(
|
||||
LP_FEE_BPS,
|
||||
INITIAL_PRICE_1E18,
|
||||
K_50PCT,
|
||||
USE_TWAP
|
||||
lpFeeBps,
|
||||
initialPrice,
|
||||
k,
|
||||
useTwap
|
||||
);
|
||||
console.log("cUSDC/USDC pool created at:", pool);
|
||||
vm.stopBroadcast();
|
||||
|
||||
Reference in New Issue
Block a user