Customizable market tax display
seiyria opened this issue · comments
Kyle J. Kemp commented
Right now is a hard coded 15%, it should pull from the blockchain what the current value is
Kacper commented
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.
Kyle J. Kemp commented
@kcper thanks for the research. I will leave your comment since you did the work :D
Krzysztof Borowiecki commented
Me and @kcper checked it the other day and it pulls data from the contract, so it works correctly, I'm closing this issue.