Currency variable missing from scope #5298

Explicitly specified that variables are available in a
block by setting the block to 'scoped' by adding the
scoped modifier to a block declaration.