mirror of https://github.com/dap-ps/discover.git
Latest development changes
This commit is contained in:
parent
0076e2d463
commit
169cdcb275
|
@ -74,9 +74,9 @@ module.exports = {
|
|||
SafeMath: { deploy: false },
|
||||
TestBancorFormula: { deploy: false },
|
||||
MiniMeToken: {
|
||||
address: '0x25B1bD06fBfC2CbDbFc174e10f1B78b1c91cc77B'
|
||||
address: '0x2764b5da3696E3613Ef9864E9B4613f9fA478E75'
|
||||
},
|
||||
Discover: { address: '0xd34aae5b764d720ba5b438b29d60e5e9601cf3a9' },
|
||||
Discover: { address: '0x3c70c61b974c807a5fbbccb87353bd29bd6e3a20' },
|
||||
// MiniMeToken: {
|
||||
// args: [
|
||||
// '$MiniMeTokenFactory',
|
||||
|
|
|
@ -160,11 +160,11 @@ class DiscoverService extends BlockchainService {
|
|||
const dapp = await this.getDAppById(id)
|
||||
const amount = (await this.downVoteCost(dapp.id)).c
|
||||
|
||||
console.log(amount)
|
||||
console.log('Cost gotten from the contract', amount)
|
||||
|
||||
const tokenAmount = this.decimalMultiplier.mul(new BN(amount, 10))
|
||||
|
||||
console.log(tokenAmount.toString())
|
||||
console.log('Cost after adjustment', tokenAmount.toString())
|
||||
|
||||
const callData = DiscoverContract.methods
|
||||
.downvote(dapp.id, tokenAmount)
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,11 +1,14 @@
|
|||
module.exports = {
|
||||
SafeMath: require('./SafeMath').default,
|
||||
MiniMeToken: require('./MiniMeToken').default,
|
||||
BancorFormula: require('./BancorFormula').default,
|
||||
SafeMath: require('./SafeMath').default,
|
||||
Controlled: require('./Controlled').default,
|
||||
TestBancorFormula: require('./TestBancorFormula').default,
|
||||
Discover: require('./Discover').default,
|
||||
ApproveAndCallFallBack: require('./ApproveAndCallFallBack').default,
|
||||
MiniMeToken: require('./MiniMeToken').default,
|
||||
ERC20Token: require('./ERC20Token').default,
|
||||
TestBancorFormula: require('./TestBancorFormula').default,
|
||||
ApproveAndCallFallBack: require('./ApproveAndCallFallBack').default,
|
||||
TokenFactory: require('./TokenFactory').default,
|
||||
MiniMeTokenInterface: require('./MiniMeTokenInterface').default,
|
||||
TokenController: require('./TokenController').default,
|
||||
MiniMeTokenFactory: require('./MiniMeTokenFactory').default,
|
||||
Discover: require('./Discover').default,
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ export const fetchVoteRatingAction = (dapp, isUpvote, sntValue) => {
|
|||
dapp.id,
|
||||
)
|
||||
// balanceDownBy, votesRequired, cost
|
||||
rating = parseInt(downVoteEffect.vR, 10)
|
||||
rating = parseInt(downVoteEffect.c, 10)
|
||||
downVoteSntValue = downVoteEffect.c
|
||||
} catch (e) {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue