Yes - the commas before which and after "dollars" indicate an inserted relative clause. This shows that it is the bat used to beat the dog and not the ten dollars (though if I were the dog I'd definitely prefer the latter), or not that it "cost ten dollars to beat the dog".
If "is made" is being used here, I think it might be more accurate to use "costs" - i.e., simple present rather tha