From 5144e4b250e842ffcac448389c0d94eb257780aa Mon Sep 17 00:00:00 2001 From: Kerber0x Date: Tue, 12 Dec 2023 13:48:16 +0000 Subject: [PATCH] ci: fix script for vault deployment --- scripts/deployment/deploy_vault.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deployment/deploy_vault.sh b/scripts/deployment/deploy_vault.sh index a0fc04ca..8d11981a 100755 --- a/scripts/deployment/deploy_vault.sh +++ b/scripts/deployment/deploy_vault.sh @@ -22,6 +22,7 @@ function display_usage() { # "protocol_fee": "0.01", # "flash_loan_fee": "0.02", # "burn_fee": "0.02", +# "token_factory_lp": true, # "is_native": true //or false # } # @@ -38,6 +39,7 @@ function read_vault_config() { flash_loan_fee=$(jq -r '.flash_loan_fee' $vault) burn_fee=$(jq -r '.burn_fee' $vault) is_native=$(jq -r '.is_native' $vault) + token_factory_lp=$(jq -r '.token_factory_lp' $vault) } function create_vault() { @@ -58,7 +60,7 @@ function create_vault() { asset_info='{"token":{"contract_addr":"'$asset'"}}' fi - create_vault_msg='{"create_vault":{"asset_info":'$asset_info',"fees":{"protocol_fee":{"share":"'$protocol_fee'"},"burn_fee":{"share":"'$burn_fee'"},"flash_loan_fee":{"share":"'$flash_loan_fee'"}}}}' + create_vault_msg='{"create_vault":{"token_factory_lp": '$token_factory_lp',"asset_info":'$asset_info',"fees":{"protocol_fee":{"share":"'$protocol_fee'"},"burn_fee":{"share":"'$burn_fee'"},"flash_loan_fee":{"share":"'$flash_loan_fee'"}}}}' echo "Creating vault with the following configuration:" echo "Asset: $asset"