diff --git a/src/components/chain/contract/Staking.js b/src/components/chain/contract/Staking.js index 964e229..864f522 100644 --- a/src/components/chain/contract/Staking.js +++ b/src/components/chain/contract/Staking.js @@ -16,6 +16,7 @@ export class Staking { } async execMethod({provider, address, method, params}) { + console.log(provider, address, method, params) this.bc.checkAndChangeChain(chainId, provider); const contract = new Contract(address, routerAbi, provider.getSigner()); const tx = await contract[method](...params); diff --git a/src/components/home/HeroCard.vue b/src/components/home/HeroCard.vue index a5c5854..ab2c953 100644 --- a/src/components/home/HeroCard.vue +++ b/src/components/home/HeroCard.vue @@ -37,9 +37,8 @@ + destroyOnClose + >
- +
+
+

{{ props.dialogText.title }}

+

{{ props.dialogText.tips }}

+
+
+
  • +
    + {{ props.dialogText.typeLabel }} +

    + +

    +
    +
    + MAX: 1114 +

    {{ props.dialogText.typeName }}

    +
    +
  • +
  • +
    + {{ props.dialogText.conversion }} +

    {{ props.dialogText.typeName }}

    +
    +
    +   +

    {{ props.dialogText.conversionName }}

    +
    +
  • +
    +
    + Approve +
    +
    + \ No newline at end of file diff --git a/src/components/staking/conversion.vue b/src/components/staking/conversion.vue index 4146d51..f243cd4 100644 --- a/src/components/staking/conversion.vue +++ b/src/components/staking/conversion.vue @@ -45,7 +45,7 @@
    101.75
    - Staking + Staking
    Disarm @@ -56,7 +56,8 @@
    - + + @@ -68,6 +69,26 @@ const cecDialogVisible = ref(false) const handleClose = () => { cecDialogVisible.value = false } + +const dialogUnstakeText = ref({ + title: "Unstake CEC", + typeLabel: "Unstake", + tips: "1111", + typeName: "es CEC", + conversion: "Reveres conversion esCEC", + conversionName: "CEC" +}) +const stakingModal = () => { + cecDialogVisible.value = true +} + +const unStaked = () => { + console.log("unStaked") +} +const disarmCli = () => { + alert('---') +} + \ No newline at end of file