Dan
Dan
> If a purchase couldn't be found with the provided `poolID` and `purchaser`, it would've errored out on [L42](https://github.com/certikfoundation/shentu/blob/master/x/shield/keeper/proposal.go#L42), no? Right, but we didn't check if the target purchase ID...
Hi @Ivshti I checked the math here and it looks correct: Let k = (1 - fee rate), i.e. 997/1000 in the implementation. The profit f(x) = - p1 /...
@Ivshti I think this function is designed to calculate the profit a transaction can make from the price difference between some market and Uniswap. For example, if I can purchase...