Closed 5-mark closed 2 years ago
possibly the values are mixed up:
match &config.fee_model {
ControlFeeModel::NoFees => {
},
ControlFeeModel::Reserve => {
<balances::Module<T>>::reserve(&account, config.fee)?;
},
ControlFeeModel::Transfer => {
let treasury = BodyTreasury::<T>::get(hash);
let transfer = <balances::Module<T> as Currency<_>>::transfer(
&account,
&treasury,
config.fee,
ExistenceRequirement::AllowDeath
);
},
_ => {}
}
can you try what happens, when you select reserve?
@5-mark ah found the bug, updated the dropdown provider:
export const dao_fee_model = [
{ key: '0', text: 'no fees', value: 0 }, // fees are reserved in actor account
{ key: '1', text: 'reserve', value: 1 }, // fees are paid to treasury
{ key: '2', text: 'transfer', value: 2 }, // fees are staked and may result in item drops
]
fixed in main: please try again in 10mins.
@2075 just tried again. but still same behaviour. Setting transfer as fee model but seeing the fee reserved. How comes this bug was fixed? it is still in the buglog and not in review. Also I didnt see any pull request?
i just updated the three values in the main branch. if you can see the three values as shown above, the correct fee calculation should apply.
please verify @5-mark @soundyogi
testing.
@soundyogi
@5-mark
testing.
any results @soundyogi ?
- [] See that the fee is "reserved" in your wallet and not transferred to the DAO treasury
So it seems to me behavior works as intended.
for good measure, the same for reserved variant:
now all 3 accounts show 1 token reserved:
@2075 @5-mark is this reserve behavior correct?
should:
0 = no fees 1 = reserve, no transfer 2 = transfer to treasury
for some reason on all 3 accounts (controller, trasury, newMember) 1 ZERO was reserved - this is what seems odd to me
hm reserved or maybe tx fees?
lets move to discord
I can confirm that 1 ZERO gets reserved for each the treasury and the controller when creating a organisations with the reserve fee model.
Describe the bug Creating a DAO with the setting "Fee Model = transfer" does reserve the fee on the joiners wallet when joining but should transfer the fee to the DAO treasury.
To Reproduce Steps to reproduce the behavior:
Expected behavior When selecting fee model "transfer" the DAO treasury should get the fee from the user.
Screenshots
Additional context