add unbonding staking

This commit is contained in:
liangping 2023-10-28 09:51:09 +08:00
parent 75f2c5b40c
commit 36c73ec5ee

View File

@ -29,8 +29,11 @@ const unbondList = ref([] as Validator[]);
const slashing =ref({} as SlashingParam)
onMounted(() => {
staking.fetchUnbondingValdiators().then((res) => {
unbondList.value = res.concat(unbondList.value);
});
staking.fetchInacitveValdiators().then((res) => {
unbondList.value = res;
unbondList.value = unbondList.value.concat(res);
});
chainStore.rpc.getSlashingParams().then(res => {
slashing.value = res.params