CryptoBlades / cryptoblades

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customizable market tax display

seiyria opened this issue · comments

Right now is a hard coded 15%, it should pull from the blockchain what the current value is

It's already pulled from the blockchain.
In Market.vue

async loadMarketTaxes() {
      if(!this.characterMarketTax) {
        const tax = await this.getMarketTax(this.Characters.options.address) as string;
        this.characterMarketTax = this.convertMarketTax(tax);
      }
      if(!this.weaponMarketTax) {
        const tax = await this.getMarketTax(this.Weapons.options.address) as string;
        this.weaponMarketTax = this.convertMarketTax(tax);
      }
      if(!this.shieldMarketTax) {
        const tax = await this.getMarketTax(this.Shields.options.address) as string;
        this.shieldMarketTax = this.convertMarketTax(tax);
      }
    },

Or maybe you mean something else?

Edit: I think you meant early withdraw tax ;) Feel free to delete this comment and edit the issue.

@kcper thanks for the research. I will leave your comment since you did the work :D

Me and @kcper checked it the other day and it pulls data from the contract, so it works correctly, I'm closing this issue.