-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't mess with amounts, if the allocation is 100%
- Loading branch information
1 parent
30a57f4
commit 61c7b37
Showing
14 changed files
with
105 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ members = [ | |
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "1.5.1" | ||
version = "1.5.2" | ||
authors = ["PFC <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.73.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
3d74986751e5ffaee368e2fef48600a2cec7475cf34180bf4416f0bf38f7511b pfc_astroport_generator.wasm | ||
eec5c2393076139c0f3544bfb05421eabdea7ee4a99f907b898d4a732165eb31 pfc_dust_collector_kujira_contract-aarch64.wasm | ||
142656cc27ed5a235b23e7cfe093438970fb2c02f38a3d95376a294652c4ad10 pfc_dust_collector_kujira_contract.wasm | ||
8e2ff6fdb9ac1ed6be069ab1bba90c14630fe78844df5e0d025844cd346a5c29 pfc_fee_splitter-aarch64.wasm | ||
2f89f99e9bd1159ab01bd65933aefb83d48138f260c2b2331f2b6ef27c384b4f pfc_fee_splitter.wasm | ||
fc729d3d8482634b7c902aaf17c5e4ac6dd9e52e3e0039cd9cc544b17713ec7a pfc_treasurechest_contract-aarch64.wasm | ||
efe5d5052f55c0d2eb9329be47851b3d5f49e794edd95dbaea1c50cf55739af8 pfc_treasurechest_contract.wasm | ||
99bc2da7b2de958c7c26953f56dde617c2ed9cccfd178b7093b7dd505da8edfc pfc_vault_contract-aarch64.wasm | ||
8dc45994f074d716f37666b92dad93f1489f77858747c4f68760a27853c29512 pfc_vault_contract.wasm | ||
b99cc69eb23f87c121135c601b5e8355457eaa6305f16601a97e5311287d618d pfc_dust_collector_kujira_contract-aarch64.wasm | ||
b5ee20e9b8a13f3a150b110a17b38c941c868424c28d48d7e849630e4d5214a8 pfc_dust_collector_kujira_contract.wasm | ||
8f791f694d954c809402bbdf4b4659251320f4388bca6ca79c96994b11b71a9c pfc_fee_splitter-aarch64.wasm | ||
1355da8090d3e9eaf108ed120ee97ecddcb1a2188e765b33163ae0006d407334 pfc_fee_splitter.wasm | ||
89df83ccec07e96921362dfaf51b578a3f2b7eed4c7eb421706a1f52386c7775 pfc_treasurechest_contract-aarch64.wasm | ||
b81306493909604e41907049aff88e652008b9c438e41155336dfc87a7138e7e pfc_treasurechest_contract.wasm | ||
78db200e8084a454bf917f3606de49b67cd41bab1c16ba6df5ee403040a0d009 pfc_vault_contract-aarch64.wasm | ||
1b640b8ba0124dc3d234a6f044a799692f9daf5fe820c2a5cc1b044e7f44e7f4 pfc_vault_contract.wasm |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM=boneLunaAdmin | ||
FROMADDR=archway1lu92zj8q6cmrptu09rp3343x9969r9qrg72hzj | ||
GAS_ADJ=1.4 | ||
GAS=$(archwayd q rewards estimate-fees 1 --node 'https://rpc.mainnet.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)') | ||
|
||
archwayd tx wasm store ./artifacts/pfc_fee_splitter.wasm --from ${FROM} --yes --gas-prices $GAS --gas-adjustment ${GAS_ADJ} --gas auto | ||
tx=F860276EE40CD09C6CEC63F6292763BE03BA5F635456C0E69EC0F29665338119 | ||
export FEESPLIT=$(archwayd query --output json tx ${tx} |jq -e -r ' .logs[].events[] | select(.type=="store_code").attributes[] | select(.key=="code_id").value ' | tr -d '"') | ||
echo $FEESPLIT | ||
FEESPLIT=448 | ||
|
||
|
||
|
||
json=$(cat ./test_files/archway_instantiate_feesplit.json) | ||
archwayd tx wasm instantiate $FEESPLIT "${json}" --admin $FROMADDR --label pfc-fee-split --from $FROM --gas-prices $GAS --gas-adjustment $GAS_ADJ --gas auto | ||
|
||
tx_fee_i=684F1016F6F436DE2F65828F2E72210C3C5583A207FEA1E2CE8421150DE62FDA | ||
|
||
export FEE_CONTRACT=$(archwayd query --output=json tx $tx_fee_i|jq -r '.logs[].events[]| select(.type=="instantiate").attributes[] |select(.key=="_contract_address").value '|tr -d '"') | ||
|
||
echo $FEE_CONTRACT | ||
FEE_CONTRACT=archway1pzjprqczpn0fvn5kvqzs74mggg4539rt2vpmp07ffp3pufp6cc3qqmhdg3 | ||
|
||
|
||
# | ||
archwayd tx wasm migrate $FEE_CONTRACT $FEESPLIT '{}' --from $FROM --gas-prices $GAS --gas-adjustment $GAS_ADJ --gas auto | ||
|
||
|
||
add_alloc=$(cat ./test_files/add_allocation_phoenix_vault.json) | ||
migalood tx wasm exec migaloo1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqvk723g "${add_alloc}" --from testadmin --gas-prices 0.025ustars --gas-adjustment 1.7 --gas auto | ||
migalood tx wasm exec migaloo1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqvk723g '{"reconcile":{}}' --from testadmin --gas-prices 0.025ustars --gas-adjustment 1.7 --gas auto --node https://narwhal-rpc.dalnim.finance:443 --chain-id narwhal-1 | ||
|
||
archwayd query wasm cs smart $FEE_CONTRACT '{"allocations":{}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "pfc-fee-split", | ||
"gov_contract": "archway1lu92zj8q6cmrptu09rp3343x9969r9qrg72hzj", | ||
"allocation": [ | ||
{ | ||
"name": "testnet", | ||
"allocation": 1, | ||
"send_after": {"denom": "uarch","amount": "1000000"}, | ||
"send_type": { "Wallet": { | ||
"receiver": "archway1lu92zj8q6cmrptu09rp3343x9969r9qrg72hzj" | ||
} | ||
} | ||
} | ||
] | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"add_allocation_detail": { | ||
"name": "gravedigger", | ||
"allocation": 100, | ||
"send_after": { | ||
"denom": "uosmo", | ||
"amount": "100000" | ||
}, | ||
"send_type": { | ||
"Wallet": { | ||
"receiver": "osmo1zhlar4sdvar9dqqc29umwarznvap2rrpzqgg66" | ||
} | ||
} | ||
} | ||
} |